:root {
  --navy: #003442;
  --navy-2: #0b4a5a;
  --teal: #2eaecc;
  --teal-dark: #1b8aa5;
  --teal-soft: #e8f6fa;
  --ink: #12262d;
  --text: #4b5d63;
  --muted: #7c8b90;
  --line: #dde7ea;
  --bg: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 52, 66, 0.08);
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; flex: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font: 600 16px/1 var(--font-head);
  padding: 15px 28px;
  border-radius: 6px;
  border: 2px solid var(--teal);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.8); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-sm { padding: 11px 18px; font-size: 15px; }

/* Top bar */
.topbar { background: var(--navy); color: #d7eef4; font-size: 14px; }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar .social { margin-left: auto; }
.social { display: flex; gap: 8px; }
.social a {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #fff;
}
.social a:hover { background: #fff; color: var(--navy); }
.social svg { width: 16px; height: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: 64px; }
.brand span { font: 700 19px/1.1 var(--font-head); color: var(--navy); }
.brand small { display: block; font: 500 13px/1.4 var(--font-body); color: var(--teal-dark); letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font: 600 15px/1 var(--font-head);
  padding: 10px 12px; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--teal-dark); border-bottom-color: var(--teal); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; }

/* Hero */
.hero, .page-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(100deg, rgba(0, 52, 66, 0.92) 0%, rgba(0, 52, 66, 0.75) 45%, rgba(46, 174, 204, 0.45) 100%), var(--photo, none) center / cover no-repeat;
}
.hero-in { padding: 120px 24px 140px; max-width: 1180px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); max-width: 15em; letter-spacing: -0.02em; }
.hero .lead { font-size: 20px; max-width: 34em; color: #e3f3f7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.eyebrow {
  font: 600 13px/1.4 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 12px;
}
.hero .eyebrow { color: #9fe0ef; }
.page-hero .wrap { padding-top: 84px; padding-bottom: 84px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.5vw, 48px); margin: 0; }

/* Feature strip */
.features { position: relative; margin-top: -64px; z-index: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature {
  background: #fff; padding: 32px 28px; box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.feature:nth-child(even) { background: var(--navy); border-top-color: var(--navy); }
.feature:nth-child(even) h2 { color: #fff; }
.feature:nth-child(even) p { color: #cfe6ec; }
.feature:nth-child(even) svg { color: var(--teal); }
.feature svg { width: 40px; height: 40px; color: var(--teal-dark); margin-bottom: 16px; }
.feature h2 { font-size: 19px; }
.feature p { margin: 0; font-size: 16px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--teal-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.h-section { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.015em; }
.h-section span { color: var(--teal-dark); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-media.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; max-height: 620px; }
.split-text .btn { margin-top: 8px; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: block; background: #fff; border-radius: var(--radius); padding: 32px 28px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  border-bottom: 3px solid transparent; transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-bottom-color: var(--teal); color: var(--text); }
.card svg, .service svg, .tile svg { width: 44px; height: 44px; color: var(--teal-dark); }
.card svg { margin-bottom: 18px; }
.card h3 { font-size: 20px; }
.card p { margin: 0; font-size: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--line); padding-top: 24px; }
.step-num { display: block; font: 700 44px/1 var(--font-head); color: var(--teal); margin-bottom: 14px; }
.steps h3 { font-size: 21px; }
.steps p { margin: 0; }

/* Partners */
.partners { padding: 64px 0; border-top: 1px solid var(--line); }
.partners-h { text-align: center; font-size: 20px; color: var(--navy); margin-bottom: 32px; }
.partner-logos {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px;
}
.partner-logos img { width: 120px; height: 120px; object-fit: contain; }

/* Testimonials */
.quotes { columns: 3 300px; column-gap: 24px; }
.quote {
  break-inside: avoid; margin: 0 0 24px; background: #fff; border-radius: var(--radius);
  padding: 30px 28px 26px; box-shadow: var(--shadow); position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px;
  font: 700 72px/1 Georgia, serif; color: var(--teal-soft);
}
.quote blockquote { margin: 0 0 18px; font-size: 16px; color: var(--ink); position: relative; }
.quote figcaption { font: 600 16px/1.3 var(--font-head); color: var(--navy); }
.quote figcaption span { display: block; font: 400 14px/1.4 var(--font-body); color: var(--muted); }

/* About: mission & vision */
.mv { display: grid; gap: 32px; }
.mv-row { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mv-row img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.mv-flip .mv-panel { order: 2; }
.mv-panel {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-2) 100%);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center;
}
.mv-panel h2 { color: #fff; font-size: 32px; font-weight: 500; }
.mv-panel p { margin: 0; font-size: 18px; color: #e7f6fa; }

/* Services page */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
  display: flex; gap: 22px; align-items: flex-start; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); scroll-margin-top: 110px;
}
.service:target { border-color: var(--teal); box-shadow: var(--shadow); }
.service h2 { font-size: 21px; }
.service p { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font: 600 19px/1.4 var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 28px/1 var(--font-head); color: var(--teal-dark);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; }

/* Contact page */
.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { text-align: center; padding: 40px 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.tile svg { margin: 0 auto 14px; }
.tile h2 { font-size: 20px; }
.tile p { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 15px; }

/* Contact band + form */
.contact-band {
  padding: 96px 0;
  background: linear-gradient(rgba(0, 52, 66, 0.82), rgba(0, 52, 66, 0.82)), url(/assets/img/contact-bg.webp) center / cover;
}
.contact-card {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a6f86 100%);
  border-radius: 14px; padding: 48px; color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.contact-intro h2 { color: #fff; font-size: 36px; }
.contact-intro p { color: #d7eef4; }
.contact-direct a { color: #fff; font-weight: 500; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.field label { display: block; font: 500 14px/1.4 var(--font-head); margin-bottom: 6px; color: #e3f3f7; }
.field label span { font-weight: 400; color: #9fc9d4; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, 0.14); }
.field.invalid input, .field.invalid textarea { border-color: #ffb4a8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-actions .btn { min-width: 180px; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; color: #e3f3f7; }
.form-status.ok { color: #a7f0c2; }
.form-status.err { color: #ffc9bf; }

/* Prose pages */
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.not-found { text-align: center; padding: 40px 0; }
.not-found h1 { font-size: 40px; }

/* Footer */
.site-footer { background: #0a1b20; color: #b6c9ce; font-size: 15px; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer-brand img { width: 96px; height: 96px; background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 16px; }
.footer-brand p { max-width: 22em; }
.site-footer h2 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #e3f3f7; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.contact-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 48px; padding-top: 22px; padding-bottom: 22px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { margin-left: 20px; }

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin: 16px 0 0; text-align: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar .topbar-phone { display: none; }
  .topbar-in { gap: 12px; }
  .header-in { min-height: 72px; }
  .brand img { width: 52px; height: 52px; }
  .hero-in { padding: 72px 16px 110px; }
  .hero .lead { font-size: 18px; }
  .section { padding: 64px 0; }
  .feature-grid, .card-grid, .steps, .service-list, .contact-tiles, .split { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .split-media.portrait img { max-height: 460px; }
  .mv-row { grid-template-columns: 1fr; }
  .mv-flip .mv-panel { order: 0; }
  .mv-panel { padding: 32px 24px; }
  .service { padding: 24px; flex-direction: column; gap: 12px; }
  .contact-band { padding: 56px 0; }
  .contact-card { padding: 28px 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .partner-logos img { width: 92px; height: 92px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
