/* =========================================================
   DOOR TYPES BLOCK — BEM
   Layout: centered header → horizontal scroll tabs → white panel card (left copy | right image)
   ========================================================= */

.smartfix-door-types {
    background: var(--sf-bg-light);
    padding: var(--sf-padding-section) 0;
}

.smartfix-door-types__inner {
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* =========================================================
   CENTERED HEADER
   ========================================================= */

.smartfix-door-types__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin: 0 auto;
}

.smartfix-door-types__tag {
    font-size: 13px;
    letter-spacing: 0.12em;
}

.smartfix-door-types__headline {
    font-family: var(--sf-font-heading);
    font-size: var(--sf-fs-h2);
    font-weight: 700;
    line-height: 1.12;
    color: var(--sf-text-dark);
    margin: 0;
}

.smartfix-door-types__headline .sf-highlight {
    color: var(--sf-color-primary);
}

.smartfix-door-types__sub {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
    color: var(--sf-text-muted);
    margin: 0;
}

/* =========================================================
   HORIZONTAL SCROLL TAB BAR
   ========================================================= */

.smartfix-door-types__tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.smartfix-door-types__tabs-wrap::-webkit-scrollbar {
    display: none;
}

.smartfix-door-types__tabs {
    display: flex;
    gap: 12px;
    width: max-content;
    min-width: 100%;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 4px;
}

.smartfix-door-types__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: var(--sf-btn-padding-v) var(--sf-btn-padding-h);
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-cta);
    font-weight: 500;
    line-height: 1;
    color: var(--sf-text-dark);
    background: var(--sf-bg-white);
    border: 2px solid var(--sf-border-color);
    border-radius: var(--sf-btn-radius);
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.smartfix-door-types__tab:hover,
.smartfix-door-types__tab:focus-visible {
    background: var(--sf-color-primary);
    border-color: var(--sf-color-primary);
    color: var(--sf-text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 18, 18, 0.16);
}

.smartfix-door-types__tab:focus-visible {
    outline: 2px solid var(--sf-color-primary);
    outline-offset: 2px;
}

.smartfix-door-types__tab--active,
.smartfix-door-types__tab[aria-selected="true"] {
    background: var(--sf-color-primary);
    border-color: var(--sf-color-primary);
    color: var(--sf-text-white);
}

.smartfix-door-types__tab--active:hover,
.smartfix-door-types__tab--active:focus-visible,
.smartfix-door-types__tab[aria-selected="true"]:hover,
.smartfix-door-types__tab[aria-selected="true"]:focus-visible {
    color: var(--sf-text-white);
}

/* =========================================================
   TAB PANELS — white card, same layout for every tab
   ========================================================= */

.smartfix-door-types__panels {
    width: 100%;
}

.smartfix-door-types__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--sf-bg-white);
    border-radius: var(--sf-card-radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(7, 18, 18, 0.07);
}

.smartfix-door-types__panel[hidden] {
    display: none;
}

/* Smooth in-transition when a panel activates — fades in place, no layout jump */
.smartfix-door-types__panel--active {
    animation: sf-door-panel-in 0.35s ease both;
}

@keyframes sf-door-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ── LEFT: copy ── */
.smartfix-door-types__panel-left {
    padding: 56px 48px 56px 52px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.smartfix-door-types__panel-subtag {
    font-family: var(--sf-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sf-color-primary);
    margin: 0;
}

.smartfix-door-types__panel-title {
    font-family: var(--sf-font-heading);
    font-size: var(--sf-fs-h3);
    font-weight: 700;
    line-height: 1.18;
    color: var(--sf-text-dark);
    margin: 0;
}

.smartfix-door-types__panel-desc {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
    color: var(--sf-text-muted);
    margin: 0;
}

/* Feature pills — full-width stacked rows */
.smartfix-door-types__panel-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    width: 100%;
}

.smartfix-door-types__panel-pill {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--sf-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--sf-text-dark);
    background: var(--sf-bg-light);
    border-radius: var(--sf-card-radius-pill);
}

.smartfix-door-types__panel-left .sf-btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* ── RIGHT: image + floating quote btn ── */
.smartfix-door-types__panel-right {
    position: relative;
    padding: 30px 0 30px 10px;
    display: flex;
    flex-direction: column;
}

.smartfix-door-types__panel-img-wrap {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    min-height: 480px;
}

.smartfix-door-types__panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Quote btn — bottom of image, right edge flush with card (no right radius) */
.smartfix-door-types__panel-quote {
    position: absolute;
    bottom: 30px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-family: var(--sf-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-color-primary);
    background: var(--sf-bg-white);
    border-radius: 15px 0 0 0;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    z-index: 2;
}

.smartfix-door-types__panel-quote:hover {
    background: var(--sf-color-primary);
    color: var(--sf-text-white);
}

.smartfix-door-types__panel-quote .sf-btn__icon {
    flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
    .smartfix-door-types__headline {
        font-size: clamp(32px, 4vw, var(--sf-fs-h2));
    }

    .smartfix-door-types__panel-left {
        padding: 48px 40px;
    }
}

@media (max-width: 1024px) {
    .smartfix-door-types__panel-right {
        min-height: 380px;
    }
}

@media (max-width: 834px) {
    .smartfix-door-types {
        padding: 48px 0;
    }

    .smartfix-door-types__inner {
        padding: 0 20px;
        gap: 28px;
    }

    .smartfix-door-types__panel {
        grid-template-columns: 1fr;
    }

    .smartfix-door-types__panel-right {
        min-height: 280px;
        order: 1;
    }

    .smartfix-door-types__panel-left {
        padding: 28px 20px;
        order: 2;
        gap: 16px;
    }

    .smartfix-door-types__headline {
        font-size: 26px;
    }

    /* Keep tabs on one row: overflow scrolls horizontally instead of wrapping */
    .smartfix-door-types__tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .smartfix-door-types__tab {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .smartfix-door-types__panel-right {
        min-height: 240px;
    }
}

@media (max-width: 375px) {
    .smartfix-door-types__inner {
        padding: 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smartfix-door-types__panel--active {
        animation: none;
    }
}

/* Primary + WhatsApp CTA row — centered under header */
.smartfix-door-types__cta-group {
    justify-content: center;
}
