/* Shared theme styles for AI for Ilm & Impact */

/* ===== Logo-inspired palette ===== */
:root{
  --emerald-900:#064436;
  --emerald-800:#0A5B46;
  --emerald-700:#0B6B50;
  --emerald-100:#EAF6F1;

  --navy-700:#0B3B6E;
  --gold-700:#B58B2C;
  --gold-400:#D4B15A;
  --gold-100:#FBF3DE;

  --bg-ivory:#FBFAF4;
  --text:#0f172a;
  --muted:#475569;
  --border:#E6E2D8;

  --radius:18px;
  --shadow:0 14px 36px rgba(7, 55, 40, .10);
  --max:1120px;

  --font-body:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head:"Source Serif 4", "Times New Roman", serif;

  --underline-grad: linear-gradient(90deg, var(--navy-700), var(--gold-700), var(--gold-400));
  --underline-w-hero: 56px;
  --underline-w-h2: 46px;
  --underline-w-h3: 30px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color:var(--text);
  line-height:1.65;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(11,107,80,.22), transparent 60%),
    radial-gradient(700px 360px at 88% 10%, rgba(11,59,110,.12), transparent 62%),
    radial-gradient(680px 420px at 80% 85%, rgba(212,177,90,.10), transparent 65%),
    linear-gradient(180deg, #F7FBF8 0%, var(--bg-ivory) 52%, #ffffff 100%);
}

a{ text-decoration:none; color:inherit; }
img, picture{ max-width:100%; height:auto; }
.container{
  max-width:var(--max);
  margin:auto;
  padding:0 clamp(16px, 4vw, 32px);
}

/* ===== Splash Screen ===== */
.splash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(11,107,80,.26), transparent 60%),
    radial-gradient(700px 360px at 85% 15%, rgba(11,59,110,.12), transparent 62%),
    linear-gradient(180deg, #F7FBF8 0%, var(--bg-ivory) 60%, #ffffff 100%);
  transition: opacity 380ms ease, visibility 380ms ease;
}
.splash.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.splash-card{
  width:min(560px, 92vw);
  padding:26px;
  border-radius:26px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  display:grid;
  gap:14px;
  justify-items:center;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.splash-card:before{
  content:"";
  position:absolute;
  inset:-90px -110px auto auto;
  width:320px;height:320px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(212,177,90,.16), transparent 62%);
  pointer-events:none;
}
.splash-logo{
  width:76px;height:76px;border-radius:22px;
  display:grid;place-items:center;
  box-shadow:0 14px 30px rgba(11,107,80,.25);
  position:relative;
  overflow:hidden;
  background:transparent;
}
.splash-logo:after{
  content:"";
  position:absolute;
  width:90px;height:90px;
  right:-45px;top:-45px;
  background: radial-gradient(circle at 30% 30%, rgba(212,177,90,.85), transparent 60%);
  opacity:.65;
  pointer-events:none;
}
.splash-title{
  font-weight:950;
  letter-spacing:-.03em;
  font-size:20px;
  margin:0;
  position:relative;
  z-index:1;
  text-align:center;
  width:100%;
}
.splash-sub{
  margin:0;
  color:var(--muted);
  font-weight:700;
  position:relative;
  z-index:1;
  text-align:center;
  width:100%;
}
.splash-bar{
  width:180px;
  height:6px;
  border-radius:999px;
  background: rgba(11,107,80,.12);
  overflow:hidden;
  border:1px solid rgba(11,107,80,.12);
  position:relative;
  z-index:1;
}
.splash-bar > i{
  display:block;
  height:100%;
  width:40%;
  border-radius:999px;
  background: var(--underline-grad);
  animation: splashMove 1.15s ease-in-out infinite;
  opacity:.95;
}
@keyframes splashMove{
  0%{ transform:translateX(-60%); }
  50%{ transform:translateX(120%); }
  100%{ transform:translateX(-60%); }
}

