/* ==========================================================================
   FRESH START YOUTH SERVICES INC
   Editorial Nonprofit Design System
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Warm Grounded Palette */
  --ink: #122436;             /* Deep Oxford Navy Ink */
  --ink-dark: #0a1522;        /* Midnight Navy */
  --ink-muted: #4a5b6e;       /* Calm Slate */
  --ink-light: #738496;       /* Soft Slate */

  /* Foundation Identity Accents */
  --accent: #b64a32;          /* Rich Terracotta Brick */
  --accent-hover: #9c3c26;    /* Deep Rust */
  --accent-soft: #f6eee8;     /* Soft Terracotta Tint */

  /* Natural Surfaces & Organic Lines */
  --line: #ded7cb;            /* Soft Warm Divider */
  --canvas: #faf8f4;          /* Warm Ivory / Linen Canvas */
  --surface: #ffffff;         /* Pure Card White */
  --surface-warm: #f2eee6;    /* Natural Parchment */

  /* Classic Typography Stack */
  --font-serif: Georgia, "Times New Roman", Garamond, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

button, input, textarea, select {
  font: inherit;
}

address {
  font-style: normal;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
}
.skip:focus {
  top: 10px;
  background: white;
  color: var(--ink);
  padding: 12px 20px;
  border: 1px solid var(--line);
}

.wrap {
  width: min(1300px, 92%);
  margin: 0 auto;
}

/* Headings & Text */
h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 6.2vw, 84px);
}

h2 {
  font-size: clamp(36px, 4.5vw, 62px);
}

h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--ink);
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

p {
  max-width: 65ch;
  color: var(--ink-muted);
}

.lede {
  font-size: 21px;
  line-height: 1.6;
  max-width: 50ch;
  color: var(--ink-muted);
}

/* Clean Editorial Eyebrow (No SaaS Pill) */
.eyebrow {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink);
}

.brand:hover {
  opacity: 1;
}

.brand-crest {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: block;
}

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* Header & Navigation */
.mast {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 4px 0;
}

nav a:hover {
  color: var(--accent);
}

nav a[aria-current=page] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Classic Foundation Buttons (No AI glowing drop-shadows) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--ink-dark);
  color: #ffffff !important;
}

.btn.secondary {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}

.btn.secondary:hover {
  background: rgba(18, 36, 54, 0.06);
}

.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white !important;
}

.btn.accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Hero Section */
.hero-s {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 65px 0 75px;
  gap: 60px;
  align-items: center;
}

.hero-s .eyebrow {
  margin-bottom: 18px;
}

.hero-s h1 {
  margin-bottom: 22px;
}

.hero-s figure {
  margin: 0;
  position: relative;
  height: 520px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-warm);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--canvas);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 13px;
  border: 1px solid var(--line);
}

/* Organization Snapshot Strip (Editorial Wireframe Grid) */
.s-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 auto;
}

.s-strip > div {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.s-strip > div:first-child {
  padding-left: 0;
}

.s-strip > div:last-child {
  border-right: none;
}

.s-strip span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.s-strip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.25;
}

/* Sections */
.section {
  padding: 95px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.s-focus .focus-head {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
  align-items: start;
}

/* Program Rows (Clean Horizontal Editorial Divides) */
.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 70px 1fr 1.3fr;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  align-items: baseline;
}

.row .number {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--accent);
}

.row h3 {
  margin: 0;
  font-size: 24px;
}

.row p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Story Section -> Deep Slate Contrast */
.s-story {
  background: var(--ink);
  color: #ffffff;
  padding: 95px 0;
}

.s-story h2 {
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 400;
}

.s-story .eyebrow {
  color: #e6b8a2;
}

.s-story .story-symbol {
  font-size: 80px;
  line-height: 1;
  color: #e6b8a2;
}

.s-story .split {
  align-items: center;
}

.s-story p {
  color: #cfd9e3;
}

.s-story a {
  color: #ffffff;
}

/* Impact Numbers Section */
.s-impact {
  border-top: 1px solid var(--line);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 45px;
}

.impact-block {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.impact-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.impact-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Official Public Record Card */
.record {
  background: var(--surface-warm);
  border: 1px solid var(--line);
  padding: 36px;
}

.record dl {
  margin: 0;
}

.record dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink);
  margin-top: 20px;
}

.record dt:first-child {
  margin-top: 0;
}

.record dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-family: var(--font-sans);
  color: var(--ink);
}

.record code {
  font-family: monospace;
  font-size: 1.05rem;
  background: var(--canvas);
  padding: 3px 8px;
  border: 1px solid var(--line);
}

.btn-copy {
  margin-left: 10px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  color: var(--ink);
}

/* Call to Action */
.cta {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
  max-width: 680px;
  color: var(--ink);
}

/* Global Footer */
footer {
  background: #0d1a27;
  color: #f1f4f7;
  padding: 75px 0 40px;
}

footer a {
  color: #b0c0cf;
}

footer a:hover {
  color: #ffffff;
}

footer .brand {
  color: #ffffff;
}

footer .brand-crest {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.footer-grid p {
  font-size: 15px;
  line-height: 1.6;
  color: #8c9dae;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-direction: column;
  font-size: 15px;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  padding-top: 40px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6a7c8e;
}

footer .eyebrow {
  color: #e6b8a2;
}

/* Forms & Top Header */
.page-top {
  padding: 70px 0 60px;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
}

.page-top h1 {
  margin-bottom: 16px;
}

.form {
  display: grid;
  gap: 20px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.tiers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.tier {
  padding: 14px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 19px;
  transition: all 0.2s ease;
}

.tier:hover {
  border-color: var(--ink);
}

.tier.active, .tier[aria-pressed=true] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.giving-panel {
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.giving-panel h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.status-box {
  padding: 14px 18px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  display: none;
  font-size: 14px;
}
.status-box.success {
  background: #edf7ee;
  border-color: #4caf50;
  color: #2e7d32;
  display: block;
}
.status-box.error {
  background: #fdf2f2;
  border-color: #ef5350;
  color: #c62828;
  display: block;
}

/* Responsive */
@media (max-width: 880px) {
  header {
    flex-wrap: wrap;
    padding: 20px 0;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    gap: 16px;
  }
  nav.open {
    display: flex;
  }
  .hero-s {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 50px;
  }
  .hero-s figure {
    height: 360px;
  }
  .s-strip {
    grid-template-columns: 1fr;
  }
  .s-strip > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  .s-focus .focus-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .row {
    grid-template-columns: 40px 1fr;
    gap: 20px;
  }
  .row p {
    grid-column: 2;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .cta .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
