/* =============================================================================
   Swan Chauffeur — Main Stylesheet
   ============================================================================= */

/* ── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
    --navy:          #1A3A52;
    --navy-dark:     #0f2335;
    --navy-mid:      #234d6b;
    --gold:          #D4AF37;
    --gold-light:    #e8cc6a;
    --gold-pale:     #faf4dc;
    --white:         #ffffff;
    --off-white:     #f8f8f6;
    --light-grey:    #f2f2f0;
    --mid-grey:      #e8e8e4;
    --text-dark:     #1a1a1a;
    --text-body:     #444440;
    --text-muted:    #888880;
    --border:        #e0deda;
    --font-display:  'Cinzel', serif;
    --font-body:     'Raleway', sans-serif;
    --font-ui:       'Lato', sans-serif;
    --shadow-sm:     0 2px 12px rgba(0,0,0,0.06);
    --shadow-md:     0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.14);
    --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --topbar-h:      44px;
    --nav-h:         80px;
    --header-h:      calc(var(--topbar-h) + var(--nav-h));
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
    font-family: var(--font-body);
    font-size: 16px; /* prevents iOS zoom */
}

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Container ──────────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 40px;
    width: 100%;
}

/* ── Base Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.2;
}

/* ── Utility: Pill Label ────────────────────────────────────────────────────── */
.pill-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.30);
    border-radius: 100px;
    padding: 5px 14px;
}

/* ── Utility: Section Headings ──────────────────────────────────────────────── */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.15;
}
.section-sub {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.7;
    max-width: 560px;
}

/* ── Utility: Buttons ───────────────────────────────────────────────────────── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-dark);
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 4px;
    padding: 11px 24px;
    min-height: 44px;
    transition: background 0.22s var(--ease), color 0.22s var(--ease),
                transform 0.18s var(--ease), box-shadow 0.22s var(--ease);
    white-space: nowrap;
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.btn-gold:active { transform: translateY(0); }

.btn-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 4px;
    padding: 11px 24px;
    min-height: 44px;
    transition: background 0.22s var(--ease), transform 0.18s var(--ease);
    white-space: nowrap;
}
.btn-navy:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    transform: translateY(-1px);
}

.btn-outline-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    background: transparent;
    border: 2px solid var(--navy);
    border-radius: 4px;
    padding: 11px 24px;
    min-height: 44px;
    transition: background 0.22s var(--ease), color 0.22s var(--ease),
                transform 0.18s var(--ease);
    white-space: nowrap;
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in          { opacity: 1; transform: none; }
.reveal-delay-1     { transition-delay: 0.10s; }
.reveal-delay-2     { transition-delay: 0.20s; }
.reveal-delay-3     { transition-delay: 0.30s; }
.reveal-delay-4     { transition-delay: 0.40s; }
.reveal-delay-5     { transition-delay: 0.50s; }

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
}

/* ── Top Bar ────────────────────────────────────────────────────────────────── */
.topbar {
    background: var(--navy-dark);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar__left  { display: flex; align-items: center; gap: 24px; }
.topbar__right { display: flex; align-items: center; gap: 10px; }

.topbar__link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.72);
    min-height: 44px;
    transition: color 0.2s;
}
.topbar__link:hover { color: var(--gold); }
.topbar__link svg { flex-shrink: 0; opacity: 0.65; }

.topbar__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.topbar__social:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212,175,55,0.08);
}

/* ── Main Nav ───────────────────────────────────────────────────────────────── */
.main-nav {
    background: var(--white);
    height: var(--nav-h);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled .main-nav { box-shadow: var(--shadow-md); }

.main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

/* Logo */
.main-nav__logo { flex-shrink: 0; }
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-link img { height: 56px; width: auto; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text__swan {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--navy);
}
.logo-text__chauffeur {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Primary Menu */
.main-nav__menu { flex: 1; display: flex; justify-content: center; }
.primary-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}
.primary-menu > li { position: relative; }
.primary-menu > li > a {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    padding: 0 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dark);
    position: relative;
    transition: color 0.2s;
}
.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s var(--ease);
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a { color: var(--navy); }
.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }

/* Dropdown */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--white);
    border-top: 2px solid var(--gold);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    z-index: 10;
}
.primary-menu > li:hover > .sub-menu,
.primary-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-menu .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-body);
    min-height: 44px;
    transition: color 0.2s, padding-left 0.2s;
}
.primary-menu .sub-menu li a:hover { color: var(--gold); padding-left: 26px; }

/* Nav Actions */
.main-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #25D366;
    border: 1.5px solid #25D366;
    border-radius: 4px;
    padding: 9px 16px;
    min-height: 44px;
    transition: background 0.22s var(--ease), color 0.22s var(--ease);
    white-space: nowrap;
}
.btn-whatsapp:hover { background: #25D366; color: var(--white); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}
.hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    transform-origin: center;
}
.hamburger.is-active .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Panel ───────────────────────────────────────────────────────── */
.mobile-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ease-out);
}
.mobile-nav.is-open { max-height: 640px; }
.mobile-nav__inner { padding: 8px 0 20px; }

