:root {
  --bg: #f7f6f3;
  --bg-elevated: #ffffff;
  --ink: #111118;
  --ink-soft: #3b3b45;
  --muted: #6e6e78;
  --line: rgba(17, 17, 24, 0.1);
  --line-strong: rgba(17, 17, 24, 0.16);
  --accent: #1e3a5f;
  --accent-hover: #152a45;
  --accent-soft: #e8eef6;
  --hero-scrim-top: rgba(240, 244, 255, 0.12);
  --hero-scrim-mid: rgba(20, 30, 48, 0.22);
  --hero-scrim-bottom: rgba(12, 18, 32, 0.58);
  --shadow: 0 24px 60px rgba(15, 18, 30, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 18, 30, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --shell: min(1180px, calc(100% - 3rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.narrow {
  width: min(560px, var(--shell));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.88;
}

.logo-svg {
  display: block;
  height: clamp(34px, 5.2vw, 44px);
  width: auto;
  max-width: min(220px, 72vw);
}

/* Solid fill: SVG gradients can render nearly white on some mobile WebKit builds */
.logo-best {
  fill: #142c4a;
}

@media (max-width: 768px) {
  .logo-best {
    fill: var(--ink);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  box-shadow:
    0 -6px 0 var(--ink),
    0 6px 0 var(--ink);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    gap: 0;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(3.25rem, 7vw, 4.75rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 70% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e8edf5;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) saturate(1.05);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  /* Airy top so the photo reads light; darker toward the bottom for white copy */
  background: linear-gradient(
    180deg,
    var(--hero-scrim-top) 0%,
    var(--hero-scrim-mid) 38%,
    var(--hero-scrim-bottom) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 2px 32px rgba(0, 0, 0, 0.35),
    0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-title-accent {
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #fff;
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  flex-shrink: 0;
}

.btn-light:hover {
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* —— Marquee —— */
.marquee-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 1rem 0;
}

.marquee-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.marquee-inner strong {
  color: var(--ink);
  font-weight: 600;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

@media (max-width: 640px) {
  .marquee-dot {
    display: none;
  }
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 9vw, 6rem) 0;
}

.section-tight {
  padding-top: clamp(3rem, 7vw, 4.5rem);
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2.75rem;
}

.section-head.center {
  text-align: center;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.section-head.center .section-lead {
  margin-inline: auto;
}

.section-head .section-lead.narrow + .section-lead.narrow {
  margin-top: 1.05rem;
}

.section-lead.narrow {
  max-width: 32rem;
}

.split-copy .section-lead + .section-lead {
  margin-top: 1.1rem;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Split intro —— */
.split {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr minmax(280px, 380px);
    gap: 4rem;
  }
}

.split-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  padding: 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.pill-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pill-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.pill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* —— Services —— */
.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .service-grid {
    /* Three equal columns for the first row; wide card spans full row below */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Full-width row under the three equal cards */
.service-card-wide {
  grid-column: 1 / -1;
}

.service-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* —— Process —— */
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.process-step:last-child {
  border-bottom: 0;
}

@media (min-width: 700px) {
  .process-step {
    padding: 2rem 2.25rem;
  }
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.9;
}

.process-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.process-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* —— Testimonials —— */
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quote-card {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quote-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.quote-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.quote-role {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* —— CTA —— */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.cta-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.cta-lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

/* —— Form —— */
.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--ink-soft);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field-full {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
