/* IMAN Islamic School — colours taken from the 2027 Parent Handbook */
:root {
  --green: #98aa68;
  --green-dark: #6b7a4b;
  --olive: #5f6b45;
  --gold: #cfad62;
  --gold-dark: #b08f45;
  --sun: #f5c842;
  --mint: #dbe8c4;
  --cream: #fcfbf6;
  --paper: #f5f2e6;
  --ink: #3d4232;
  --muted: #6a6e5f;
  --line: #e6e1cf;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; }
.tint { background: var(--paper); }
.mt { margin-top: 80px; }

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 400;
  color: var(--olive);
  margin-bottom: 28px;
}
.h2 b { font-weight: 700; }
.sub { color: var(--muted); max-width: 52ch; margin: -12px 0 24px; }

.tag {
  display: inline-block;
  margin: 0 0 18px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--gold-dark);
  letter-spacing: .02em;
}
.tag.light { color: var(--olive); margin-bottom: 6px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--olive);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--olive); }
.btn-ghost:hover { background: var(--olive); color: #fff; }
.btn-light { background: #fff; color: var(--olive); border-color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.btn-small { padding: 8px 18px; color: #fff !important; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 246, .96);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--olive); font-weight: 800; letter-spacing: .02em; }
.brand b { font-weight: 500; }
.brand img { width: 44px; height: auto; }
.links { display: flex; align-items: center; gap: 26px; }
.links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.links a:not(.btn):hover { color: var(--gold-dark); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--olive); margin: 5px 0; }

/* Hero */
.hero { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; color: var(--olive); }
.hero h1 span { color: var(--green); font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 3.3; height: auto; object-fit: cover; object-position: 60% 80%;
  border-radius: 0 120px 0 var(--radius);
}
.hero-photo .year {
  position: absolute; left: -22px; bottom: -22px;
  background: var(--gold); color: #fff;
  font-weight: 800; font-size: 2.2rem;
  padding: 16px 26px; border-radius: 0 var(--radius) 0 var(--radius);
}

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.story-block {
  background: var(--green-dark); color: #fff;
  padding: 44px 40px; border-radius: 0 0 140px 0;
}
.story-block .h2 { color: #fff; }
.story-block p { margin: 0 0 14px; }
.letter h3 { color: var(--gold-dark); font-size: 1.4rem; margin-bottom: 14px; }
.letter p { margin: 0 0 14px; color: var(--muted); }
.letter strong { color: var(--ink); }
.letter .sign { color: var(--ink); }
.letter .sign b { color: var(--gold-dark); }

/* Vision & mission */
.vm { padding-top: 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.vm-card h3 { color: var(--gold-dark); font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.vm-card p { margin: 0; color: var(--muted); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: var(--gold); color: var(--ink); border-radius: 20px; padding: 28px 24px; }
.letter-mark { display: block; font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 10px; color: #fff7dc; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar p { margin: 0; font-size: .94rem; }

/* Student profile + module */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--green-dark); color: #fff; font-weight: 600; font-size: .92rem;
  padding: 10px 18px; border-radius: 999px;
}
.chips li:nth-child(3n+2) { background: var(--olive); }
.module { display: flex; align-items: center; gap: 16px; }
.mod-col { display: grid; gap: 12px; flex: 1; }
.mod { background: var(--green-dark); color: #fff; border-radius: 16px; padding: 18px 20px; display: grid; }
.mod span { font-size: .88rem; opacity: .9; }
.mod-gold { background: var(--gold); color: var(--ink); flex: 1; }
.plus { font-size: 2rem; color: var(--olive); font-weight: 700; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.num { display: inline-block; font-weight: 800; color: var(--gold); font-size: 1.6rem; margin-bottom: 8px; }
.why h3 { font-size: 1.1rem; color: var(--olive); margin-bottom: 8px; }
.why p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Photo strip */
.strip { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 0; }
.strip img { width: 100%; height: 340px; object-fit: cover; }

/* Team */
.person { text-align: center; }
.person img {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; background: var(--sun);
}
.person h3 { font-size: 1rem; color: var(--olive); text-transform: uppercase; letter-spacing: .01em; }
.person .role { margin: 6px 0 0; color: var(--gold-dark); font-weight: 600; font-size: .9rem; }
.person ul { text-align: left; color: var(--muted); font-size: .92rem; padding-left: 18px; margin: 14px auto 0; max-width: 360px; }
.board-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.board-lead img { width: 200px; height: 200px; }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.person.sm img { width: 140px; height: 140px; }
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.edu-grid img { width: 150px; height: 150px; }

/* Schedule */
.table-wrap { overflow-x: auto; border-radius: 20px; }
.schedule { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.schedule th { background: var(--olive); color: #fff; text-align: left; padding: 14px 20px; font-weight: 600; }
.schedule td { padding: 14px 20px; border-top: 1px solid var(--line); }
.schedule td:first-child { font-weight: 600; color: var(--olive); white-space: nowrap; }
.schedule tr.break td { background: var(--mint); }
.schedule tr.break td:last-child { font-weight: 600; color: var(--olive); }

/* Fees */
.fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.fee-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.fee-card h3 { color: var(--gold-dark); font-size: 1.15rem; margin-bottom: 12px; }
.fee-card h3:not(:first-child) { margin-top: 28px; }
.fee-card dl { margin: 0; }
.fee-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.fee-card dt small { display: block; color: var(--muted); font-size: .8rem; }
.fee-card dd { margin: 0; font-weight: 700; color: var(--olive); white-space: nowrap; }
.fee-card dd s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.fee-card.highlight { background: var(--olive); border-color: var(--olive); color: #fff; }
.fee-card.highlight h3, .fee-card.highlight dd { color: #fff; }
.fee-card.highlight dd s { color: #eef3e2; }
.fee-card.highlight dl div { border-color: rgba(255,255,255,.35); }

/* CTA */
.cta { background: var(--gold); color: var(--ink); padding: 56px 0; }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.cta img { width: 110px; height: auto; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.cta p { margin: 8px 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; }
.contact-card { background: var(--paper); border-radius: var(--radius) 0 var(--radius) var(--radius); padding: 40px; }
.contact-list { margin: 0 0 28px; }
.contact-list dt { font-weight: 700; color: var(--olive); font-size: .9rem; margin-top: 16px; }
.contact-list dd { margin: 4px 0 0; color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.footer { background: var(--olive); color: #eef0e6; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer p { margin: 0; font-size: .9rem; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .story-grid, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .why, .fees { grid-template-columns: 1fr 1fr; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .links.open { display: flex; }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .links a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 28px; }
  .hero-photo img { border-radius: 0 72px 0 var(--radius); }
  .hero-photo .year { left: 12px; bottom: -18px; font-size: 1.6rem; padding: 10px 18px; }
  .vm-grid, .pillars, .why, .fees, .board-lead, .edu-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .person.sm img { width: 112px; height: 112px; }
  .person.sm h3 { font-size: .85rem; }
  .story-block { padding: 32px 26px; border-radius: 0 0 80px 0; }
  .module { flex-direction: column; align-items: stretch; }
  .plus { text-align: center; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip img { height: 200px; }
  .strip img:nth-child(2) { grid-column: 1 / -1; order: -1; height: 240px; }
  .contact-card { padding: 30px 24px; }
  .schedule { min-width: 0; font-size: .86rem; }
  .schedule th, .schedule td { padding: 12px 10px; }
  .schedule td:first-child { white-space: normal; }
}
