/* ============================================
   Cricova Theme Styles
   Based on Next.js app design
   ============================================ */

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gold: #917236;
    --color-gold-light: #b8944a;
    --color-gray-dark: #1a1a1a;
    --color-gray: #333333;
    --color-gray-light: #f1f1f1;
    --font-primary: 'Manrope', sans-serif;
    --font-display: 'Cormorant', serif;
    --container-max: 1308px;
    --header-height: 80px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
[role="button"],
input[type="submit"],
input[type="button"],
.btn,
.btn-outline,
a.btn,
a.btn-outline {
    cursor: pointer;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: #333 #111;
}

body.light-theme {
    background-color: var(--color-white);
    color: var(--color-black);
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-gold); }
img { max-width: 100%; height: auto; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; background: #000; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Hide reCAPTCHA badge — notice is shown in the form instead */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }

/* ── Accessibility utilities ─────────────────────────────── */
.screen-reader-text,
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.screen-reader-text:focus,
.sr-only:focus { clip: auto; height: auto; width: auto; }

/* ── Shared button-loading spinner ─────────────────────────
   A fixed-size icon (not text) so a submit button's loading state can
   never overflow/wrap regardless of label length or translation — the
   "SE TRIMITE..." text used to wrap to two lines inside the pill button
   on the contact form. The accompanying label stays screen-reader-only
   so assistive tech is still told the button is busy. */
.cricova-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    opacity: 0.7;
    animation: cricova-spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes cricova-spin {
    to { transform: rotate(360deg); }
}

/* ── Shared form-confirmation entrance ─────────────────────
   Plays whenever a message box goes from display:none to visible (the
   JS always hides it first, even between attempts, so this replays
   every time) — a small deliberate touch instead of an abrupt flash. */
@keyframes cricova-message-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.skip-link {
    position: absolute; top: -100px; left: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--color-gold);
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* ── Global page offset for the fixed header ───────────────
   Every <main class="page-..."> sits beneath the fixed <header class="site-header">.
   Hero-first templates add body.has-hero-under-header (see cricova_body_classes) to
   opt out so their full-bleed hero can extend beneath the header. */
main[class^="page-"],
main[class*=" page-"] {
    padding-top: var(--header-height);
}
body.has-hero-under-header main[class^="page-"],
body.has-hero-under-header main[class*=" page-"] {
    padding-top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    /* Always keep a minimum side gutter — max-width alone only creates
       margin once the viewport exceeds 1308px + this padding. Between the
       mobile breakpoint and that point (e.g. common 1280–1366px laptops),
       content was touching the viewport edges with zero breathing room. */
    padding: 0 24px;
}
@media (max-width: 767px) {
    .container { padding: 0 15px; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { line-height: 1.7; margin-bottom: 1rem; }
.text-gold { color: var(--color-gold); }
.uppercase { text-transform: uppercase; }

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: var(--color-black);
}
.site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}
.site-header .container {
    display: flex;
    align-items: center;
    /* Two visual blocks like the old site: logo left, nav + actions grouped
       right (nav carries margin-left:auto below) — not three spread blocks. */
    justify-content: flex-start;
    gap: 16px;
}
.site-header .header-actions { margin-left: auto; }
.site-logo img { height: 50px; width: auto; }
.site-logo svg { max-width: 200px; height: auto; display: block; }
.site-logo { max-width: 200px; flex-shrink: 0; }

/* Below 1024px the desktop nav is gone; tighten header for mobile/tablet:
   smaller logo, hide the desktop language switcher (it lives in the
   drawer footer there), keep cart + hamburger as the only right-side icons. */
@media (max-width: 1023px) {
    .site-logo { max-width: 150px; }
    .site-logo svg { max-width: 150px; }
    .site-logo img { height: 38px; }
    .header-actions .language-switcher { display: none; }
    .header-actions { gap: 4px; }
}
@media (max-width: 380px) {
    .site-logo { max-width: 130px; }
    .site-logo svg { max-width: 130px; }
}
.site-logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--color-white);
}

