/* ===================================================================
   TahoeTravel — shared stylesheet
   Loaded by every page. Page-specific tweaks should be rare; prefer
   adding a modifier class here over inline styles.
   =================================================================== */

:root {
    --navy:        #0a3d62;  /* primary brand */
    --blue:        #0a6bb9;  /* accent */
    --blue-soft:   #5aa9e6;
    --bg:          #f5f7fa;  /* page background */
    --bg-alt:      #f0f4f8;  /* alternate section background */
    --text:        #333;
    --muted:       #ddd;
    --white:       #fff;
    --radius:      8px;
    --maxw:        1200px;
    --shadow-card: 0 4px 15px rgba(0,0,0,0.10);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Top white highlight ===== */
.top-highlight {
    height: 4px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1001;
    pointer-events: none;
}

/* ===== Header / nav ===== */
header {
    position: fixed;
    width: 100%;
    top: 12px;
    z-index: 1000;
    transition: background 0.4s ease, top 0.4s ease, box-shadow 0.4s ease;
}
header.transparent { background: transparent; box-shadow: none; }
header.scrolled { background: var(--navy); top: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}
.header-title-text a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.header-title-text a:hover { opacity: 0.5; }
.header-right { display: flex; align-items: center; gap: 2.5rem; }
.header-nav-list { display: flex; gap: 2rem; list-style: none; margin: 0; }
.header-nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s ease;
}
.header-nav-list a:hover { opacity: 0.5; }
.header-nav-list a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 100%; height: 2px;
    background: var(--white);
}

/* hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 1002;
}
.nav-toggle span {
    display: block;
    width: 26px; height: 3px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    background: var(--navy);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.btn:hover { opacity: 0.5; }
.btn-accent { background: var(--blue); }
.btn-tertiary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: opacity 0.3s ease;
}
.btn-tertiary:hover { opacity: 0.5; }

/* ===== Hero (base + variants) ===== */
.hero {
    position: relative;
    display: flex;
    color: var(--white);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 3.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero h2 { font-size: 3rem; margin-bottom: 20px; }
.hero--home  { height: 90vh; align-items: center; text-align: center; padding-top: 80px; }
.hero--home h1 { font-size: 3rem; margin-bottom: 20px; }
.hero--tall  { min-height: 70vh; height: 85vh; align-items: center; text-align: center; padding-top: 100px; }
.hero--banner { min-height: 70vh; align-items: center; justify-content: center; text-align: center; }
.hero--wave {
    height: 25vh;
    padding-top: 60px;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 75% 92%, 50% 88%, 25% 92%, 0 85%);
}
.hero--wave::before { background: rgba(0,0,0,0.15); }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ===== Home: text + image feature rows ===== */
.text-image-section { padding: 100px 0; background: var(--bg); }
.text-image-section.white { background: var(--white); }
.text-image {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.text-image.reverse { flex-direction: row-reverse; }
.text-image img { width: 400px; height: 400px; object-fit: cover; border-radius: 50%; }
.text-image .content { max-width: 500px; }
.text-image h3 { font-size: 2rem; margin-bottom: 20px; }
.text-image .content .btn { margin: 6px; }

/* ===== Home: gallery carousel ===== */
.gallery-section { background: var(--white); padding: 80px 0; }
.carousel-shell { position: relative; width: 100%; overflow: hidden; }
.carousel-track {
    display: flex;
    gap: 24px;
    padding: 0 70px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:active { cursor: grabbing; }
.carousel-track img {
    height: 50vh;
    min-width: 420px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: var(--white);
    border: none;
    font-size: 2.2rem;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}
.carousel-arrow:hover { opacity: 0.5; }
.carousel-arrow.left { left: 15px; }
.carousel-arrow.right { right: 15px; }

/* ===== Home: quote section ===== */
.quote-section {
    background: url('images/mount.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    position: relative;
    padding: 100px 20px;
}
.quote-content { max-width: 1000px; opacity: 0; transition: opacity 1s ease-out; }
.quote-section.in-view .quote-content { opacity: 1; }
.quote-text {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.5;
    display: inline-block;
    background: linear-gradient(black 0%, black 100%) no-repeat left bottom / 0% 3px;
    transition: background-size 1.2s ease-out 0.8s;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
.quote-section.in-view .quote-text { background-size: 100% 3px; }
.quote-author {
    font-size: 1.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 1s ease-out 0.6s;
}
.quote-section.in-view .quote-author { opacity: 1; }

/* ===== Home: about-us ===== */
.about-us-section { padding: 120px 20px; background: var(--white); }
.about-us {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    flex-wrap: wrap;
    max-width: var(--maxw);
    margin: 0 auto;
}
.about-us-text { max-width: 600px; text-align: left; }
.about-us-text h2 { font-size: 2.8rem; margin-bottom: 30px; line-height: 1.3; }
.about-us-text p { font-size: 1.1rem; line-height: 1.7; }
.about-us img {
    width: 380px; height: 380px;
    object-fit: cover;
    object-position: 110% 115%;
    border-radius: 50%;
}

/* ===== Hub pages: page title + cards ===== */
.page-title {
    text-align: center;
    padding: 40px 20px 60px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    position: relative;
    z-index: 3;
    margin-top: -20px;
}
.page-title::after {
    content: '';
    display: block;
    width: 120px; height: 4px;
    background: var(--navy);
    margin: 30px auto 0;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 80px 0 40px;
    color: var(--navy);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px; height: 3px;
    background: var(--navy);
    margin: 20px auto 0;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    max-width: var(--maxw);
    margin: 0 auto 120px;
    padding: 0 20px;
    background: var(--white);
    position: relative;
    z-index: 3;
}
.card { text-align: center; }
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.35rem; margin-bottom: 15px; color: var(--navy); }
.card p { font-size: 1rem; margin-bottom: 25px; min-height: 120px; }
.card .buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ===== Article / detail pages (about, resorts) ===== */
.main-content { padding: 100px 0; background: var(--white); }
.main-content.alt { background: var(--bg-alt); text-align: center; }
.main-content h2 { font-size: 2rem; text-align: center; margin-bottom: 40px; color: var(--blue); }
.main-content.alt h2 { font-size: 2.5rem; }
.main-content h3 { font-size: 1.8rem; color: var(--blue); margin: 60px 0 20px; text-align: center; }
.main-content p { font-size: 1.1rem; max-width: 800px; margin: 0 auto 30px; line-height: 1.8; }
.lead { max-width: 800px; margin: 0 auto 60px; text-align: center; font-size: 1.1rem; }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.content-item h4 { font-size: 1.4rem; margin-bottom: 15px; color: var(--blue); }
.content-item p { font-size: 1rem; line-height: 1.8; max-width: none; margin: 0; text-align: left; }

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 40px;
    justify-content: center;
    margin: 60px 0;
}
.highlight-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.highlight-card h4 { font-size: 1.4rem; color: var(--blue); margin-bottom: 15px; }
.highlight-card ul { list-style: none; padding-left: 0; }
.highlight-card ul li { margin-bottom: 10px; }
.highlight-card ul li::before { content: "\2713 "; color: var(--blue); font-weight: bold; }
.center { text-align: center; }

/* ===== Footer (unified across all pages) ===== */
footer { background: var(--navy); color: var(--muted); padding: 70px 20px 30px; }
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}
.footer-col { min-width: 200px; }
.footer-col h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 16px; line-height: 1.3; }
.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.footer-col p { line-height: 1.8; }
.footer-brand { max-width: 320px; }
.footer-brand p { margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}
.footer-links a:hover { opacity: 0.7; border-bottom-color: rgba(255,255,255,0.5); }
.footer-bottom {
    max-width: var(--maxw);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* mobile slide-in nav */
    .nav-toggle { display: flex; }
    .header-right {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.5rem;
        padding: 90px 30px 30px;
        background: var(--navy);
        box-shadow: -4px 0 20px rgba(0,0,0,0.25);
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }
    header.nav-open .header-right { transform: translateX(0); }
    .header-nav-list { flex-direction: column; gap: 1.2rem; width: 100%; }
    .header-right .btn { background: var(--blue); width: 100%; text-align: center; }

    .hero h1 { font-size: 2.6rem; }
    .hero h2 { font-size: 2.4rem; }
    .hero--home h1 { font-size: 2.4rem; }
    .text-image img { width: 300px; height: 300px; }
    .quote-text { font-size: 1.8rem; }
    .quote-author { font-size: 1.5rem; }
    .about-us { flex-direction: column; text-align: center; gap: 40px; }
    .about-us-text { text-align: center; }
    .about-us img { width: 300px; height: 300px; object-position: 20% 50%; }
    .carousel-track img { min-width: 280px; height: 40vh; }
    .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cards-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 3rem; padding: 20px 20px 60px; margin-top: -10px; }
    .section-title { font-size: 2rem; }
    .hero--wave { height: 30vh; padding-top: 80px; }
}

/* ===================================================================
   v2 components — richer editorial layouts for content pages
   =================================================================== */

:root {
    --gold:      #e3a72f;  /* warm sunset accent, used sparingly */
    --gold-dark: #9a6b10;
    --ink:       #081e34;  /* deep navy for image overlays */
}

