﻿:root {
    --gold: #c9963d;
    --gold-dark: #b9832f;
    --navy: #08264a;
    --paper: #f5f3ef;
    --white: #ffffff;
    --line: #e8dfd0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Nunito Sans", sans-serif;
    background: var(--paper);
}

main {
    background: #f8f5ef;
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1820px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid #efe8dc;
}

.topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 86px;
    align-items: center;
    gap: 1rem;
    color: #7a4a22;
    font-size: clamp(0.88rem, 0.95vw, 1rem);
    font-weight: 500;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.topbar-left {
    grid-column: 2;
    justify-content: center;
    text-align: center;
}

.topbar-right {
    grid-column: 3;
    justify-self: end;
}

.topbar a {
    color: inherit;
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--gold-dark);
}

.separator {
    color: #c9963d;
    opacity: 1;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links a {
    color: #8b5527;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #c9963d;
}

.phone-cta {
    border: 2px solid #c9963d;
    color: #7a4a22;
    padding: 0.82rem 1.35rem;
    font-weight: 800;
    font-size: 1rem;
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.phone-cta:hover {
    color: #5f3718;
    border-color: #b9832f;
    background: #fff8ec;
}

.main-nav-wrap {
    padding: 0.35rem 0 1.25rem;
}

.nav-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 136px minmax(420px, 1fr);
    align-items: center;
    gap: 1rem;
}

.menu-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(0.55rem, 0.92vw, 0.98rem);
    min-width: 0;
}

.menu-left {
    grid-column: 1;
    justify-content: flex-end;
    padding-right: 0.35rem;
}

.menu-right {
    grid-column: 3;
    justify-content: flex-start;
    padding-left: 0.35rem;
    gap: 0.85rem;
}

.menu-link {
    color: var(--navy);
    font-size: clamp(0.72rem, 0.72vw, 0.84rem);
    letter-spacing: 0.055em;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.menu-link.active,
.menu-link:hover {
    color: var(--gold-dark);
}

.menu-caret {
    font-size: 0.58em;
    vertical-align: 0.08em;
}

.logo-link {
    grid-column: 2;
    justify-self: center;
    width: clamp(106px, 8vw, 132px);
}

.nav-toggle {
    display: none;
    border: 1px solid #e6ddcf;
    background: #fff;
    color: #3f4752;
    border-radius: 8px;
    width: 44px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle i {
    font-size: 1.35rem;
    line-height: 1;
}

.nav-toggle-close {
    display: none;
}

.main-nav-wrap.nav-open .nav-toggle-open {
    display: none;
}

.main-nav-wrap.nav-open .nav-toggle-close {
    display: block;
}

.menu-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0;
}

.mobile-contact {
    display: none;
}

.menu-right-links,
.menu-right-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.82rem;
    min-width: 0;
}

.menu-right-links {
    flex-shrink: 1;
}

.menu-right-tools {
    flex-shrink: 0;
    gap: 0.7rem;
}

.header-search {
    display: inline-flex;
    align-items: center;
    position: relative;
    min-width: 170px;
    max-width: 230px;
    border: 1px solid #c7ccd5;
    border-radius: 999px;
    background: #fff;
    padding: 0.12rem 0.2rem 0.12rem 0.65rem;
}

.header-search .search-suggest {
    left: auto;
    right: 0;
    width: min(340px, 86vw);
    text-align: left;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 0.83rem;
    color: #2f3742;
    background: transparent;
}

.header-search input::placeholder {
    color: #8d94a1;
}

.header-search button {
    border: 0;
    background: transparent;
    color: #4b5565;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-search button:hover {
    color: var(--gold-dark);
}

.mobile-header-search {
    display: none;
}

.icon-link {
    color: #4b5565;
    font-size: 1.35rem;
    position: relative;
    transition: color 0.2s ease;
}

.icon-link:hover {
    color: var(--gold-dark);
}

