/* ============================================================
   Al-Hamd Islamic School — Global Styles
   style.css
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --ink:           #1c1b16;
  --parchment:     #f7f1e4;
  --parchment-2:   #efe6d2;
  --white:         #fffdf8;
  --emerald:       #0f4438;
  --emerald-dark:  #082d25;
  --emerald-tint:  #e4ece7;
  --gold:          #b3852c;
  --gold-light:    #e4c374;
  --gold-pale:     #f4e6c4;
  --muted:         #5c574a;
  --shadow:        0 20px 50px -25px rgba(8,45,37,.35);
  --radius:        2px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html  {
  scroll-behavior: smooth;
  /* offset anchors below sticky header */
  scroll-padding-top: 72px;
}
body  {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* prevent horizontal overflow on mobile */
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.08;
  color: var(--emerald-dark);
  letter-spacing: .2px;
}
.arabic { font-family: 'Amiri', serif; direction: rtl; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- utilities ---------- */
.eyebrow {
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }
::selection { background: var(--gold-pale); color: var(--emerald-dark); }

/* ---------- pattern helpers ---------- */
.star-motif {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23b3852c' stroke-width='1'%3E%3Cpath d='M42 4 L54 24 L78 24 L60 40 L68 62 L42 48 L16 62 L24 40 L6 24 L30 24 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
}

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--emerald-dark);
  color: var(--gold-pale);
  font-size: 12.5px;
  letter-spacing: .3px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 32px; flex-wrap: wrap; gap: 6px;
}
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-left span { opacity: .92; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a {
  width: 26px; height: 26px;
  border: 1px solid rgba(244,230,196,.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: .2s;
}
.topbar-right a:hover { background: var(--gold); border-color: var(--gold); color: var(--emerald-dark); }
.topbar-right a img { pointer-events: none; filter: invert(1) brightness(2); }

/* ---------- header / nav ---------- */
header.site-header {
  background: var(--parchment);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(15,68,56,.1);
  transition: box-shadow .3s ease;
}
header.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(8,45,37,.5); }
nav.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--emerald); color: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif; font-size: 22px; font-weight: 700;
  border: 1.5px solid var(--gold); flex-shrink: 0;
}
.brand-text .name   { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--emerald-dark); letter-spacing: .3px; }
.brand-text .tagline { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-gold         { background: var(--gold); color: var(--white); }
.btn-gold:hover   { background: var(--emerald-dark); color: var(--gold-pale); }
.btn-outline      { border-color: var(--emerald); color: var(--emerald-dark); background: transparent; }
.btn-outline:hover { background: var(--emerald); color: var(--white); }
.btn-ghost-light  { border-color: rgba(247,241,228,.55); color: var(--parchment); background: transparent; }
.btn-ghost-light:hover { background: var(--gold); border-color: var(--gold); color: var(--emerald-dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { width: 26px; height: 2px; background: var(--emerald-dark); display: block; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-dark) 78%);
  color: var(--parchment); overflow: hidden; padding: 86px 0 0;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  position: relative; z-index: 2; padding-bottom: 64px;
}
.hero-eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 60px); margin: 18px 0 22px; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lede { font-size: 17px; color: rgba(247,241,228,.86); max-width: 520px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex; gap: 34px; flex-wrap: wrap;
  border-top: 1px solid rgba(247,241,228,.18); padding-top: 26px;
}
.hero-stats div strong { display: block; font-family: 'Cormorant Garamond',serif; font-size: 30px; color: var(--gold-light); }
.hero-stats div span   { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(247,241,228,.7); }
.hero-card {
  background: rgba(247,241,228,.06); border: 1px solid rgba(247,241,228,.22);
  backdrop-filter: blur(6px); padding: 32px 30px; border-radius: 4px;
}
.hero-card .clock-date  { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--gold-light); letter-spacing: .4px; margin-bottom: 4px; }
.hero-card .clock-time  { font-size: 44px; font-weight: 600; color: var(--white); font-family: 'Cormorant Garamond',serif; letter-spacing: 1px; margin-bottom: 2px; }
.hero-card .clock-sub   { font-size: 12px; color: rgba(247,241,228,.65); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 24px; }
.hero-card .hikmah {
  border-top: 1px dashed rgba(247,241,228,.25); padding-top: 20px;
  font-size: 14.5px; color: rgba(247,241,228,.9); font-style: italic; line-height: 1.65;
}
.hero-card .hikmah span { display: block; margin-top: 8px; font-style: normal; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); }
.hero-motif {
  position: absolute; right: -60px; top: -60px; width: 520px; height: 520px; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e4c374' stroke-width='1'%3E%3Cpath d='M60 6 L76 34 L112 34 L84 56 L96 92 L60 70 L24 92 L36 56 L8 34 L44 34 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat; z-index: 1;
}

