/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== TOKENS ===== */
:root {
  --navy:      #0F2445;
  --navy-mid:  #1A3460;
  --blue:      #1E4080;
  --steel:     #4A7BA7;
  --teal:      #2AACD6;
  --white:     #FFFFFF;
  --gray-50:   #F7F9FC;
  --gray-100:  #EDF0F6;
  --gray-200:  #D4DBE8;
  --gray-400:  #8A9BBB;
  --gray-600:  #495D7E;
  --gray-800:  #1E2A3A;
  --serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:      'Inter', 'Segoe UI', system-ui, sans-serif;
  --shadow:    0 2px 16px rgba(15,36,69,.07);
  --shadow-md: 0 8px 32px rgba(15,36,69,.11);
  --shadow-lg: 0 24px 64px rgba(15,36,69,.15);
  --ease:      .25s ease;
  --w:         1120px;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
h4 { font-size: .95rem; font-weight: 700; color: var(--navy); }
p  { color: var(--gray-600); }

.overline {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* ===== LAYOUT ===== */
.wrap   { width: min(var(--w), 92%); margin-inline: auto; }
section { padding: 7rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.9rem;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  font-family: var(--sans);
}
.btn-teal  { background: var(--teal);  color: var(--white); border-color: var(--teal);  }
.btn-teal:hover  { background: #1D96BE; border-color: #1D96BE; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(42,172,214,.3); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy  { background: var(--navy);  color: var(--white); border-color: var(--navy);  }
.btn-navy:hover  { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,36,69,.3); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ===== NAV ===== */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  padding: 1.25rem 0;
  transition: all var(--ease);
}
#nav.solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  padding: .8rem 0;
  box-shadow: var(--shadow);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 46px; transition: height var(--ease); }
#nav.solid .nav-logo img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--white); }
#nav.solid .nav-links a { color: var(--gray-600); }
#nav.solid .nav-links a:hover { color: var(--navy); }
.nav-links .btn { padding: .6rem 1.4rem; font-size: .82rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
#nav.solid .nav-burger span { background: var(--navy); }

/* ===== MOBILE NAV ===== */
@media (max-width: 780px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 78%);
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform var(--ease);
    z-index: 901;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a    { color: rgba(255,255,255,.75); font-size: 1.05rem; }
  #nav.solid .nav-links a { color: rgba(255,255,255,.75); }
  .nav-links a:hover, #nav.solid .nav-links a:hover { color: var(--white); }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 899;
  }
  .nav-overlay.show { display: block; }
}

/* ===== HERO ===== */
#hero {
  min-height: 100svh;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 60%, #162D58 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.hero-text {
  padding: 10rem 0 7rem;
  padding-left: calc((100vw - min(var(--w), 92%)) / 2 + min(var(--w), 92%) * .02);
  max-width: 620px;
}
.hero-text h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-text h1 em { color: var(--teal); font-style: normal; }
.hero-text p  {
  font-size: 1.05rem;
  color: rgba(255,255,255,.68);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-graphic {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-svg {
  width: 100%;
  max-width: 480px;
  opacity: 1;
}

/* ===== DIVIDER LINE ===== */
.divider { width: 48px; height: 2px; background: var(--teal); margin-bottom: 1.5rem; }
.divider-center { margin-inline: auto; }

/* ===== ABOUT ===== */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-statement {
  border-left: 3px solid var(--teal);
  padding-left: 1.75rem;
}
.about-statement blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--navy);
  line-height: 1.45;
  font-weight: 700;
}
.about-statement cite {
  display: block;
  font-size: .8rem;
  color: var(--gray-400);
  font-style: normal;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.pillar {
  background: var(--gray-50);
  padding: 1.75rem;
  transition: background var(--ease);
}
.pillar:hover { background: var(--white); }
.pillar-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}
.pillar p { font-size: .88rem; }

/* ===== SERVICES ===== */
#services { background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.section-head { max-width: 640px; margin-bottom: 4rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p  { font-size: 1.02rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}
.svc {
  background: var(--white);
  padding: 2.5rem;
  transition: all var(--ease);
  position: relative;
}
.svc::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2.5rem; right: 2.5rem;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.svc:hover { background: var(--navy); }
.svc:hover h3, .svc:hover p { color: rgba(255,255,255,.85); }
.svc:hover h3 { color: var(--white); }
.svc:hover .svc-icon-wrap { border-color: rgba(255,255,255,.15); }
.svc:hover .svc-icon-wrap svg { stroke: var(--teal); }
.svc:hover::after { transform: scaleX(1); }

