/* ═══════════════════════════════════════════════════════════
   Layout — Header + Footer + CTA Final
   Values extracted from Home.dc.html design source
   ═══════════════════════════════════════════════════════════ */

/* ── Header ───────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 247, 236, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-bar {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: padding 300ms var(--ease-out);
}

.site-header.is-scrolled .header-bar {
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 44px;
    width: auto;
    display: block;
    transition: height 300ms var(--ease-out);
}

.site-header.is-scrolled .header-logo img {
    height: 36px;
}

/* Desktop nav */
.header-nav {
    display: none;
    align-items: center;
    gap: 22px;
}

.header-nav a {
    font: var(--f-small);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding-bottom: 4px;
    background-image: linear-gradient(var(--gold-500), var(--gold-500));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 260ms var(--ease-out),
                color var(--duration-fast) var(--ease-standard);
}

.header-nav a:hover {
    color: var(--wine-700);
    background-size: 100% 1.5px;
}

.header-nav a.is-active {
    color: var(--wine-900);
    font-weight: 500;
}

.header-cta {
    display: none;
}

/* Burger button */
.header-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.header-burger span {
    display: block;
    height: 2px;
    background: var(--wine-900);
    border-radius: 2px;
}

/* Desktop breakpoint: show full nav */
@media (min-width: 1040px) {
    .header-nav {
        display: flex;
    }
    .header-cta {
        display: inline-flex;
    }
    .header-burger {
        display: none;
    }
}

/* ── Mobile menu ──────────────────────────────────────────── */

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(44, 11, 27, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-panel {
    border-top: 1px solid var(--border-subtle);
    background: var(--cream-050);
    padding: 12px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-nav a {
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font: var(--f-body-l);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--line-100);
}

.mobile-menu-nav a:last-child {
    border-bottom: none;
}

.mobile-menu-nav a:hover {
    color: var(--wine-700);
}

.mobile-menu-nav a.is-active {
    color: var(--wine-900);
    font-weight: 500;
}

.mobile-menu-cta {
    margin-top: 12px;
}

.mobile-menu-cta .btn {
    min-height: 48px;
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font: 600 1rem/1 var(--font-sans);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--ink-600);
}

/* ── CTA Final Section ────────────────────────────────────── */

.cta-final {
    position: relative;
    background: var(--wine-950);
    color: var(--text-inverse);
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/pattern-wine.png');
    background-size: 680px auto;
    background-repeat: repeat;
    opacity: 0.12;
    pointer-events: none;
}

.cta-final::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 160px 40px var(--wine-950);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.cta-final .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: clamp(64px, 9vw, 120px);
    padding-bottom: clamp(64px, 9vw, 120px);
}

.cta-final h2 {
    margin: 0;
    font-family: var(--font-serif-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    color: var(--text-inverse);
    text-wrap: balance;
}

.cta-final h2 .accent {
    color: var(--gold-400);
    font-style: italic;
    font-weight: 500;
}

.cta-final p {
    margin: 20px auto 0;
    max-width: 520px;
    font: var(--f-lead);
    font-size: clamp(1.05rem, 2.2vw, 1.375rem);
    color: var(--text-inverse-muted);
    text-wrap: pretty;
}

.cta-final .btn {
    margin-top: 32px;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
    background: var(--surface-inverse-alt);
    color: var(--text-inverse);
    padding: clamp(48px, 7vw, 72px) 24px 32px;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-inverse);
}

.footer-brand {
    flex: 1 1 280px;
    min-width: min(100%, 280px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-brand img {
    width: clamp(84px, 10vw, 104px);
    height: auto;
    align-self: flex-start;
    flex: 0 0 auto;
    display: block;
}

.footer-brand p {
    margin: 0;
    font: var(--f-body);
    font-family: var(--font-sans);
    color: var(--text-inverse);
    line-height: 1.6;
}

.footer-brand p + p {
    margin-top: 6px;
    color: var(--text-inverse-muted);
}

.footer-col {
    flex: 0 1 auto;
}

.footer-col h4 {
    margin: 0 0 14px;
    font: var(--f-overline);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--gold-400);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font: var(--f-body);
    font-family: var(--font-sans);
    color: var(--text-inverse);
    text-decoration: none;
    padding-bottom: 3px;
    background-image: linear-gradient(var(--gold-400), var(--gold-400));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 260ms var(--ease-out),
                color var(--duration-fast) var(--ease-standard);
}

.footer-col a:hover {
    color: var(--gold-400);
    background-size: 100% 1px;
}

.footer-bottom {
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.footer-bottom span,
.footer-bottom a {
    font: var(--f-small);
    font-family: var(--font-sans);
    color: var(--text-inverse-muted);
}

.footer-bottom a {
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--gold-400);
}
