/* Madrassah-tul-Iqrah — Kalculated-matched theme (clean + modern)
   Notes:
   - Uses CSS variables so you can tweak palette in one place.
   - Designed to feel like Kalculated: minimal, high-contrast, crisp cards, calm spacing.
*/

/* -----------------------------
   1) Brand palette (Kalculated)
   ----------------------------- */
:root{
  /* Core neutrals */
  --bg: #0b0f14;          /* deep ink */
  --bg2:#0f1621;          /* panel base */
  --surface:#121b28;      /* card */
  --surface2:#0e1724;     /* alt surface */
  --text:#eef2f7;         /* primary text */
  --muted:#aab6c7;        /* secondary text */
  --muted2:#7f8ca3;       /* quieter */

  /* Kalculated accents (tweak here if your exact hex differs) */
  --brand: #f4c542;       /* Kalculated gold */
  --brand2:#2dd4bf;       /* Kalculated teal */
  --brand3:#60a5fa;       /* Kalculated blue */

  /* Functional */
  --line: rgba(255,255,255,.09);
  --line2: rgba(244,197,66,.20);
  --shadow: 0 16px 40px rgba(0,0,0,.35);
  --shadow2: 0 10px 22px rgba(0,0,0,.25);

  /* Radius */
  --r12: 12px;
  --r16: 16px;
  --r22: 22px;

  /* Layout */
  --max: 1120px;

  /* Focus ring */
  --focus: 0 0 0 3px rgba(45,212,191,.35);

  /* Type scale */
  --fs-900: clamp(2.1rem, 3.6vw, 3.1rem);
  --fs-800: clamp(1.6rem, 2.4vw, 2.1rem);
  --fs-700: 1.35rem;
  --fs-600: 1.1rem;
  --fs-500: 1rem;
  --fs-400: .92rem;
}

/* -----------------------------
   2) Base
   ----------------------------- */
*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(96,165,250,.20), transparent 55%),
    radial-gradient(900px 520px at 88% 6%, rgba(45,212,191,.18), transparent 55%),
    radial-gradient(900px 520px at 60% 120%, rgba(244,197,66,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), #070a0f);
  line-height:1.55;
}

img{ max-width:100%; display:block }
a{ color:inherit }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace }

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 22px;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r12);
  box-shadow:var(--shadow);
  outline:none;
}

/* -----------------------------
   3) Header + navigation
   ----------------------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background: rgba(11,15,20,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-elevated{
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand-mark{
  width:44px;height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:.4px;
  background:
    linear-gradient(135deg, rgba(244,197,66,.22), rgba(45,212,191,.18));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
}
.brand-name{ display:block; font-weight:800; letter-spacing:.2px }
.brand-tag{ display:block; font-size:.78rem; color:var(--muted) }

.site-nav{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav-link{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.nav-link:hover{
  color:var(--text);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.nav-link.is-active{
  color:var(--text);
  background: rgba(244,197,66,.08);
  border-color: rgba(244,197,66,.26);
}

.nav-cta{
  color:#0b0f14;
  background: linear-gradient(135deg, var(--brand), rgba(244,197,66,.85));
  border:1px solid rgba(244,197,66,.35);
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.nav-cta:hover{ filter:brightness(1.02) }

.nav-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
}
.nav-toggle:focus{ outline:none; box-shadow:var(--focus) }
.nav-toggle-bars{ display:block; width:22px; height:14px; position:relative }
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  border-radius:2px;
  background:var(--text);
}
.nav-toggle-bars::before{ top:0 }
.nav-toggle-bars::after{ bottom:0 }
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* -----------------------------
   4) Typography
   ----------------------------- */
h1{
  font-size:var(--fs-900);
  line-height:1.08;
  margin:14px 0 10px;
  letter-spacing:-.02em;
}
h2{
  font-size:var(--fs-800);
  margin:0 0 10px;
  letter-spacing:-.01em;
}
h3{
  font-size:var(--fs-700);
  margin:0 0 8px;
}
.lead{
  font-size:var(--fs-600);
  color:var(--muted);
  margin:0 0 18px;
}
.tiny{ font-size:.82rem }
.muted{ color:var(--muted) }

/* -----------------------------
   5) Components
   ----------------------------- */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:.86rem;
}
.pill::before{
  content:"";
  width:10px;height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 0 0 3px rgba(45,212,191,.14);
}

