/* ==========================================================================
   New Hope Endeavors — Design Tokens
   ========================================================================== */
:root {
  --cream:        #F5EFE3;
  --sand:         #EDE2CC;
  --terracotta:   #B5502D;
  --terracotta-d: #93401F;
  --clay:         #8B5A3C;
  --sage:         #8A9A7E;
  --sage-d:       #6E7F63;
  --gold:         #C9A366;
  --ink:          #3A2E26;
  --ink-soft:     #6B5D50;
  --cream-line:   #E2D5BC;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Karla", -apple-system, sans-serif;

  --radius-arch: 200px 200px 12px 12px;
  --shadow-soft: 0 12px 30px -12px rgba(58, 46, 38, 0.25);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-d); }

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.9em;
  display: inline-block;
}

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sage-d);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Arch motif system — the signature element
   ========================================================================== */

/* The doorway shape used throughout: image frames, card tops, dividers */
.arch {
  border-radius: var(--radius-arch);
  overflow: hidden;
}

.arch-divider {
  position: relative;
  height: 64px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}
.arch-divider svg { width: 100%; height: 100%; display: block; }

/* Repeating arch row — used as a quiet rhythm element */
.arch-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 2.5rem 0;
  opacity: 0.55;
}
.arch-row span {
  width: 22px;
  height: 30px;
  border: 2px solid var(--terracotta);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
.footer-logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  padding: 10px 18px;
  border-radius: 16px;
}
.logo-img-footer {
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--terracotta); }

.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 200px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--terracotta-d); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--cream-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; border-top: 1px solid var(--cream-line); }
  .nav-cta { margin: 16px 24px; display: inline-block; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 200px 200px 8px 8px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-d); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-sage { background: var(--sage-d); color: #fff; }
.btn-sage:hover { background: #5c6c52; color: #fff; transform: translateY(-2px); }

/* Hero visual — abstract arch doorway illustration */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sand) 0%, #E4D3B4 100%);
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 3px solid rgba(181, 80, 45, 0.35);
  border-radius: 200px 200px 4px 4px;
}
.hero-visual .sun {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--terracotta) 70%);
  opacity: 0.9;
}
.hero-visual .leaf {
  position: absolute;
  width: 90px;
  height: 90px;
}
.hero-visual .leaf.l1 { top: 8%; left: 10%; }
.hero-visual .leaf.l2 { bottom: 10%; right: 8%; transform: rotate(20deg); }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--sand); }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin: 0 0 3rem; text-align: left; }

/* Value / feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 24px 24px 8px 8px;
  padding: 32px 26px;
}
.feature-card .icon {
  width: 44px; height: 54px;
  border: 2.5px solid var(--terracotta);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 0.4em; font-size: 1.15rem; }
.feature-card p { margin: 0; font-size: 0.96rem; }

/* Program cards (Single Mothers / Veterans) */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.program-card {
  background: #fff;
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.program-card .art {
  aspect-ratio: 16/10;
  position: relative;
}
.program-card .art.c1 { background: linear-gradient(150deg, #DDE3D1, var(--sage)); }
.program-card .art.c2 { background: linear-gradient(150deg, #E6D3C2, var(--clay)); }
.program-card .body { padding: 30px 30px 34px; }
.program-card .tag {
  display: inline-block;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 200px;
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .program-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* Amenity list */
.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 28px;
}
.amenity-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.amenity-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 20px;
  margin-top: 3px;
  border: 2px solid var(--sage-d);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

/* Quote / mission block */
.mission-block {
  background: var(--ink);
  color: var(--cream);
  border-radius: 40px;
  padding: 70px 60px;
  text-align: center;
}
.mission-block h2 { color: var(--cream); }
.mission-block p { color: #D9CCBB; font-size: 1.15rem; max-width: 60ch; margin: 0 auto; }

/* Placeholder image note (for future S3 photos) */
.photo-slot {
  position: relative;
  background: var(--sand);
  border: 1.5px dashed var(--clay);
  border-radius: var(--radius-arch);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: #fff;
  border-radius: 28px;
  padding: 44px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--cream-line);
}
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 36px;
}
fieldset legend {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--terracotta-d);
  padding: 0;
  margin-bottom: 6px;
}
.fieldset-hint { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 20px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
label .opt { font-weight: 400; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 4px;
}
.radio-group label, .checkbox-group label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.radio-group input, .checkbox-group input { accent-color: var(--terracotta); width: 17px; height: 17px; }

.form-note {
  background: var(--sand);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.form-status {
  margin-top: 18px;
  font-weight: 700;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { color: var(--sage-d); }
.form-status.error { color: var(--terracotta-d); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--sand);
  border-radius: 28px;
  padding: 40px;
}
.contact-line { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .dot {
  width: 12px; height: 16px;
  border: 2px solid var(--terracotta);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-top: 5px;
  flex-shrink: 0;
}
.contact-line strong { display: block; color: var(--ink); }
.contact-line span, .contact-line a { color: var(--ink-soft); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #D9CCBB;
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #D9CCBB; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: var(--cream); }
.site-footer p { color: #B7A996; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(217, 204, 187, 0.2);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #B7A996;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Page hero (non-home pages) */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.page-hero .lede { max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