.cart-link .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.71rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.floating-cart {
    position: fixed;
    right: clamp(16px, 2.6vw, 34px);
    bottom: clamp(18px, 3vw, 34px);
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(201, 150, 61, 0.42);
    background: #7a4a22;
    color: #fff;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 18px 44px rgba(68, 39, 18, 0.28);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart:hover,
.floating-cart:focus-visible {
    background: #5f3718;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(68, 39, 18, 0.34);
    outline: none;
}

.floating-cart i {
    font-size: 1.45rem;
    line-height: 1;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    border: 2px solid #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.floating-cart-count.is-visible {
    display: inline-flex;
}

.floating-cart.is-updated {
    animation: floating-cart-pop 0.58s ease;
}

@keyframes floating-cart-pop {
    0% {
        transform: scale(1);
    }

    38% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.flash {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.flash-error {
    background: #fbecec;
    color: #8e2f2f;
}

.site-footer {
    border-top: 1px solid #e8dfd0;
    background: #fbfaf7;
    margin-top: 2rem;
}

.footer-main {
    min-height: 132px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    padding: clamp(26px, 4vw, 46px) 0 22px;
}

.footer-brand-block {
    display: grid;
    gap: 6px;
    color: var(--navy);
}

.footer-brand-block strong {
    font-size: clamp(1.08rem, 1.5vw, 1.35rem);
    line-height: 1.2;
}

.footer-brand-block span {
    max-width: 42ch;
    color: #77695d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact {
    display: grid;
    gap: 7px;
    color: #7a4a22;
    font-size: 0.94rem;
    line-height: 1.35;
}

.footer-contact a {
    color: inherit;
}

.footer-contact a:hover {
    color: var(--gold-dark);
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid #e2d5c2;
    border-radius: 999px;
    color: #7a4a22;
    background: #fff;
    display: inline-grid;
    place-items: center;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: var(--gold-dark);
    border-color: var(--gold);
    transform: translateY(-1px);
    outline: none;
}

.footer-consumer-links {
    display: grid;
    grid-template-columns: minmax(90px, 118px) repeat(2, minmax(0, 245px));
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #eee6da;
    border-bottom: 1px solid #eee6da;
}

.consumer-badge {
    display: inline-flex;
    width: 100%;
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.consumer-badge:hover,
.consumer-badge:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(80, 56, 34, 0.1);
    outline: none;
}

.consumer-badge img {
    width: 100%;
    height: auto;
    display: block;
}

.consumer-badge--logo {
    max-width: 118px;
}

.consumer-badge--wide {
    max-width: 245px;
}

.footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--navy);
}

.footer-bottom p {
    margin: 0;
}

/* Hero theme override */
.landing-hero {
    color: #fff;
    border-bottom: 1px solid #d9c4a5;
    background:
        linear-gradient(90deg, rgba(35, 20, 10, 0.68) 0%, rgba(58, 35, 18, 0.42) 42%, rgba(33, 19, 9, 0.58) 100%),
        linear-gradient(180deg, rgba(20, 12, 7, 0.14) 0%, rgba(20, 12, 7, 0.44) 100%),
        url("../images/hero-vanilie.jpg") center 45% / cover no-repeat;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 34%);
    opacity: 0.72;
    pointer-events: none;
}

.landing-hero::after {
    background:
        linear-gradient(90deg, rgba(19, 11, 6, 0.44) 0%, rgba(19, 11, 6, 0.08) 50%, rgba(19, 11, 6, 0.34) 100%),
        linear-gradient(180deg, rgba(19, 11, 6, 0.04) 0%, rgba(19, 11, 6, 0.38) 100%);
}

.landing-hero-glow {
    filter: blur(0);
    opacity: 0.7;
}

.landing-hero-glow--left {
    background: radial-gradient(circle, rgba(201, 150, 61, 0.24) 0%, rgba(201, 150, 61, 0) 72%);
}

.landing-hero-glow--right {
    background: radial-gradient(circle, rgba(168, 122, 54, 0.22) 0%, rgba(168, 122, 54, 0) 72%);
}

.landing-hero-reflection {
    opacity: 0.26;
    transform: none;
    filter: blur(2px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 72%);
}

.landing-hero-reflection--one {
    width: 220px;
    height: 220px;
    left: 13%;
    top: 11%;
}

.landing-hero-reflection--two {
    width: 280px;
    height: 280px;
    left: 60%;
    top: 6%;
}

.landing-hero-kicker {
    color: rgba(255, 234, 205, 0.9);
}

.landing-hero-title {
    color: #fff;
    text-shadow: 0 5px 20px rgba(24, 12, 4, 0.34);
}

.landing-hero-title-dynamic {
    color: var(--gold);
}

.landing-hero-lead {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 3px 16px rgba(24, 12, 4, 0.42);
}

.landing-hero-actions .btn.primary {
    background: #7a4a22;
    border-color: #7a4a22;
    color: #fff;
}

.landing-hero-actions .btn.primary:hover {
    background: #5f3718;
    border-color: #5f3718;
}

.landing-hero-actions .btn.ghost {
    background: rgba(255, 255, 255, 0.7);
    color: #0d2848;
    border-color: #d3bc95;
}

.landing-hero-actions .btn.ghost:hover {
    color: #b9832f;
    border-color: #b9832f;
    background: #fff;
}

/* Header layout override */
.main-nav-wrap {
    padding: 0.65rem 0;
}

