/* ── mhuzaifa.com — SHARED STYLESHEET v2 ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@400;500&display=swap');

:root {
  --blue:      #0047FF;
  --blue-mid:  #2563EB;
  --blue-soft: #EEF3FF;
  --teal:      #007A8A;
  --teal-soft: #E6F4F6;
  --amber:     #FF8C00;
  --amber-soft:#FFF3E0;
  --ink:       #080C14;
  --ink-soft:  #1E2533;
  --ink-mid:   #4A5568;
  --ink-muted: #8896A8;
  --white:     #FFFFFF;
  --off:       #F7F8FC;
  --off2:      #EFF1F7;
  --rule:      rgba(0,71,255,0.08);
  --rule-soft: rgba(8,12,20,0.07);
  --serif:     'Instrument Serif', Georgia, serif;
  --sans:      'Syne', sans-serif;
  --mono:      'DM Mono', monospace;
  --max:       1200px;
  --nav-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--white); color: var(--ink); font-family: var(--sans); overflow-x: hidden; line-height: 1.6; }

body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; background: rgba(255,255,255,0.93); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule-soft); transition: box-shadow 0.3s, border-color 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,71,255,0.06); border-color: var(--rule); }
.nav-logo { font-family: var(--sans); font-size: 0.95rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-mid); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding: 9px 22px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--ink) !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all 0.3s; }
.nav-mobile { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule-soft); padding: 20px 32px; z-index: 99; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mid); text-decoration: none; border-bottom: 1px solid var(--rule-soft); transition: color 0.2s; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--blue); }

/* ── PAGE HERO (interior pages) ── */
.page-hero { padding: 140px 56px 80px; background: var(--ink); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.025) 1px,transparent 1px); background-size: 56px 56px; pointer-events: none; }
.page-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 2; }
.page-hero-eyebrow { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.page-hero-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--teal); }
.page-hero-title { font-family: var(--serif); font-size: clamp(2.8rem,5vw,4.5rem); font-weight: 400; color: var(--white); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero-title em { font-style: italic; color: var(--blue); }
.page-hero-sub { font-size: 1rem; color: rgba(255,255,255,0.5); max-width: 540px; line-height: 1.78; }

/* ── SHARED SECTIONS ── */
section { padding: 100px 56px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-eyebrow { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--blue); }
.section-title { font-family: var(--serif); font-size: clamp(1.8rem,3.2vw,2.8rem); font-weight: 400; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-title em { font-style: italic; color: var(--blue); }
.section-desc { font-size: 0.97rem; color: var(--ink-mid); line-height: 1.8; max-width: 560px; }

/* ── BUTTONS ── */
.btn-primary { background: var(--blue); color: var(--white); padding: 14px 30px; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-secondary { border: 1.5px solid var(--rule-soft); color: var(--ink); padding: 14px 30px; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; transition: border-color 0.2s, color 0.2s, transform 0.2s; background: transparent; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--white); padding: 14px 30px; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; transition: background 0.2s, transform 0.2s; }
.btn-teal:hover { background: var(--ink); transform: translateY(-2px); }

/* ── TAGS ── */
.wtag { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--rule-soft); color: var(--ink-mid); }
.wtag.blue { background: var(--blue-soft); border-color: rgba(0,71,255,0.15); color: var(--blue); }
.wtag.teal { background: var(--teal-soft); border-color: rgba(0,122,138,0.15); color: var(--teal); }
.wcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── MARQUEE ── */
.marquee-wrap { background: var(--teal); padding: 13px 0; overflow: hidden; }
.marquee-track { display: flex; animation: marquee 30s linear infinite; white-space: nowrap; }
.mq-item { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 24px; color: rgba(255,255,255,0.5); border-right: 1px solid rgba(255,255,255,0.12); }
.mq-item.accent { color: rgba(255,255,255,0.9); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FOOTER ── */
.footer { background: var(--ink); padding: 64px 56px 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-logo { font-family: var(--sans); font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--blue); }
.footer-blurb { font-size: 0.84rem; color: rgba(255,255,255,0.35); line-height: 1.75; max-width: 280px; }
.footer-heading { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.86rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.2); }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }
@keyframes breathe { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.08); opacity: 0.7; } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  section { padding: 72px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
