/* ==========================================================================
   FIRST FRONTIER APPALACHIAN TRAILS  —  style.css
   --------------------------------------------------------------------------
   Single, hand-written stylesheet for the whole site. No framework, no build
   step — safe to edit directly in Adobe Dreamweaver's Code or Design view.

   TABLE OF CONTENTS
   -----------------
   01. Design Tokens (colors, fonts, spacing)  ......  :root
   02. Reset & Base Elements
   03. Layout Helpers (.container, .section, grid)
   04. Buttons & Call-to-Actions
   05. Site Header & Navigation (+ mobile drawer)
   06. Hero (video background)
   07. Interior Page Title banner
   08. Reusable Components (cards, feature boxes, stats)
   09. County Marquee
   10. Photo Gallery + Lightbox
   11. Maps Page
   12. FAQ Accordion
   13. Contact Page
   14. Footer
   15. Utility / Animation
   16. Responsive Breakpoints
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Change a value here and it updates everywhere. These are pulled straight
   from the "Ride Untamed" logo: army olive, burnt orange, bone cream.
   ========================================================================== */
:root {
    /* Brand palette */
    --olive-900:   #20240f;   /* deepest background green   */
    --olive-800:   #2c3116;
    --olive-700:   #3d451d;
    --olive:       #55622a;   /* primary olive             */
    --olive-500:   #6d7c38;
    --olive-light: #8a9a4e;

    --orange:      #e07b1f;   /* primary accent (Ride Untamed) */
    --orange-brt:  #f59a2e;   /* hover / highlight             */

    --cream:       #ece4d1;   /* primary light text        */
    --cream-dim:   #b7b09c;   /* secondary / muted text    */

    --ink-900:     #16150f;   /* near-black page background */
    --ink-800:     #1e1c15;   /* raised surfaces / cards    */
    --ink-700:     #2a271d;   /* borders on dark            */

    /* Semantic aliases */
    --bg:          var(--ink-900);
    --bg-alt:      var(--ink-800);
    --text:        var(--cream);
    --text-muted:  var(--cream-dim);
    --accent:      var(--orange);
    --line:        rgba(236, 228, 209, 0.12);

    /* Typography */
    --font-display: "Oswald", "Arial Narrow", sans-serif;   /* condensed, rugged */
    --font-body:    "Barlow", "Segoe UI", Arial, sans-serif; /* clean, industrial */

    /* Spacing & layout */
    --container:   1200px;
    --radius:      6px;
    --radius-lg:   14px;
    --shadow:      0 12px 34px rgba(0, 0, 0, 0.45);
    --header-h:    76px;

    --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--orange-brt); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.2em; }

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

/* Keyboard focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--orange-brt);
    outline-offset: 2px;
}


/* ==========================================================================
   03. LAYOUT HELPERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

.section {
    padding: clamp(56px, 8vw, 110px) 0;
}
.section--tight   { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt     { background: var(--bg-alt); }
.section--olive   { background: linear-gradient(160deg, var(--olive-800), var(--olive-900)); }

/* Simple responsive grid used across the site */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section heading block */
.section-head { max-width: 760px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.82rem;
    color: var(--orange);
    margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.lead { font-size: 1.2rem; color: var(--cream); }
.muted { color: var(--text-muted); }
.center { text-align: center; }


/* ==========================================================================
   04. BUTTONS & CALL-TO-ACTIONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    padding: 15px 32px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

/* Primary — burnt orange, the main "Buy Permit / Ride" action */
.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 22px rgba(224, 123, 31, 0.35);
}
.btn-primary:hover { background: var(--orange-brt); color: #fff; box-shadow: 0 12px 28px rgba(224, 123, 31, 0.5); }

/* Secondary — olive fill */
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-500); color: #fff; }

/* Outline — for use over photos/video */
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* Full-width banner CTA strip */
.cta-strip {
    background: var(--orange);
    color: #fff;
    text-align: center;
    padding: 30px 22px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}