/* ---------- USP band ---------- */
.usp { background: var(--white); padding: 70px 0; border-bottom: 1px solid var(--parchment-2); }
.usp-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--parchment-2); border: 1px solid var(--parchment-2); }
.usp-card { background: var(--white); padding: 34px 28px; }
.usp-card .num { font-family: 'Amiri', serif; font-size: 26px; color: var(--gold); margin-bottom: 14px; display: block; }
.usp-card h3   { font-size: 21px; margin-bottom: 10px; }
.usp-card p    { font-size: 14px; color: var(--muted); }

/* ---------- section heading pattern ---------- */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px,3.4vw,42px); margin-top: 14px; }
.section-head p  { margin-top: 16px; color: var(--muted); font-size: 15.5px; }
.divider-star {
  width: 26px; height: 26px; margin: 0 auto 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cg fill='%23b3852c'%3E%3Cpath d='M13 0 L16 10 L26 13 L16 16 L13 26 L10 16 L0 13 L10 10 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* ---------- about ---------- */
.about { padding: 96px 0; background: var(--parchment); }
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-visual {
  background: var(--emerald); border-radius: 4px; padding: 40px;
  position: relative; min-height: 360px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.about-visual .arabic { font-size: 34px; color: var(--gold-light); margin-bottom: 10px; }
.about-visual .cap    { color: var(--parchment); font-family: 'Cormorant Garamond',serif; font-size: 19px; font-style: italic; max-width: 280px; }
.about-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.about-list li::before { content: '✦'; color: var(--gold); flex-shrink: 0; margin-top: 2px; font-size: 13px; }

/* two paths diagram */
.paths { padding: 0 0 100px; background: var(--parchment); }
.paths .wrap { text-align: center; }
.paths-diagram { margin-top: 40px; }
.paths-legend { display: flex; justify-content: center; gap: 50px; margin-top: 18px; flex-wrap: wrap; }
.paths-legend div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.swatch { width: 14px; height: 14px; border-radius: 50%; }

/* ---------- programs ---------- */
.programs { background: var(--emerald-tint); padding: 96px 0; }
.programs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 8px; }
.prog-card {
  background: var(--white); padding: 32px 28px; border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow); transition: transform .25s ease;
}
.prog-card:hover { transform: translateY(-6px); }
.prog-card .age { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px; display: block; }
.prog-card h3   { font-size: 22px; margin-bottom: 10px; }
.prog-card p    { font-size: 14px; color: var(--muted); }
.prog-card.featured { background: var(--emerald); border-bottom-color: var(--gold-light); }
.prog-card.featured h3, .prog-card.featured .age { color: var(--gold-light); }
.prog-card.featured p  { color: rgba(247,241,228,.85); }

/* ---------- daily rhythm ---------- */
.rhythm { padding: 96px 0; background: var(--parchment); }
.rhythm .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.timetable { list-style: none; margin: 0; padding: 0; }
.timetable li { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--parchment-2); font-size: 14.5px; }
.timetable li .time     { color: var(--gold); font-weight: 600; min-width: 120px; }
.timetable li .activity { color: var(--ink); font-weight: 500; }

