/* ═══════════════════════════════════════════════════════════
   AL TAZKIYA — White & Sky Blue Tile Theme · Lexend Font
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:       #F0F9FF;
  --bg2:      #E0F2FE;
  --bg3:      #F8FCFF;
  --white:    #FFFFFF;
  --sky:      #0EA5E9;
  --sky2:     #38BDF8;
  --sky3:     #7DD3FC;
  --sky4:     #BAE6FD;
  --skydark:  #0284C7;
  --skyxdark: #0369A1;
  --ink:      #0C1A2E;
  --ink2:     #1E3A5F;
  --muted:    #64748B;
  --muted2:   #94A3B8;
  --tile:     #FFFFFF;
  --tile2:    #F0F9FF;
  --tilebdr:  #BAE6FD;
  --tilebdr2: #7DD3FC;
  --shadow:   rgba(14,165,233,0.10);
  --shadow2:  rgba(14,165,233,0.18);
  --r:        12px;
  --r2:       18px;
  --r3:       24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TILE GRID BACKGROUND PATTERN ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--tilebdr) 1px, transparent 1px),
    linear-gradient(90deg, var(--tilebdr) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

/* ── NO 3D ── */
#bg-canvas { display: none; }
#cursor    { display: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tilebdr);
  transition: padding .3s, box-shadow .3s;
}
nav.scrolled {
  padding: 13px 56px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 24px var(--shadow);
}
.nav-logo {
  font-family: 'Lexend', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink); text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sky); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 12px; letter-spacing: .06em; font-weight: 400;
  color: var(--muted); text-decoration: none;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--sky);
  border-radius: 2px; transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--sky); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-size: 12px; letter-spacing: .06em; font-weight: 600;
  color: var(--white); background: var(--sky);
  padding: 10px 24px; text-decoration: none;
  border-radius: var(--r);
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.nav-cta:hover { background: var(--skydark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; transition: all .3s; border-radius: 2px; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  border-left: 1px solid var(--tilebdr);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 26px; font-weight: 500; color: var(--ink);
  text-decoration: none; transition: color .2s;
}
.mobile-menu a:hover { color: var(--sky); }

/* ── BUTTONS ── */
.btn-blue {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 12px; letter-spacing: .06em; font-weight: 600;
  color: var(--white); background: var(--sky);
  padding: 14px 32px; text-decoration: none;
  border-radius: var(--r); border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(14,165,233,0.35);
  transition: all .2s;
}
.btn-blue::after { content: '→'; }
.btn-blue:hover { background: var(--skydark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,0.45); }
.btn-glass {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 12px; letter-spacing: .06em; font-weight: 500;
  color: var(--sky); background: var(--white);
  padding: 14px 32px; text-decoration: none;
  border-radius: var(--r); border: 2px solid var(--sky3);
  cursor: pointer; transition: all .2s;
}
.btn-glass:hover { background: var(--bg2); border-color: var(--sky); transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow); }

/* ── MARQUEE ── */
.mq-wrap {
  position: relative; z-index: 10;
  border-top: 1px solid var(--tilebdr); border-bottom: 1px solid var(--tilebdr);
  padding: 14px 0; overflow: hidden;
  background: var(--white);
}
.mq-track { display: flex; white-space: nowrap; animation: mScroll 36s linear infinite; }
.mq-wrap:hover .mq-track { animation-play-state: paused; }
.mq-item {
  display: inline-flex; align-items: center; gap: 20px; padding: 0 20px;
  font-size: 11px; letter-spacing: .18em; font-weight: 400; color: var(--muted);
}
.mq-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
@keyframes mScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
section { position: relative; z-index: 10; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.s-eyebrow {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sky); display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-weight: 600;
}
.s-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--sky); border-radius: 2px; }
.s-title {
  font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em; color: var(--ink);
}
.s-title em { font-style: normal; color: var(--sky); }
.s-body { font-size: 15px; line-height: 1.8; color: var(--muted); font-weight: 300; margin-top: 16px; }

/* ── TILE CARD ── */
.glass-card {
  background: var(--tile);
  border: 1px solid var(--tilebdr);
  border-radius: var(--r2);
  box-shadow: 0 2px 12px var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.glass-card:hover {
  border-color: var(--sky3);
  box-shadow: 0 8px 32px var(--shadow2);
  transform: translateY(-3px);
}

/* ── HERO ── */
.hero-base {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 56px 80px; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 35%, rgba(14,165,233,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 5% 80%, rgba(186,230,253,0.25) 0%, transparent 55%),
    var(--bg);
}
.hero-grid-lines { display: none; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; z-index: 10;
  min-height: 48vh; display: flex; align-items: flex-end;
  padding: 130px 56px 60px;
  border-bottom: 1px solid var(--tilebdr);
}
.page-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 110%, rgba(14,165,233,0.08) 0%, transparent 65%),
  var(--bg);
}
.page-hero-grid { display: none; }

