/* ═══════════════════════════════════════════════════════════════════════════
   IAFS — Shared Stylesheet
   Colours matched to actual logo: blue #1B52A0 · orange #F0921A
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --blue:         #1B52A0;
  --blue-dark:    #143D7A;
  --blue-light:   #EEF3FB;
  --orange:       #F0921A;
  --orange-dark:  #D97E10;
  --orange-light: #FEF4E7;
  --bg:           #F5F7FA;
  --surface:      #FFFFFF;
  --border:       #DDE4EF;
  --border-mid:   #C4CFE0;
  --text-900:     #0D1B2A;
  --text-600:     #4A5F74;
  --text-400:     #8A9EB2;
  --display:      Georgia, serif;
  --body:         'Inter', sans-serif;
  --r:            5px;
  --rc:           8px;
  --bh:           44px;
  --mw:           1200px;
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: 48px;
}
@media (max-width: 768px) { .wrap { padding-inline: 24px; } }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--bh);
  padding: 0 28px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-lg { height: 52px; padding: 0 34px; font-size: 15px; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-orange {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
}
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-white {
  background: #FFFFFF;
  color: var(--blue);
  border-color: #FFFFFF;
}
.btn-white:hover { background: #EDF1F9; border-color: #EDF1F9; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--border-mid);
}
.btn-outline:hover { border-color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.75); }

/* ─── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 12px; }

/* ─── Section helpers ────────────────────────────────────────────────────── */
.section { padding: 96px 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.sh {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--text-900);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}
.sl {
  font-size: 16px;
  color: var(--text-600);
  line-height: 1.75;
  max-width: 560px;
}
.section-head {
  margin-bottom: 56px;
  padding-left: 20px;
  border-left: 3px solid var(--orange);
}
.section-head .eyebrow { margin-bottom: 10px; }

/* ─── Page hero banner (inner pages) ─────────────────────────────────────── */
.page-banner {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 52px;
}
.page-banner .eyebrow { margin-bottom: 8px; }
.page-banner-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.page-banner-sub {
  font-size: 17px;
  color: var(--text-600);
  max-width: 800px;
  line-height: 1.7;
}

/* ─── CTA strip (shared across pages) ────────────────────────────────────── */
.cta-strip {
  background: var(--blue);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta-strip::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,146,26,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.cta-heading {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.cta-sub { font-size: 15px; color: rgba(255,255,255,0.6); }
.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cta-ph-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: right;
}
.cta-phone {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: -0.6px;
  transition: color 0.14s;
}
.cta-phone:hover { color: rgba(255,255,255,0.75); }
.cta-phone:focus-visible { outline: 3px solid rgba(255,255,255,0.5); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 820px) {
  .cta-layout { grid-template-columns: 1fr; gap: 40px; }
  .cta-right { align-items: flex-start; }
  .cta-ph-label { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  /* Force own GPU compositing layer — prevents iOS Safari from placing
     CSS-transformed/animated elements above the sticky nav */
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
/* Text always visible alongside logo image */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}
.nav-logo-text strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: -0.2px;
  display: block;
}
.nav-logo-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-600);
  padding: 8px 14px;
  border-radius: var(--r);
  transition: color 0.13s, background 0.13s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); background: var(--blue-light); }
.nav-links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-radius: 3px;
}
.nav-phone:hover { color: var(--blue-dark); }
.nav-phone:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--blue);
  border-radius: var(--r);
}
.nav-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: flex; align-items: center; }
}
@media (max-width: 560px) { .nav-logo-text { display: none; } }

/* Mobile drawer */
.mobile-nav {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-900);
  padding: 12px;
  border-radius: var(--r);
  transition: background 0.13s;
}
.mobile-nav a:hover { background: var(--blue-light); color: var(--blue); }
.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mobile-nav-foot .btn { width: 100%; height: 50px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer { background: #080C18; padding: 64px 0 36px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.f-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin-bottom: 10px;
  line-height: 1.2;
}
.f-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  max-width: 288px;
  margin-bottom: 24px;
}
.f-nata-img {
  height: 88px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.f-nata-img:hover { opacity: 1; }

.f-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 20px;
}
.f-col ul { display: flex; flex-direction: column; gap: 12px; }
.f-col li a {
  font-size: 14px;
  color: rgba(255,255,255,0.48);
  transition: color 0.14s;
}
.f-col li a:hover { color: rgba(255,255,255,0.88); }
.f-col li a:focus-visible { outline: 3px solid rgba(255,255,255,0.4); outline-offset: 2px; border-radius: 3px; }

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.f-copy { font-size: 12px; color: rgba(255,255,255,0.22); }
.f-legal { display: flex; gap: 20px; }
.f-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  transition: color 0.14s;
}
.f-legal a:hover { color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
}

