/* =============================================================================
   HEADER — Non-homepage overrides (white bg pages)
   ============================================================================= */
body:not(.home) .ac-hamburger span {
    background: black;
}
body:not(.home) .ac-hamburger:hover {
    background: rgba(0, 0, 0, .08);
}
body:not(.home) .ac-header-contact-item {
    color: rgba(0, 0, 0, .65);
    border-left-color: rgba(0, 0, 0, .1);
}
body:not(.home) .ac-header-contact-item:hover {
    color: var(--ac-accent);
    background: rgba(0, 0, 0, .04);
}
body:not(.home) .ac-header-contact-item svg {
    color: rgba(0, 0, 0, .65);
}

body:not(.home) .ac-header-logo .ac-logo-text {
    color: var(--ac-primary);
}
body:not(.home) .ac-hamburger:hover {
    background: rgba(0, 0, 0, .08);
}
.ac-header {
    position: absolute; top: 0; z-index: 200;
    height: var(--ac-header-h);
    transition: box-shadow var(--ac-transition);
    margin-top: 20px;
	width: 100%;
}

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

/* Logo */
.ac-header-logo { flex-shrink: 0; }
.ac-header-logo a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.ac-header-logo img { max-height: 52px; width: auto; }
.ac-header-logo .ac-logo-text {
    font-size: 1.35rem; font-weight: 800;
    color: var(--ac-white); letter-spacing: -.5px; white-space: nowrap;
}
.ac-header-logo .ac-logo-text span { color: var(--ac-accent); }

/* Contact items (desktop) */
.ac-header-contact {
    display: flex; align-items: stretch;
    flex: 1; justify-content: flex-end;
}
.ac-header-contact-item {
    display: flex; align-items: center; gap: 7px;
    padding: 0 18px; height: 100%;
    color: rgba(255,255,255,.75);
    font-size: .75rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    transition: color var(--ac-transition), background var(--ac-transition);
    border-left: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}
.ac-header-contact-item:hover { color: var(--ac-accent); background: rgba(255,255,255,.04); }
.ac-header-contact-item svg { flex-shrink: 0; opacity: .6; }

.ac-saved-cars-link { position: relative; }
.ac-saved-count {
    background: var(--ac-accent); color: var(--ac-primary);
    font-size: .6rem; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px; margin-left: 3px;
}

/* Hamburger */
.ac-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: var(--ac-radius); flex-shrink: 0;
    transition: background var(--ac-transition);
}
.ac-hamburger:hover { background: rgba(255,255,255,.1); }
.ac-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--ac-white); border-radius: 2px;
    transition: all var(--ac-transition);
}
body.menu-open .ac-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .ac-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .ac-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* On front page — header overlaid on the hero image/video. Every other page
   has no hero backdrop, so an absolutely-positioned header just floats on
   top of whatever content comes first — put it back in normal document flow
   there so it pushes the page content down instead of covering it. */
