/* Steadfast Smiles Foundation: sunrise over the Franklin Mountains.
   Navy hero with gold rays behind a ridgeline, then a calm white page.
   Red is reserved for the single action on a screen (Give, Apply). */
:root {
  --navy: #13275a;
  --red: #9b1c31;
  --gold: #c7ae72;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --mist: #edf0f6;
  --fg: #14213d;
  --muted: #55607a;
  --line: #d9dee8;
  --brand: #13275a;
  --accent: #9b1c31;
  --btn-bg: #13275a;
  --btn-fg: #ffffff;
  --cta-bg: #9b1c31;
  --cta-fg: #ffffff;
  --hero-bg: #13275a;
  --hero-muted: #c9d2ea;
  --deep: #0f1d44;
  --deep-fg: #e6ebf7;
  --todo-bg: #fff3bf;
  --todo-fg: #5c4a00;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1430; --surface: #101d42; --mist: #0e1a3b; --fg: #eef1f8; --muted: #a3aec9; --line: #24335f;
    --brand: #eef1f8; --accent: #e4687d; --btn-bg: #c7ae72; --btn-fg: #13275a; --cta-bg: #b3243c; --cta-fg: #ffffff;
    --hero-bg: #0f2050; --deep: #060d22; --todo-bg: #4a3d00; --todo-fg: #ffe98a; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.label { font: 600 .72rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; color: var(--brand); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
p + p { margin-top: 1em; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; color: var(--muted); }
.prose h3 { margin: 1.6em 0 .4em; color: var(--brand); }
.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 1px 6px; border-radius: 3px; font-size: .9em; }

/* header */
.nav { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.wordmark svg { width: 30px; height: 36px; flex: none; }
.wordmark b { display: block; font: 700 1.25rem/1 var(--font-display); letter-spacing: .14em; color: var(--brand); }
.wordmark i { display: block; font: 600 .6rem/1 var(--font-body); letter-spacing: .42em; color: var(--accent); font-style: normal; margin-top: 5px; }
.nav ul { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { text-decoration: none; font-size: .84rem; font-weight: 500; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { color: var(--fg); }
.nav ul a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--gold); }

/* buttons */
.btn { display: inline-block; font: 600 .86rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 15px 24px; border-radius: 3px; background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bg); cursor: pointer; }
.btn.cta { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.on-navy { background: var(--gold); border-color: var(--gold); color: #13275a; }
.btn.ghost-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn:hover { filter: brightness(1.08); }
.nav .btn { padding: 11px 18px; }

/* hero */
.hero { background: var(--hero-bg); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: 72px 150px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .sub { margin-top: 22px; font-size: 1.1rem; color: var(--hero-muted); max-width: 52ch; }
.hero .acts, .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .es { margin-top: 28px; font: italic 500 1.15rem/1.3 var(--font-display); color: var(--gold); letter-spacing: .02em; }
.logo-card { background: #fff; border-radius: 6px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); justify-self: center; width: 100%; max-width: 400px; }
.logo-card img { display: block; width: 100%; height: auto; }
.sun { position: absolute; z-index: 1; width: 1000px; height: 1000px; left: 50%; bottom: -520px; transform: translateX(-30%); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(199,174,114,.30) 0 3deg, transparent 3deg 10deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,0) 68%); mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,0) 68%); }
.sun::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, rgba(199,174,114,.55), rgba(199,174,114,0) 70%); }
.ridge { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; }
.ridge path { fill: var(--bg); }
.ridge .far { opacity: .22; }