/* ===== Header ===== */
header{
  position:sticky; top:0; z-index:20;
  background:rgba(251,250,244,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  display:flex; gap:12px; align-items:center;
  font-weight:900;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.logo{
  width:44px; height:44px; border-radius:16px;
  display:grid; place-items:center;
  box-shadow: 0 10px 22px rgba(11,107,80,.25);
  position:relative;
  overflow:hidden;
  background:transparent;
}

.logo img,
.splash-logo img{
  width:100%;
  height:100%;
  display:block;
}
.logo:after{
  content:"";
  position:absolute;
  width:70px; height:70px;
  right:-35px; top:-35px;
  background: radial-gradient(circle at 30% 30%, rgba(212,177,90,.75), transparent 60%);
  opacity:.65;
  pointer-events:none;
}

.nav-menu{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.nav-menu a{
  font-weight:850;
  color:var(--muted);
  padding:10px 12px;
  border-radius:14px;
  font-family: var(--font-body);
  letter-spacing:0.01em;
}
.nav-menu a:hover{
  color:var(--text);
  background: rgba(11,107,80,.08);
}
.nav-menu a:focus-visible,
.btn:focus-visible{
  outline:2px solid var(--emerald-800);
  outline-offset:3px;
}

.icon-whatsapp{
  width:18px;
  height:18px;
  margin-right:8px;
  object-fit:contain;
  display:inline-block;
  vertical-align:middle;
}

.nav-toggle{
  display:none;
  width:46px;
  height:46px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-direction:column;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(7,55,40,.10);
}
.nav-toggle span{
  display:block;
  width:100%;
  height:3px;
  background: var(--emerald-800);
  border-radius:999px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.nav-overlay{
  display:none;
}
.nav-overlay.show{
  display:block;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.28);
  backdrop-filter: blur(2px);
  z-index:15;
}

body.nav-locked{
  overflow:hidden;
  touch-action:none;
}

.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;
}

@media(max-width:1023px){
  .nav{ flex-wrap:wrap; gap:12px; }
  .nav-toggle{ display:inline-flex; margin-left:auto; z-index:21; }
  .nav-menu{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(320px, 82vw);
    background:#fff;
    padding:80px 24px 28px;
    box-shadow:-16px 0 40px rgba(7,55,40,.14);
    display:flex;
    flex-direction:column;
    gap:12px;
    justify-content:flex-start;
    align-items:stretch;
    overflow-y:auto;
    transform: translateX(100%);
    transition: transform .24s ease;
    z-index:20;
  }
  .nav-menu.open{
    transform: translateX(0);
  }
}
@media(max-width:640px){
  .nav-menu a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    text-align:center;
  }
  .nav-menu .btn{ width:100%; justify-content:center; }
}
@media(max-width:600px){
  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .hero-actions .btn{
    width:100%;
    justify-content:center;
  }
  .hero-badges{ gap:10px; }
}

.btn{
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--border);
  font-weight:700;
  letter-spacing:0.02em;
  font-family: var(--font-body);
  background:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .12s ease, box-shadow .12s ease;
  white-space:nowrap;
  min-height:44px;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(7,55,40,.10); }

.btn.primary{
  border:none;
  color:#fff;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
  box-shadow:0 12px 26px rgba(11,107,80,.24);
}

.btn.gold{
  border:1px solid rgba(181,139,44,.35);
  background: linear-gradient(135deg, var(--gold-100), #fff);
  color: #3b2a08;
}

/* ===== Hero ===== */
.hero{
  padding:clamp(52px, 8vw, 78px) 0 clamp(36px, 6vw, 56px);
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  align-items:start;
}
@media(min-width:600px){
  .hero{ gap:34px; }
}
@media(min-width:1024px){
  .hero{ gap:36px; }
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background: rgba(11,107,80,.10);
  color: var(--emerald-900);
  font-weight:700;
  letter-spacing:0.01em;
  font-family: var(--font-body);
  font-size:13px;
  margin-bottom:14px;
  border:1px solid rgba(11,107,80,.14);
}
.pill span{
  width:10px; height:10px; border-radius:50%;
  background: var(--emerald-700);
  box-shadow:0 0 0 6px rgba(11,107,80,.10);
}

h1{
  font-size:clamp(2.1rem, 5vw, 3.6rem);
  line-height:1.05;
  margin:0 0 12px;
  letter-spacing:-0.01em;
  font-family: var(--font-head);
  font-weight:700;
}

.subhead{
  color:var(--muted);
  font-weight:650;
  max-width:68ch;
  font-size:clamp(1rem, 1.15vw, 1.08rem);
  margin:0;
  font-family: var(--font-body);
  letter-spacing:0.005em;
}
.hero-body{ margin-top:12px; font-weight:600; }

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:22px; }
.hero-actions .btn{ min-height:44px; }
.hero-actions .btn.primary,
.hero-actions .btn.gold{ padding-inline: clamp(16px, 4vw, 22px); }

