@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  --ink: #141e2e;
  --muted: #5a6480;
  --line: #d5dae8;
  --paper: #f4f6f9;
  --white: #ffffff;
  --navy: #1d3461;
  --navy-strong: #162850;
  --clay: #b85f42;
  --green: #3cb54a;
  --blueprint: #2f6380;
  --shadow: 0 18px 50px rgba(17, 28, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    'Barlow', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(clamp(18px, 4vw, 56px), env(safe-area-inset-right)) 10px max(clamp(18px, 4vw, 56px), env(safe-area-inset-left));
  border-bottom: 1px solid rgba(213, 218, 232, 0.9);
  background: rgba(244, 246, 249, 0.94);
  box-shadow: 0 0 0 rgba(17, 28, 50, 0);
  transition: padding 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.site-header.is-compact {
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(244, 246, 249, 0.98);
  box-shadow: 0 10px 28px rgba(17, 28, 50, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 72px;
  width: auto;
  max-width: 320px;
  flex: 0 0 auto;
  transition: height 200ms ease;
}

.site-header.is-compact .brand-logo {
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  border-radius: 6px;
  padding: 9px 11px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--navy);
  background: rgba(29, 52, 97, 0.08);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--navy);
  background: rgba(29, 52, 97, 0.06);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease;
  transform-origin: center;
}

.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-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 46, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9;
  opacity: 0;
  transition: opacity 280ms ease;
}

.nav-backdrop.is-visible {
  display: block;
}

.nav-backdrop.is-active {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(70px, 9vw, 118px) clamp(18px, 6vw, 72px);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 20, 40, 0.90) 0%, rgba(13, 20, 40, 0.72) 38%, rgba(13, 20, 40, 0.18) 72%),
    linear-gradient(0deg, rgba(13, 20, 40, 0.48), rgba(13, 20, 40, 0.02) 45%);
}

.hero-content {
  position: relative;
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #6de880;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 5.8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.03rem, 1.55vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.primary:hover {
  background: #2ea03c;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button.full {
  width: 100%;
}

.strategy-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: clamp(36px, 5vw, 60px) clamp(18px, 6vw, 72px);
  color: var(--white);
  background: var(--navy);
}

.strategy-band h2,
.section-heading h2,
.request-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.strategy-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 6vw, 72px);
}

.section-heading {
  max-width: 770px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading p,
.request-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.package-card,
.intake-form,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(23, 33, 28, 0.06);
}

.service-card {
  min-height: 238px;
  padding: 22px;
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  color: var(--navy);
  background: #e4eaf4;
  font-weight: 900;
}

.service-card h3,
.package-card h3,
.timeline-item h3 {
  margin: 18px 0 8px;
  font-size: 1.08rem;
}

.service-card p,
.package-card li,
.timeline-item p,
.contact-panel span,
.form-note {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 82px);
  background: #eaeff8;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: var(--white);
}

.timeline-item span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--blueprint);
  font-weight: 900;
}

.timeline-item h3,
.timeline-item p {
  margin-top: 0;
}

.timeline-item p {
  margin-bottom: 0;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-card {
  padding: 24px;
}

.package-card.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.price {
  margin: 4px 0 18px;
  color: var(--blueprint);
  font-weight: 800;
}

.package-card ul {
  margin: 0;
  padding-left: 20px;
}

.package-card li + li {
  margin-top: 10px;
}

.request-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 6vw, 72px);
  background: var(--navy-strong);
}

.contact-section {
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  background: #eaeff8;
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(23, 33, 28, 0.06);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
}

.contact-methods a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
}

.request-copy {
  position: sticky;
  top: 96px;
  color: var(--white);
}

.request-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding: 18px;
  color: var(--ink);
}

.intake-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
legend {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #c8d0e0;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blueprint);
  outline: 3px solid rgba(47, 99, 128, 0.16);
}

textarea {
  resize: vertical;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.checkbox-group legend {
  padding: 0 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.form-status {
  min-height: 1.3em;
  margin: -4px 0 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-status.is-error {
  color: #9f3327;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  margin: -6px 0 0;
  font-size: 0.84rem;
}

label.has-error input,
label.has-error select,
label.has-error textarea {
  border-color: var(--clay);
  outline: 3px solid rgba(184, 95, 66, 0.14);
}

fieldset.has-error {
  border-color: var(--clay);
  outline: 3px solid rgba(184, 95, 66, 0.14);
}

.field-error-msg {
  display: block;
  margin-top: 5px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.legend-required {
  color: var(--clay);
  font-weight: 900;
}

.footer {
  color: rgba(255, 255, 255, 0.76);
  background: #0d1a2e;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(160px, 0.7fr));
  gap: clamp(26px, 4vw, 54px);
  padding: clamp(42px, 6vw, 70px) clamp(18px, 6vw, 72px);
}

.footer-brand {
  max-width: 430px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  color: var(--white);
}

.footer-logo img {
  height: 108px;
  width: auto;
  max-width: 440px;
  flex: 0 0 auto;
}

.footer p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-cta {
  display: inline-flex;
  margin-top: 22px;
  border: 1px solid rgba(60, 181, 74, 0.58);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--white);
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  border-color: var(--green);
  background: rgba(60, 181, 74, 0.14);
  transform: translateY(-1px);
}

.footer-nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contact a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.72);
  transition: color 160ms ease, transform 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--green);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px clamp(18px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--green);
}

.legal-page {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 6vw, 72px);
  background: var(--paper);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
}

.legal-content h1 {
  margin: 8px 0 14px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
}

.legal-content h2 {
  margin: 36px 0 10px;
  color: var(--navy);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

.legal-content p,
.legal-content ul {
  margin: 12px 0;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--navy-strong);
}

.legal-content strong {
  color: var(--navy-strong);
}

.legal-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

@keyframes navSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes navSlideOut {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

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

  .brand {
    min-width: 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h, 74px);
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 16px 40px;
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 48px rgba(23, 33, 28, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 11;
    color: var(--ink);
  }

  .nav-links.is-open {
    display: flex;
    animation: navSlideIn 280ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .nav-links.is-closing {
    display: flex;
    animation: navSlideOut 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .nav-links a {
    flex: none;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    white-space: normal;
    line-height: 1.3;
    border-radius: 8px;
    color: var(--ink);
    border-bottom: 1px solid rgba(217, 222, 215, 0.7);
    transform: none;
  }

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

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--navy);
    background: rgba(29, 52, 97, 0.06);
    transform: none;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 76vh;
  }

  .strategy-band,
  .split,
  .request-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .request-copy {
    position: static;
  }

  .service-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
    margin-inline: auto;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 720px) {
  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header.is-compact {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero {
    min-height: 80vh;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(13, 20, 40, 0.92) 0%, rgba(13, 20, 40, 0.68) 62%, rgba(13, 20, 40, 0.16) 100%),
      rgba(13, 20, 40, 0.08);
  }

  .hero-actions,
  .form-row,
  .checkbox-group,
  .service-grid,
  .package-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .package-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .footer-main {
    gap: 28px;
  }

  .footer-bottom {
    display: grid;
  }
}
