/*
Theme Name: SDRRC Current
Theme URI: https://sdrrc.org
Author: SDRRC
Description: A dark, modern WordPress theme for the San Diego Rod & Reel Club.
Version: 3.6.2
Text Domain: sdrrc
*/

:root {
    --ink: #f7f8fa;
    --muted: #9499a6;
    --faint: #626774;
    --bg: #07080b;
    --bg-2: #0b0d12;
    --panel: #101218;
    --panel-2: #151821;
    --line: rgba(255, 255, 255, .09);
    --line-bright: rgba(255, 255, 255, .16);
    --blue: #5e8cff;
    --blue-bright: #78a0ff;
    --cyan: #66d9ff;
    --green: #55d6a0;
    --max: 1240px;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% -20%, rgba(75, 111, 218, .14), transparent 38rem),
        var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; }
.skip-link:focus { top: 16px; }

.site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(180deg, rgba(7, 8, 11, .82), rgba(7, 8, 11, .48));
    backdrop-filter: blur(16px) saturate(125%);
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
    background: rgba(7, 8, 11, .78);
    border-color: var(--line);
    backdrop-filter: blur(20px) saturate(140%);
}
.nav-shell { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.brand-mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid var(--line-bright); border-radius: 9px;
    background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
    overflow: hidden;
}
.brand-mark img { width: 30px; max-height: 30px; object-fit: contain; }
.brand strong { display: block; font-size: .9rem; letter-spacing: .12em; }
.brand small { display: block; color: var(--faint); font-size: .66rem; line-height: 1.25; margin-top: 2px; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-left: auto; }
.primary-nav a {
    color: var(--muted); padding: 9px 11px; border-radius: 8px;
    font-size: .82rem; font-weight: 500; text-decoration: none; transition: .2s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); background: rgba(255,255,255,.055); }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 0 20px; border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px; color: #fff; background: linear-gradient(180deg, #6b96ff, #4f7de9);
    box-shadow: inset 0 1px rgba(255,255,255,.2), 0 8px 30px rgba(67,105,217,.22);
    font-size: .88rem; font-weight: 600; text-decoration: none; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-secondary { background: rgba(255,255,255,.055); box-shadow: inset 0 1px rgba(255,255,255,.06); color: var(--ink); }
.button-small { min-height: 38px; padding: 0 15px; font-size: .8rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; }

.hero {
    position: relative; min-height: 820px; display: grid; align-items: center;
    overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(7,8,11,.96) 5%, rgba(7,8,11,.74) 45%, rgba(7,8,11,.28)),
        linear-gradient(0deg, var(--bg), transparent 45%, rgba(7,8,11,.2));
}
.hero::after, .surface-grid::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 80%);
}
.hero-content { position: relative; z-index: 1; max-width: 850px; padding: 160px 0 100px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
    color: var(--blue-bright); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 18px currentColor; }
.hero h1 { max-width: 820px; margin-bottom: 25px; }
.hero h1 span, .gradient-text {
    color: transparent; background: linear-gradient(100deg, #fff 5%, #95adff 55%, #69d7ff);
    background-clip: text; -webkit-background-clip: text;
}
.hero-copy { max-width: 640px; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 58px; }
.hero-proof strong { display: block; font-size: 1.35rem; letter-spacing: -.04em; }
.hero-proof span { color: var(--faint); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.section { padding: 112px 0; position: relative; }
.section-tight { padding: 78px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-header > div { max-width: 720px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 620px; margin-bottom: 0; font-size: 1.05rem; }
.surface-grid { position: relative; overflow: hidden; }
.surface-grid::before { opacity: .35; mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%); }
.panel {
    position: relative; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.panel:hover { border-color: var(--line-bright); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 28px; min-height: 245px; }
.card-index { color: var(--blue-bright); font: 600 .7rem/1 Inter; letter-spacing: .12em; }
.card h3 { margin: 70px 0 10px; font-size: 1.15rem; }
.card p { margin-bottom: 0; font-size: .9rem; }
.card-link { position: absolute; inset: 0; }
.icon-box {
    width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line);
    border-radius: 11px; color: var(--blue-bright); background: rgba(94,140,255,.08);
}

.stats-bar { border-block: 1px solid var(--line); background: rgba(255,255,255,.014); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 45px 28px; border-right: 1px solid var(--line); }
.stat:first-child { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.06em; line-height: 1; }
.stat span { display: block; color: var(--faint); margin-top: 10px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 620px; }
.feature-media { position: relative; min-height: 520px; overflow: hidden; }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 90px); border-left: 1px solid var(--line); }
.feature-copy h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.feature-list { display: grid; gap: 0; margin: 30px 0; }
.feature-list div { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.feature-list b { color: var(--ink); min-width: 24px; }

.gallery-preview { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 240px 240px; gap: 12px; }
.gallery-preview a, .gallery-item button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; background: var(--panel); cursor: pointer; }
.gallery-preview a:first-child { grid-row: span 2; }
.gallery-preview img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-preview a:hover img, .gallery-item button:hover img { transform: scale(1.035); }
.gallery-preview span {
    position: absolute; inset: auto 16px 14px; color: white; font-size: .75rem; font-weight: 600;
    text-shadow: 0 2px 14px #000;
}

