/* ===========================================================
   Montessori Peaks Academy — shared stylesheet
   Edit the variables below to change colors and fonts site-wide.
   =========================================================== */

:root {
  --green-deep: #2f5d43;
  --green: #4a7c59;
  --green-soft: #e7efe8;
  --terracotta: #c97b5a;
  --terracotta-deep: #a85f41;
  --cream: #faf7f1;
  --sand: #f1ebdd;
  --ink: #2d2a26;
  --ink-soft: #5b554d;
  --white: #ffffff;
  --border: #e3ddd0;

  --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.08);
  --shadow-md: 0 6px 24px rgba(45, 42, 38, 0.10);

  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1080px;

  --font-head: "Georgia", "Cambria", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::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.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--green-deep);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.5em;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-deep);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}

.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--green-soft);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--green);
  color: var(--white);
}

.nav-links a.cta {
  background: var(--terracotta);
  color: var(--white);
}

.nav-links a.cta:hover {
  background: var(--terracotta-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.06s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--terracotta-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-ghost:hover {
  background: var(--green-soft);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero h1 {
  color: var(--white);
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(2px);
}

.hero-card h3 {
  color: var(--white);
  margin-top: 0;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}

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

.section-head {
  max-width: 60ch;
  margin-bottom: 2rem;
}

.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta-deep);
  margin-bottom: 0.4rem;
}

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

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.card h3 {
  margin-bottom: 0.3rem;
}

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* ---------- Quick links list ---------- */
.linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.linklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.linklist a:hover {
  border-color: var(--green);
  background: var(--green-soft);
  text-decoration: none;
}

.linklist a span.arrow {
  color: var(--terracotta-deep);
  font-weight: 700;
}

/* ---------- Callout banner ---------- */
.callout {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.callout h2 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.callout p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 50ch;
}

/* ---------- Timeline (principal search) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 2.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .dot {
  position: absolute;
  left: 4px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
}

.timeline li.done .dot {
  background: var(--green);
}

.timeline li.current .dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(201, 123, 90, 0.25);
}

.timeline .phase-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-soft);
}

.timeline li.current .phase-label {
  color: var(--terracotta-deep);
}

.timeline h3 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.1rem;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--green-deep);
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq .faq-body {
  padding: 0.85rem 0 0.4rem;
  color: var(--ink-soft);
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Committee / contact cards ---------- */
.person {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.person .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 0.7rem;
}

.person strong {
  display: block;
  color: var(--green-deep);
}

.person span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Embedded form (Typeform) ---------- */
.form-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  overflow: hidden;
}

.form-embed [data-tf-widget] {
  width: 100%;
  min-height: 650px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Note / placeholder banner ---------- */
.note {
  background: #fff8ec;
  border: 1px dashed var(--terracotta);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.note strong {
  color: var(--terracotta-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-head);
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
  }
}