/* ── HERO CONTENT ── */
.hero-eyebrow {
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 24px; font-weight: 600;
  display: flex; align-items: center; gap: 16px;
  animation: fadeUp .7s .1s ease both;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--sky); border-radius: 2px; }
.hero-title {
  font-size: clamp(48px, 7.5vw, 104px); font-weight: 700;
  line-height: .95; letter-spacing: -.03em; color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--sky); }
.t-line { display: block; overflow: hidden; }
.t-line span { display: block; animation: lineUp .9s ease both; }
.t-line:nth-child(1) span { animation-delay: .2s; }
.t-line:nth-child(2) span { animation-delay: .32s; }
.t-line:nth-child(3) span { animation-delay: .44s; }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 48px; animation: fadeUp .8s .75s ease both;
}
.hero-desc { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 320px; font-weight: 300; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-side-stats {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 24px;
  animation: fadeIn .9s 1s ease both;
}
.hstat { text-align: right; }
.hstat-n { font-size: 38px; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.hstat-n sup { color: var(--sky); font-size: 16px; font-weight: 500; }
.hstat-l { font-size: 10px; letter-spacing: .16em; color: var(--muted2); text-transform: uppercase; margin-top: 4px; }
.hstat-sep { width: 1px; height: 18px; background: var(--tilebdr2); margin-left: auto; }

/* ── SCROLL IND ── */
.scroll-ind {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeIn .8s 1.2s ease both;
}
.scroll-line { width: 2px; height: 44px; background: linear-gradient(to bottom, var(--sky), transparent); border-radius: 2px; animation: sPulse 2s ease-in-out infinite; }
.scroll-lbl { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted2); writing-mode: vertical-lr; }

/* ── STATS STRIP ── */
.stats-strip {
  position: relative; z-index: 10;
  background: var(--sky);
  padding: 36px 56px;
}
.stats-strip-g {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.ss-num { font-size: 42px; font-weight: 700; line-height: 1; color: var(--white); margin-bottom: 8px; letter-spacing: -.02em; }
.ss-num span { font-size: 22px; font-weight: 500; }
.ss-lbl { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.75); font-weight: 400; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 10;
  background: var(--ink);
  border-top: 1px solid var(--tilebdr);
  padding: 60px 56px 36px;
}
.foot-g { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.foot-logo {
  font-family: 'Lexend', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.foot-tag { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; font-weight: 300; max-width: 220px; }
.foot-contact { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.4); line-height: 2.2; }
.foot-col h5 { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--sky3); margin-bottom: 18px; font-weight: 600; }
.foot-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; margin-bottom: 10px; transition: color .2s; font-weight: 300; }
.foot-col a:hover { color: var(--sky3); }
.foot-bottom {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,0.28); letter-spacing: .04em;
}

/* ── WA ── */
.wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.wa:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.wa svg { width: 26px; height: 26px; fill: white; }

/* ── REVEALS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.25,.46,.45,.94), transform .65s cubic-bezier(.25,.46,.45,.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity .8s ease; }
.reveal-fade.visible { opacity: 1; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger .reveal:nth-child(1) { transition-delay: .04s; }
.stagger .reveal:nth-child(2) { transition-delay: .10s; }
.stagger .reveal:nth-child(3) { transition-delay: .16s; }
.stagger .reveal:nth-child(4) { transition-delay: .22s; }
.stagger .reveal:nth-child(5) { transition-delay: .28s; }
.stagger .reveal:nth-child(6) { transition-delay: .34s; }

/* ── KEYFRAMES ── */
@keyframes lineUp  { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes sPulse  { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ── DIVIDERS ── */
.blue-line { width: 48px; height: 3px; background: var(--sky); border-radius: 2px; margin: 0 auto 36px; }
.h-line { width: 100%; height: 1px; background: var(--tilebdr); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .foot-g { grid-template-columns: 1fr 1fr; }
  .hero-side-stats { display: none; }
}
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .hero-base { padding: 0 20px 80px; }
  .page-hero { padding: 120px 20px 52px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stats-strip { padding: 28px 20px; }
  .stats-strip-g { grid-template-columns: repeat(2, 1fr); }
  .foot-g { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
  footer { padding: 48px 20px 28px; }
}