.hero-badges{ display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.badge{
  display:flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--border);
  font-weight:700;
  letter-spacing:0.01em;
  font-family: var(--font-body);
  color:var(--muted);
  box-shadow: 0 10px 18px rgba(7,55,40,.06);
}
.badge span{
  width:28px; height:28px; border-radius:10px;
  display:grid; place-items:center;
  background: var(--emerald-100);
  color: var(--emerald-900);
  font-weight:900;
}
.badge.gold span{
  background: var(--gold-100);
  color: #3b2a08;
}

/* ===== Cards ===== */
.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  position:relative;
  overflow:hidden;
}
.card:before{
  content:"";
  position:absolute;
  inset:-80px -90px auto auto;
  width:260px; height:260px;
  background: radial-gradient(circle at 30% 30%, rgba(212,177,90,.10), transparent 62%);
  border-radius:999px;
  pointer-events:none;
}

/* ===== Form (alignment fixed) ===== */
.form{
  display:grid;
  gap:14px;
  margin-top:14px;
  position:relative;
  z-index:1;
}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media(max-width:520px){ .form-row{ grid-template-columns:1fr; } }
.field{ display:grid; gap:8px; min-width:0; }
.field label{ font-weight:900; font-size:13px; }
.control{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  font:inherit;
  outline:none;
  background:#fff;
  min-width:0;
}
.control:focus{
  border-color: rgba(11,107,80,.55);
  box-shadow:0 0 0 6px rgba(11,107,80,.14);
}
textarea.control{ resize:vertical; min-height:110px; }
.hint{ font-size:12px; color:var(--muted); margin:0; }
.submit-btn{
  width:100%;
  padding:14px 18px;
  border-radius:14px;
  border:none;
  font-weight:900;
  cursor:pointer;
  color:#fff;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
  box-shadow:0 12px 26px rgba(11,107,80,.24);
}

/* ===== Sections ===== */
section{ padding:clamp(48px, 8vw, 74px) 0; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:14px; margin-bottom:24px; flex-wrap:wrap;
}
.section-head h2{
  margin:0;
  font-size:26px;
  letter-spacing:-0.01em;
  font-family: var(--font-head);
  font-weight:600;
}
.step h3,
.info-card h3{
  font-family: var(--font-head);
  letter-spacing:-0.01em;
  font-weight:600;
}
.section-head p{
  color:var(--muted);
  max-width:72ch;
  font-weight:650;
  margin:8px 0 0;
}