/* ---------- community / facebook feed ---------- */
.community { background: var(--white); padding: 96px 0; }
.fb-note { background: var(--parchment); border: 1px dashed var(--gold); padding: 14px 20px; font-size: 12.5px; color: var(--muted); margin-bottom: 36px; border-radius: 2px; max-width: 640px; }
.fb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.fb-card { border: 1px solid var(--parchment-2); background: var(--white); box-shadow: var(--shadow); }
.fb-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.fb-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--emerald); color: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-family: 'Amiri',serif; font-weight: 700; font-size: 16px; }
.fb-meta .fb-name { font-size: 13.5px; font-weight: 600; color: var(--emerald-dark); }
.fb-meta .fb-time { font-size: 11.5px; color: var(--muted); }
.fb-body  { padding: 0 18px 16px; font-size: 14px; color: var(--ink); }
.fb-photo { height: 150px; background: linear-gradient(135deg,var(--emerald-tint),var(--parchment-2)); display: flex; align-items: center; justify-content: center; font-family: 'Amiri', serif; color: var(--emerald); font-size: 15px; opacity: .6; }
.fb-stats { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--parchment-2); font-size: 12px; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { background: var(--emerald-dark); padding: 90px 0; }
.gallery .section-head h2, .gallery .eyebrow { color: var(--parchment); }
.gallery .section-head p { color: rgba(247,241,228,.7); }
.gallery-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; }
.gallery-strip div {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, rgba(180,133,44,.35), rgba(15,68,56,.5));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 12px; letter-spacing: .5px;
  text-transform: uppercase; text-align: center; padding: 10px;
  border: 1px solid rgba(247,241,228,.08);
  overflow: hidden;
}
.gallery-strip div img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- testimonials ---------- */
.testimonials { padding: 96px 0; background: var(--parchment); }
.t-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 10px; }
.t-card { background: var(--white); padding: 30px 26px; box-shadow: var(--shadow); position: relative; }
.t-card .quote-mark { font-family: 'Cormorant Garamond', serif; font-size: 52px; color: var(--gold-pale); line-height: 1; margin-bottom: 6px; display: block; }
.t-card p.quote { font-size: 14.5px; color: var(--ink); margin-bottom: 20px; font-style: italic; }
.t-who { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--emerald-tint); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond',serif; color: var(--emerald); font-weight: 700; }
.t-who .t-name { font-size: 13.5px; font-weight: 600; color: var(--emerald-dark); }
.t-who .t-role { font-size: 11.5px; color: var(--muted); }

/* ---------- admissions cta ---------- */
.admissions { background: var(--gold); padding: 70px 0; }
.admissions .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.admissions h2 { color: var(--white); font-size: clamp(26px,3vw,36px); max-width: 520px; }
.admissions .steps { display: flex; gap: 26px; flex-wrap: wrap; }
.admissions .steps div { font-size: 12.5px; color: rgba(255,255,255,.92); max-width: 130px; }
.admissions .steps div strong { display: block; font-family: 'Cormorant Garamond',serif; font-size: 26px; color: var(--emerald-dark); margin-bottom: 4px; }

/* ---------- footer ---------- */
footer { background: var(--emerald-dark); color: rgba(247,241,228,.82); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 56px; border-bottom: 1px solid rgba(247,241,228,.12); }
.footer-brand .brand-mark { margin-bottom: 16px; }
footer h4 { color: var(--gold-light); font-family: 'Work Sans',sans-serif; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(247,241,228,.75); transition: .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-desc { font-size: 14px; color: rgba(247,241,228,.68); max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 32px; height: 32px; border: 1px solid rgba(247,241,228,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--emerald-dark); }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { font-size: 14px; color: rgba(247,241,228,.75); margin-bottom: 14px; display: flex; gap: 10px; }
.footer-contact li a { color: rgba(247,241,228,.75); transition: .2s; }
.footer-contact li a:hover { color: var(--gold-light); }
.footer-contact li .ic { color: var(--gold-light); flex-shrink: 0; }
.bottom-bar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12.5px; color: rgba(247,241,228,.55); flex-wrap: wrap; gap: 10px; }
.bottom-bar a { color: rgba(247,241,228,.55); }
.bottom-bar a:hover { color: var(--gold-light); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-dark) 78%);
  color: var(--parchment); padding: 80px 0 70px; position: relative; overflow: hidden;
}
.page-hero .hero-motif { position: absolute; right: -60px; top: -60px; width: 520px; height: 520px; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e4c374' stroke-width='1'%3E%3Cpath d='M60 6 L76 34 L112 34 L84 56 L96 92 L60 70 L24 92 L36 56 L8 34 L44 34 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat; z-index: 1;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(32px,4vw,52px); margin: 14px 0 18px; }
.page-hero p  { font-size: 17px; color: rgba(247,241,228,.86); max-width: 560px; }
.breadcrumb { font-size: 13px; color: rgba(247,241,228,.6); margin-bottom: 8px; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- sticky WhatsApp button ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
  color: #fff;
}
.wa-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
/* collapse to icon-only on small screens */
@media (max-width: 600px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}
