/* ============================================================
   MAMMA'S HOUSE WEEKEND SCHOOL — DESIGN SYSTEM
   Palette:  cream #FAF6ED · paper #FFFFFF · plum #3D1B5C
             magenta #C81F63 · gold #B4872F · sage #5F7A52
             ink #2B2333 · ink-soft #6E6478 · line #E7DECB
   Display:  "Fraunces"   Body: "Public Sans"   Accent/Arabic: "Reem Kufi"
   Signature: the "roofline" — a repeating peaked line echoing the
   house-mark in the logo, used as the section divider throughout.
   ============================================================ */

:root {
  --cream: #FAF6ED;
  --paper: #FFFFFF;
  --plum: #3D1B5C;
  --plum-deep: #29123F;
  --magenta: #C81F63;
  --magenta-deep: #A0154F;
  --gold: #B4872F;
  --gold-soft: #D9B876;
  --sage: #5F7A52;
  --ink: #2B2333;
  --ink-soft: #6E6478;
  --line: #E7DECB;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Reem Kufi", var(--font-display);

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 40px -24px rgba(61, 27, 92, 0.35);
  --shadow-card: 0 12px 28px -18px rgba(43, 35, 51, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; color: var(--plum-deep); }
p { margin: 0 0 1em; color: var(--ink); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

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

/* visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta-deep);
}
.eyebrow .arabic {
  font-family: var(--font-accent);
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--magenta); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--magenta-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }
.btn-ghost.on-dark { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost.on-dark:hover { background: #fff; color: var(--plum-deep); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--plum-deep);
}
.brand-text .sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: rgba(61, 27, 92, 0.07); }
.nav-links a[aria-current="page"] {
  color: var(--magenta-deep);
  background: rgba(200, 31, 99, 0.1);
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--plum); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ROOFLINE — signature divider, echoes the house-mark
   ============================================================ */
.roofline {
  width: 100%;
  line-height: 0;
  color: var(--gold-soft);
}
.roofline svg { width: 100%; height: 22px; display: block; }
.roofline.tight svg { height: 14px; }
.roofline.plum { color: rgba(255,255,255,0.35); }

/* ============================================================
   PAGE HERO (small, for interior pages)
   ============================================================ */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero .lede { max-width: 620px; margin: 0 auto; color: var(--ink-soft); font-size: 18px; }
.page-hero .eyebrow { justify-content: center; margin-bottom: 14px; }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  padding: 56px 0 20px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  margin: 16px 0 20px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--magenta);
}
.hero-copy .lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-art { position: relative; }
.hero-art .frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--paper);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-art .heart-badge {
  position: static;
  margin-top: 18px;
  background: var(--paper);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}
.hero-art .heart-badge .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--gold));
  flex-shrink: 0;
}
.hero-art .heart-badge strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--plum-deep); }
.hero-art .heart-badge span { font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .heart-badge { display: none; }
}

/* ---------- Hero slideshow ---------- */
.slideshow { position: relative; aspect-ratio: 4/3; }
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.7s ease;
}
.slideshow .slide.active { opacity: 1; z-index: 2; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--plum-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.18s ease, transform 0.18s ease;
  z-index: 5;
}
.slide-btn svg { width: 20px; height: 20px; }
.slide-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}
.slide-dot.active { background: #fff; transform: scale(1.2); }

/* ---------- Key info strip ---------- */
.info-strip {
  background: var(--plum);
  border-radius: var(--radius);
  color: #fff;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-soft);
}
.info-strip .item { display: flex; gap: 14px; align-items: flex-start; }
.info-strip .icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft);
}
.info-strip .icon svg { width: 20px; height: 20px; }
.info-strip .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-bottom: 3px; }
.info-strip .value { font-family: var(--font-display); font-size: 17px; }
@media (max-width: 760px) {
  .info-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 64px 0; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Pillars (4 cards) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pillar-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  border-top: 3px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar-card:hover { transform: translateY(-6px); border-top-color: var(--gold); }
.pillar-card .roof-icon {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(200,31,99,0.1), rgba(180,135,47,0.14));
  color: var(--magenta-deep);
}
.pillar-card .roof-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { font-size: 19px; margin-bottom: 8px; }
.pillar-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- About teaser (home) ---------- */
.teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.teaser .art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 6px solid var(--paper);
}
.teaser h2 { font-size: clamp(26px, 3.6vw, 34px); }
.teaser p { color: var(--ink-soft); font-size: 16.5px; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } .teaser .art { order: -1; } }

/* ---------- Values banner ---------- */
.values-banner {
  background: linear-gradient(155deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.values-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(217,184,118,0.18), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(200,31,99,0.22), transparent 45%);
  pointer-events: none;
}
.values-banner .arabic {
  font-family: var(--font-accent);
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--gold-soft);
  margin-bottom: 10px;
  position: relative;
}
.values-banner h2 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 34px);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  line-height: 1.3;
}

/* ============================================================
   CONTENT LIST BLOCKS (About page)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.split .sticky-note { position: sticky; top: 110px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .sticky-note { position: static; } }

.teach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.teach-item {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--gold);
}
.teach-item h4 { font-size: 16.5px; margin-bottom: 6px; color: var(--plum-deep); }
.teach-item p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .teach-grid { grid-template-columns: 1fr; } }

.approach-list { display: flex; flex-direction: column; gap: 16px; }
.approach-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.approach-list .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--magenta);
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.approach-list strong { display: block; color: var(--plum-deep); margin-bottom: 3px; }
.approach-list span { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   PLACEHOLDER CARD (Enrollment / Contact / FAQ)
   ============================================================ */
.placeholder-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gold);
}
.placeholder-card .icon-house {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(200,31,99,0.12), rgba(180,135,47,0.16));
  color: var(--magenta-deep);
}
.placeholder-card .icon-house svg { width: 32px; height: 32px; }
.placeholder-card h2 { font-size: 24px; }
.placeholder-card p { color: var(--ink-soft); font-size: 16px; }
.placeholder-card .note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--plum-deep);
  font-weight: 600;
}
.placeholder-card .back-home { margin-top: 26px; }

.save-date {
  max-width: 640px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.save-date .chip {
  background: var(--plum);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
}
.save-date .chip .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.save-date .chip .value { font-family: var(--font-display); font-size: 18px; margin-top: 4px; }
@media (max-width: 560px) { .save-date { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--plum-deep);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; background: var(--cream); padding: 4px; }
.footer-brand .name { font-family: var(--font-display); font-size: 19px; color: #fff; }
.footer-brand .arabic { font-family: var(--font-accent); color: var(--gold-soft); font-size: 15px; margin-top: 2px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14.5px; margin-top: 10px; max-width: 300px; }
.footer-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-soft); margin-bottom: 14px; font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