.cta-strip a { color: #fff; text-decoration: underline; }


/* ==========================================================================
   05. SITE HEADER & NAVIGATION
   The header starts transparent over the hero, then gains a solid background
   once the user scrolls (class .is-stuck added by js/main.js).
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header.is-stuck,
.site-header.solid {                     /* interior pages always solid */
    background: rgba(22, 21, 15, 0.96);
    box-shadow: 0 2px 18px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand img {
    height: 56px;
    width: auto;
    transition: height 0.3s var(--ease);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.site-header.is-stuck .brand img { height: 48px; }

/* Desktop nav */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0; padding: 0;
}
.main-nav a {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    color: var(--cream);
    padding: 10px 16px;
    border-radius: var(--radius);
    position: relative;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The permit button sits inside the nav on desktop */
.nav-permit { margin-left: 10px; }
.nav-permit a.btn { padding: 11px 22px; color: #fff; }
.nav-permit a.btn::after { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 46px; height: 46px;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    display: block;
    height: 3px;
    width: 26px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-8px); }
.nav-toggle span::after  { transform: translateY(5px); }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: rotate(45deg); }
.nav-toggle.is-open span::after  { transform: rotate(-45deg) translateY(-2px); }

/* Backdrop behind mobile drawer */
.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease);
    z-index: 999;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }


/* ==========================================================================
   06. HERO (video background)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;               /* mobile browser-chrome safe */
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: center;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(22,21,15,0.55) 0%, rgba(22,21,15,0.25) 40%, rgba(22,21,15,0.9) 100%);
    z-index: 1;
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--header-h) + 30px) 22px 60px;
}
.hero__tag {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--orange);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
    margin-bottom: 14px;
}
.hero h1 .accent { color: var(--orange); }
.hero__sub {
    max-width: 640px;
    margin: 0 auto 34px;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: var(--cream);
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* bouncing scroll cue */
.scroll-cue {
    position: absolute;
    left: 50%; bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--cream);
    font-family: var(--font-display);
    letter-spacing: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.85;
    animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }


/* ==========================================================================
   07. INTERIOR PAGE TITLE BANNER
   ========================================================================== */
.page-title {
    position: relative;
    padding: calc(var(--header-h) + 70px) 0 60px;
    background-size: cover;
    background-position: center;
    text-align: center;
}
.page-title::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22,21,15,0.75), rgba(22,21,15,0.9));
}
.page-title .container { position: relative; }
.page-title h1 { margin-bottom: 8px; }
.page-title .eyebrow { color: var(--orange-brt); }
.breadcrumb {
    list-style: none; display: flex; gap: 10px; justify-content: center;
    padding: 0; margin: 16px 0 0;
    font-size: 0.9rem; color: var(--text-muted);
}
.breadcrumb li::after { content: "/"; margin-left: 10px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }


/* ==========================================================================
   08. REUSABLE COMPONENTS
   ========================================================================== */

/* Feature / info card */
.card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--olive-500); box-shadow: var(--shadow); }
.card .icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(150deg, var(--olive), var(--olive-700));
    color: var(--orange-brt);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.card h3 { color: #fff; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }
.card .eyebrow { margin-bottom: 6px; }

/* Split media + text row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Embedded Facebook page feed */
.fb-embed { display: flex; justify-content: center; }
.fb-embed iframe {
    width: 100%;
    max-width: 500px;
    height: 640px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
}

/* Stat / counter tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stat {
    background: var(--olive-800);
    text-align: center;
    padding: 40px 18px;
}
.stat:nth-child(2){ background: var(--olive-700); }
.stat:nth-child(3){ background: var(--olive); }
.stat:nth-child(4){ background: var(--olive-500); }
.stat .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: #fff;
    line-height: 1;
}
.stat .label {
    display: block;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    color: var(--cream);
}

/* Parallax-ish CTA band */
.cta-band {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: clamp(70px, 10vw, 130px) 0;
}
.cta-band::before { content:""; position:absolute; inset:0; background: rgba(16,15,10,0.72); }
.cta-band .container { position: relative; }


/* ==========================================================================
   08b. BRAND SHOWCASE  (hero moment for the emblem logo)
   ========================================================================== */
.brand-showcase {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(70px, 10vw, 120px) 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(109,124,56,0.35), transparent 60%),
        linear-gradient(160deg, var(--olive-900), var(--ink-900));
}
/* Faint topographic contour pattern behind the emblem */
.brand-showcase::before {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%238a9a4e' stroke-width='1'%3E%3Ccircle cx='200' cy='200' r='40'/%3E%3Ccircle cx='200' cy='200' r='80'/%3E%3Ccircle cx='200' cy='200' r='120'/%3E%3Ccircle cx='200' cy='200' r='160'/%3E%3Ccircle cx='200' cy='200' r='200'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px;
    opacity: 0.06;
    pointer-events: none;
}
.brand-showcase .container { position: relative; z-index: 1; }

