/* ============================================================
   BASE — global shell + shared page components
   Loaded on every page. Flexbox only (no grid).
   Faithful port of resources/css/site.css (original design
   system — cream/black editorial, --purple = near-black ink).
   ============================================================ */

/* ============================================
   FONTS
   Licensed fonts (Bulevar, TTNormsPro) —
   drop .woff2 files into public/fonts to enable.
   Falls back to DM Sans from Google Fonts.
============================================ */

:root{
  --purple:#2c16a6;
  --purple-dark:#1c0f6b;
  --purple-deep:#2c16a6;
  --purple-tint:#F0EDFF;
  --purple-tint-2:#E5DFFF;
  --black:#0A0910;
  --near-black:#121016;
  --white:#FFFFFF;
  --cream:#FAF6EF;
  --cream-2:#F3ECE0;
  --cream-3:#EFE4D3;
  --ink:#16121E;
  --ink-soft:#433E4E;
  --gray:#5F5B68;
  --gray-light:#85818C;
  --line:#E6E1EC;
  --line-warm:#E9DFCE;
  --card-shadow:0 24px 60px -28px rgba(18,14,32,.28);
  --card-shadow-sm:0 14px 34px -20px rgba(18,14,32,.28);

  --font-display:'Bulevar','DM Sans',sans-serif;
  --font-heading:'TTNormsPro','DM Sans',sans-serif;
  --font-body:'DM Sans',sans-serif;
  --font-mono:'Fira Code',ui-monospace,'Cascadia Mono',Consolas,monospace;

  --container:1240px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; overflow-y:auto; scrollbar-gutter:stable; overflow-x:clip;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
  overflow-y:auto;
  min-height:100vh;
}
:focus-visible{
  outline:3px solid var(--purple);
  outline-offset:2px;
  border-radius:6px;
}
::selection{ background:var(--purple); color:#fff; }
.lucide{ width:18px; height:18px; }
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer; border:none;}

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

h1,h2,h3,h4{
  font-family:var(--font-heading);
  font-weight:700;
  line-height:1.08;
  letter-spacing:-0.01em;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--purple);
}
.eyebrow::before{
  content:"";
  width:6px; height:6px;
  background:var(--purple);
  display:inline-block;
  border-radius:1px;
  transform:rotate(45deg);
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-size:14.5px;
  font-weight:600;
  transition:transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--purple);
  color:var(--white);
  box-shadow:0 10px 24px -10px rgba(28,15,107,.55);
}
.btn-primary:hover{ background:var(--purple-dark); transform:translateY(-2px); box-shadow:0 14px 28px -12px rgba(28,15,107,.7); }
.btn-dark{
  background:var(--black);
  color:var(--white);
}
.btn-dark:hover{ background:var(--purple); transform:translateY(-2px); }
.btn-outline{
  background:transparent;
  color:var(--black);
  border:1.5px solid var(--black);
}
.btn-outline:hover{ background:var(--black); color:var(--white); }
.btn-ghost-dark{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 24px; border-radius:999px;
  font-size:14.5px; font-weight:600;
  background:#fff; color:var(--ink);
  border:1.5px solid var(--line-warm);
  transition:all .25s ease;
}
.btn-ghost-dark:hover{ border-color:var(--purple); color:var(--purple-deep); transform:translateY(-2px); }
.btn svg{ width:14px; height:14px; transition:transform .25s ease; }
.btn:hover svg{ transform:translateX(3px); }

/* reveal on scroll — AOS-style, site-wide. TRANSFORM-ONLY (no opacity):
   start offset/scale is set per element by site.js, animated by the Web
   Animations API, reversed on exit. State classes are just fallbacks. */
.reveal{ transform:translateY(56px); }
.reveal.in{ transform:none; }

