/* ============================================================
   HEADER — sticky navigation bar
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(253, 246, 239, 0.86);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow var(--dur-fast) var(--ease);
}
.site-header.scrolled {
    box-shadow: 0 6px 28px -18px rgba(107, 48, 64, 0.25);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--wine-700);
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fdf6ef;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 1.5px #cfa97a, 0 2px 10px -4px rgba(168, 95, 101, 0.3);
    overflow: hidden;
    flex: 0 0 auto;
}
.brand-mark img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-name {
    font-family: "Frank Ruhl Libre", serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wine-700);
}
.brand-tagline {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--rose-500);
    letter-spacing: 0.04em;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-weight: 500;
    font-size: 0.98rem;
    transition: all var(--dur-fast) var(--ease);
}
.nav a:hover {
    background: var(--blush-50);
    color: var(--wine-700);
}

/* Header CTA */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-d));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px -8px rgba(37, 211, 102, 0.55);
    transition: transform var(--dur-fast) var(--ease);
}
.header-cta:hover { transform: translateY(-1px); color: #fff; }
.header-cta svg { width: 18px; height: 18px; }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--wine-700);
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
    .nav { display: none; }
    .nav-toggle { display: inline-flex; }

    .nav.open {
        display: flex;
        position: absolute;
        top: calc(var(--header-h) - 4px);
        left: 16px; right: 16px;
        flex-direction: column;
        background: var(--cream-50);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 12px;
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }
    .nav.open a {
        padding: 12px 16px;
        text-align: right;
        width: 100%;
    }
    .header-cta span { display: none; }
    .header-cta { padding: 10px 14px; }
}

@media (max-width: 480px) {
    :root { --header-h: 64px; }
    .header-inner { gap: 10px; }
    .brand { gap: 8px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-mark img { width: 36px; height: 36px; }
    .brand-name { font-size: 1.05rem; }
    .brand-tagline { display: none; } /* hide on very small screens */
    .nav-toggle { width: 36px; height: 36px; }
    .header-cta { padding: 8px 12px; }
}