.brand-showcase__logo {
    width: min(440px, 78vw);
    height: auto;
    margin: 0 auto 30px;
    filter: drop-shadow(0 20px 45px rgba(0,0,0,0.55));
    animation: floaty 6s var(--ease) infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

.brand-showcase h2 { margin-bottom: 14px; }
.brand-showcase p.lead { max-width: 640px; margin: 0 auto 30px; color: var(--cream); }

/* Freedom · Adventure · Backcountry badge row (echoes the logo's signpost) */
.brand-badges {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
    margin-top: 8px;
}
.brand-badges span {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--cream);
    background: rgba(20,19,15,0.55);
    border: 1px solid var(--olive-light);
    border-radius: 40px;
    padding: 9px 20px;
}
.brand-badges span::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange); flex: none;
}
@media (prefers-reduced-motion: reduce) { .brand-showcase__logo { animation: none; } }


/* ==========================================================================
   09. COUNTY MARQUEE  (pure-CSS auto-scroll, no plugin)
   ========================================================================== */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img {
    height: 90px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.marquee img:hover { opacity: 1; transform: scale(1.08); }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }


/* ==========================================================================
   10. PHOTO GALLERY + LIGHTBOX
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 16px 14px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

/* Lightbox overlay (driven by js/main.js) */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(8,7,4,0.94);
    display: none;
    align-items: center; justify-content: center;
    z-index: 2000;
    padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: var(--shadow); }
.lightbox__close {
    position: absolute; top: 22px; right: 26px;
    background: none; border: 0; color: #fff;
    font-size: 2.6rem; line-height: 1; cursor: pointer;
}


/* ==========================================================================
   11. MAPS PAGE
   ========================================================================== */
/* Bright, obvious offline-download reassurance banner */
.offline-banner {
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(120deg, var(--olive-700), var(--olive));
    border: 1px solid var(--olive-light);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 44px;
}
.offline-banner .big { font-size: 2rem; }
.offline-banner h3 { margin: 0 0 4px; font-size: 1.2rem; }
.offline-banner p { margin: 0; color: var(--cream); font-size: 0.96rem; }

/* Work-in-progress / accuracy disclaimer notice */
.map-disclaimer {
    display: flex; align-items: flex-start; gap: 14px;
    background: rgba(224, 123, 31, 0.10);
    border: 1px solid var(--orange);
    border-left-width: 5px;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 30px;
}
.map-disclaimer .di {
    color: var(--orange-brt); font-size: 1.3rem; line-height: 1.3; flex: none;
}
.map-disclaimer h4 { margin: 0 0 4px; font-size: 1.05rem; color: #fff; }
.map-disclaimer p { margin: 0; color: var(--cream); font-size: 0.92rem; }

/* One trail = one card: description + embedded map + download */
.trail-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}
.trail-card__body { padding: 30px clamp(22px, 4vw, 40px); }
.trail-card__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.trail-card__head h3 { margin: 0; }
.trail-tag {
    display: inline-block;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.72rem;
    color: var(--ink-900);
    background: var(--orange-brt);
    padding: 4px 12px;
    border-radius: 40px;
}
.trail-card p { color: var(--text-muted); }

