:root {
  --navy: #00305b;
  --blue: #0f4c85;
  --blue-mid: #3579b7;
  --accent: #2f9fe0;
  --ink: #1c2b39;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --line: #e3ebf2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 48, 91, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(0, 48, 91, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); line-height: 1.15; }
.brand-name span { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-mid); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--blue); color: #fff !important; padding: 9px 20px; border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, #1565a8 100%);
  color: #fff;
  padding: 110px 0 150px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(47, 159, 224, 0.25), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(47, 159, 224, 0.18), transparent 70%);
}
.hero-inner { position: relative; max-width: 780px; }
.hero-kicker {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #9fd1f2; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d8e9f6; max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 0.98rem; transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #eaf4fb; }
.btn-outline { border: 2px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: 34px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.about-text p + p { margin-top: 16px; }
.about-text { font-size: 1.05rem; color: var(--ink); }
.about-stats { display: grid; gap: 18px; }
.stat {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px;
}
.stat-num { display: block; font-size: 2.1rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat-label { font-size: 0.92rem; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px;
}
.team-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.team-head img {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--line); flex-shrink: 0;
}
.team-head h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.team-role {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-top: 2px;
}
.team-body p { font-size: 0.95rem; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 48, 91, 0.13); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.94rem; color: var(--muted); }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.client-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; padding: 26px; min-height: 120px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.client-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-logo img {
  max-height: 64px; width: auto; max-width: 100%;
  filter: grayscale(1) opacity(0.65); transition: filter 0.25s;
}
.client-logo:hover img { filter: none; }

/* Testimonial */
.testimonial {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; padding: 84px 0;
}
.testimonial figure { max-width: 840px; margin: 0 auto; text-align: center; }
.quote-mark { width: 46px; height: 46px; color: var(--accent); margin: 0 auto 20px; }
.testimonial blockquote { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; line-height: 1.6; }
.testimonial figcaption { margin-top: 24px; font-size: 0.95rem; color: #9fd1f2; font-weight: 600; }

/* Contact */
.section-contact { text-align: center; }
.section-contact h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 860px; margin: 0 auto;
}
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-label {
  display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.contact-value { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.contact-note { margin-top: 26px; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b9d2e6; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 0.9rem; }
.footer-logo { height: 34px; filter: brightness(0) invert(1) opacity(0.85); }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; display: none;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 48, 91, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 15px 24px; width: 100%; }
  .nav-cta { border-radius: 0; }
  .nav-toggle { display: block; }
  .brand-name { display: none; }
  .hero { padding: 80px 0 120px; }
  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .team-head img { width: 72px; height: 72px; }
  .contact-grid { grid-template-columns: 1fr; }
}
