:root {
  --navy: #1f3a5f;
  --teal: #3a7d7b;
  --coral: #e0654f;
  --cream: #faf6ef;
  --white: #ffffff;
  --ink: #25303b;
  --muted: #5b6b78;
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(31, 58, 95, 0.08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 18px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}

a { color: var(--teal); }

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

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

section { padding: 88px 0; }

.section-alt { background: var(--white); }

/* Hero (Task 1) */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral);
  margin: 0 0 12px;
}

.hero { padding: 120px 0 96px; background: var(--cream); }

.hero__inner { max-width: 760px; }

.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 20px; }

.hero__lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 32px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary { background: var(--coral); color: var(--white); }

.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

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

/* Sticky header and nav (Task 2) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 58, 95, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
}

.nav { display: flex; gap: 28px; }

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(31, 58, 95, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav a { padding: 16px 24px; border-top: 1px solid rgba(31, 58, 95, 0.06); }
  .nav--open { max-height: 240px; }
}

/* About (Task 3) */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about__photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.about__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 18px; }

.about__text p { color: var(--muted); margin: 0 0 16px; }

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { max-width: 320px; }
}

/* Program (Task 4) */
.section-head { max-width: 680px; margin: 0 0 48px; }

.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 0; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(31, 58, 95, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card--accent { background: #f0f6f5; }

.card h3 { font-size: 1.4rem; margin: 0 0 18px; }

.ticks { list-style: none; margin: 0; padding: 0; }

.ticks li {
  position: relative;
  padding: 0 0 14px 30px;
  color: var(--ink);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(-45deg);
}

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

/* Why it matters (Task 5) */
.why { background: var(--navy); color: #eaf1f0; }

.why__inner { max-width: 760px; text-align: center; }

.why h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 18px; }

.why p { font-size: 1.2rem; color: #d6e2e1; margin: 0; }

/* Contact (Task 6) */
.contact__note { color: var(--muted); margin: 8px 0 0; }

.form { max-width: 560px; }

.form__row { margin: 0 0 20px; }

.form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(31, 58, 95, 0.2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid rgba(58, 125, 123, 0.4);
  outline-offset: 1px;
  border-color: var(--teal);
}

.form__status { margin: 14px 0 0; font-weight: 500; min-height: 1.4em; }

.form__status--ok { color: var(--teal); }

.form__status--err { color: var(--coral); }

/* Footer (Task 7) */
.site-footer { background: var(--cream); border-top: 1px solid rgba(31, 58, 95, 0.1); padding: 40px 0; }

.site-footer__inner { text-align: center; }

.site-footer__brand { font-family: var(--font-head); color: var(--navy); font-weight: 600; font-size: 1.2rem; margin: 0 0 6px; }

.site-footer__line { color: var(--muted); margin: 0; }