/* The download button makes file type + size explicit for offline safety */
.download-btn {
    display: inline-flex; flex-direction: column; align-items: flex-start;
    gap: 2px;
    background: var(--orange);
    color: #fff;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 22px rgba(224,123,31,0.32);
    transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.download-btn:hover { background: var(--orange-brt); color:#fff; transform: translateY(-3px); }
.download-btn .main { display:flex; align-items:center; gap:10px; font-size: 1rem; }
.download-btn .meta { font-size: 0.72rem; letter-spacing: 1px; opacity: 0.85; font-family: var(--font-body); }

/* --- Combined interactive master map (Leaflet) --------------------------- */
.master-map-wrap {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 44px;
}
.master-map-head {
    display: flex; flex-wrap: wrap; gap: 16px;
    align-items: center; justify-content: space-between;
    padding: 24px clamp(22px, 4vw, 34px);
}
.master-map-head h3 { margin: 0; }
.master-map-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.95rem; }

#ffat-map {
    width: 100%;
    height: clamp(420px, 60vh, 620px);
    background: var(--ink-700);
}
/* Leaflet popups restyled to match the site */
.leaflet-popup-content-wrapper { border-radius: 8px; }
.ffat-popup h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink-900); }
.ffat-popup .pc { color: #555; font-size: 0.82rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.ffat-popup a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85rem; }

/* Legend / trail toggles below the map */
.map-legend {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    padding: 18px clamp(22px, 4vw, 34px) 24px;
    border-top: 1px solid var(--line);
}
.map-legend__item {
    display: inline-flex; align-items: center; gap: 9px;
    cursor: pointer; user-select: none;
    font-size: 0.95rem; color: var(--cream);
}
.map-legend__item input { accent-color: var(--orange); width: 16px; height: 16px; }
.map-legend__swatch { width: 26px; height: 5px; border-radius: 3px; flex: none; }
.map-legend__item.is-off { opacity: 0.45; }
.map-legend__item .cty { color: var(--text-muted); font-size: 0.82rem; }
.map-note { padding: 0 clamp(22px,4vw,34px) 22px; margin: 0; color: var(--text-muted); font-size: 0.85rem; }

/* Category point-of-interest markers (Leaflet divIcon) */
.ffat-poi { background: transparent; border: 0; }   /* override Leaflet default box */
.poi-pin {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 15px; line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);
}
.poi-pin--sm { width: 22px; height: 22px; font-size: 12px; border-width: 1.5px; box-shadow: none; }

/* POI hover label */
.leaflet-tooltip.leaflet-tooltip-top,
.leaflet-tooltip { font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; }

/* Map Key legend under the map */
.map-key {
    display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
    padding: 0 clamp(22px,4vw,34px) 20px;
}
.map-key__title {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.82rem; color: var(--text-muted); margin-right: 4px;
}
.map-key__item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--cream); }

/* Responsive map iframe wrapper (16:9-ish, lazy) */
.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--ink-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath fill='%23555' d='M0 0h60v60H0z' opacity='.15'/%3E%3C/svg%3E");
    border-top: 1px solid var(--line);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ==========================================================================
   12. FAQ ACCORDION
   ========================================================================== */
.faq-filters {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 30px;
}
.faq-filters button {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--cream);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 10px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.faq-filters button:hover { border-color: var(--olive-light); }
.faq-filters button.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

.faq-item {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: #fff;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    padding: 20px 56px 20px 24px;
    cursor: pointer;
    position: relative;
}
.faq-q::after {
    content: "+";
    position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--orange);
    transition: transform 0.25s var(--ease);
}
.faq-item.is-open .faq-q::after { content: "\2013"; }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
}
.faq-a__inner { padding: 0 24px 22px; color: var(--text-muted); }
.faq-a__inner li { margin-bottom: 4px; }


