/* Student Life Ministry — site styles
   Colors and fonts carried over from the Wix site. */
:root {
  --green: #2f5d50;
  --green-dark: #224439;
  --sage: #7ca18d;
  --sage-light: #dce8e0;
  --cream: #f4ede1;
  --cream-dark: #e9dfcd;
  --orange: #e77c3c;
  --orange-dark: #c9632a;
  --ink: #1f2a26;
  --muted: #55625d;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 38, 0.10);
  --max: 1160px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; color: var(--green); }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 600; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: var(--white); }
.section--green h2, .section--green h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.75rem;
}
.section--green .eyebrow { color: #ffb48a; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section--green .lead { color: rgba(255,255,255,0.85); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green); color: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--light { background: var(--white); color: var(--green); }
.btn--light:hover { background: var(--cream); color: var(--green); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47,93,80,0.10);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav .btn { padding: 11px 22px; font-size: 0.85rem; color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green);
}
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid rgba(47,93,80,0.12);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid rgba(47,93,80,0.08); }
  .nav .btn { margin: 14px 20px 18px; }
}

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  background: var(--green);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(34,68,57,0.92) 0%, rgba(47,93,80,0.75) 45%, rgba(47,93,80,0.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); max-width: 12ch; }
.hero h1 .serif { color: #ffd2b5; font-weight: 600; }
.hero p { font-size: 1.2rem; max-width: 34rem; color: rgba(255,255,255,0.9); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Split / about */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-stack { position: relative; padding-bottom: 60px; }
.photo-stack .photo--small {
  position: absolute; right: -10px; bottom: 0; width: 52%;
  border: 6px solid var(--white);
}
@media (max-width: 520px) { .photo-stack .photo--small { right: 0; } }

.stat {
  display: flex; align-items: center; gap: 16px; margin-top: 24px;
  padding: 18px 22px; background: var(--cream); border-radius: var(--radius);
}
.stat strong { font-size: 2.4rem; line-height: 1; color: var(--orange-dark); }
.stat span { font-weight: 600; color: var(--green); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border-top: 5px solid var(--sage);
}
.card:nth-child(2) { border-top-color: var(--orange); }
.card:nth-child(3) { border-top-color: var(--green); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage-light); color: var(--green); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; }

/* Photo band */
.photo-band { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.photo-band img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .photo-band { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); color: var(--ink); }
.panel h3 { color: var(--green); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #cfd8d3; border-radius: 10px; background: #fbfcfb;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,93,80,0.15); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b3261e; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 24px; height: 24px; flex: none; margin-top: 3px; color: #ffb48a; }
.info-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.info-list a { color: var(--white); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 10px 0 10px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 8px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--white); font-weight: 700; font-size: 0.9rem;
}
.aside-stack { display: grid; gap: 24px; }
.aside-dark { background: var(--green-dark); color: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.aside-dark h3 { color: var(--white); }

/* Giving */
.give-hero { background: var(--cream); padding: clamp(56px, 8vw, 96px) 0; }
.give-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .give-grid { grid-template-columns: 1fr; } }
.donate-box { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 5px; margin-bottom: 20px; }
.toggle button { font: inherit; font-weight: 700; border: 0; background: none; padding: 11px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amounts button {
  font: inherit; font-weight: 700; font-size: 1.1rem; padding: 14px 6px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #cfd8d3; background: var(--white); color: var(--green);
}
.amounts button[aria-pressed="true"] { border-color: var(--green); background: var(--sage-light); }
.custom-amount { position: relative; margin-bottom: 18px; }
.custom-amount span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.custom-amount input { width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 14px 13px 30px; border: 1.5px solid #cfd8d3; border-radius: 10px; }
.donate-box .btn { width: 100%; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 12px; text-align: center; }

.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .impact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .impact { grid-template-columns: 1fr; } }
.impact div { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 24px; }
.impact strong { display: block; font-size: 2rem; color: #ffd2b5; margin-bottom: 6px; }
.impact p { margin: 0; color: rgba(255,255,255,0.88); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badges span { background: var(--sage-light); color: var(--green); font-weight: 600; font-size: 0.85rem; padding: 8px 14px; border-radius: 999px; }

.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--white); border-radius: 12px; padding: 4px 22px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(31,42,38,0.06); }
.faq summary { font-weight: 700; color: var(--green); cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Simple page (legal, thank you) */
.page-head { background: var(--cream); padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.draft-note { background: #fff4e5; border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 8px; font-size: 0.95rem; margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,0.8); padding: 56px 0 32px; font-size: 0.95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #ffd2b5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-bottom nav { display: flex; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 40px; height: clamp(420px, 48vw, 600px); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery picture, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main { grid-row: 1 / 3; }
.gallery figure:nth-child(2) { grid-column: 2 / 4; }
.gallery figure:nth-child(3) { grid-column: 2 / 4; }
@media (min-width: 761px) {
  .gallery figure:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  .gallery figure:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .gallery__main { grid-column: 1 / 3; grid-row: auto; }
  .gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: auto; grid-row: auto; }
  .gallery img { aspect-ratio: 4 / 3; height: auto; }
  .gallery figure:nth-child(3) img { aspect-ratio: 3 / 4; }
  .gallery figure:nth-child(2) img { aspect-ratio: 3 / 4; }
}