.mobile-nav .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
.mobile-nav .primary-menu > li > a {
    height: auto;
    padding: 13px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav .primary-menu > li > a::after { display: none; }

.mobile-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: var(--light-grey);
    padding: 0;
    min-width: 0;
}
.mobile-nav .sub-menu li a {
    padding: 11px 40px;
    font-size: 13px;
    border-bottom: 1px solid var(--mid-grey);
}

.mobile-nav__actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px 0;
}
.mobile-nav__actions .btn-whatsapp,
.mobile-nav__actions .btn-gold { flex: 1; }

/* ── Mobile Sticky Bottom Bar ───────────────────────────────────────────────── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
    padding: 8px 12px;
    gap: 8px;
}
.mobile-bottom-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 10px 6px;
    min-height: 44px;
    transition: opacity 0.2s;
}
.mobile-bottom-bar__btn:active { opacity: 0.8; }
.mobile-bottom-bar__call      { background: var(--navy); color: var(--white); }
.mobile-bottom-bar__book      { background: var(--gold); color: var(--navy-dark); }
.mobile-bottom-bar__whatsapp  { background: #25D366; color: var(--white); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.72);
}

.footer__main { padding: 72px 0 56px; }

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

/* Brand Col */
.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.footer__logo-text { display: flex; flex-direction: column; line-height: 1; }
.footer__logo-swan {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--white);
}
.footer__logo-chauffeur {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
}
.footer__tagline {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 14px;
}
.footer__desc {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.50);
    margin-bottom: 24px;
}
.footer__social { display: flex; gap: 8px; }
.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 44px;
    min-height: 44px;
    color: rgba(255,255,255,0.50);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    transition: color 0.22s, border-color 0.22s, background 0.22s;
}
.footer__social-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212,175,55,0.08);
}

/* Link Cols */
.footer__heading {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212,175,55,0.22);
}
.footer__links { display: flex; flex-direction: column; }
.footer__links a {
    display: flex;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 13px;
    color: rgba(255,255,255,0.52);
    padding: 6px 0;
    min-height: 44px;
    transition: color 0.2s, padding-left 0.2s;
}
.footer__links a:hover { color: var(--gold); padding-left: 6px; }

/* Contact Col */
.footer__contact { display: flex; flex-direction: column; font-style: normal; }
.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: rgba(255,255,255,0.52);
    padding: 6px 0;
    min-height: 44px;
    transition: color 0.2s;
}
a.footer__contact-item:hover { color: var(--gold); }
.footer__contact-item svg { flex-shrink: 0; opacity: 0.55; }

/* Footer Bottom */
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer__copyright {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255,255,255,0.32);
}
.footer__legal { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__legal a {
    display: flex;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255,255,255,0.32);
    min-height: 44px;
    transition: color 0.2s;
}
.footer__legal a:hover { color: var(--gold); }

/* =============================================================================
   PAGE TEMPLATES
   ============================================================================= */
.page-main {
    min-height: 60vh;
    padding: 72px 0;
}
.page-main .entry-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 28px;
}
.page-main .entry-content p { margin-bottom: 20px; }
.page-main .entry-thumbnail { margin-bottom: 32px; }
.page-main .entry-thumbnail img { border-radius: 6px; width: 100%; }
.entry-meta {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ── 404 ────────────────────────────────────────────────────────────────────── */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    text-align: center;
    padding: 80px 20px;
}
.error-404__inner { max-width: 520px; }
.error-404__code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.85;
}
.error-404__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--white);
    margin-bottom: 16px;
}
.error-404__message {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255,255,255,0.52);
    margin-bottom: 36px;
    line-height: 1.75;
}
.error-404__btn { margin-inline: auto; }

/* =============================================================================
   RESPONSIVE — 1024px (Tablet)
   ============================================================================= */
@media (max-width: 1024px) {
    .container { padding-inline: 24px; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }

    .main-nav__menu .primary-menu > li > a { padding: 0 10px; font-size: 12px; }

    /* Hide WhatsApp label text on tablet to save space */
    .main-nav__actions .btn-whatsapp span { display: none; }
    .main-nav__actions .btn-whatsapp { padding: 9px 12px; }
}

/* =============================================================================
   RESPONSIVE — 768px (Mobile)
   ============================================================================= */
@media (max-width: 768px) {
    :root {
        --nav-h:     64px;
        --topbar-h:  0px;
    }

    .container { padding-inline: 16px; }

    /* Hide topbar on mobile */
    .topbar { display: none; }

    /* Hide desktop nav elements */
    .main-nav__menu,
    .main-nav__actions { display: none; }

    /* Show hamburger and mobile nav */
    .hamburger    { display: flex; }
    .mobile-nav   { display: block; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__main { padding: 48px 0 40px; }

    /* Bottom sticky bar */
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 68px; }

    /* Footer bottom */
    .footer__bottom-inner { flex-direction: column; text-align: center; }
    .footer__legal { justify-content: center; }

    /* Page */
    .page-main { padding: 48px 0; }
}

/* =============================================================================
   RESPONSIVE — 480px (Small Mobile)
   ============================================================================= */
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
    .footer__col--brand { text-align: center; }
    .footer__logo { justify-content: center; }
    .footer__social { justify-content: center; }
    .footer__legal { gap: 12px; }
}