.grid-3{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media(min-width:768px){ .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px){ .grid-3{ grid-template-columns:repeat(3,1fr); } }

.grid-4{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media(min-width:600px){ .grid-4{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px){ .grid-4{ grid-template-columns:repeat(4,1fr); } }

.step{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.step:before{
  content:"";
  position:absolute;
  inset:auto -60px -70px auto;
  width:180px; height:180px;
  background: radial-gradient(circle at 30% 30%, rgba(212,177,90,.12), transparent 62%);
  border-radius:999px;
  pointer-events:none;
}
.step .num{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:var(--emerald-100);
  color:var(--emerald-900);
  font-weight:900;
  margin-bottom:12px;
  border: 1px solid rgba(11,107,80,.10);
  position:relative;
  z-index:1;
}
.step h3{ margin:6px 0 6px; position:relative; z-index:1; }
.step p{ color:var(--muted); font-weight:650; margin:0; position:relative; z-index:1; }

.info-card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.info-card:before{
  content:"";
  position:absolute;
  inset:-60px -70px auto auto;
  width:220px; height:220px;
  background: radial-gradient(circle at 30% 30%, rgba(11,59,110,.10), transparent 62%);
  border-radius:999px;
  pointer-events:none;
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:950;
  color:var(--emerald-900);
  background:rgba(11,107,80,.10);
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.02em;
  width:max-content;
  border:1px solid rgba(11,107,80,.14);
  position:relative;
  z-index:1;
}
.kicker .dot{
  width:8px;height:8px;border-radius:999px;background:var(--gold-700);
  box-shadow:0 0 0 5px rgba(212,177,90,.18);
}
.info-card h3{ margin:12px 0 8px; position:relative; z-index:1; }
.info-card p{ margin:0; color:var(--muted); font-weight:650; position:relative; z-index:1; }

/* ===== Footer ===== */
footer{
  padding:36px 0 44px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-weight:650;
  background: rgba(251,250,244,.55);
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px 20px;
  flex-wrap:wrap;
}
.footer-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
}
.footer-links a{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:850;
}
.footer-links a:hover{
  background: rgba(11,107,80,.08);
  color:var(--text);
  border-color: rgba(11,107,80,.10);
}
.footer-note{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:850;
  cursor:default;
}

@media(max-width:600px){
  .footer-grid{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }
  .footer-links{
    width:100%;
    justify-content:flex-start;
    gap:8px;
  }
  .footer-links a,
  .footer-note{
    padding:8px 10px;
  }
}

/* =========================================================
   ✨ Premium Heading System
   - tiny navy→gold underline
   - animates on scroll
   - subtle “arch motif”
   ========================================================= */
h1, .section-head h2, .info-card h3, .step h3{
  position:relative;
  font-family: var(--font-head);
  letter-spacing:-0.01em;
}

.u-hero::after,
.u-section::after,
.u-card::after{
  content:"";
  display:block;
  height:3px;
  border-radius:999px;
  margin-top:12px;
  background: var(--underline-grad);
  transform-origin:left center;
  transform: scaleX(0);
  opacity:.95;
  filter:saturate(1.05);
}
.u-hero::after{ width: var(--underline-w-hero); }
.u-section::after{ width: var(--underline-w-h2); }
.u-card::after{ width: var(--underline-w-h3); height:2px; margin-top:8px; opacity:.78; }

.reveal.u-hero::after,
.reveal.u-section::after,
.reveal.u-card::after{
  animation: underlineIn 700ms cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes underlineIn{
  0%{ transform:scaleX(0); opacity:0; }
  65%{ transform:scaleX(1.02); opacity:.95; }
  100%{ transform:scaleX(1); opacity:.92; }
}

.u-hero::before,
.u-section::before{
  content:"";
  position:absolute;
  left:-8px;
  top:-12px;
  width:34px;
  height:22px;
  border:2px solid rgba(11,107,80,.22);
  border-bottom:none;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  transform: translateY(2px);
  opacity:0;
  pointer-events:none;
}
.reveal.u-hero::before,
.reveal.u-section::before{
  animation: motifIn 650ms cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes motifIn{
  0%{ opacity:0; transform: translateY(6px) scale(.98); }
  100%{ opacity:1; transform: translateY(2px) scale(1); }
}
@media(max-width:480px){
  .u-hero::before, .u-section::before{
    width:28px; height:18px; left:-6px; top:-10px;
  }
}

/* ===== Slideshow (CSS-only) ===== */
.slideshow{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 14px 30px rgba(7,55,40,.08);
}
.slideshow img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  background:
    radial-gradient(420px 220px at 20% 10%, rgba(11,107,80,.10), transparent 60%),
    radial-gradient(380px 200px at 80% 20%, rgba(212,177,90,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,250,244,.88));
  opacity:0;
  animation: slideFade 18s infinite;
}
.slideshow img:nth-child(1){ animation-delay: 0s; }
.slideshow img:nth-child(2){ animation-delay: 6s; }
.slideshow img:nth-child(3){ animation-delay: 12s; }

@keyframes slideFade{
  0%{ opacity:0; }
  6%{ opacity:1; }
  33%{ opacity:1; }
  39%{ opacity:0; }
  100%{ opacity:0; }
}

/* ===== Cookie / Privacy Banner ===== */
.cookie{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  padding:14px;
}
.cookie[hidden]{ display:none; }
.cookie-card{
  max-width: var(--max);
  margin: 0 auto;
  padding:14px 14px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(7,55,40,.16);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.cookie-title{
  font-weight:950;
  letter-spacing:-.02em;
  color: var(--emerald-900);
  margin:0 0 2px;
}
.cookie-text{
  color: var(--muted);
  font-weight:650;
  font-size:13px;
  max-width: 80ch;
}
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
@media(max-width:640px){
  .cookie-card{ flex-direction:column; align-items:stretch; }
  .cookie-actions{ justify-content:flex-end; }
}

.hero-quote{
  text-align:center;
  margin:0 auto clamp(10px,4vw,22px);
  color:var(--emerald-900);
  max-width:720px;
}
.hero-quote .arabic{
  font-family: var(--font-head);
  font-size:clamp(1rem, 2vw, 1.35rem);
  letter-spacing:0.02em;
}
.hero-quote .translation{
  margin-top:6px;
  font-weight:700;
  color: var(--navy-700);
  font-size:clamp(1rem, 2.4vw, 1.2rem);
}

@media(prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}