.svc-icon-wrap {
  width: 48px; height: 48px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: border-color var(--ease);
}
.svc-icon-wrap svg {
  width: 22px; height: 22px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--ease);
}
.svc h3 { margin-bottom: .6rem; }
.svc p  { font-size: .88rem; line-height: 1.7; }

/* ===== APPROACH ===== */
#approach {
  background: var(--navy);
  border-top: none;
}
#approach .section-head h2 { color: var(--white); }
#approach .section-head p  { color: rgba(255,255,255,.6); }
#approach .overline { color: var(--teal); }
#approach .divider  { background: var(--teal); }

.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-track::before {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: rgba(255,255,255,.12);
}
.step {
  padding: 0 1.5rem;
  padding-top: 3rem;
  position: relative;
}
.step-num {
  position: absolute;
  top: 0; left: 1.5rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .05em;
  background: var(--navy);
}
.step h3 { color: var(--white); margin-bottom: .65rem; font-size: 1rem; }
.step p   { color: rgba(255,255,255,.55); font-size: .87rem; line-height: 1.75; }

/* ===== WHY ===== */
#why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 6rem;
  align-items: start;
}
.why-rows { display: flex; flex-direction: column; }
.why-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.why-row:first-child { border-top: 1px solid var(--gray-100); }
.why-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  padding-top: .2rem;
}
.why-row h4 { margin-bottom: .35rem; font-size: 1rem; }
.why-row p  { font-size: .88rem; }

.why-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  padding: 2.75rem;
  position: sticky;
  top: 7rem;
}
.why-panel h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: .85rem;
}
.why-panel p  { font-size: .92rem; margin-bottom: 1.75rem; }
.why-panel .btn { width: 100%; justify-content: center; }
.why-panel .btn + .btn { margin-top: .65rem; }

/* ===== CONTACT ===== */
#contact { background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}
.contact-meta { padding-top: .5rem; }
.contact-meta h2 { margin-bottom: 1rem; }
.contact-meta > p { font-size: 1rem; margin-bottom: 2.5rem; }

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.meta-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 3px;
}
.meta-icon svg {
  width: 16px; height: 16px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.meta-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: .15rem;
}
.meta-value { font-size: .9rem; color: var(--gray-800); font-weight: 500; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.15rem; }
.field label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-800);
}
.field input,
.field select,
.field textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 2px;
  font-size: .9rem;
  font-family: var(--sans);
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,172,214,.1);
}
.field textarea  { resize: vertical; min-height: 120px; }
.form-footer { margin-top: .5rem; }
.form-footer .btn { width: 100%; justify-content: center; font-size: .9rem; padding: .95rem; }
.form-fine { font-size: .75rem; color: var(--gray-400); text-align: center; margin-top: .85rem; }

/* ===== FOOTER ===== */
footer {
  background: #08172E;
  padding: 4.5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2rem;
}
.footer-brand img { height: 42px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 1.25rem; }
.footer-brand p   { font-size: .85rem; color: rgba(255,255,255,.42); max-width: 280px; line-height: 1.7; }

.footer-col h5 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.footer-col ul    { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col a     { font-size: .85rem; color: rgba(255,255,255,.5); transition: color var(--ease); }
.footer-col a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.28);
}
.footer-bottom a { transition: color var(--ease); }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ===== SCROLL TOP ===== */
#toTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 500;
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  border: none; border-radius: 2px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: all var(--ease);
}
#toTop.show { opacity: 1; pointer-events: all; }
#toTop:hover { background: var(--teal); }
#toTop svg { width: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
  .hero-text {
    padding: 9rem 0 6rem;
    padding-left: 4%;
    max-width: 100%;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track   { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps-track::before { display: none; }
  .step { padding-top: 3.5rem; }
  .why-grid, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-panel { position: static; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section  { padding: 4.5rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-track   { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-text { padding: 8rem 4% 5rem; }
  .about-pillars { grid-template-columns: 1fr; }
}