/* page header (inner pages) */
.phead { background: var(--hero-bg); color: #fff; position: relative; overflow: hidden; }
.phead .wrap { position: relative; z-index: 2; padding-block: 56px 110px; }
.phead h1 { color: #fff; max-width: 18ch; }
.phead .sub { margin-top: 18px; color: var(--hero-muted); font-size: 1.1rem; max-width: 56ch; }
.phead .label { color: var(--gold); }
.phead .sun { width: 800px; height: 800px; bottom: -420px; transform: translateX(10%); }

/* sections */
section { padding-block: 72px; }
section.tight { padding-block: 40px 0; }
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-block: 1px solid var(--line); }
.caps p { font: 600 1.55rem/1.15 var(--font-display); color: var(--brand); padding: 26px 20px; border-left: 1px solid var(--line); text-wrap: balance; margin: 0; }
.caps p:first-child { border-left: 0; padding-left: 0; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 36px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.panel.vet { border-top: 5px solid var(--brand); }
.panel.neighbor { border-top: 5px solid var(--accent); }
.panel h3 { margin-bottom: 12px; }
.panel p { color: var(--muted); }
.panel .more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: var(--accent); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 36px; list-style: none; padding: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--brand); padding-top: 16px; }
.steps li::before { content: "Step " counter(s); display: block; font: 600 .7rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.steps b { display: block; font: 600 1.5rem/1.1 var(--font-display); color: var(--brand); margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: .95rem; display: block; }
.local { background: var(--mist); }
.local .grid, .two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.local .es { font: italic 500 1.4rem/1.3 var(--font-display); color: var(--accent); margin-top: 18px; }
.peaks { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--hero-bg); }
.give { background: var(--hero-bg); color: #fff; text-align: center; position: relative; overflow: hidden; }
.give h2 { color: #fff; }
.give p { color: var(--hero-muted); margin: 18px auto 0; max-width: 54ch; }
.give .acts { justify-content: center; }
.give .wrap { position: relative; z-index: 2; }
.give .rays { position: absolute; inset: -60% -10% auto -10%; height: 140%; background: repeating-conic-gradient(from 0deg at 50% 100%, rgba(199,174,114,.16) 0 3deg, transparent 3deg 10deg); z-index: 1; -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 0, transparent 70%); mask-image: radial-gradient(ellipse at 50% 100%, #000 0, transparent 70%); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.cards .panel h3 { font-size: 1.5rem; }
details { border-bottom: 1px solid var(--line); padding-block: 18px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font: 600 1.35rem/1.2 var(--font-display); color: var(--brand); }
details p { margin-top: 10px; color: var(--muted); max-width: 66ch; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 30px; list-style: none; padding: 0; }
.values li { border-left: 4px solid var(--gold); padding-left: 16px; }
.values b { display: block; font: 600 1.4rem/1.1 var(--font-display); color: var(--brand); margin-bottom: 6px; }
.values span { color: var(--muted); font-size: .95rem; }
.quote { font: 500 clamp(1.6rem, 3.4vw, 2.3rem)/1.25 var(--font-display); color: var(--brand); max-width: 28ch; text-wrap: balance; }

/* forms */
form { display: grid; gap: 16px; max-width: 560px; }
label { font: 600 .8rem/1.2 var(--font-body); letter-spacing: .04em; display: block; margin-bottom: 6px; }
input, textarea, select { width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; }
textarea { min-height: 140px; resize: vertical; }
.notice { border-left: 4px solid var(--accent); background: var(--mist); padding: 14px 16px; font-size: .92rem; color: var(--muted); max-width: 62ch; }
#formstatus { font-size: .92rem; min-height: 1.4em; }

/* footer */
.foot { background: var(--deep); color: var(--deep-fg); padding-block: 48px; font-size: .88rem; }
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot b { font: 700 1.1rem/1 var(--font-display); letter-spacing: .14em; display: block; margin-bottom: 10px; }
.foot .dim { color: #9fabc9; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; color: var(--deep-fg); }
.foot a:hover { text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid #24335f; padding-top: 20px; color: #9fabc9; font-size: .8rem; }

@media (max-width: 860px) {
  .hero .wrap, .local .grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 48px 130px; }
  .caps p { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .caps p:first-child { border-top: 0; }
  section { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