body.home .ac-header {
    position: absolute; left: 0; right: 0; top: 0;
}
body:not(.home) .ac-header {
    position: relative;
    margin-top: 0;
    background: var(--ac-white);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* =============================================================================
   FULLSCREEN MENU — Curtain drop animation
   ============================================================================= */

.ac-fullscreen-menu {
    position: fixed; inset: 0; z-index: 400;
    pointer-events: none; visibility: hidden;
}
.ac-fullscreen-menu.is-open {
    pointer-events: all; visibility: visible;
}

/* ── Curtains ── */
.ac-curtains {
    position: absolute; inset: 0;
    display: flex; pointer-events: none;
}
.ac-curtain {
    flex: 1; height: 100%;
    background: #0d0d1a;
    transform: scaleY(0);
    transform-origin: top center;
    will-change: transform;
}

/* Open: drop down left → right */
.ac-fullscreen-menu.is-open .ac-curtain {
    animation: curtainDown 0.6s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.ac-fullscreen-menu.is-open .ac-curtain:nth-child(1) { animation-delay: 0.00s; }
.ac-fullscreen-menu.is-open .ac-curtain:nth-child(2) { animation-delay: 0.05s; }
.ac-fullscreen-menu.is-open .ac-curtain:nth-child(3) { animation-delay: 0.10s; }
.ac-fullscreen-menu.is-open .ac-curtain:nth-child(4) { animation-delay: 0.15s; }

/* Close: retract up right → left */
.ac-fullscreen-menu.is-closing .ac-curtain {
    animation: curtainUp 0.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
    transform-origin: top center;
}
.ac-fullscreen-menu.is-closing .ac-curtain:nth-child(4) { animation-delay: 0.00s; }
.ac-fullscreen-menu.is-closing .ac-curtain:nth-child(3) { animation-delay: 0.05s; }
.ac-fullscreen-menu.is-closing .ac-curtain:nth-child(2) { animation-delay: 0.10s; }
.ac-fullscreen-menu.is-closing .ac-curtain:nth-child(1) { animation-delay: 0.15s; }

@keyframes curtainDown {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
@keyframes curtainUp {
    from { transform: scaleY(1); }
    to   { transform: scaleY(0); }
}

/* ── Content layer (sits above curtains) ── */
.ac-fullmenu-content {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column;
    padding: clamp(24px, 5vw, 60px);
    color: #fff; overflow-y: auto;
}

/* ── Top bar: logo + close button ── */
.ac-fullmenu-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: clamp(36px, 7vh, 72px);
    opacity: 0; transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ac-fullscreen-menu.is-open .ac-fullmenu-top {
    opacity: 1; transform: translateY(0);
    transition-delay: 0.48s;
}
.ac-fullscreen-menu.is-closing .ac-fullmenu-top {
    opacity: 0; transform: translateY(-10px);
    transition-delay: 0s; transition-duration: 0.15s;
}

.ac-fullmenu-logo a { display: flex; align-items: center; text-decoration: none; }
.ac-fullmenu-logo img { max-height: 48px; max-width: 300px; }
.ac-fullmenu-logo .ac-logo-text {
    font-size: 1.4rem; font-weight: 800;
    color: #fff; letter-spacing: -.5px;
}

.ac-fullmenu-close {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.3s;
}
.ac-fullmenu-close:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.4);
    transform: rotate(90deg);
}

/* ── Navigation list ── */
.ac-fullmenu-nav { flex: 1; }

.ac-fullmenu-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 clamp(40px, 8vw, 120px);
}

.ac-fullmenu-list li {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.38s ease, transform 0.38s ease;
}
.ac-fullmenu-list li.is-visible {
    opacity: 1; transform: translateY(0);
}

.ac-fullmenu-list li a {
    display: block;
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    font-weight: 700; letter-spacing: -.03em;
    color: rgba(255,255,255,.82);
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color 0.2s, padding-left 0.25s;
    text-decoration: none;
}
.ac-fullmenu-list li a:hover { color: var(--ac-accent); padding-left: 10px; }
.ac-fullmenu-list li.current-menu-item > a,
.ac-fullmenu-list li.current_page_item > a { color: var(--ac-accent); }

/* ── Bottom: phone numbers ── */
.ac-fullmenu-bottom {
    display: flex; flex-wrap: wrap; gap: 12px 28px;
    padding-top: 24px; margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,.1);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ac-fullscreen-menu.is-open .ac-fullmenu-bottom {
    opacity: 1;
    transition-delay: 1.1s;
}
.ac-fullscreen-menu.is-closing .ac-fullmenu-bottom {
    opacity: 0; transition-delay: 0s; transition-duration: 0.1s;
}

.ac-fullmenu-phone {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.5); font-size: .82rem;
    font-weight: 600; letter-spacing: .06em; text-decoration: none;
    transition: color 0.2s;
}
.ac-fullmenu-phone:hover { color: var(--ac-accent); }

/* ── Responsive ── */
@media (max-width: 960px) { .ac-header-contact { display: none; } }

@media (max-width: 580px) {
    .ac-fullmenu-list { grid-template-columns: 1fr; }
    .ac-fullmenu-list li a { font-size: clamp(1.15rem, 5.5vw, 1.5rem); padding: 9px 0; }
}