/* ─── Nav JS helper ──────────────────────────────────────────────────────── */
/* toggled by toggleNav() */

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes _fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes _stripIn {
  from { opacity: 0; transform: scale(1.025); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero — load sequence (index.html) */
.hero-kicker { animation: _fadeUp 1.6s var(--ease-expo) both; }
.hero-h1     { animation: _fadeUp 1.8s var(--ease-expo) 0.24s both; }
.hero-body   { animation: _fadeUp 1.8s var(--ease-expo) 0.52s both; }
.hero-ctas   { animation: _fadeUp 1.8s var(--ease-expo) 0.80s both; }
.hero-panel  { animation: _fadeUp 1.8s var(--ease-expo) 0.44s both; }
.photo-strip { animation: _stripIn 2.8s var(--ease-expo) both; }

/* Page banner — load sequence (inner pages) */
.page-banner .eyebrow { animation: _fadeUp 1.6s var(--ease-expo) both; }
.page-banner-title    { animation: _fadeUp 1.8s var(--ease-expo) 0.20s both; }
.page-banner-sub      { animation: _fadeUp 1.8s var(--ease-expo) 0.40s both; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s var(--ease-expo), transform 1.6s var(--ease-expo);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: 0ms; }
.reveal[data-d="2"] { transition-delay: 220ms; }
.reveal[data-d="3"] { transition-delay: 440ms; }
.reveal[data-d="4"] { transition-delay: 660ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero-h1, .hero-body, .hero-ctas, .hero-panel, .photo-strip,
  .page-banner .eyebrow, .page-banner-title, .page-banner-sub { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── Utility ─────────────────────────────────────────────────────────────── */
/* CTA button row used in every CTA strip */
.cta-btns { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Service card icon ──────────────────────────────────────────────────── */
.svc-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  color: var(--blue);
  transition: background 0.22s, color 0.22s;
}
.svc-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ─── Counter pop ────────────────────────────────────────────────────────── */
@keyframes _numPop {
  0%   { transform: scale(0.88); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1);    opacity: 1; }
}
.count-popped { animation: _numPop 0.55s var(--ease-expo) both; }

/* ═══════════════════════════════════════════════════════════════════════════
   HYBRID DESIGN — C + B animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Orange rule draws in left-to-right on load */
@keyframes _ruleDraw {
  from { width: 0; opacity: 0; }
  to   { width: 20px; opacity: 1; }
}
.hero-kicker::before {
  animation: _ruleDraw 0.6s var(--ease-expo) 0.05s both;
}

/* 2. Hero h1 line stagger (applied to .line spans inside .hero-h1) */
@keyframes _lineUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-h1 .line   { display: block; }
.hero-h1 .line-1 { animation: _lineUp 1.1s var(--ease-expo) 0.28s both; }
.hero-h1 .line-2 { animation: _lineUp 1.1s var(--ease-expo) 0.40s both; }

/* 3. Ghost number breathe (sinusoidal scale loop) */
@keyframes _breathe {
  0%, 100% { transform: scale(1.00); }
  50%       { transform: scale(1.02); }
}
/* Note: .hero-ghost styles now live in the inline <style> block in index.html */

/* 4. Credential rows slide in from right on scroll */
.slide-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.slide-right.is-visible  { opacity: 1; transform: translateX(0); }
.slide-right[data-d="1"] { transition-delay: 0ms; }
.slide-right[data-d="2"] { transition-delay: 80ms; }
.slide-right[data-d="3"] { transition-delay: 160ms; }
.slide-right[data-d="4"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker::before                { animation: none !important; }
  .hero-h1 .line-1, .hero-h1 .line-2 { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-ghost                         { animation: none !important; }
  .slide-right { opacity: 1 !important; transform: none !important; transition: none !important; }
}
