/*
Theme Name: Fish4Cast
Theme URI: https://fish4cast.net
Author: Fish4Cast
Description: Light classic theme for the Fish4Cast fly-fishing forecast. Forest green, gold and cream, from the Riverbank logo. Pages come from the fish4cast-data plugin.
Version: 0.1.23
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: Fish4Cast
*/

:root {
	--green: #1E3A2B;
	--green-2: #2a4f3b;
	--deep: #132519;
	--gold: #C8A24E;
	--gold-hi: #D8B562;
	--gold-ink: #6f5110;
	--cream: #F4F1E6;
	--paper: #FBFAF5;
	--ink: #16261C;
	--muted: #4a5a50;
	--line: #dfe3d8;
	--mist: #C9D3C6;
	--serif: "Tinos", "Liberation Serif", "Times New Roman", Georgia, serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 14px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 12px; }
h2 { font-size: clamp(25px, 3.4vw, 34px); margin: 0 0 10px; }
h3 { font-size: 21px; margin: 0 0 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-green { background: var(--green); color: #fff !important; }
.btn-green:hover { background: var(--green-2); }
.btn-line { border-color: rgba(244,241,230,.55); color: var(--cream) !important; }
.btn-line:hover { background: rgba(244,241,230,.08); }

/* Header */
.site-head { background: var(--deep); color: var(--cream); border-bottom: 3px solid var(--gold); position: relative; z-index: 20; }
.site-head-in { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-family: var(--serif); font-size: 26px; letter-spacing: .02em; }
.brand img { height: 56px; width: auto; display: block; }
.brand:hover { color: #fff; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; }
.site-nav a { color: var(--mist); text-decoration: none; padding: 10px 0; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav .btn { padding: 10px 16px; min-height: 44px; }
.site-nav .nav-gap { flex: 1 1 auto; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: transparent; color: var(--cream); border: 1px solid rgba(244,241,230,.4); border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
	.js .nav-toggle { display: inline-flex; }
	.js .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
	.js .site-nav.open { display: flex; }
	.site-nav a { padding: 12px 4px; border-top: 1px solid rgba(244,241,230,.12); }
	.site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
	.site-nav .btn { margin-top: 10px; border-top: 0; }
	.site-nav .nav-gap { display: none; }
	.brand img { height: 46px; }
}

/* Hero */
.hero { background: radial-gradient(120% 100% at 30% 0%, #24452f 0%, var(--deep) 72%); color: var(--cream); }
.hero-in { display: flex; flex-wrap: wrap; gap: 36px 48px; align-items: center; padding-block: clamp(32px, 6vw, 64px) clamp(40px, 6vw, 72px); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-logo { width: 100%; max-width: 600px; display: block; }
.hero h1 { color: #fff; margin: 4px 0 0; font-size: clamp(36px, 5.4vw, 58px); }
.hero h2 { color: var(--mist); font-family: var(--sans); font-weight: 500; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; max-width: 36ch; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
/* Photo hero (Dec 3, 2026): licensed Adobe Stock 375418485, left fade keeps the type readable. */
.hero-photo { position: relative; background-color: var(--deep); background-image: linear-gradient(90deg, rgba(19,37,25,.92) 0%, rgba(19,37,25,.78) 34%, rgba(19,37,25,.25) 62%, rgba(19,37,25,.05) 100%), var(--hero-img); background-size: cover; background-position: center 60%; }
.hero-photo .hero-in { min-height: clamp(520px, 74vh, 760px); }
.hero-photo .hero-copy { flex: 0 1 600px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-photo .hero-logo { max-width: 520px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.hero-apps { margin: 2px 0 0; color: var(--mist); font-size: 14px; letter-spacing: .02em; }
@media (max-width: 700px) {
	.hero-photo { background-image: linear-gradient(180deg, rgba(19,37,25,.86) 0%, rgba(19,37,25,.72) 55%, rgba(19,37,25,.35) 100%), var(--hero-img-phone); background-position: center 70%; }
	.hero-photo .hero-in { min-height: 0; padding-block: 28px 140px; }
}
/* Salmon and steelhead: set it and forget it */
.salmon { background: var(--green); color: var(--cream); }
.salmon-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.salmon-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.3); border-bottom: 4px solid var(--gold); }
.salmon-copy { min-width: 0; }
.salmon h2 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); margin: 6px 0 10px; }
.salmon-lede { font-size: clamp(18px, 2vw, 21px); color: var(--cream); margin: 0 0 18px; max-width: 34ch; }
.salmon-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.salmon-list li { position: relative; padding-left: 26px; color: var(--mist); }
.salmon-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.salmon-list b { color: #fff; }
@media (max-width: 800px) { .salmon-in { grid-template-columns: 1fr; } }
/* Live forecast example, now below the salmon section */
.live { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: clamp(40px, 6vw, 64px) 8px; }
.live .lede { margin-bottom: 0; }
@media (max-width: 900px) { .live { grid-template-columns: 1fr; } }

.eyebrow { margin: 0; color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }

/* Live example card */
.example { flex: 1 1 400px; min-width: 0; margin: 0; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.28); border-top: 4px solid var(--gold); }
.example figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.example figcaption b { font-family: var(--serif); font-size: 19px; }
.example figcaption span { font-size: 12px; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: 56px repeat(var(--n), minmax(0, 1fr)); gap: 6px; font-size: 12px; }
.ex-date { text-align: center; color: var(--muted); display: flex; flex-direction: column; }
.ex-date b { color: var(--ink); font-size: 13px; }
.ex-lab { display: flex; align-items: center; font-weight: 700; }
.ex-cell { border-radius: 9px; padding: 8px 2px; text-align: center; color: #fff; display: flex; flex-direction: column; }
.ex-cell b { font-size: 18px; line-height: 1.1; }
.g-green { background: #217a3c; } .g-orange { background: #b85c00; } .g-red { background: #c0392b; } .g-unset { background: #2f6b8f; } .g-none { background: #e3e8ea; color: var(--muted); }
.ex-fish { grid-column: span var(--n); background: #f1ede0; border-radius: 9px; padding: 9px 10px; font-size: 13px; }
.ex-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Sections */
.track { padding-block: clamp(44px, 6vw, 72px) 20px; }
.track-head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; }
.track-fish { width: 150px; flex: 0 0 150px; margin-bottom: -10px; }
@media (max-width: 700px) { .track-fish { display: none; } }
.lede { color: var(--muted); max-width: 68ch; margin: 0 0 24px; font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0 0 10px; color: #26362c; }
.card p:last-child { margin: 0; }
.card .why { color: var(--muted); }

.plans { padding-block: 40px 20px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { margin: 0; }
.price { margin: 0; color: var(--muted); }
.price b { font-size: 34px; color: var(--ink); font-family: var(--serif); }
.price span { display: block; font-size: 15px; }
.price span b { font-size: 17px; font-family: var(--sans); }
.trial { margin: 0; color: var(--green); font-weight: 600; }
.plan ul { margin: 0; padding-left: 20px; line-height: 1.75; }
.plan .btn { margin-top: auto; }
.plan-dark { background: var(--green); color: var(--cream); border-color: var(--green); }
.plan-dark h3, .plan-dark .price b { color: #fff; }
.plan-dark .price, .plan-dark .price span { color: var(--mist); }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--deep); color: var(--cream); border-radius: var(--radius); padding: 26px; margin-block: 30px 60px; border-left: 6px solid var(--gold); }
.band h2 { color: #fff; margin: 0 0 4px; font-size: 27px; }
.band p { margin: 0; color: var(--mist); }

/* Partners page */
.who { list-style: none; margin: 0; padding: 0; flex: 1 1 320px; display: grid; gap: 12px; }
.who li { background: rgba(244,241,230,.07); border: 1px solid rgba(244,241,230,.18); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; }
.who b { color: #fff; font-family: var(--serif); font-size: 20px; }
.who span { color: var(--mist); }
.steps { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 10px; max-width: 760px; font-size: 17px; }
.apply { padding-block: 30px 70px; }

/* Generic pages */
.pg { padding-block: 28px 64px; }
.page-title { margin-bottom: 18px; }
.page-body { max-width: 760px; }
.pg.page-wide .page-body, .page-body:has(.f4c-menu), .page-body:has(.f4c-states) { max-width: none; }
.page-body > p { margin: 0 0 16px; }

/* Footer */
.site-foot { background: var(--deep); color: var(--mist); border-top: 3px solid var(--gold); }
.site-foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; padding-block: 28px max(28px, env(safe-area-inset-bottom)); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand b { display: block; color: #fff; font-family: var(--serif); font-size: 20px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot-nav a { color: var(--cream); text-decoration: none; padding: 8px 0; }
.foot-nav a:hover { text-decoration: underline; }
.foot-credits { grid-column: 1 / -1; margin: 0; max-width: 90ch; }
.foot-copy { grid-column: 1 / -1; margin: 0; color: #93a397; }
@media (max-width: 700px) { .site-foot-in { grid-template-columns: 1fr; } }

/* Plugin pages sit on cream: keep their cards white-ish. */
.f4c-scroll, .f4c-menu ul, .f4c-cta { background: var(--paper) !important; }
.foot-partner { grid-column: 1 / -1; margin: 0; color: var(--cream); }
.foot-partner a { color: var(--gold-hi); }

/* Footer contact line (0.1.6) */
.foot-contact { grid-column: 1 / -1; margin: 0; color: var(--cream); }
.foot-contact a { color: var(--gold-hi); }
.foot-contact b { margin-right: 6px; }
.foot-contact a { white-space: nowrap; }
.foot-contact-note { opacity: .75; font-size: .9em; }

/* Partners page: sign-up beside the content on desktop, a floating button on phones (Dec 1, 2026) */
.partner-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 40px; align-items: start; }
.partner-main { min-width: 0; }
.partner-main > section { margin-top: 36px; }
.partner-side { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 2px solid #1E3A2B; border-radius: 16px; padding: 20px 20px 8px; margin-top: 36px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.admin-bar .partner-side { top: 52px; max-height: calc(100vh - 72px); }
.partner-side h2 { margin-top: 0; }
.partner-side .f4c-form input:not([type=checkbox]):not([type=radio]), .partner-side .f4c-form select, .partner-side .f4c-form textarea { max-width: 100%; }
.partner-main .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.partner-float { display: none; }
@media (max-width: 900px) {
	.partner-cols { grid-template-columns: 1fr; gap: 0; }
	.partner-side { position: static; max-height: none; overflow: visible; }
	.partner-float { display: block; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 50; text-align: center; padding: 15px 18px; font-size: 17px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; }
	.partner-float.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
	body.page-template-page-partners, .partner-cols { padding-bottom: 70px; }
}

/* Partners: earn section */
.earn .card h3 { color: #1f4d2b; }
.earn .fine { font-size: .9rem; color: #5b6357; max-width: 70ch; margin-top: 10px; }

/* Footer social icons */
.foot-social { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.foot-social span { font-weight: 600; }
.foot-social a { color: inherit; opacity: .85; display: inline-flex; }
.foot-social a:hover, .foot-social a:focus-visible { opacity: 1; color: #c9a54a; }