/* ----- generic section scaffolding ----- */
.section { padding: 60px 20px; }
.section.bg-soft { background: var(--bg); }
.section.bg-white { background: var(--white); }
.section.bg-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 14px;
}
.section-head h2 { font-size: 2.4rem; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section.bg-navy .section-head h2 { color: #fff; }
.section-head p { font-size: 1.05rem; color: #556070; }
.section.bg-navy .section-head p { color: rgba(255,255,255,0.8); }

/* ----- hero embellishments ----- */
.hero-eyebrow {
    display: inline-block; color: var(--gold);
    font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    font-size: 0.9rem; margin-bottom: 16px; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-sub {
    font-size: 1.2rem; font-weight: 300; max-width: 620px;
    margin: 18px auto 30px; text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.hero--banner::before { background: linear-gradient(rgba(8,30,52,0.30), rgba(8,30,52,0.62)); }

/* ----- card hover upgrade (also enhances existing .card grids) ----- */
.card img { transition: transform 0.45s ease, box-shadow 0.3s ease; }
.card:hover img { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,0.20); }
.card h3 { transition: color 0.25s ease; }
.card:hover h3 { color: var(--blue); }

/* ----- featured image tiles ("dig in" grid) ----- */
.tile-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: var(--maxw); margin: 0 auto;
}
.tile {
    position: relative; display: block; height: 300px;
    border-radius: 14px; overflow: hidden; text-decoration: none;
    box-shadow: var(--shadow-soft);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,30,52,0.88) 0%, rgba(8,30,52,0.20) 55%, rgba(8,30,52,0) 100%);
}
.tile-label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; }
.tile-label h3 { font-size: 1.35rem; margin: 0 0 4px; }
.tile-label span { font-size: 0.88rem; opacity: 0.9; }
.tile-label span::after { content: ' →'; display: inline-block; transition: transform 0.3s ease; }
.tile:hover img { transform: scale(1.07); }
.tile:hover .tile-label span::after { transform: translateX(5px); }
.tile.wide { grid-column: span 2; }

