/* ==========================================================================
   ONYX TOURS - CORE
   Design tokens, base, header/nav, footer, shared utilities.
   Light theme. Inter. Deep teal primary + warm gold secondary.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg-color: #ffffff;
    --bg-secondary: #f4f4f2;
    --bg-elevated: #fafaf9;

    --text-main: #14171a;
    --text-muted: rgba(20, 23, 26, 0.62);
    --text-faint: rgba(20, 23, 26, 0.42);

    --accent: #0e5a5f;          /* deep teal - primary brand color */
    --accent-hover: #0a4549;
    --accent-soft: rgba(14, 90, 95, 0.1);

    --gold: #b08734;            /* warm gold - secondary accent */
    --gold-soft: rgba(176, 135, 52, 0.12);

    --border: rgba(20, 23, 26, 0.14);

    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --header-height: 76px;
    --container-width: 1200px;
    --gutter-x: clamp(20px, 4vw, 48px);
    --section-y: clamp(4.5rem, 9vw, 7.5rem);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-main);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--gutter-x);
}

/* ---------- Shared section pieces ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--bg-secondary); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    max-width: 22ch;
}

.section-lead {
    margin-top: 1rem;
    max-width: 58ch;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Brand / wordmark ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
}

.brand-mark {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #3c3c3c 0%, #101214 55%, #000 100%);
    border: 2px solid var(--gold);
    flex: none;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-text em {
    font-style: normal;
    font-weight: 300;
}

/* ---------- Header / navbar ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    color: #fff;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}

.navbar.is-scrolled,
.navbar.is-on-light {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: 0 1px 0 var(--border);
    color: var(--text-main);
}

/* Solid fallback when backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar.is-scrolled, .navbar.is-on-light { background: #fff; }
}

.nav-inner {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--gutter-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-actions { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }

.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.hamburger:hover { background: var(--accent-hover); }
.hamburger.is-active { background: #14171a; }

/* ---------- Menu overlay ---------- */
.nav-links {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.nav-links.is-open { opacity: 1; visibility: visible; }

.nav-links a {
    display: inline-block;
    padding: 0.35rem 0.5rem;
    font-size: clamp(2rem, 7vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(20, 23, 26, 0.35);
    transition: color 0.3s var(--ease), transform 0.3s var(--ease), -webkit-text-stroke-color 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text-main);
    -webkit-text-stroke-color: transparent;
    transform: translateX(12px);
}

.nav-links .highlight-link { color: var(--accent); -webkit-text-stroke-color: transparent; }

.nav-links .mobile-only { display: none; }

/* Staggered reveal while open */
.nav-links.is-open .nav-item { animation: menuReveal 0.5s var(--ease) both; }
.nav-links.is-open .nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-links.is-open .nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-links.is-open .nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-links.is-open .nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-links.is-open .nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-links.is-open .nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-links.is-open .nav-item:nth-child(7) { animation-delay: 0.35s; }
.nav-links.is-open .mobile-menu-footer { animation: menuReveal 0.5s var(--ease) 0.45s both; }

@keyframes menuReveal {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-footer {
    position: absolute;
    bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.menu-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}

.menu-socials { display: flex; gap: 0.7rem; }

.menu-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 0.95rem;
    color: var(--text-main);
    -webkit-text-stroke-color: transparent;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.menu-socials a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1024px) {
    .navbar .nav-cta { display: none; }
    .hamburger { display: inline-flex; }
    .nav-links .mobile-only { display: block; }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
}

.footer .brand-text { font-size: 0.95rem; }

.footer-desc {
    margin-top: 1.1rem;
    max-width: 34ch;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.1rem;
}

.footer-nav { display: grid; gap: 0.55rem; }

.footer-nav a,
.footer-address a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s var(--ease);
}

.footer-nav a:hover,
.footer-address a:hover { color: var(--accent); }

.footer-address { display: grid; gap: 0.55rem; color: var(--text-muted); font-size: 0.92rem; }

.footer-social { display: flex; gap: 0.6rem; }

.footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2rem;
    justify-content: space-between;
    padding-block: 1.4rem;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.82rem;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .nav-links.is-open .nav-item, .nav-links.is-open .mobile-menu-footer { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
