/* Company-site components on top of the shared shop theme (themes/majster3d.css). */

.navbar-shop .nav-link.active {
    background: #fff;
    color: var(--m3-ink) !important;
}

.navbar-shop .dropdown-menu {
    border: 1px solid var(--m3-line);
    border-radius: 18px;
    padding: 8px;
    background: var(--m3-card);
    box-shadow: 0 16px 40px rgba(40, 30, 20, 0.12);
}

.navbar-shop .dropdown-item {
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 500;
    color: var(--m3-ink);
}

.navbar-shop .dropdown-item:hover,
.navbar-shop .dropdown-item.active {
    background: #fff;
    color: var(--m3-red);
}

/* Hero: inside .container so it lines up with the content below instead of the theme's fixed 1140px. */
.container > .header-hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.header-hero-sm {
    min-height: 260px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.hero-copy {
    max-width: 820px;
}

.hero-actions .btn {
    padding: 0.7rem 1.4rem;
}

.btn-outline-light {
    border-radius: 999px;
    font-weight: 600;
}

/* Sections */
.section-eyebrow {
    color: var(--m3-red);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-lead {
    color: var(--m3-muted);
    max-width: 720px;
}

.text-muted-m3 {
    color: var(--m3-muted);
}

/* Advantage strip */
.advantage {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    height: 100%;
    background: var(--m3-card);
    border: 1px solid var(--m3-line);
    border-radius: 20px;
}

.advantage h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.advantage p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--m3-muted);
}

.icon-badge {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--m3-red);
    background: rgba(225, 6, 0, 0.08);
}

/* Service cards */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    color: var(--m3-ink);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    color: var(--m3-ink);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(40, 30, 20, 0.12);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 18px 0 8px;
}

.service-card p {
    color: var(--m3-muted);
    flex-grow: 1;
}

.service-card .more {
    font-weight: 600;
    color: var(--m3-red);
}

.service-card-dark {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.service-card-dark:hover {
    color: #fff;
}

.service-card-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.service-card-dark .icon-badge {
    background: var(--m3-red);
    color: #fff;
}

.service-card-wide {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.service-card-wide h3 {
    margin-top: 0;
}

@media (max-width: 767px) {
    .service-card-wide {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Products carousel (mirrors the shop home page) */
.products-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.products-carousel .card-shop {
    transition: transform 0.3s ease;
}

.products-carousel .carousel-control-prev,
.products-carousel .carousel-control-next {
    width: 5%;
    filter: invert(1);
}

.products-carousel .card-body h3 {
    font-size: 1.1rem;
}

/* Process steps */
.step {
    position: relative;
    height: 100%;
    padding: 24px;
    background: var(--m3-card);
    border: 1px solid var(--m3-line);
    border-radius: 24px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: var(--m3-red);
    margin-bottom: 14px;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.step p {
    margin: 0;
    color: var(--m3-muted);
}

/* Portfolio */
.portfolio-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.portfolio-card .badge {
    background: rgba(225, 6, 0, 0.08);
    color: var(--m3-red);
    font-weight: 600;
    border-radius: 999px;
}

/* Shop promo */
.shop-promo {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 48px;
    color: #fff;
    background-color: #1a120f;
    background-image: linear-gradient(90deg, rgba(18, 12, 10, 0.92) 0%, rgba(18, 12, 10, 0.6) 60%, rgba(18, 12, 10, 0.3) 100%), var(--brand-hero);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(40, 30, 20, 0.12);
}

.shop-promo h2 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.shop-promo p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
}

.shop-promo .chip {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 6px 6px 0;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ */
.faq .accordion-item {
    background: var(--m3-card);
    border: 1px solid var(--m3-line);
    border-radius: 18px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq .accordion-button {
    background: var(--m3-card);
    color: var(--m3-ink);
    font-weight: 600;
    box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
    color: var(--m3-red);
}

.faq .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.16);
}

.faq .accordion-body {
    color: var(--m3-muted);
    padding-top: 0;
}

/* Lists */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--m3-red);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Panels */
.panel {
    background: var(--m3-card);
    border: 1px solid var(--m3-line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(40, 30, 20, 0.06);
}

.panel-accent {
    border-left: 5px solid var(--m3-red);
}

/* Article */
.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2rem;
}

.article-content p,
.article-content li {
    line-height: 1.75;
}

.article-content a {
    color: var(--m3-red);
}

.article-card {
    display: block;
    height: 100%;
    padding: 28px;
    color: var(--m3-ink);
    text-decoration: none;
}

.article-card:hover {
    color: var(--m3-ink);
}

.article-card:hover h3 {
    color: var(--m3-red);
}

.article-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--m3-muted);
}

/* Calculator */
.dropzone {
    border: 2px dashed var(--m3-line);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--m3-red);
    background: rgba(225, 6, 0, 0.03);
}

.dropzone i {
    font-size: 2rem;
    color: var(--m3-red);
}

.material-option {
    cursor: pointer;
}

.material-option input {
    display: none;
}

.material-option .card {
    padding: 14px 16px;
    height: 100%;
    border: 1px solid var(--m3-line);
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.material-option input:checked + .card {
    border-color: var(--m3-red);
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.12);
}

.estimate-box {
    position: sticky;
    top: 100px;
}

.estimate-price {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.form-range::-webkit-slider-thumb {
    background: var(--m3-red);
}

.form-range::-moz-range-thumb {
    background: var(--m3-red);
}

@media (max-width: 576px) {
    .shop-promo,
    .panel {
        padding: 24px;
        border-radius: 22px;
    }
}