/* Navigation */
.main-navigation { display: none; }
@media (min-width: 1024px) {
    /* Pushes nav (and everything after it) to the right edge; the 14px
       margin + 16px container gap ≈ the 30px nav item spacing. */
    .main-navigation { display: flex; align-items: center; margin-left: auto; margin-right: 14px; }
    .site-header .header-actions { margin-left: 0; }
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
.nav-list li { position: relative; }
.nav-list li a,
.nav-list li .nav-parent {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    transition: color 0.3s ease;
}
/* Hover: stay white. The chevron rotation + subtle gold underline (below)
   already signal interactivity — no color change on the label itself. */
.nav-list li a:hover,
.nav-list li .nav-parent:hover,
.nav-list li:hover > a,
.nav-list li:hover > .nav-parent,
.nav-list li:focus-within > a,
.nav-list li:focus-within > .nav-parent { color: var(--color-white); }

/* Hairline gold underline that grows in from center on hover — Hermès cue */
.nav-list > li > a,
.nav-list > li > .nav-parent { position: relative; }
.nav-list > li > a::after,
.nav-list > li > .nav-parent::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 4px;
    width: 0; height: 1px;
    background: var(--color-gold-light, #b8944a);
    transition: width 0.25s ease, left 0.25s ease;
}
.nav-list > li:hover > a::after,
.nav-list > li:hover > .nav-parent::after,
.nav-list > li:focus-within > a::after,
.nav-list > li:focus-within > .nav-parent::after {
    width: 18px;
    left: calc(50% - 9px);
}

/* Submenu — Linear / Stripe / Vercel pattern:
   - Lifted card surface (not pure black) with proper depth shadow
   - Inner padding so hover area is a "pill" with horizontal margins,
     not a full-bleed bar. This is what makes it feel premium.
   - Hover: lifted background + directional → arrow on the right
   - 1px hairline divider above — visually anchors menu to the nav row
   - Backdrop blur for content depth where the page bleeds through */
.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 4px);
    background: #000;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    min-width: 240px;
    padding: 8px;
    margin-top: 14px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow:
        0 24px 56px -12px rgba(0, 0, 0, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    /* Close: 250ms delay BEFORE the fade starts → user has time to move
       toward the menu without it disappearing under them. Total close
       budget: 250ms grace + 220ms fade = 470ms before fully gone. */
    transition:
        opacity 0.22s ease 0.25s,
        transform 0.22s ease 0.25s,
        visibility 0s linear 0.47s;
}
/* Hover bridge — 24px invisible zone above the menu so cursor crossing
   the gap from trigger to menu keeps :hover alive on the parent <li>. */
.nav-list .sub-menu::before {
    content: '';
    position: absolute;
    top: -24px; left: -8px; right: -8px;
    height: 24px;
}
.nav-list li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    /* Open: instant — no delay on the way in, delay only matters on close */
    transition:
        opacity 0.18s ease 0s,
        transform 0.18s ease 0s,
        visibility 0s linear 0s;
}
.sub-menu li { position: relative; }
.sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.16s ease, background 0.16s ease;
}
/* Directional → arrow on the right — appears on hover (Stripe / Linear cue) */
.sub-menu li a::after {
    content: '→';
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-gold-light, #b8944a);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.sub-menu li a:hover,
.sub-menu li a:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}
.sub-menu li a:hover::after,
.sub-menu li a:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.7;
}
.nav-list li.is-open > .nav-parent .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 15px; }

