/* ============================================================
   WoloKahn Family Foundation — style.css
   Palette:
     --green:   #1C3A2B  (anchor / header)
     --ivory:   #F7F3EC  (page background)
     --gold:    #B8965A  (accent rule, links, highlights)
     --slate:   #6B7C72  (secondary text, labels)
     --ink:     #2B2B2B  (body text)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:  #1C3A2B;
  --ivory:  #F7F3EC;
  --gold:   #B8965A;
  --slate:  #6B7C72;
  --ink:    #2B2B2B;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --max-width: 860px;
  --gap:       clamp(2rem, 5vw, 4rem);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background-color: var(--green);
  padding-block: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(184,150,90,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  height: 52px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .2s, color .2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  color: var(--gold);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background-color: var(--green);
  color: var(--ivory);
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .9;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ivory);
}

/* ── Signature element: the gold rule ───────────────────── */
.gold-rule {
  width: 72px;
  height: 1.5px;
  background-color: var(--gold);
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--ivory);
  opacity: .75;
}

/* ── Mission ─────────────────────────────────────────────── */
.mission {
  padding-block: var(--gap) calc(var(--gap) * 1.25);
}

.mission-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
}

.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  max-width: 680px;
  border: none;
  padding: 0;
}

/* ── Divider ─────────────────────────────────────────────── */
.section-divider {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .45;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  padding-block: var(--gap) calc(var(--gap) * 1.5);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-intro {
  color: var(--slate);
  font-size: 1rem;
  max-width: 600px;
}

/* ── Form ────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

label {
  font-size: 0.8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
}

input,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5cfc5;
  border-radius: 3px;
  padding: .65rem .85rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #b0aaa0;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,90,.15);
}

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

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-submit {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ivory);
  background-color: var(--green);
  border: none;
  border-radius: 3px;
  padding: .75rem 2rem;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
  white-space: nowrap;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background-color: #254d3a;
  box-shadow: 0 2px 8px rgba(28,58,43,.25);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--slate);
}

.form-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background-color: var(--green);
  padding-block: 1.5rem;
  margin-top: var(--gap);
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--ivory);
  opacity: .6;
  letter-spacing: .04em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  .site-nav {
    gap: 1.5rem;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