@media (prefers-reduced-motion: reduce){
  .reveal{ transform:none; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav-dropdown{ position:relative; }
.nav-dropdown::after{
  content:"";
  position:absolute;
  top:100%;
  left:-20px;
  right:-20px;
  height:22px;
  display:block;
}
.nav-dropdown-trigger{
  display:flex; align-items:center; gap:5px;
  color:var(--black); opacity:.8; font-size:14.5px; font-weight:500;
  transition:opacity .2s; cursor:pointer;
}
.nav-dropdown-trigger:hover{ opacity:1; }
.nav-dropdown-trigger svg{ transition:transform .25s ease; }
.nav-dropdown:hover .nav-dropdown-trigger svg{ transform:rotate(180deg); }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%);
  background:var(--white); border:1px solid var(--line);
  border-radius:16px; padding:10px;
  display:flex; flex-wrap:wrap; gap:2px; width:480px;
  box-shadow:0 20px 60px -20px rgba(10,9,16,.18), 0 0 0 1px rgba(0,0,0,.04);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:200;
}
.nav-dropdown-menu > li{ flex:1 1 calc((100% - 2px)/2); min-width:0; }
.nav-dropdown:hover .nav-dropdown-menu{ opacity:1; pointer-events:auto; }
.nav-dropdown-menu a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px;
  font-size:13.5px; font-weight:500; color:var(--black);
  transition:background .18s ease;
}
.nav-dropdown-menu a:hover{ background:var(--purple-tint); color:var(--purple-deep); }
.nav-dropdown-menu .ddico{
  width:32px; height:32px; border-radius:8px;
  background:var(--purple-tint); flex:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--purple-deep);
}
.nav-dropdown-menu .ddico svg{ width:14px; height:14px; }
.nav-active{ opacity:1 !important; color:var(--purple-deep) !important; }

/* ============================================================
   BREADCRUMB BACK
   ============================================================ */
.breadcrumb-back{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13.5px; font-weight:500; color:rgba(255,255,255,.6);
  transition:color .2s;
}
.breadcrumb-back:hover{ color:var(--white); }
.breadcrumb-back svg{ width:14px; height:14px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero{
  padding:110px 0 50px;
  position:relative; overflow:hidden;
}
.page-hero--dark{
  background:var(--black); color:var(--white);
}
.page-hero--dark::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(600px 300px at 80% -5%, rgba(149,80,201,.3), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 64px);
  pointer-events:none;
}
.page-hero--light{ background:var(--white); border-bottom:1px solid var(--line); }