.language-switcher {
    position: relative;
    margin-left: 15px; /* breathing room between the nav and the language switcher */
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 6px 2px;
    transition: color 0.2s ease;
}
.language-switcher-toggle:hover { color: var(--color-gold-light, #b8944a); }
.language-switcher-toggle svg {
    transition: transform 0.3s ease;
    opacity: 0.7;
}
.language-switcher.open .language-switcher-toggle svg {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown — matches main-nav submenu (lifted card, pill hovers, → arrow) */
.language-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 14px;
    background: #000;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow:
        0 24px 56px -12px rgba(0, 0, 0, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    list-style: none;
    padding: 8px;
    min-width: 130px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition:
        opacity 0.22s ease 0.25s,
        transform 0.22s ease 0.25s,
        visibility 0s linear 0.47s;
}
.language-switcher-dropdown::before {
    content: '';
    position: absolute;
    top: -24px; left: -8px; right: -8px;
    height: 24px;
}
.language-switcher.open .language-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity 0.18s ease 0s,
        transform 0.18s ease 0s,
        visibility 0s linear 0s;
}

.language-switcher-dropdown li { position: relative; }
.language-switcher-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: color 0.16s ease, background 0.16s ease;
    position: relative;
}
.language-switcher-dropdown li a:hover,
.language-switcher-dropdown li a:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

/* Active language: gold check ✓ on the right side */
.language-switcher-dropdown li.active a {
    color: var(--color-white);
    font-weight: 500;
}
.language-switcher-dropdown li.active a::after {
    content: '✓';
    color: var(--color-gold-light, #b8944a);
    font-size: 13px;
    line-height: 1;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--color-white);
    transition: color 0.3s ease;
}
.cart-icon:hover { color: var(--color-gold); }
.cart-count {
    position: absolute; top: -8px; right: -8px;
    background: var(--color-gold); color: var(--color-white);
    font-size: 10px; width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.cart-icon.is-empty .cart-count { display: none; }

/* ── Default page template (fallback for pages without a specific template) ── */
.page-default > .container {
    padding-top: 40px;
    padding-bottom: 80px;
}
.page-default--order-received > .container {
    padding-top: 0;
    padding-bottom: 0;
}
.page-default__title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 300;
    color: var(--color-gold);
    margin-bottom: 32px;
}
.page-default__content {
    color: #ccc;
    line-height: 1.8;
    font-size: 16px;
}
body.light-theme .page-default__content { color: var(--color-gray); }

/* ── 404 page ──────────────────────────────── */
.error-404 > .container {
    text-align: center;
    padding: 120px 20px;
}
.error-404__code {
    font-family: var(--font-display);
    font-size: clamp(72px, 12vw, 160px);
    font-weight: 300;
    line-height: 1;
    color: var(--color-gold);
    margin: 0 0 16px;
}
.error-404__title {
    font-family: var(--font-primary);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    color: #aaa;
    letter-spacing: 0.5px;
    margin: 0 0 40px;
}
.error-404__home-link {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    transition: background 0.3s ease, color 0.3s ease;
}
.error-404__home-link:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ═════════════════════════════════════════════════════════
   Mobile Menu — Apple / Hermès / Linear pattern:
   - Full-screen takeover, slides in from right
   - Large luxury typography (Cormorant 24px) for primary items
   - Accordion submenus with smooth max-height transition
   - Footer pinned to bottom with language switcher + contact
   - Body scroll locked while open (handled in navigation.js)
   - 60fps on mobile via cubic-bezier ease-out
   ═════════════════════════════════════════════════════════ */

/* Hamburger / X — bigger tap target (44px) for thumbs */
.menu-toggle {
    display: flex; flex-direction: column; gap: 6px;
    cursor: pointer; background: none; border: none;
    padding: 10px; z-index: 1001;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    transition: opacity 0.2s ease;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
    display: block; width: 22px; height: 1.5px;
    background: var(--color-white);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.18s ease;
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
    position: fixed; top: 0; right: 0;
    width: 100%;
    height: 100vh; height: 100dvh; /* iOS Safari respects dynamic viewport */
    background: var(--color-black);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transform: translateX(8%);
    transition:
        opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.32s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
}

/* Body scroll lock when menu is open */
body.mobile-menu-open { overflow: hidden; }

/* Layout: top nav fills available height, footer pins at bottom */
.mobile-menu-inner {
    min-height: 100%;
    padding: 96px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.mobile-menu-nav { flex: 1 0 auto; }

/* Reset list */
.mobile-menu .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
    list-style: none;
}
.mobile-menu .nav-list > li { width: 100%; }

/* Primary nav items — luxury typography */
.mobile-menu .nav-list > li > a,
.mobile-menu .nav-list > li > .nav-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 22px 4px;
    font-family: var(--font-display, 'Cormorant', serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease, padding-left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
/* Touch-friendly active feedback (no hover state on mobile) */
.mobile-menu .nav-list > li > a:active,
.mobile-menu .nav-list > li > .nav-parent:active {
    color: var(--color-gold-light, #b8944a);
    padding-left: 12px;
}

/* Chevron — bigger, clearer */
.mobile-menu .nav-chevron {
    width: 14px; height: 8px;
    opacity: 0.55;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    flex-shrink: 0;
}
.mobile-menu .nav-list li.open > .nav-parent .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.mobile-menu .nav-list li.open > .nav-parent { color: var(--color-gold-light, #b8944a); }

/* Accordion submenu — smooth expand/collapse via max-height.
   Defensive over-reset: the desktop submenu has hover/focus-within rules
   that re-apply `transform: translate(-50%, 0)` and `position: absolute`.
   Without explicit overrides on those states the submenu would "jump
   back" to absolute-positioned-50% mode the moment the parent gets focus. */
.mobile-menu .sub-menu,
.mobile-menu .nav-list li:hover > .sub-menu,
.mobile-menu .nav-list li:focus-within > .sub-menu,
.mobile-menu .nav-list li.open > .sub-menu {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
    visibility: visible;
    margin: 0;
    min-width: 0;
}
.mobile-menu .sub-menu {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0.5;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease;
}
/* Don't let the desktop hover-bridge ::before show on mobile */
.mobile-menu .sub-menu::before { display: none; }
.mobile-menu .nav-list li.open > .sub-menu {
    max-height: 600px;
    opacity: 1;
}
.mobile-menu .sub-menu li a {
    display: block;
    padding: 14px 4px 14px 24px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 0;
    transition: color 0.18s ease;
}
.mobile-menu .sub-menu li a:active { color: var(--color-white); }
.mobile-menu .sub-menu li:last-child a {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* Hide arrow indicator from desktop submenu rule on mobile */
.mobile-menu .sub-menu li a::after { display: none; }

/* ── Footer: language switcher + contact ────────────────── */
.mobile-menu-footer {
    flex-shrink: 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-langs {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 28px;
}
.mobile-lang {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 6px 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.mobile-lang.is-active {
    color: var(--color-white);
    border-bottom-color: var(--color-gold-light, #b8944a);
}

.mobile-menu-contact {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}
.mobile-menu-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-menu-contact a:active { color: var(--color-gold-light, #b8944a); }
.mobile-menu-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 380px) {
    .mobile-menu-inner { padding: 88px 22px 24px; gap: 36px; }
    .mobile-menu .nav-list > li > a,
    .mobile-menu .nav-list > li > .nav-parent { font-size: 22px; padding: 18px 4px; letter-spacing: 3px; }
    .mobile-menu-contact a { display: block; padding: 4px 0; }
    .mobile-menu-sep { display: none; }
}

/* ── Light Theme (parteneri, transparenta) ── */
body.light-theme .site-header {
    background-color: var(--color-white);
}
body.light-theme .site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
body.light-theme .site-logo svg,
body.light-theme .site-logo-text {
    color: var(--color-black);
}
body.light-theme .nav-list li a,
body.light-theme .nav-list li .nav-parent {
    color: var(--color-black);
}
body.light-theme .nav-list li a:hover,
body.light-theme .nav-list li .nav-parent:hover {
    color: var(--color-gold);
}
body.light-theme .nav-list .sub-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 24px -8px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
body.light-theme .sub-menu li a {
    color: var(--color-black);
}
body.light-theme .sub-menu li a:hover {
    background: rgba(145, 114, 54, 0.1);
    color: var(--color-gold);
}
body.light-theme .language-switcher-toggle {
    color: var(--color-black);
}
body.light-theme .language-switcher-dropdown {
    background: var(--color-white);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 24px -8px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
body.light-theme .language-switcher-dropdown li a {
    color: var(--color-black);
}
body.light-theme .cart-icon {
    color: var(--color-black);
}
body.light-theme .menu-toggle span {
    background: var(--color-black);
}
body.light-theme .mobile-menu {
    background: var(--color-white);
}
body.light-theme .mobile-menu .nav-list li a {
    color: var(--color-black);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .mobile-menu .nav-parent {
    color: var(--color-black);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .mobile-menu .nav-parent:hover { color: var(--color-gold); }

/* Light Theme Footer */
body.light-theme .site-footer {
    background: var(--color-white);
    color: var(--color-black);
    border-top-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .footer-heading {
    color: var(--color-black);
}
body.light-theme .footer-col p,
body.light-theme .footer-col a {
    color: var(--color-black);
}
body.light-theme .footer-col a:hover {
    color: var(--color-gold);
}
body.light-theme .footer-nav a {
    color: var(--color-black);
}
body.light-theme .footer-nav a:hover {
    color: var(--color-gold);
}
body.light-theme .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: var(--color-black);
}
body.light-theme .footer-payment svg {
    color: var(--color-black);
}

/* Hero / Video Background */
.hero-section {
    position: relative; width: 100%; height: 100vh;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.hero-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: 2;
}
.hero-content {
    position: relative; z-index: 3;
    text-align: center; color: var(--color-white);
    max-width: 800px; padding: 0 20px;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* Page header (reusable kicker + H1 + lede) */
.page-header {
    padding: 40px 0 24px;
    text-align: center;
    position: relative;
}
.page-header__kicker {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 18px;
    position: relative;
    padding: 0 28px;
}
.page-header__kicker::before,
.page-header__kicker::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.6;
}
.page-header__kicker::before { left: 0; }
.page-header__kicker::after  { right: 0; }
.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 16px;
    line-height: 1.1;
}
.page-header__lede {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .page-header { padding: 72px 0 32px; }
    .page-header__title { letter-spacing: 10px; }
}
body.light-theme .page-header__title { color: var(--color-black); }
body.light-theme .page-header__lede { color: rgba(0, 0, 0, 0.7); }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.section-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* Grid */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
    background: var(--color-gray-dark);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }
.card-image { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-content { padding: 20px; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.card-excerpt { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 32px;
    font-family: var(--font-primary); font-size: 13px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    border: none; cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary { background: var(--color-gold); color: var(--color-white); }
.btn-primary:hover { background: var(--color-gold-light); color: var(--color-white); }
.btn-outline { background: transparent; border: 1px solid var(--color-white); color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-black); }
.btn-outline-gold { background: transparent; border: 1px solid var(--color-gold); color: var(--color-gold); }
.btn-outline-gold:hover { background: var(--color-gold); color: var(--color-white); }

/* Footer */
.site-footer {
    background: var(--color-black); color: var(--color-white);
    padding: 60px 0 0;
    border-top: none;
}
.footer-columns {
    display: grid; grid-template-columns: 1fr;
    gap: 40px; padding-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-columns { grid-template-columns: repeat(3, 1fr); }
}
.footer-heading {
    font-family: var(--font-primary); font-size: 12px;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 20px;
    color: var(--color-white);
}
.footer-col p { font-size: 14px; line-height: 1.8; opacity: 0.7; margin-bottom: 8px; }
.footer-col a { font-size: 14px; opacity: 0.7; transition: opacity 0.3s ease; }
.footer-col a:hover { opacity: 1; color: var(--color-gold); }

/* Footer contact */
.footer-contact {
    display: flex; gap: 8px; margin-top: 12px; font-size: 14px;
}
.footer-contact span { opacity: 0.5; }
.footer-emails { display: flex; flex-direction: column; gap: 4px; }

/* Footer shops */
.footer-shops { display: flex; flex-direction: column; gap: 16px; }
.footer-shop p { margin-bottom: 4px; }
.footer-shop a { font-size: 14px; opacity: 0.7; }

/* Footer info + payment */
.footer-col-info {
    display: flex; flex-direction: row; gap: 40px; align-items: flex-start;
}
.footer-nav {
    display: flex; flex-direction: column; gap: 10px;
}
.footer-nav a {
    font-family: var(--font-primary); font-size: 13px;
    font-weight: 500; letter-spacing: 1px;
    text-transform: uppercase; opacity: 0.7;
}
.footer-nav a:hover { opacity: 1; color: var(--color-gold); }

.footer-payment {
    display: flex; flex-direction: column; gap: 8px;
}
.footer-payment svg { opacity: 0.7; }

/* Footer bottom */
.footer-bottom {
    display: flex; align-items: center; justify-content: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px; opacity: 0.5;
}
.footer-bottom p { margin-bottom: 0; }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.9); color: rgba(0, 0, 0, 0.9);
    border: none; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
    transition: all 0.5s ease; z-index: 50; font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: rgba(255, 255, 255, 0.7); }

/* History Sections */
.history-section {
    padding: 80px 0;
    display: grid; grid-template-columns: 1fr; gap: 40px;
    align-items: center;
}
@media (min-width: 768px) {
    .history-section { grid-template-columns: 1fr 1fr; padding: 120px 0; }
}
.history-section .section-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.history-section .section-text h2 { color: var(--color-gold); margin-bottom: 20px; }

/* Collections */
.collections-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .collections-grid { grid-template-columns: repeat(3, 1fr); } }
.collection-card {
    position: relative; overflow: hidden;
    aspect-ratio: 3/4; cursor: pointer;
}
.collection-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card .overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.collection-card .overlay h3 { font-size: 1.5rem; color: var(--color-white); }

/* Reservation */
.reservation-section {
    padding: 100px 0; text-align: center;
    background-size: cover; background-position: center;
    background-attachment: fixed; position: relative;
}
.reservation-section::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6);
}
.reservation-section .container { position: relative; z-index: 1; }
.reservation-section h2 { color: var(--color-gold); margin-bottom: 20px; }

/* Blog Posts */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--color-gray-dark); overflow: hidden; transition: transform 0.3s ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-content { padding: 25px; }
.post-card-date { font-size: 12px; color: var(--color-gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.post-card-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; }
.post-card-excerpt { font-size: 0.9rem; opacity: 0.7; line-height: 1.6; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 50px; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px; transition: all 0.3s ease;
}
.pagination .current, .pagination a:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* Wine Detail */
.wine-detail { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
@media (min-width: 768px) { .wine-detail { grid-template-columns: 1fr 1fr; } }
.wine-detail .wine-image { aspect-ratio: 2/3; object-fit: contain; background: var(--color-gray-dark); padding: 40px; }
.wine-characteristics { list-style: none; margin-top: 20px; }
.wine-characteristics li {
    display: flex; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}
.wine-characteristics li span:first-child { opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], textarea, select {
    width: 100%; padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-family: var(--font-primary); font-size: 14px;
    transition: border-color 0.3s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-gold); }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* WooCommerce */
.woocommerce .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.woocommerce .product { background: var(--color-gray-dark); padding: 20px; }
.woocommerce .price { color: var(--color-gold) !important; font-family: var(--font-display); font-size: 1.2rem; }
.woocommerce .button {
    background: var(--color-gold) !important; color: var(--color-white) !important;
    border: none !important; padding: 12px 24px !important;
    font-family: var(--font-primary) !important; font-size: 12px !important;
    letter-spacing: 1.5px !important; text-transform: uppercase !important;
    transition: background 0.3s ease !important;
}
.woocommerce .button:hover { background: var(--color-gold-light) !important; }

/* Age Popup */
.age-popup {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.age-popup-content { text-align: center; max-width: 500px; padding: 40px; }
.age-popup-content h2 { font-size: 2rem; margin-bottom: 20px; color: var(--color-gold); }
.age-popup-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.loading-dots { display: flex; gap: 8px; }
.loading-dots span {
    width: 10px; height: 10px;
    background: var(--color-gold); border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ── Shared "Follow us" social strip (template-parts/social-follow.php) ────
   Used on both the home page and Contacte — single definition so the two
   can't visually drift apart the way the old per-page duplicates did. */
.cricova-social {
    border: 1px solid var(--color-white);
    border-top: none;
}
.cricova-social__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 16px;
}
.cricova-social__label {
    font-family: var(--font-display);
    font-size: calc(30px + 25 * (100vw / 1308));
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    margin: 0;
}
.cricova-social__links {
    display: flex;
    gap: 30px;
}
.cricova-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    transition: all 0.3s ease;
}
.cricova-social__link svg {
    width: 60px;
    height: 60px;
}
.cricova-social__link:hover {
    border-color: var(--color-gold);
    background: rgba(145, 114, 54, 0.1);
}
@media (max-width: 767px) {
    .cricova-social__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .cricova-social__link {
        width: 100px;
        height: 100px;
    }
    .cricova-social__link svg {
        width: 30px;
        height: 30px;
    }
}
