/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1B2A4A;
    --gold: #C8952E;
    --gold-hover: #d4a43a;
    --white: #ffffff;
    --off-white: #f7f5f1;
    --light-bg: #f2f0ec;
    --border: #e5e1d9;
    --text-dark: #1B2A4A;
    --text-body: #444;
    --text-light: #777;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 14px 34px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200, 149, 46, 0.4);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: #243756;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(27, 42, 74, 0.4);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    max-width: 400px;
}

.logo-img {
    height: 140px;
    width: auto;
    display: block;
}

.logo-row {
    display: inline-flex;
    align-items: flex-start;
}

.logo-row .logo-img {
    display: inline-block;
}

.logo-tm {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-left: 2px;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s;
}

.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 12px;
    border-radius: 4px;
}

.cart-icon {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.cart-icon:hover { opacity: 0.7; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: all 0.3s;
    border-radius: 1px;
}

/* ===== HERO ===== */
.hero {
    background: var(--white);
    background-image: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 35%, rgba(255,255,255,0) 65%), url('../images/hero-mattress.jpg');
    background-size: cover, cover;
    background-position: center, center;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 520px;
    align-items: center;
}

.hero-content {
    padding: 60px 0;
    padding-right: 48px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.08;
    color: var(--navy);
    margin-bottom: 6px;
}

.hero-swoosh {
    margin-bottom: 24px;
}

.hero-bold {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 440px;
}

/* ===== FEATURES BAR ===== */
section[id] {
    scroll-margin-top: 180px;
}

.features-bar {
    padding: 44px 0;
    background: var(--navy);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon { flex-shrink: 0; }

.feature-icon svg path,
.feature-icon svg rect,
.feature-icon svg circle,
.why-icon svg path,
.why-icon svg circle,
.why-icon svg line {
    stroke-width: 1.8;
}

.feature-text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.45;
}

.features-bar .feature-icon svg circle:first-child {
    fill: var(--white);
}

.feature-text strong {
    display: block;
    font-size: 14px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.feature-text p {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
}

.feature-text sub {
    font-size: 9px;
}

/* ===== WHY SECTION ===== */
.why-section {
    padding: 56px 0;
    background: var(--white);
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

.section-label.left { text-align: left; }

.section-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 36px;
    line-height: 1.2;
    text-align: center;
}

.section-title-left {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Why layout: family photo left + cards right */
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.why-image {
    border-radius: 8px;
    overflow: hidden;
    min-height: 380px;
    background: #e8e2d8;
    position: relative;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.why-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.why-icon {
    flex-shrink: 0;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ===== ORDER SECTION ===== */
.order-section {
    padding: 64px 0 72px;
    background: var(--light-bg);
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: center;
}

.size-table {
    border: 2px solid var(--gold);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}

.depth-table-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.depth-sub {
    font-weight: 500;
    font-size: 13px;
    color: #666;
}

.size-table + .depth-table-heading {
    margin-top: 10px;
}

.table-header {
    display: grid;
    grid-template-columns: 40px 1.2fr 1.5fr 0.9fr 1fr;
    background: var(--gold);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 10px 16px;
    align-items: center;
}

.table-header small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.table-row {
    display: grid;
    grid-template-columns: 40px 1.2fr 1.5fr 0.9fr 1fr;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: background 0.15s;
}

.table-row:last-child { border-bottom: none; }
.table-row:hover { background: #faf8f4; }

.table-row:has(.size-check:checked) {
    background: #f0f5eb;
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    border-radius: 2px;
}

.table-row:has(.size-check:checked) .col-size {
    font-weight: 700;
    color: var(--navy);
}

.table-row .col-select {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.table-row .col-select input[type="checkbox"] {
    accent-color: var(--navy);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.table-row .col-size {
    font-weight: 500;
    color: var(--text-dark);
}

.table-row .col-price {
    font-weight: 600;
    color: var(--text-dark);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn:hover { background: #e8e8e8; }

.qty-val {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    line-height: 28px;
}

.row-total {
    font-weight: 600;
    color: var(--text-dark);
}

.shipping-note {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.payment-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.stripe-note {
    font-size: 12px;
    color: var(--text-light);
}

.payment-icons {
    display: flex;
    gap: 6px;
}

.pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    min-width: 44px;
}

.pay-icon.visa { color: #1a1f71; }
.pay-icon.mc { color: #eb001b; }
.pay-icon.amex { color: #006fcf; }
.pay-icon.disc { color: #ff6000; }

/* Order Summary */
.order-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
}

.order-summary .order-product-image {
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.order-summary .order-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.order-summary h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-body);
}

.summary-row .free-ship {
    color: #2e7d32;
    font-weight: 600;
}

.total-row {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.btn-cart {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    margin-top: 20px;
    border-radius: 4px;
    letter-spacing: 1.5px;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 72px 0;
    background: var(--white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    background: #e8e2d8;
    min-height: 420px;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    position: relative;
    box-shadow: 0 8px 32px rgba(27, 42, 74, 0.15), 0 2px 8px rgba(0,0,0,0.08);
    border: 4px solid #fff;
    outline: 1px solid rgba(27, 42, 74, 0.08);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(-1);
}

.about-content .section-label {
    text-align: left;
}

.about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 28px;
}

.signature {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sig-text {
    font-family: 'Dancing Script', cursive;
    font-size: 40px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.sig-motto {
    font-size: 16px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 64px 0 72px;
    background: var(--off-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--gold); }

.faq-toggle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.25s;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 16px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-body);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    border-top: 1px solid var(--border);
    padding-top: 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    margin-bottom: 14px;
}

.footer-logo .logo-img {
    height: 100px;
}

.footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 6px;
}

.footer-desc.italic {
    font-style: italic;
    font-size: 12.5px;
}

.footer-motto {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gold);
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    line-height: 1.5;
}

.footer-col ul li a:hover { color: var(--gold); }

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.social-btn:hover { background: var(--gold-hover); }

.made-in {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    background: var(--off-white);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.footer-legal {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-legal a { color: var(--text-light); }
.footer-legal a:hover { color: var(--gold); }
.footer-legal span { opacity: 0.4; }

/* ===== SCROLL ANIMATIONS ===== */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .hero-content { padding-right: 24px; }
    .order-layout { grid-template-columns: 1fr; }
    .order-summary { max-width: 360px; margin: 0 auto; }
    .features-grid { gap: 20px; }
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 90px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid #eee;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        padding: 16px 20px;
        z-index: 999;
    }

    .nav.open { display: block; }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 36px 0 28px;
        padding-right: 0;
    }

    .hero-title { font-size: 34px; }

    .logo-img {
        height: 68px;
    }

    .logo {
        max-width: 170px;
    }

    .footer-logo .logo-img {
        height: 72px;
    }

    .reg-logo-img {
        height: 50px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .why-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-image {
        min-height: 280px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 32px 1fr 1.2fr 0.8fr 0.8fr;
        padding: 10px 12px;
        font-size: 13px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image { min-height: 280px; }

    .faq-grid { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .logo-img {
        height: 80px;
    }

    .footer-logo .logo-img {
        height: 60px;
    }

    .reg-logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .features-grid { grid-template-columns: 1fr; }

    .table-header,
    .table-row {
        grid-template-columns: 28px 1fr 1fr 0.7fr 0.8fr;
        padding: 8px 10px;
        font-size: 12px;
    }

    .qty-btn { width: 24px; height: 24px; font-size: 12px; }
    .qty-val { width: 22px; font-size: 12px; line-height: 24px; }

    .footer-inner { grid-template-columns: 1fr; }
}
