:root {
  --navy: #233E8B;
  --navy-dark: #182a63;
  --orange: #E86A00;
  --orange-hover: #fd7e14;
  --cream: #fff6ef;
  --light-blue: #f2f6fc;
  --navy-mid: #183b65;
  --navy-soft-text: #cfd6ec;
  --footer-text: #b9c2e0;
  --error: #d8433a;
  --success: #2f9e44;
  --ink: #1b1f2b;
  --muted: #666f7d;
  --border: #e7e2da;
  --white: #ffffff;
  --radius: 14px;
  --max-width: 1320px;
  --section-padding: clamp(56px, 8vw, 100px);
  --shadow: 0 10px 30px rgba(35, 62, 139, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Inria Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  margin: 0;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 40px;
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 106, 0, 0.25);
}

.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.link-arrow:hover::after {
  transform: scaleX(1);
}

.link-arrow__icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.link-arrow:hover .link-arrow__icon,
.btn:hover .link-arrow__icon {
  transform: translateX(4px);
}

.link-arrow--light { color: var(--white); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar__logo img { height: 32px; }

.navbar__nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
}

.navbar__nav a {
  position: relative;
  color: var(--ink);
  padding: 4px 0;
}

.navbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.25s ease;
}

.navbar__nav a:hover::after { width: 100%; }
.navbar__nav a:hover { color: var(--orange); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, #ffffff 40%);
  padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
  line-height: 1.14;
}

.hero__stat {
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 28px;
}

.hero__art img {
  border-radius: 6px;
  mix-blend-mode: multiply;
}

/* Decorative shapes */
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decor-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0.35;
}

.decor-triangle {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid var(--navy);
  opacity: 0.15;
}

.decor-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  opacity: 0.12;
}

.hero-decor-1 { top: 40px; left: 24px; }
.hero-decor-2 { bottom: 60px; right: 8%; }

/* Scroll-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Value strip (nested inside .hero) */
.value-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(35, 62, 139, 0.1);
  position: relative;
  z-index: 1;
}

.value-pillar {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(35, 62, 139, 0.12);
  transition: border-color 0.2s ease;
}

.value-pillar:hover {
  border-left-color: var(--orange);
}

.value-pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(232, 106, 0, 0.1);
  color: var(--orange);
}

.value-pillar__icon svg {
  width: 20px;
  height: 20px;
}

.value-pillar h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.value-pillar p {
  color: var(--muted);
  margin: 0;
}

/* Services */
.services { padding: var(--section-padding) 0; background: var(--light-blue); position: relative; overflow: hidden; }

.services-decor-1 { top: 30px; right: 10%; }
.services-decor-2 { bottom: 20px; left: 4%; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 40px);
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.service-card h3 {
  color: var(--navy);
  margin: 0 0 10px;
}

.service-card p {
  color: var(--muted);
  margin: 0;
}

/* Capabilities */
.capabilities {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-padding) 0;
}

.capabilities__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.capabilities .section-title { color: var(--white); }

.capabilities__text p {
  color: var(--navy-soft-text);
  max-width: 480px;
}

.capabilities__art {
  display: flex;
  justify-content: center;
}

.capabilities__art img {
  max-width: 340px;
  width: 100%;
}

/* Case studies */
.case-studies { padding: var(--section-padding) 0; background: var(--cream); }

.case-studies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 40px);
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.case-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case-card h3,
.case-card p {
  padding: 0 26px;
}

.case-card h3 {
  color: var(--navy);
  margin: 22px 0 10px;
}

.case-card p {
  color: var(--muted);
  margin: 0 0 26px;
}

/* CTA strip - full-bleed two-tone navy band */
.cta-strip {
  position: relative;
  overflow: hidden;
}

.cta-strip-decor-1 { top: 32px; left: 6%; }
.cta-strip-decor-2 { bottom: 36px; right: 10%; }

.cta-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cta-block { display: flex; justify-content: center; }

.cta-block--left { background: var(--navy-mid); }
.cta-block--right { background: #24467d; }

.cta-block__inner {
  padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 64px);
  max-width: 460px;
}

.cta-block h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.cta-block p {
  color: var(--navy-soft-text);
  font-weight: 600;
  margin: 0 0 22px;
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-1px);
}

/* Contact - rounded gradient card floating on the page background */
.contact { padding: var(--section-padding) 0; background: var(--cream); position: relative; overflow: hidden; }

.contact-decor-1 { top: 10%; right: 4%; }
.contact-decor-2 { bottom: 12%; left: 5%; }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: linear-gradient(70deg, #062142 20%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 30px 60px rgba(6, 33, 66, 0.25);
  position: relative;
  z-index: 1;
}

.contact .section-title { color: var(--white); }

.contact__text p { color: var(--navy-soft-text); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__form input,
.contact__form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: 2px solid var(--orange);
}

.form-status[hidden] {
  display: none;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdeceb;
  color: #a4302a;
  border-left: 3px solid var(--error);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status::before {
  content: "!";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.form-status--success {
  background: #eaf7ec;
  color: #1e6b32;
  border-left-color: var(--success);
}

.form-status--success::before {
  content: "\2713";
  background: var(--success);
}

.btn.is-loading {
  opacity: 0.75;
  cursor: wait;
}

/* Footer */
.footer {
  background: #101a3b;
  color: var(--footer-text);
  padding: 40px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer .navbar__logo img { height: 28px; }

.footer__tagline {
  margin: 16px 0;
  color: var(--footer-text);
}


.footer__col h4 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.footer__col h4 a { color: inherit; }
.footer__col h4 a:hover { color: var(--orange-hover); }

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer__col ul a { color: var(--footer-text); }
.footer__col ul a:hover { color: var(--orange-hover); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover { background: var(--orange); }

/* Responsive */
@media (max-width: 900px) {
  .decor { transform: scale(0.7); }

  .hero__inner,
  .capabilities__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .cta-strip__grid { grid-template-columns: 1fr; }

  .services__grid,
  .case-studies__grid { grid-template-columns: 1fr; }

  .value-strip__grid { grid-template-columns: 1fr; gap: 20px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .navbar__nav.is-open { display: flex; }

  .navbar__toggle { display: flex; }
}

@media (max-width: 560px) {
  .decor { display: none; }
}

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; }
}