/* ===== Clean text-focused listing cards (new pattern) ===== */
.listings { max-width: 1000px; margin: 0 auto; display: grid; gap: 24px; }
.listing-card {
    background: var(--white);
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.listing-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(10,107,185,0.12);
}
.listing-card h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin: 0 0 12px;
}
.listing-card .blurb {
    color: #556070;
    font-size: 1rem;
    margin-bottom: 14px;
}
.listing-card .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    margin-bottom: 20px;
}
.listing-card .info-item {
    display: flex;
    flex-direction: column;
}
.listing-card .info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #889;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.listing-card .info-value {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
}
.listing-card .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
}
.listing-card .buttons .btn {
    text-align: center;
    font-size: 0.95rem;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .listing-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .listing-card .buttons {
        flex-direction: row;
        min-width: auto;
    }
    .listing-card .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- location maps (detail pages) ----- */
.location-map {
    max-width: var(--maxw);
    margin: 40px auto;
    padding: 0 20px;
}
.location-map h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 16px;
    text-align: center;
}
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    background: var(--bg);
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ----- stats band ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: var(--maxw); margin: 0 auto; text-align: center; }
.stat .num { font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat .label { margin-top: 10px; font-size: 0.98rem; color: rgba(255,255,255,0.85); }

/* ----- seasonal / content tabs ----- */
.tab-btns { display: flex; justify-content: center; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }
.tab-btn {
    background: transparent; border: 2px solid #dfe6ee; color: var(--navy);
    padding: 10px 28px; border-radius: 50px; font-weight: 600; cursor: pointer;
    font-family: inherit; font-size: 1rem; transition: all 0.25s ease;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----- feature row (text + rectangular image/map) ----- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.feature.reverse .feature-media { order: 2; }
.feature img { width: 100%; height: 440px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-soft); }
.feature h2 { font-size: 2.2rem; color: var(--navy); margin-bottom: 18px; line-height: 1.25; }
.feature p { margin-bottom: 16px; color: #444; }
.feature .map-container { height: 400px; }
@media (max-width: 900px) {
    .feature { grid-template-columns: 1fr; gap: 30px; }
    .feature .map-container { height: 350px; }
}

/* ----- pills / chips ----- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { display: inline-block; background: var(--bg-alt); color: var(--navy); border: 1px solid #d8e2ec; padding: 6px 15px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }
.pill.gold { background: rgba(227,167,47,0.15); color: var(--gold-dark); border-color: rgba(227,167,47,0.4); }

/* ----- callout / tip ----- */
.callout { background: var(--bg-alt); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 22px; margin: 24px auto; max-width: 820px; }
.callout strong { color: var(--navy); }

/* ----- facts / events list ----- */
.facts { max-width: 900px; margin: 0 auto; display: grid; gap: 18px; }
.fact { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid #e6edf3; border-radius: 12px; padding: 22px 24px; text-align: left; }
.fact .when { flex: 0 0 140px; font-weight: 700; color: var(--gold-dark); }
.fact h4 { color: var(--navy); margin-bottom: 6px; font-size: 1.15rem; }
.fact p { margin: 0; color: #555; }

/* ----- spec table (trail / fishing data) ----- */
.spec-table { width: 100%; max-width: 820px; margin: 24px auto; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #e3e9ef; }
.spec-table th { background: var(--bg-alt); color: var(--navy); }

/* ----- breadcrumb / back-link (spoke pages) ----- */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 20px 20px 0; font-size: 0.9rem; color: #889; }
.breadcrumb.after-hero { padding-top: 16px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
a.pill { text-decoration: none; transition: all 0.2s ease; }
a.pill:hover { border-color: var(--blue); color: var(--blue); }

/* ----- CTA band ----- */
.cta-band { position: relative; text-align: center; padding: 100px 20px; color: #fff; background-size: cover; background-position: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10,61,98,0.85), rgba(10,107,185,0.82)); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: 2.5rem; margin-bottom: 16px; }
.cta-band p { max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; opacity: 0.92; }

/* ----- scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    html { scroll-behavior: auto; }
}

/* ----- v2 responsive ----- */
@media (max-width: 992px) {
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}
@media (max-width: 768px) {
    .section { padding: 64px 20px; }
    .section-head h2 { font-size: 2rem; }
    .feature { grid-template-columns: 1fr; gap: 30px; }
    .feature.reverse .feature-media { order: 0; }
    .feature img { height: 300px; }
    .fact { flex-direction: column; gap: 6px; }
    .fact .when { flex-basis: auto; }
}
@media (max-width: 640px) {
    .tile-grid { grid-template-columns: 1fr; }
    .tile.wide { grid-column: span 1; }
    .cta-band h2 { font-size: 2rem; }
}

/* ===================================================================
   Primary navigation dropdowns (nav markup is rendered by main.js)
   =================================================================== */
.has-dropdown { position: relative; }
.header-nav-list .caret { font-size: 0.7em; }
.dropdown {
    position: absolute;
    top: 100%; left: 0;
    margin-top: 12px;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
    padding: 10px;
    list-style: none;
    display: none;
    z-index: 1100;
}
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown li { margin: 0; }
.dropdown a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--navy);
    font-weight: 500;
    white-space: nowrap;
}
.dropdown a:hover { background: var(--bg-alt); opacity: 1; }
.dropdown a[aria-current="page"] { background: var(--bg-alt); }
.dropdown a[aria-current="page"]::after { content: none; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }

@media (max-width: 768px) {
    .header-right { overflow-y: auto; }
    .dropdown {
        position: static;
        display: block;
        margin: 4px 0 8px;
        padding: 0 0 0 14px;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        border-left: 2px solid rgba(255,255,255,0.2);
    }
    .dropdown::before { display: none; }
    .dropdown a { color: rgba(255,255,255,0.82); padding: 8px 0; }
    .dropdown a:hover,
    .dropdown a[aria-current="page"] { background: transparent; color: #fff; }
    .header-nav-list .caret { display: none; }
}

/* ===================================================================
   Advertising slots, cookie consent, and legal prose
   (ad markup + consent banner are injected by main.js)
   =================================================================== */

/* footer privacy link (added by main.js) */
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ad slots — reserve space to avoid layout shift on go-live */
.ad-slot { width: 100%; max-width: var(--maxw); margin: 36px auto; padding: 0 20px; text-align: center; }
.ad-slot .ad-label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #aeb8c4; margin-bottom: 6px; }
.ad-inner {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt);
    border: 1px dashed #cdd8e3;
    border-radius: 10px;
    color: #9aa7b4;
    font-size: 0.85rem;
    overflow: hidden;
}
.ad--leaderboard .ad-inner { min-height: 100px; }
.ad--in-content .ad-inner { min-height: 280px; }
.ad--footer .ad-inner { min-height: 100px; }
.ad-slot .adsbygoogle { display: block; width: 100%; }
/* once a real publisher ID is set, drop the placeholder chrome */
.ads-live .ad-inner { background: transparent; border: 0; min-height: 0; color: inherit; }

/* cookie consent banner */
.consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    background: var(--navy); color: #fff;
    padding: 16px 20px;
    display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.consent p { margin: 0; font-size: 0.92rem; max-width: 720px; }
.consent a { color: #ffd98a; }
.consent .consent-btns { display: flex; gap: 10px; }
.consent button {
    cursor: pointer; border: 0; border-radius: 50px;
    padding: 9px 24px; font-weight: 600; font-family: inherit; font-size: 0.9rem;
}
.consent .accept { background: var(--gold); color: #3a2a06; }
.consent .decline { background: transparent; border: 1px solid rgba(255,255,255,0.55); color: #fff; }

/* legal / long-form prose (privacy policy, terms) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; color: var(--navy); margin: 34px 0 12px; }
.prose p, .prose li { color: #444; margin-bottom: 14px; line-height: 1.85; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--blue); }
