:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --ink: #080b12;
  --muted: #667085;
  --blue: #123c96;
  --blue-2: #0b63ce;
  --gold: #c99a2e;
  --line: rgba(12, 20, 38, 0.1);
  --shadow: 0 24px 70px rgba(15, 35, 70, 0.12);
  --radius: 22px;
}

body.dark {
  --bg: #070b13;
  --surface: #0f1726;
  --ink: #f7f9ff;
  --muted: #b7c1d6;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark, .brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), 0 10px 24px rgba(18,60,150,0.25);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 35px rgba(15, 35, 70, 0.08);
}
body.dark .site-header { background: rgba(7,11,19,0.82); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.desktop-nav { display: flex; gap: 18px; font-size: 0.9rem; color: var(--muted); }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn, .menu-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}
.nav-cta, .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 750;
}
.nav-cta, .btn.primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: white; box-shadow: 0 16px 30px rgba(18, 60, 150, 0.25); }
.btn.secondary { color: white; border: 1px solid rgba(255,255,255,0.38); background: rgba(255,255,255,0.12); backdrop-filter: blur(12px); }
.menu-btn { display: none; padding: 11px; }
.menu-btn span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 999px; }
.mobile-drawer {
  position: fixed;
  inset: 86px 16px auto 16px;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.mobile-drawer.open { display: grid; }
.mobile-drawer a { padding: 10px 12px; border-radius: 14px; background: var(--surface); }

.section { padding: 110px max(18px, calc((100vw - 1180px) / 2)); }
.compact { padding-top: 70px; padding-bottom: 70px; }
.light { background: var(--surface); }
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
}
.hero-bg, .hero-overlay { position: absolute; inset: 0; }
.hero-bg {
  background: url("https://images.unsplash.com/photo-1568992688065-536aad8a12f6?auto=format&fit=crop&w=1800&q=80") center/cover;
  transform: scale(1.04);
}
.hero-overlay { background: linear-gradient(100deg, rgba(4,9,20,0.92), rgba(18,60,150,0.66), rgba(4,9,20,0.2)); }
.hero-content { position: relative; max-width: 760px; padding-top: 70px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 850; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.55rem, 7vw, 5.9rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); max-width: 780px; }
h3 { font-size: 1.2rem; }
.hero-copy { max-width: 630px; color: rgba(255,255,255,0.82); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.advocate-card {
  position: absolute;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 45px;
  width: min(390px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
}
.advocate-card img { width: 94px; height: 112px; object-fit: cover; border-radius: 16px; }
.advocate-card span { color: var(--gold); font-size: 0.8rem; }
.advocate-card p { margin: 4px 0 0; color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card, .glass-card, .service-card, .case-card, .award-card, .milestones article, .testimonial-card, .video-card, .contact-form, .contact-info, .faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
}
body.dark .stat-card, body.dark .glass-card, body.dark .service-card, body.dark .case-card, body.dark .award-card, body.dark .milestones article, body.dark .testimonial-card, body.dark .video-card, body.dark .contact-form, body.dark .contact-info, body.dark .faq { background: rgba(15,23,38,0.72); }
.stat-card { padding: 28px; text-align: center; }
.stat-card strong { display: block; color: var(--blue); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.stat-card span { color: var(--muted); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.image-stack { position: relative; }
.image-stack img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.floating-note {
  position: absolute;
  right: -18px;
  bottom: 28px;
  max-width: 250px;
  padding: 18px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.split p { color: var(--muted); font-size: 1.02rem; }
.value-grid, .why-grid, .services-grid, .case-grid { display: grid; gap: 18px; }
.value-grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.value-grid article { padding: 18px; border-radius: 18px; background: var(--surface); }
.value-grid span { display: block; color: var(--muted); margin-top: 6px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 38px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline-item { padding: 24px; border-left: 3px solid var(--gold); background: var(--bg); border-radius: 18px; box-shadow: 0 16px 45px rgba(15,35,70,0.08); }
.timeline-item span { color: var(--blue); font-weight: 900; }
.timeline-item p, .glass-card p, .case-card p, .award-card p, .video-card p { color: var(--muted); margin-bottom: 0; }

.services-grid { grid-template-columns: repeat(4, 1fr); }
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, var(--gold), var(--blue-2), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.service-card:hover, .case-card:hover, .glass-card:hover { transform: translateY(-8px); box-shadow: 0 28px 80px rgba(18,60,150,0.16); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(18,60,150,0.1); color: var(--blue); font-size: 1.4rem; margin-bottom: 22px; }
.service-card p { color: var(--muted); }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.glass-card { padding: 26px; backdrop-filter: blur(16px); transition: transform 0.28s ease; }
.glass-card span { color: var(--gold); font-weight: 900; }

.gallery-grid { columns: 3 260px; column-gap: 18px; }
.gallery-item { width: 100%; margin: 0 0 18px; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: zoom-in; background: transparent; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.07); }

.achievement-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.award-card { padding: 34px; }
.award-card li { margin: 12px 0; }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.milestones article { padding: 28px; }
.milestones strong { color: var(--blue); font-size: 2.4rem; display: block; }
.milestones span { color: var(--muted); }
.case-grid { grid-template-columns: repeat(3, 1fr); }
.case-card { padding: 28px; transition: transform 0.28s ease; }
.case-card .tag { color: var(--gold); font-weight: 850; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.case-card dl { margin: 20px 0 0; }
.case-card dt { color: var(--blue); font-weight: 850; margin-top: 14px; }
.case-card dd { margin: 4px 0 0; color: var(--muted); }

.testimonial-shell { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 16px; }
.testimonial-card { min-height: 280px; padding: 34px; text-align: center; }
.stars { color: var(--gold); font-size: 1.2rem; }
.testimonial-card blockquote { margin: 18px auto; max-width: 760px; font-size: clamp(1.2rem, 2.5vw, 2rem); line-height: 1.28; }
.testimonial-card p { color: var(--muted); }
.slider-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--blue); font-size: 2rem; cursor: pointer; box-shadow: var(--shadow); }
.video-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.video-card { padding: 30px; display: grid; gap: 10px; }
.video-card span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: white; }

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(135deg, #071126, #123c96);
  color: white;
}
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 26px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 750; }
.full { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(11,99,206,0.1); }
.form-status { margin: 0; color: var(--blue); font-weight: 800; }
.contact-info { padding: 22px; display: grid; gap: 16px; }
.map { min-height: 260px; display: grid; place-items: center; text-align: center; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(18,60,150,0.11), rgba(201,154,46,0.14)); color: var(--blue); font-weight: 850; }
.contact-info article { display: grid; gap: 5px; padding: 16px; border-radius: 16px; background: var(--surface); }
.contact-info span { color: var(--muted); }
.faq { margin-top: 24px; padding: 12px; }
.faq button { width: 100%; display: flex; justify-content: space-between; padding: 18px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-weight: 850; text-align: left; }
.faq p { display: none; margin: 0; padding: 0 18px 18px; color: var(--muted); }
.faq .open + p { display: block; }

.footer {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
  gap: 34px;
  padding: 70px max(18px, calc((100vw - 1180px) / 2));
  background: #050914;
  color: white;
}
.footer p, .footer a { color: rgba(255,255,255,0.68); }
.footer a { display: block; margin: 8px 0; }
.newsletter { display: grid; gap: 10px; align-content: start; }
.newsletter button { border: 0; border-radius: 14px; padding: 12px; background: var(--gold); color: #070b13; font-weight: 900; cursor: pointer; }
.back-top, .whatsapp {
  position: fixed;
  z-index: 80;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  color: white;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.back-top { right: 20px; bottom: 86px; background: var(--blue); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.back-top.visible { opacity: 1; pointer-events: auto; }
.whatsapp { right: 20px; bottom: 22px; background: #1fae59; font-weight: 900; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(2,6,15,0.82); padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 82vh; border-radius: 20px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; font-size: 2rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .desktop-nav, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .stats, .services-grid, .why-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .split, .achievement-layout, .contact-layout { grid-template-columns: 1fr; }
  .case-grid, .footer { grid-template-columns: repeat(2, 1fr); }
  .advocate-card { position: relative; right: auto; bottom: auto; margin-top: 40px; }
}

@media (max-width: 680px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .brand span:last-child { display: none; }
  .section { padding: 86px 16px; }
  .compact { padding-top: 52px; padding-bottom: 52px; }
  .hero { align-items: end; padding-bottom: 42px; }
  .hero-copy { font-size: 1rem; }
  .stats, .services-grid, .why-grid, .timeline, .case-grid, .milestones, .video-row, .footer, .value-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .floating-note { right: 10px; bottom: 10px; }
  .testimonial-shell { grid-template-columns: 1fr; }
  .slider-btn { margin: auto; }
  .contact-form { grid-template-columns: 1fr; }
  .cta-banner { align-items: flex-start; flex-direction: column; }
}