/* Light editorial service hero (GoDefend-style, purple on cream) */
.page-hero--service{ background:transparent; }
.page-hero--service::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(700px 320px at 88% -10%, rgba(149,80,201,.14), transparent 60%),
    radial-gradient(500px 260px at 0% 30%, rgba(149,80,201,.07), transparent 55%);
}
.page-hero--service .page-hero-copy .eyebrow{
  background:#fff; border:1px solid var(--line-warm);
  padding:8px 14px; border-radius:999px; box-shadow:var(--card-shadow-sm);
}
.page-hero--service .page-hero-copy .eyebrow .lucide{ width:14px; height:14px; }
.page-hero--service .page-hero-copy h1{ color:var(--ink); letter-spacing:-0.025em; }
.page-hero--service .page-hero-copy h1 .hl{ color:var(--purple); }
.page-hero--service .page-hero-copy p{ color:var(--ink-soft); }
.page-hero--service .breadcrumb-back{ color:var(--gray); font-weight:600; }
.page-hero--service .breadcrumb-back:hover{ color:var(--purple-deep); }
.page-hero--service .page-hero-media{
  border-radius:24px; overflow:hidden;
  aspect-ratio:16/11; min-height:380px; align-self:center;
  box-shadow:var(--card-shadow); border:1px solid var(--line-warm);
}
.page-hero--service .page-hero-media::after{
  background:linear-gradient(0deg, rgba(27,21,35,.45) 0%, transparent 55%);
}
.page-hero--service .hero-badge-row .badge .lucide{ width:14px; height:14px; color:var(--purple); }
.page-hero--service .hero-proof{
  display:flex; align-items:center; gap:12px; margin-top:22px;
  font-size:13.5px; color:var(--ink);
}
.page-hero--service .hero-proof .avatars{ display:flex; }
.page-hero--service .hero-proof .avatars span{
  width:30px; height:30px; border-radius:50%;
  border:2.5px solid var(--cream);
  background:linear-gradient(135deg,var(--purple),var(--purple-deep));
  margin-left:-9px; box-shadow:var(--card-shadow-sm);
}
.page-hero--service .hero-proof .avatars span:first-child{ margin-left:0; }
.page-hero--service .hero-proof .avatars span:nth-child(2){ background:linear-gradient(135deg,#C99DF0,var(--purple-dark)); }
.page-hero--service .hero-proof .avatars span:nth-child(3){ background:linear-gradient(135deg,var(--purple-deep),#2A1740); }
.page-hero--service .hero-proof strong{ display:block; font-size:13.5px; }
.page-hero--service .hero-proof small{ color:var(--gray); font-size:12.5px; }

.page-hero-inner{
  display:flex; gap:60px;
  align-items:center; position:relative; z-index:1;
  padding-bottom:0;
}
.page-hero-inner > *{ flex:1 1 0; min-width:0; }
.page-hero-copy h1{
  font-size:clamp(34px,4.5vw,58px);
  color:var(--white);
  margin:14px 0 18px;
  line-height:1.06;
}
.page-hero--light .page-hero-copy h1{ color:var(--black); }
.page-hero-copy p{ font-size:16px; color:rgba(255,255,255,.65); line-height:1.65; max-width:480px; margin-bottom:30px; }
.page-hero--light .page-hero-copy p{ color:var(--gray); }
.page-hero-actions{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; }

.btn-ghost-white{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:999px;
  font-size:14.5px; font-weight:600;
  background:transparent; color:rgba(255,255,255,.8);
  border:1.5px solid rgba(255,255,255,.3);
  transition:all .25s ease;
}
.btn-ghost-white:hover{ background:rgba(255,255,255,.1); color:var(--white); border-color:rgba(255,255,255,.5); }

.page-hero-media{
  border-radius:20px 20px 0 0; overflow:hidden;
  position:relative; aspect-ratio:16/11;
  min-height:460px;
  align-self:stretch;
}
.page-hero-media img{ width:100%; height:100%; object-fit:cover; filter:saturate(1.05); }
.page-hero-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(10,9,16,.7) 0%, transparent 50%);
}
.hero-badge-row{
  position:absolute; bottom:16px; left:16px; z-index:2;
  display:flex; flex-wrap:wrap; gap:8px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; font-size:12.5px; font-weight:600;
  border-radius:999px;
  background:rgba(255,255,255,.94); color:var(--ink);
  border:1px solid var(--line-warm);
  box-shadow:0 6px 18px -6px rgba(20,12,40,.25);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.badge .dot{
  width:8px; height:8px; border-radius:50%;
  background:#2BB673; flex:none;
}

/* ============================================================
   ABOUT STATS BAND (about + certifications + projects + service detail)
   ============================================================ */
.about-stats-band{ background:var(--black); padding:70px 0; }
.astat-grid{ display:flex; flex-wrap:wrap; gap:1px; background:rgba(255,255,255,.08); border-radius:16px; overflow:hidden; }
.astat{
  flex:1 1 calc((100% - 3px)/4); min-width:0;
  background:var(--near-black); padding:38px 30px; text-align:center;
}
.astat-num{ font-family:var(--font-display); font-size:40px; font-weight:700; color:var(--white); line-height:1; }
.astat-num span{ font-size:24px; color:var(--purple); }
.astat-lbl{ font-size:13px; color:rgba(255,255,255,.5); margin-top:8px; line-height:1.5; }

/* ============================================================
   PAGE CTA BAND
   ============================================================ */
.page-cta-band{ background:var(--purple-deep); padding:90px 0; position:relative; overflow:hidden; }
.page-cta-band::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(560px 260px at 12% 20%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(560px 260px at 88% 80%, rgba(0,0,0,.25), transparent 60%);
}
.pcta-inner{ text-align:center; max-width:640px; margin:0 auto; position:relative; }
.pcta-inner h2{ font-size:clamp(28px,3.2vw,40px); color:var(--white); margin-bottom:14px; letter-spacing:-0.02em; }
.pcta-inner p{ font-size:16px; color:rgba(255,255,255,.75); line-height:1.65; margin-bottom:28px; }
.pcta-inner .btn-primary{ background:#fff; color:var(--purple-deep); box-shadow:0 18px 40px -16px rgba(0,0,0,.45); }
.pcta-inner .btn-primary:hover{ background:var(--cream); transform:translateY(-2px); }

/* ============================================================
   SECTION HEAD (block) — used on home + about
   ============================================================ */
.section-head{
  display:block;
  max-width:920px;
  margin-bottom:52px;
}
.section-head h2{ font-size:clamp(30px,3.6vw,44px); margin-top:14px; max-width:720px; letter-spacing:-0.02em; line-height:1.12; }
.section-head p{ color:var(--ink-soft); max-width:560px; font-size:16px; line-height:1.7; text-align:left; margin-top:18px; }

/* ============================================================
   WHY US (home + services index)
   ============================================================ */
.why{ background:transparent; padding:30px 0 90px; }
.why-top{ text-align:center; max-width:680px; margin:0 auto 40px; }
.why-top h2{ font-size:clamp(30px,3.6vw,42px); margin:14px 0 12px; letter-spacing:-0.02em; }
.why-top p{ color:var(--ink-soft); font-size:15.5px; line-height:1.65; }
.why-cta{ display:flex; justify-content:center; margin-bottom:40px; }

.why-grid{ display:flex; flex-wrap:wrap; gap:18px; margin-bottom:22px; }
.why-card{
  flex:1 1 calc((100% - 36px)/3); min-width:240px;
  background:#fff; padding:30px 28px; border-radius:20px;
  border:1px solid var(--line-warm); box-shadow:var(--card-shadow-sm);
  transition:transform .3s ease, box-shadow .3s ease;
}
.why-card:hover{ transform:translateY(-5px); box-shadow:var(--card-shadow); }
.why-card .ico{
  width:44px; height:44px; margin-bottom:16px; border-radius:12px;
  background:var(--purple-tint); color:var(--purple-deep);
  display:flex; align-items:center; justify-content:center;
}
.why-card .ico svg, .why-card .ico .lucide{ width:20px; height:20px; }
.why-card h4{ font-size:16.5px; margin-bottom:8px; }
.why-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.65; }

/* ============================================================
   SERVICE FEATURES SECTION — shared by certifications + service detail
   ============================================================ */
.svc-features-section{ background:transparent; padding:80px 0; }
.svc-features-head{ margin-bottom:40px; max-width:640px; }
.svc-features-head h2{ font-size:clamp(28px,3.2vw,40px); margin:12px 0 0; letter-spacing:-0.02em; }
.svc-features-grid{ display:flex; flex-wrap:wrap; gap:18px; }
.svc-feature-card{
  flex:1 1 calc((100% - 36px)/3); min-width:240px;
  background:#fff; border-radius:20px; padding:28px;
  border:1px solid var(--line-warm); box-shadow:var(--card-shadow-sm);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-feature-card:hover{ transform:translateY(-5px); box-shadow:var(--card-shadow); border-color:var(--purple-tint-2); }
.sfc-ico{
  width:46px; height:46px; border-radius:13px; background:var(--purple);
  display:flex; align-items:center; justify-content:center;
  color:#fff; margin-bottom:16px; box-shadow:var(--card-shadow-sm);
}
.sfc-ico svg, .sfc-ico .lucide{ width:20px; height:20px; }
.svc-feature-card h4{ font-size:16px; margin-bottom:9px; letter-spacing:-0.01em; }
.svc-feature-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.65; }

.svc-full-tag{
  display:inline-block; align-self:flex-start;
  font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--purple-deep); background:var(--purple-tint);
  padding:5px 11px; border-radius:999px; margin-bottom:10px;
}

/* ============================================================
   FORM GRID (home contact + contact page)
   ============================================================ */
.form-grid{ display:flex; flex-wrap:wrap; gap:16px; }
.form-grid > *:not(.full){ flex:1 1 calc((100% - 16px)/2); min-width:0; }
.form-grid .full,
.form-grid .alert{ flex:1 1 100%; }
.field label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:7px; color:var(--gray); }
.field input, .field textarea{
  width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:10px;
  font-family:inherit; font-size:14px; background:#FBFAFC; transition:border-color .2s;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--purple); background:var(--white); }
.field textarea{ resize:vertical; min-height:100px; }
.field .error{ font-size:12px; color:#C0392B; margin-top:5px; }
.field input.error-input, .field textarea.error-input{ border-color:#C0392B; }

.alert{
  padding:14px 16px; border-radius:10px; font-size:14px; line-height:1.5; margin-bottom:20px;
}
.alert-success{
  background:#E7F6EC; border:1px solid #B9E4C8; color:#1E7B43;
}

/* ============================================================
   CASE STUDIES + PROJECTS (shared wrappers)
   ============================================================ */
.cs-page-section{ background:var(--white); padding:90px 0 100px; }

/* ============================================================
   CASE STUDY FEATURED (case studies + projects)
   ============================================================ */
.cs-featured{
  display:flex; gap:60px; align-items:center;
  margin-bottom:70px; padding-bottom:70px; border-bottom:1px solid var(--line);
}
.cs-featured > *{ flex:1 1 0; min-width:0; }
.cs-featured-media{ position:relative; border-radius:20px; overflow:hidden; aspect-ratio:16/11; }
.cs-featured-media img{ width:100%; height:100%; object-fit:cover; }
.cs-featured-tag{
  position:absolute; top:16px; left:16px;
  background:var(--purple); color:var(--white);
  font-size:11.5px; font-weight:600; padding:6px 13px; border-radius:999px;
}
.cs-featured-copy .eyebrow{ margin-bottom:14px; }
.cs-featured-copy h2{ font-size:clamp(22px,2.8vw,32px); margin:14px 0 18px; }
.cs-featured-copy p{ font-size:15.5px; color:var(--gray); line-height:1.7; margin-bottom:26px; }
.cs-featured-meta{ display:flex; gap:30px; flex-wrap:wrap; margin-bottom:24px; }
.cs-meta-label{ font-size:11.5px; color:var(--gray); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.cs-meta-value{ font-size:14px; font-weight:600; color:var(--black); }

/* ============================================================
   RESPONSIVE — SHARED
   ============================================================ */
@media (max-width:1100px){
  .svc-features-grid > *{ flex:1 1 calc((100% - 18px)/2); }
  .astat{ flex:1 1 calc((100% - 1px)/2); }
}
@media (max-width:980px){
  .page-hero-inner{ flex-direction:column; }
  .page-hero-media{ border-radius:20px; aspect-ratio:16/9; min-height:0; }
  .page-hero--service .page-hero-media{ min-height:0; aspect-ratio:16/9; }
  .cs-featured{ flex-direction:column; }
  .nav-dropdown-menu{ width:320px; }
  .nav-dropdown-menu > li{ flex:1 1 100%; }
}
@media (max-width:768px){
  .page-hero-media{ min-height:0; aspect-ratio:16/10; }
  .page-hero--service .page-hero-media{ min-height:0; aspect-ratio:16/10; }
  .section-head{ flex-direction:column; align-items:flex-start; }
  .section-head p{ text-align:left; }
  .footer-top{ flex-direction:column; }
  .footer-cols{ gap:36px; flex-wrap:wrap; }
  .svc-features-grid > *{ flex:1 1 100%; }
  .astat{ flex:1 1 calc((100% - 1px)/2); }
  .form-grid > *{ flex:1 1 100% !important; }
}
