/* =====================================================================
   Captain Franks Hotdog Emporium — main.css
   Shared styles for EVERY page: design tokens, reset, nav, buttons,
   shared section headers, the shared CTA banner, and footer.
   Page-specific styles live in their own file (index.css, about.css,
   contact.css, menu.css).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
    --white: #ffffff;
    --captain-orange: #F47900;
    /* Deep, text-safe sibling of --captain-orange: same hue, darkened until
       it clears 4.5:1 against white/cream (the fill itself only manages
       ~2.8:1). Use for orange TEXT, icon fills, and italic em-highlights
       on light backgrounds — never as a large solid fill, where the
       vivid --captain-orange stays the brand color. */
    --captain-orange-deep: #B85800;
    --light-red: #ff5050;
    --beige: #FFF8F3;
    --brown: #813500;
    --ink: #1C1410;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* Secondary voice: uppercase tracked eyebrows/labels only (section
       labels, hero eyebrow, card subtitles, team roles, stat/pill/button
       micro-labels). Everything else stays on --font. */
    --font-label: 'Space Mono', 'Courier New', monospace;
}

/* ---------------------------------------------------------------------
   2. RESET + BASE
   --------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    font-size: 112.5%; /* 18px base — scales all rem-based text sitewide */
}

body {
    font-family: var(--font);
    background: var(--beige);
    color: var(--ink);
    line-height: 1.6;
}

/* ---------------------------------------------------------------------
   3. NAVIGATION
   --------------------------------------------------------------------- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background: #FFF8F3;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    background: var(--captain-orange);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.logo span { font-style: italic; color: var(--white); }
.logo:hover { color: var(--ink); }

.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }

nav a {
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    transition: 0.3s;
}

nav a:hover { color: var(--captain-orange-deep); }

.nav-cta {
    background: var(--captain-orange);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    color: var(--ink) !important;
}

.nav-cta:hover { background: var(--captain-orange); }

.nav-image {
    height: 36px;
    width: auto;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    background: none;
    border: 1px solid rgba(28,20,16,0.15);
    border-radius: 12px;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Morph into an X when open — driven by the aria-expanded the toggle already sets */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   4. SHARED SECTION STYLES
   --------------------------------------------------------------------- */
section { padding: 3rem 4%; }
section:nth-child(even) { background: #fff8f3; }

.section-label {
    font-family: var(--font-label);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--captain-orange-deep);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.section-title em { font-style: italic; color: var(--captain-orange-deep); }

.section-sub {
    font-size: 1rem;
    color: var(--ink);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ---------------------------------------------------------------------
   5. SHARED CTA BANNER  (used on index, about, and menu)
   --------------------------------------------------------------------- */
#about-cta {
    background: var(--clr-accent, var(--captain-orange));
    padding: 5rem 7vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#about-cta::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

#about-cta::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.cta-headline {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 auto 1rem;
    max-width: 22ch;
    letter-spacing: -0.02em;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 2.5rem;
}

.cta-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: #fff;
    color: var(--captain-orange-deep);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.btn-cta-outline-white {
    background: transparent;
    color: var(--ink);
    border: 2px solid rgba(28,20,16,0.35);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-cta-outline-white:hover {
    background: rgba(28,20,16,0.08);
    border-color: var(--ink);
}

/* ---------------------------------------------------------------------
   6. FACEBOOK BUTTON  (shared primitive — used on index, contact, footer)
   --------------------------------------------------------------------- */
.btn-facebook {
    background: var(--white);
    color: #1877F2;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-facebook:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: var(--captain-orange-deep);
}

.fb-icon { width: 24px; height: 24px; fill: currentColor; }

/* ---------------------------------------------------------------------
   7. FOOTER
   --------------------------------------------------------------------- */
footer {
    background: var(--beige);
    color: var(--ink);
    padding: 4rem 10% 3rem;
    text-align: center;
}

footer h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
}

.footer-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-btn-facebook {
    background: #1877F2;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
}

.footer-btn-facebook:hover { background: var(--captain-orange); color: var(--ink); }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Nothing shared needs adjustment yet at this breakpoint —
       page-specific tablet rules live in each page's own CSS file. */
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
══════════════════════════════════════════════ */
@media (max-width: 600px) {

    /* ── NAV ── */
    .nav-toggle {
        display: flex;
    }

    /* Full-width dropdown flush under the nav, not a side drawer */
    .nav-links {
        position: fixed;
        top: 53px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--beige);
        border-bottom: 1px solid rgba(0,0,0,0.07);
        box-shadow: 0 16px 32px rgba(0,0,0,0.1);
        padding: 0.5rem 6% 1.5rem;
        max-height: calc(100vh - 53px);
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 1050;
    }

    .nav-links.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.07);
    }

    .nav-links li:last-child { border-bottom: none; }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-links .nav-cta {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        font-size: 1.05rem;
        padding: 1em 1.5em;
    }

    /* Hide the pill-style brand logo text on very small screens */
    .logo { display: none; }

    /* ── SECTIONS ── */
    section { padding: 2.5rem 5%; }

    .section-label { font-size: 0.85rem; }

    /* ── FACEBOOK BUTTON ── */
    .btn-facebook {
        font-size: 1rem;
        padding: 0.85rem 1.75rem;
    }

    /* ── FOOTER ── */
    footer {
        padding: 3rem 5% 2rem;
    }

    .footer-btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-btn-facebook {
        text-align: center;
        justify-content: center;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
        width: 100%;
    }
}