/* ==========================================================================
   13. CONTACT PAGE
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px;
}
.contact-card h3 { margin-bottom: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-list .ico { color: var(--orange); font-size: 1.2rem; margin-top: 3px; }
.contact-list a { color: var(--cream); }
.contact-list a:hover { color: var(--orange); }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--olive-700);
    color: #fff;
    font-size: 1.15rem;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-row a:hover { background: var(--orange); transform: translateY(-3px); color:#fff; }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--olive-900);
    border-top: 3px solid var(--orange);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 46px;
}
.site-footer .foot-logo { height: 92px; width: auto; margin-bottom: 18px; }
.site-footer p { color: var(--text-muted); font-size: 0.95rem; }
.foot-col h4 {
    font-size: 1rem; letter-spacing: 1.5px; margin-bottom: 18px; color: #fff;
    padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--cream-dim); }
.foot-col a:hover { color: var(--orange); }
.foot-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--text-muted); font-size: 0.95rem; }
.foot-contact .ico { color: var(--orange); }
.footer-bar {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; justify-content: space-between;
    font-size: 0.85rem; color: var(--text-muted);
}
.footer-bar a { color: var(--cream-dim); }
.footer-bar a:hover { color: var(--orange); }


/* ==========================================================================
   15. UTILITY / SCROLL ANIMATION
   Elements with [data-reveal] fade+rise into view (see js/main.js).
   ========================================================================== */
/* Reveal-on-scroll only hides content when JavaScript is active (the <html>
   element gets a .js class via a tiny inline script). Without JS the content
   is fully visible — good for accessibility, SEO, and no-JS fallback. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.to-top {
    position: fixed; right: 22px; bottom: 22px;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s var(--ease);
    z-index: 900;
    font-size: 1.3rem;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }

/* Long-form reading (terms, privacy, about) */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; color: #fff; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; color: var(--orange-brt); }
.prose p, .prose li { color: var(--text-muted); }
.prose a { word-break: break-word; }
.prose .updated { color: var(--text-muted); font-style: italic; font-size: 0.95rem; }

/* Two-column layout with sidebar (about, faqs) */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.sidebar-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 24px;
}
.sidebar-box h4 { font-size: 1rem; letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 10px; }
.sidebar-box a { color: var(--cream-dim); }
.sidebar-box a:hover { color: var(--orange); }
@media (max-width: 992px) { .with-sidebar { grid-template-columns: 1fr; } }

/* Honour users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .hero__video { display: none; }
}


/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet ---------------------------------------------------------------- */
@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .split.reverse > *:first-child { order: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-band { background-attachment: scroll; }  /* fixed bg is janky on mobile */
}

/* Mobile navigation + layout ------------------------------------------- */
@media (max-width: 820px) {
    .nav-toggle { display: block; z-index: 1001; }

    /* Slide-in drawer */
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100%;
        width: min(320px, 84vw);
        background: var(--ink-800);
        border-left: 1px solid var(--line);
        box-shadow: -12px 0 40px rgba(0,0,0,0.5);
        transform: translateX(100%);
        transition: transform 0.32s var(--ease);
        padding: calc(var(--header-h) + 10px) 0 30px;
        overflow-y: auto;
        z-index: 1000;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { padding: 16px 26px; font-size: 1.05rem; }
    .main-nav a::after { display: none; }
    .nav-permit { margin: 20px 26px 0; }
    .nav-permit a.btn { justify-content: center; }

    /* The header is always solid on small screens for legibility */
    .site-header { background: rgba(22,21,15,0.96); border-bottom: 1px solid var(--line); }
}

/* Small phones ---------------------------------------------------------- */
@media (max-width: 560px) {
    body { font-size: 16px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: 1fr 1fr; }
    .btn { width: 100%; justify-content: center; }
    .hero__cta { flex-direction: column; }
    .trail-card__head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand img { height: 46px; }
}