.card{
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--r22);
  padding:18px;
  box-shadow: var(--shadow);
}
.card-title{
  margin:0 0 10px;
  font-size:1.05rem;
  letter-spacing:.2px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(244,197,66,.40);
  background: linear-gradient(135deg, var(--brand), rgba(244,197,66,.82));
  color:#0b0f14;
  font-weight:850;
  box-shadow: 0 14px 28px rgba(0,0,0,.30);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter:brightness(1.01) }
.btn:focus{ outline:none; box-shadow:var(--focus) }

.btn-ghost{
  background: rgba(255,255,255,.03);
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
}
.btn-ghost:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.btn-small{ padding:10px 12px; border-radius:12px; font-weight:850 }

.text-link{
  color: var(--brand2);
  text-decoration:none;
  font-weight:850;
}
.text-link:hover{ text-decoration:underline }

.clean-list{
  list-style:none;
  padding:0;
  margin:12px 0;
}
.clean-list li{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
  color:var(--muted);
}
.clean-list li strong{ color:var(--text) }
.clean-list li:last-child{ border-bottom:none }

/* -----------------------------
   6) Layout sections
   ----------------------------- */
.hero{
  padding:58px 0 14px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap:26px;
  align-items:start;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 14px 0 18px;
}
.hero-highlights{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 10px;
}
.highlight{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--r16);
  padding:12px 12px;
}
.highlight-title{ font-weight:900 }
.highlight-sub{ color:var(--muted2); font-size:.86rem }

.section{
  padding:52px 0;
}
.section.alt{
  background: rgba(255,255,255,.02);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.section-head{ margin-bottom:18px }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.split{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:18px;
  align-items:start;
}

/* -----------------------------
   7) Tables + callouts
   ----------------------------- */
.table-wrap{
  overflow:auto;
  border-radius: var(--r22);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 680px;
}
.table th, .table td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
}
.table th{
  color:var(--text);
  font-size:.82rem;
  letter-spacing:.24px;
}
.table td{ color:var(--muted) }

.callout{
  margin-top:16px;
  padding:14px;
  border:1px solid rgba(45,212,191,.22);
  background: rgba(45,212,191,.06);
  border-radius: var(--r16);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* -----------------------------
   8) Forms
   ----------------------------- */
.form{ display:grid; gap:12px }
label{ display:grid; gap:6px; color:var(--muted); font-size:.92rem }

input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder{ color: rgba(170,182,199,.70) }
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: rgba(45,212,191,.45);
  box-shadow: var(--focus);
  background: rgba(255,255,255,.05);
}
.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.checkbox input{ width:auto; margin-top:4px }

/* -----------------------------
   9) Misc
   ----------------------------- */
.tick-list{ padding-left:18px }
.tick-list li{ margin:8px 0; color:var(--muted) }
.quote{ font-size:1.1rem; margin:10px 0 6px; color:var(--text) }
.price{ font-size:1.6rem; font-weight:950 }
.divider{ height:1px; background: rgba(255,255,255,.10); margin:14px 0 }

.team{ display:grid; gap:12px; margin-top:14px }
.team-member{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius: var(--r16);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.avatar{
  width:42px;height:42px;
  border-radius:14px;
  display:grid; place-items:center;
  font-weight:950;
  background: rgba(244,197,66,.12);
  border:1px solid rgba(244,197,66,.28);
}

/* -----------------------------
   10) Footer
   ----------------------------- */
.site-footer{ padding:36px 0 26px }
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap:18px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:26px;
}
.footer-brand{ font-weight:950; margin-bottom:8px }
.footer-title{ font-weight:900; margin-bottom:10px }
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.footer-links a{
  text-decoration:none;
  color:var(--muted);
}
.footer-links a:hover{ color:var(--text) }
.footer-bottom{ margin-top:16px }

/* -----------------------------
   11) Responsive
   ----------------------------- */
@media (max-width: 920px){
  .hero{ padding-top:44px }
  .hero-grid{ grid-template-columns:1fr }
  .hero-highlights{ grid-template-columns:1fr }
  .grid-3{ grid-template-columns:1fr }
  .split{ grid-template-columns:1fr }
  .footer-grid{ grid-template-columns:1fr }

  .nav-toggle{ display:inline-flex }
  .site-nav{
    display:none;
    position:absolute;
    right:22px;
    top:70px;
    flex-direction:column;
    align-items:stretch;
    padding:10px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(11,15,20,.94);
    border-radius: 18px;
    width:min(340px, calc(100vw - 44px));
    box-shadow: var(--shadow);
  }
  .site-nav.is-open{ display:flex }
  .nav-link{ width:100% }
}
