/* =========================
   Drift Fly Fishing Club
   Brand styling (calm, premium, unspoilt)
   Palette:
   #0E2A3A (Deep Atlantic)
   #2F4F4F (Reservoir Green)
   #6B7280 (Slate)
   #E5E7EB (Mist)
   #F7F7F5 (Off-White)
   ========================= */

:root {
    --primary: #0E2A3A;
    --secondary: #2F4F4F;
    --muted: #6B7280;
    --mist: #E5E7EB;
    --offwhite: #F7F7F5;
    --card: #ffffff;

    --shadow: 0 12px 32px rgba(14, 42, 58, .10);
    --shadow-soft: 0 10px 24px rgba(14, 42, 58, .08);

    --radius: 18px;
    --radius-sm: 12px;

    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--offwhite);
    color: var(--primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(47, 79, 79, .35);
    outline-offset: 3px;
    border-radius: 10px;
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 86px 0;
}

.section--alt {
    background: var(--mist);
}

.section--tight {
    padding: 64px 0;
}

.grid {
    display: grid;
    gap: 22px;
}

/* Ensure [hidden] always wins (important for mobile nav) */
[hidden] {
    display: none !important;
}

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 247, 245, .90);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, .85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name strong {
    font-weight: 800;
    letter-spacing: .2px;
}

.brand-name span {
    font-size: 13px;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--primary);
}

.nav a:hover {
    background: rgba(229, 231, 235, .70);
}

.nav a.is-active {
    background: rgba(47, 79, 79, .12);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(229, 231, 235, 1);
    background: rgba(229, 231, 235, .7);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--primary);
    font-weight: 800;
}

/* Mobile nav: CLOSED by default */
.mobile-nav {
    display: none;
    padding: 0 0 14px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(229, 231, 235, 1);
    color: var(--primary);
}

/* Mobile nav: OPEN only when toggled */
.mobile-nav.is-open {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .08s ease, background .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
    user-select: none;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--secondary);
    color: var(--offwhite);
    box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
    filter: brightness(1.03);
}

.btn--ghost {
    background: rgba(229, 231, 235, .75);
    border-color: rgba(229, 231, 235, 1);
    color: var(--primary);
}

.btn--ghost:hover {
    background: rgba(229, 231, 235, .95);
}

.btn--outline-light {
    background: transparent;
    border-color: rgba(247, 247, 245, .92);
    color: var(--offwhite);
}

.btn--outline-green {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn--outline-green:hover {
    background: rgba(47, 79, 79, .08);
}

/* Hero */
.hero {
    position: relative;
    color: var(--offwhite);
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero-inner {
    max-width: 950px;
    display: grid;
    gap: 18px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(229, 231, 235, .95);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(247, 247, 245, .9);
    box-shadow: 0 0 0 3px rgba(247, 247, 245, .12);
}

h1,
h2,
h3 {
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: .2px;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.12;
}

.hero p {
    margin: 0;
    color: rgba(229, 231, 235, .95);
    font-size: 16px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.hero-note {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(229, 231, 235, .9);
}

.hero-home {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

/* Video layer */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Your existing gradients recreated as an overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(rgba(14, 42, 58, .30), rgba(14, 42, 58, .30)),
        radial-gradient(1100px 520px at 15% 20%, rgba(47, 79, 79, .30), transparent 60%);
}

/* Content always on top */
.hero .container,
.hero-inner {
    position: relative;
    z-index: 2;
}

/* Page header (internal pages) */
.page-hero {
    padding: 72px 0 48px;
    background:
        linear-gradient(rgba(14, 42, 58, .10), rgba(14, 42, 58, .10)),
        radial-gradient(900px 450px at 20% 20%, rgba(47, 79, 79, .18), transparent 60%);
    border-bottom: 1px solid rgba(229, 231, 235, .9);
}

.page-hero h1 {
    color: var(--primary);
    font-size: clamp(30px, 3.2vw, 44px);
    margin: 0 0 10px;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 820px;
    line-height: 1.9;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, .9);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card-links {
    margin-top: 8px;
}

.card-links a {
    color: var(--muted);
    font-size: 0.95rem;
    padding: 6px 0;
    opacity: .95;
}

.pillars {
    margin-top: -52px;
    padding-bottom: 52px;
    position: relative;
    z-index: 2;
}

.pillars-grid {
    grid-template-columns: repeat(4, 1fr);
}

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(47, 79, 79, .08);
    display: grid;
    place-items: center;
    color: var(--secondary);
    margin-bottom: 14px;
}

.icon-badge svg {
    width: 22px;
    height: 22px;
}

.feature {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 28px;
}

.feature-media {
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(14, 42, 58, .10);
}

.feature-media img {
    width:100%;
    border-radius: 22px;
    display:block;
}

h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
}

.lead {
    margin: 0 0 16px;
    color: rgba(14, 42, 58, .90);
    font-size: 16px;
    line-height: 1.9;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.statement {
    text-align: center;
}

.statement-inner {
    max-width: 860px;
    margin: 0 auto;
}

.divider {
    width: 120px;
    height: 2px;
    background: rgba(229, 231, 235, 1);
    margin: 18px auto;
    border-radius: 999px;
}

.quote {
    font-style: italic;
    font-size: 20px;
    color: var(--primary);
    margin: 0;
}

/* Lists */
.list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.callout .list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: rgba(229, 231, 235, .92);
}

.list li {
    margin: 8px 0;
}

/* Two-column content */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    align-items: start;
}

