/* =====================================================================
   Utah Valley Youth Services — site styles
   Palette derived from brand: warm cream (EADFCA), deep slate ink,
   and a mountain-evening teal accent.
   ===================================================================== */

:root {
  --cream:        #eadfca;
  --cream-soft:   #f6f0e4;
  --ink:          #1f2a30;
  --ink-soft:     #3a4750;
  --teal:         #2f6f73;
  --teal-dark:    #244f52;
  --teal-light:   #5b9499;
  --sand:         #c9a96a;
  --white:        #ffffff;
  --muted:        #6b7780;
  --line:         #e3e6e2;
  --shadow:       0 10px 30px rgba(31, 42, 48, 0.10);
  --shadow-sm:    0 4px 14px rgba(31, 42, 48, 0.08);
  --radius:       14px;
  --radius-sm:    9px;
  --maxw:         1140px;
  --font-head:    "Lora", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}

/* Fraunces' default ligatures (fi, ff, st…) read as "off"; render letters individually */
h1, h2, h3, h4, .brand__name {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.3px; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream-soft); }
.section--ink { background: var(--ink); color: #dfe5e2; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--teal-light); }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--on-ink { background: var(--teal-light); color: #06211f; }
.btn--on-ink:hover { background: #fff; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
}
.brand__tag { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .97rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-links .btn { padding: 10px 22px; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: relative;
  width: 26px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(31,42,48,.66), rgba(31,42,48,.80)),
    url("../img/hero-timpanogos.jpg") center 35% / cover no-repeat,
    var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__mountains { display: none; }
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 130px;
  max-width: 760px;
}
.hero h1 { color: #fff; }
.hero .lead { color: #d8e0e0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #eaf1f0;
  padding: 7px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 22px;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: linear-gradient(180deg, var(--teal-dark), var(--ink));
  color: #fff;
  padding: 84px 0 70px;
  text-align: center;
}
.page-head h1 { color: #fff; }
.page-head .lead { color: #d3dddc; margin: 0 auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--cream);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }
.card a.card__link {
  display: inline-block; margin-top: 14px; font-weight: 600; font-size: .95rem;
}

/* ---------- Service detail blocks ---------- */
.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--teal);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
  border-radius: 50%;
}
.service h3 { font-size: 1.45rem; }
.service ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.service ul li { margin-bottom: .5rem; color: var(--ink-soft); }
.service ul li strong { color: var(--ink); }

/* ---------- Requirement list ---------- */
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.req-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.req-list .check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  margin-top: 2px;
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 30px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 2rem; color: var(--teal); }
.stat__label { font-size: .9rem; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: 20px;
  padding: 54px 44px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; }
.cta p { color: #e3efee; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin-bottom: 26px; align-items: start; }
.contact-item .ci-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--cream); display: grid; place-items: center; font-size: 1.2rem;
}
.contact-item h4 { margin: 0 0 2px; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.contact-item p { margin: 0; font-size: 1.05rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 600; font-size: .9rem;
  color: var(--ink); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream-soft);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47,111,115,.15);
  background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-card .btn { width: 100%; margin-top: 6px; }

/* honeypot field — hidden from real users */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* submission status message */
.form-status { margin: 14px 0 0; font-size: .95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status--success { color: var(--teal-dark); }
.form-status--error { color: #b3261e; }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }

/* contact cards on persons */
.person-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 26px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); text-align: center;
}
.person__avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.4rem;
}
.person h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.2px; margin: 0 0 4px; }
.person .role { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb9b9; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.site-footer a { color: #c2cccc; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .brand__name { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #8c9898;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .grid--3, .grid--2, .person-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 18px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 6px 0; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
}