.nav-layout {
    display: grid;
    grid-template-columns: minmax(96px, auto) minmax(240px, 520px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2.2rem);
}

.logo-link {
    grid-column: 1;
    justify-self: start;
    width: clamp(86px, 6vw, 112px);
}

.nav-search {
    grid-column: 2;
    justify-self: center;
    width: min(100%, 520px);
    min-width: 240px;
    max-width: 520px;
    margin: 0;
}

.menu-right {
    grid-column: 3;
    justify-content: flex-end;
    padding-left: 0;
    gap: clamp(0.7rem, 1.1vw, 1rem);
}

.menu-right-links {
    gap: clamp(0.55rem, 0.9vw, 0.95rem);
}

.menu-right-tools {
    gap: 0.65rem;
}

.menu-left,
.mobile-contact {
    display: none;
}

@media (max-width: 1360px) {
    .shell {
        width: min(1300px, calc(100% - 1.5rem));
    }

    .nav-layout {
        grid-template-columns: minmax(84px, auto) minmax(220px, 420px) minmax(0, 1fr);
        gap: 0.95rem;
    }

    .menu-group {
        gap: 0.45rem;
    }

    .menu-link {
        font-size: 0.66rem;
        letter-spacing: 0.03em;
    }

    .logo-link {
        width: 104px;
    }

    .menu-right-links {
        gap: 0.58rem;
    }

    .menu-right-tools {
        gap: 0.48rem;
    }

    .header-search {
        min-width: 145px;
        max-width: 180px;
    }

    .nav-search {
        min-width: 220px;
        max-width: 420px;
    }

    .menu-icons {
        gap: 0.5rem;
    }
}

@media (max-width: 920px) {
    .topbar {
        display: none;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
    }

    .phone-cta {
        padding: 0.65rem 0.9rem;
        font-size: 0.93rem;
    }

    .main-nav-wrap {
        padding: 0.45rem 0 1rem;
    }

    .nav-layout {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "logo search toggle"
            "right right right";
        column-gap: 0.65rem;
        row-gap: 0.7rem;
    }

    .logo-link {
        grid-area: logo;
        grid-column: auto;
        justify-self: start;
        width: 96px;
    }

    .nav-toggle {
        grid-area: toggle;
        display: inline-flex;
        justify-self: end;
        flex: 0 0 auto;
    }

    .nav-search {
        grid-area: search;
        display: inline-flex;
        min-width: 0;
        max-width: none;
        width: 100%;
        height: 38px;
        margin: 0;
        padding-left: 0.75rem;
        align-self: center;
    }

    .nav-search input {
        font-size: 0.9rem;
    }

    .nav-search button {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .menu-right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.25rem;
    }

    .menu-right {
        grid-area: right;
        border-top: 1px solid #eee4d5;
        margin-top: 0.3rem;
        padding-top: 0.3rem;
    }

    .main-nav-wrap.nav-open .menu-right {
        display: flex;
        flex-wrap: nowrap;
    }

    .mobile-contact {
        display: none;
    }

    .menu-link {
        font-size: 0.82rem;
        letter-spacing: 0.045em;
        width: 100%;
        padding: 0.55rem 0.1rem;
        border-bottom: 1px solid #efe6d9;
    }

    .menu-right-links,
    .menu-right-tools {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .menu-icons {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.5rem;
        gap: 1rem;
    }

    .menu-right-tools .header-search {
        min-width: 0;
        max-width: none;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 1.2rem);
    }

    .topbar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .topbar-left .separator {
        display: none;
    }

    .topbar-left a {
        overflow-wrap: anywhere;
    }

    .mobile-contact {
        font-size: 0.84rem;
    }

    .mobile-contact .separator {
        display: none;
    }

    .mobile-contact a {
        overflow-wrap: anywhere;
    }

    .footer-main {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0 18px;
    }

    .footer-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-consumer-links {
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: center;
        padding: 14px 0;
    }

    .consumer-badge {
        max-width: 245px;
    }

    .consumer-badge--logo {
        max-width: 112px;
    }

    .footer-bottom {
        min-height: auto;
        padding: 18px 0 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-link {
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }

    .logo-link {
        width: 78px;
    }

    .nav-toggle {
        width: 40px;
        height: 36px;
    }

    .floating-cart {
        right: 14px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .floating-cart i {
        font-size: 1.28rem;
    }

    .main-nav-wrap {
        padding: 0.35rem 0 0.85rem;
    }

    .nav-layout {
        column-gap: 0.5rem;
    }

    .nav-search {
        height: 36px;
        padding-left: 0.62rem;
    }

    .nav-search input {
        font-size: 0.84rem;
    }

    .nav-search button {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

}