.page-hero { position: relative; min-height: 520px; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { background: linear-gradient(0deg, var(--bg) 3%, rgba(7,8,11,.45) 70%, rgba(7,8,11,.65)); }
.page-hero-content { padding: 170px 0 75px; max-width: 850px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 18px; }
.page-hero p { max-width: 650px; font-size: 1.1rem; }

.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.story-grid h2 { position: sticky; top: 120px; }
.prose { color: var(--muted); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .5em; }
.board-grid, .benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.person, .benefit { padding: 24px; min-height: 170px; }
.person span, .benefit span { color: var(--blue-bright); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.person h3, .benefit h3 { margin: 54px 0 5px; }
.person p, .benefit p { font-size: .82rem; margin-bottom: 0; }

.event-list { display: grid; gap: 12px; }
.event-card { display: grid; grid-template-columns: 100px 1fr auto; gap: 28px; align-items: center; padding: 25px 28px; text-decoration: none; }
.event-date { text-align: center; border-right: 1px solid var(--line); }
.event-date strong { display: block; font-size: 2rem; line-height: 1; }
.event-date span { color: var(--blue-bright); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.event-card h3 { margin-bottom: 7px; }
.event-card p { margin: 0; font-size: .86rem; }
.event-arrow { color: var(--faint); font-size: 1.4rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; }
.gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-item figcaption { display: none; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 42px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--muted); }
.pagination .current, .pagination a:hover { color: white; border-color: var(--blue); background: rgba(94,140,255,.12); }
.lightbox { width: min(92vw, 1100px); max-height: 90vh; padding: 0; border: 1px solid var(--line-bright); border-radius: 16px; color: white; background: #050609; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(10px); }
.lightbox img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox footer { display: flex; justify-content: space-between; padding: 15px 18px; color: var(--muted); }
.lightbox button { border: 0; background: transparent; cursor: pointer; color: white; }

.newsletter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.newsletter-card { padding: 26px; min-height: 220px; display: flex; flex-direction: column; text-decoration: none; }
.newsletter-card .issue { color: var(--blue-bright); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.newsletter-card h3 { margin: auto 0 10px; font-size: 1.45rem; }
.newsletter-card small { color: var(--faint); }
.newsletter-card .arrow { position: absolute; top: 24px; right: 24px; color: var(--faint); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.contact-details, .form-panel { padding: clamp(28px, 5vw, 55px); }
.contact-row { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-row span { display: block; color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-row a, .contact-row strong { display: block; margin-top: 5px; text-decoration: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: .78rem; }
.field input, .field textarea, .field select {
    width: 100%; color: white; background: rgba(255,255,255,.035); border: 1px solid var(--line);
    border-radius: 10px; padding: 13px 14px; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(94,140,255,.1); }
.field textarea { min-height: 150px; resize: vertical; }

.resource-shell { padding: 120px 0 80px; }
.resource-intro { max-width: 760px; margin-bottom: 45px; }
.resource-intro h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.resource-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource-card { min-height: 250px; padding: 28px; text-decoration: none; }
.resource-card h2 { margin: 90px 0 9px; font-size: 1.3rem; }
.resource-card p { font-size: .86rem; margin: 0; }

.shop-stage { min-height: 75vh; display: grid; place-items: center; text-align: center; padding: 160px 20px 90px; }
.shop-stage > div { max-width: 760px; }
.shop-stage h1 { font-size: clamp(3.5rem, 9vw, 7rem); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

.site-footer { border-top: 1px solid var(--line); padding: 80px 0 25px; background: #06070a; }
.footer-cta { min-height: 320px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 55px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(94,140,255,.1), transparent 50%); }
.footer-cta > * { position: relative; z-index: 1; }
.footer-cta h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 50px; padding: 70px 0; }
.footer-brand p { max-width: 360px; margin-top: 20px; font-size: .86rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .8rem; }
.footer-links strong { margin-bottom: 8px; color: white; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-links span { color: var(--faint); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .72rem; }

@media (max-width: 980px) {
    .nav-cta { margin-left: auto; }
    .nav-toggle { display: block; order: 3; }
    .nav-toggle span:not(.screen-reader-text) { display: block; width: 21px; height: 1px; margin: 6px; background: white; }
    .primary-nav {
        display: none; position: fixed; inset: 74px 0 0; padding: 25px 20px;
        flex-direction: column; align-items: stretch; justify-content: start; background: rgba(7,8,11,.98);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { font-size: 1.2rem; padding: 14px; }
    .card-grid, .resource-categories { grid-template-columns: repeat(2, 1fr); }
    .board-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .newsletter-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .shell, .narrow { width: min(calc(100% - 28px), var(--max)); }
    .brand small { display: none; }
    .nav-cta { display: none; }
    .hero { min-height: 760px; }
    .hero-content { padding-top: 130px; }
    .hero-proof { gap: 22px; }
    .section { padding: 80px 0; }
    .section-header { display: block; }
    .section-header .button { margin-top: 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { border-bottom: 1px solid var(--line); }
    .card-grid, .resource-categories, .newsletter-grid, .contact-grid, .story-grid { grid-template-columns: 1fr; }
    .feature-split { grid-template-columns: 1fr; }
    .feature-copy { border-left: 0; border-top: 1px solid var(--line); }
    .feature-media { min-height: 380px; }
    .gallery-preview { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
    .gallery-preview a:first-child { grid-column: span 2; grid-row: auto; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item:nth-child(7n + 1) { grid-column: span 2; }
    .board-grid, .benefit-grid { grid-template-columns: 1fr; }
    .event-card { grid-template-columns: 68px 1fr; gap: 16px; padding: 20px 14px; }
    .event-arrow { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .footer-cta { display: block; padding: 34px 26px; }
    .footer-cta .button { margin-top: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-top: 7px; }
}