.callout {
    background: var(--primary);
    color: var(--offwhite);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .08);
}

.callout h3 {
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    margin: 0 0 8px;
    font-size: 18px;
}

.callout p {
    margin: 0 0 14px;
    color: rgba(229, 231, 235, .92);
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--offwhite);
    padding: 64px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.footer-title {
    font-weight: 800;
    letter-spacing: .2px;
    margin: 0 0 10px;
}

.footer-text {
    margin: 0;
    color: rgba(229, 231, 235, .92);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
}

.footer-links a {
    color: rgba(247, 247, 245, .95);
    font-size: 14px;
    padding: 0;
    opacity: .95;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(229, 231, 235, .15);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: rgba(229, 231, 235, .85);
    font-size: 13px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(247, 247, 245, .95);
    opacity: .95;
}

.footer-social i {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(247, 247, 245, .12);
    display: grid;
    place-items: center;
    font-size: 16px;
}

.footer-social:hover {
    opacity: 1;
}

.footer-social:hover i {
    background: rgba(247, 247, 245, .22);
}


/* Responsive */
@media (max-width: 1020px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature {
        grid-template-columns: 1fr;
    }

    .feature-media {
        aspect-ratio: 1 / 1;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* IMPORTANT: keep mobile nav CLOSED by default */
    .mobile-nav {
        display: none;
    }

    /* show only when JS toggles .is-open */
    .mobile-nav.is-open {
        display: block;
    }

    .hero {
        padding: 100px 0 84px;
    }

    .pillars {
        margin-top: -40px;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 34px);
    }

    .section {
        padding: 70px 0;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Float tubing - image first on mobile */
    #float .grid.feature {
        display: flex;
        flex-direction: column;
    }

    #float .feature-media {
        order: 1;
        width: 100%;
        min-width: 100%;
    }

    #float .grid.feature>div:first-child {
        order: 2;
        width: 100%;
    }

    /* Stocking section stacked */
    #stocking .grid {
        grid-template-columns: 1fr !important;
    }

    /* Our trout gallery – stack all grids */
    #gallery .grid {
        grid-template-columns: 1fr !important;
    }

    /* Fees gallery – stack all grids */
    .section--tight .grid {
        grid-template-columns: 1fr !important;
    }

    /* Membership – stack all grids */
    #prices .grid {
        grid-template-columns: 1fr !important;
    }

    /* Prevent cards from overflowing viewport on mobile */
    #prices .card {
        max-width: 100%;
        overflow: hidden;
    }

    /* Ensure table scrolls instead of forcing width */
    #prices .card>div {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide the TOC card on mobile */
    #toc {
        display: none;
    }

    /* Force the grid to a single full-width column */
    .section .grid {
        grid-template-columns: 1fr !important;
    }

    /* Make sure the remaining card fills the width */
    .section .grid>.card {
        width: 100%;
        max-width: 100%;
    }
}