/* ============================================================
   HavenDrapes Product Sections — Design Token CSS (v3)
   ============================================================ */

:root {
    --haven-primary: #523a28;
    --haven-text: #5f5f5f;
    --haven-bg-warm: #fcf8f5;
    --haven-bg-white: #ffffff;
    --haven-border: #e3e3e3;
    --haven-section-py: 60px;
}

/* --- Compact Container (less whitespace) --- */
.haven-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Base --- */
.haven-section {
    padding: var(--haven-section-py) 0;
    color: var(--haven-primary);
}

@media (max-width: 767px) {
    .haven-section {
        padding: 40px 0;
    }
}

.haven-section__title {
    font-size: 30px;
    font-weight: 500;
    color: var(--haven-primary);
    text-align: left;
    margin-bottom: 40px;
    line-height: 1.2;
}

.haven-section__subtitle {
    font-size: 18px;
    color: var(--haven-text);
    font-weight: 400;
    line-height: 1.6;
    margin: -24px 0 30px;
}

@media (max-width: 767px) {
    .haven-section__title {
        font-size: 22px;
        margin-bottom: 24px;
    }
}

/* --- Section 1: Badges --- */
.haven-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.haven-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: var(--haven-bg-warm);
    border-radius: 6px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.haven-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 58, 40, 0.12);
}

.haven-badge svg {
    flex-shrink: 0;
}

.haven-badge span {
    font-size: 14px;
    font-weight: 500;
    color: var(--haven-text);
}

.haven-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Section 2: Features (SVG icons + text, 3 cols) --- */
.haven-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 767px) {
    .haven-features {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.haven-feature {
    text-align: center;
}

.haven-feature__icon {
    margin-bottom: 20px;
}

.haven-feature__icon img {
    width: 125px;
    height: 125px;
    object-fit: contain;
}

.haven-feature__kicker {
    font-size: 16px;
    font-weight: 500;
    color: var(--haven-primary);
    margin-bottom: 8px;
    letter-spacing: 0.25px;
}

.haven-feature__desc {
    font-size: 15px;
    color: var(--haven-text);
    line-height: 1.6;
    font-weight: 300;
}

/* --- Section 3: Styled in Rooms — Click-Scroll Slider --- */
.haven-slider {
    position: relative;
    overflow: hidden;
}

.haven-slider__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
}

.haven-slider__track::-webkit-scrollbar {
    display: none;
}

.haven-slider__slide {
    flex: 0 0 calc(33.33% - 14px);
    scroll-snap-align: start;
    text-align: center;
}

@media (max-width: 991px) {
    .haven-slider__slide {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 575px) {
    .haven-slider__slide {
        flex: 0 0 80%;
    }
}

.haven-slider__img {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.haven-slider__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.haven-slider__slide:hover .haven-slider__img img {
    transform: scale(1.05);
}

.haven-slider__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--haven-primary);
    margin-top: 12px;
}

/* Arrow Buttons */
.haven-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 2;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--haven-border);
    border-radius: 50%;
    font-size: 18px;
    color: var(--haven-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s, box-shadow 0.3s;
}

.haven-slider__arrow:hover {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.haven-slider__arrow--left {
    left: 8px;
}

.haven-slider__arrow--right {
    right: 8px;
}





/* --- Section 4-5: 3-Column Cards --- */
.haven-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .haven-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.haven-card {
    text-align: center;
}

.haven-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.haven-card__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--haven-primary);
    margin-bottom: 10px;
}

.haven-card__desc {
    font-size: 14px;
    color: var(--haven-text);
    line-height: 1.6;
}

/* --- CTA Button --- */
.haven-cta {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--haven-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background-color 0.3s;
    margin-top: 16px;
}

.haven-cta:hover {
    background-color: #3b281b;
    color: #fff !important;
}

.haven-cta--sm {
    padding: 8px 20px;
    font-size: 12px;
    margin-top: 12px;
}

/* --- Section 6: Liner Table --- */
.haven-liner {
    width: 100%;
}

.haven-liner__table {
    border: 1px solid var(--haven-border);
    margin-bottom: 24px;
    overflow: hidden;
}

.haven-liner__row {
    display: flex;
    width: 100%;
}

.haven-liner__row--header {
    background-color: #3a3a3a;
}

.haven-liner__row--header .haven-liner__cell {
    color: #fff;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.haven-liner__row--values {
    background-color: var(--haven-bg-white);
}

.haven-liner__row--values .haven-liner__cell {
    color: var(--haven-text);
    border-right: 1px solid var(--haven-border);
    border-top: 1px solid var(--haven-border);
}

.haven-liner__cell {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 14px;
}

.haven-liner__cell:last-child {
    border-right: none;
}

.haven-liner__image {
    margin-top: 20px;
}

.haven-liner__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@media (max-width: 575px) {
    .haven-liner__row {
        flex-wrap: wrap;
    }

    .haven-liner__cell {
        flex: 0 0 33.33%;
    }
}

/* --- Section 7: FAQ Accordion --- */
.haven-faq {
    max-width: 100%;
}

.haven-faq__item {
    border-bottom: 1px solid var(--haven-border);
}

.haven-faq__question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: var(--haven-primary);
    outline: none;
}

.haven-faq__question:hover {
    color: #3b281b;
}

.haven-faq__question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--haven-primary);
    border-bottom: 2px solid var(--haven-primary);
    transform: rotate(45deg);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.haven-faq__item.active .haven-faq__question::after {
    transform: rotate(-135deg);
}

.haven-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.haven-faq__item.active .haven-faq__answer {
    max-height: 600px;
    padding-bottom: 18px;
}

.haven-faq__answer p,
.haven-faq__answer ul {
    font-size: 15px;
    color: var(--haven-text);
    line-height: 1.7;
    margin-bottom: 8px;
}

.haven-faq__answer ul {
    padding-left: 24px;
}

/* --- Section 8: Image + Text Side-by-Side --- */
.haven-imgtext {
    display: flex;
    gap: 40px;
    align-items: center;
}

@media (max-width: 767px) {
    .haven-imgtext {
        flex-direction: column;
        gap: 24px;
    }
}

.haven-imgtext__image {
    flex: 1;
    min-width: 0;
}

.haven-imgtext__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.haven-imgtext__copy {
    flex: 1;
    min-width: 0;
}

.haven-theme-text {
    max-width: 100%;
}

.haven-theme-text h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--haven-primary);
    margin-bottom: 20px;
}

.haven-theme-text p {
    font-size: 15px;
    color: var(--haven-text);
    line-height: 1.8;
    margin-bottom: 16px;
}