:root {
  --navy: #123456;
  --deep-navy: #0b233d;
  --green: #2f7d57;
  --green-dark: #236143;
  --ink: #162232;
  --muted: #607083;
  --line: #dbe4ea;
  --surface: #ffffff;
  --soft: #f5f8f7;
  --warning: #b42318;
  --shadow: 0 18px 48px rgba(18, 52, 86, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.brand-logo.logo-missing {
  display: none;
}

.brand-fallback {
  display: none;
  max-width: 250px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.1;
}

.brand-logo.logo-missing + .brand-fallback {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(47, 125, 87, 0.2);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line);
}

.hero,
.quote-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px) clamp(36px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(18, 52, 86, 0.06), rgba(47, 125, 87, 0.06)),
    #ffffff;
}

.quote-hero {
  grid-template-columns: minmax(0, 760px);
  padding-bottom: 30px;
}

.hero-copy,
.quote-intro,
.section,
.form-section {
  max-width: 1120px;
}

.hero-logo {
  display: block;
  width: min(470px, 100%);
  height: auto;
  margin-bottom: 26px;
}

.hero-logo.logo-missing {
  display: none;
}

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

.hero .eyebrow {
  font-size: 0.92rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 18px;
  color: var(--deep-navy);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.04;
}

h2 {
  color: var(--deep-navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  color: var(--deep-navy);
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-text,
.quote-intro p {
  max-width: 740px;
  color: #31445b;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.trust-line {
  max-width: 640px;
  margin: 24px 0;
  padding-left: 18px;
  border-left: 4px solid var(--green);
  color: var(--deep-navy);
  font-size: 1.12rem;
  font-weight: 800;
}

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

.hero-portrait {
  align-self: center;
  justify-self: end;
  width: min(100%, 350px);
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 50% 24%;
}

.section,
.form-section {
  margin: 0 auto;
  padding: clamp(42px, 7vw, 80px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 52, 86, 0.07);
}

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

.process-section {
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 156px;
  padding: 22px;
  border-radius: 8px;
  background: var(--soft);
}

.process-list span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy);
  font-weight: 900;
}

.process-list h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.form-section {
  padding-top: 22px;
}

.privacy-note {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(47, 125, 87, 0.2);
  border-radius: 8px;
  color: #31445b;
  background: var(--soft);
}

.privacy-note strong {
  color: var(--deep-navy);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px) clamp(36px, 6vw, 72px);
}

.about-copy {
  max-width: 720px;
}

.about-copy p {
  color: #31445b;
  font-size: 1.08rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-portrait-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.about-portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.about-caption {
  display: grid;
  gap: 2px;
  padding: 18px 20px 20px;
  color: var(--muted);
}

.about-caption strong {
  color: var(--deep-navy);
  font-size: 1.05rem;
}

.about-caption span {
  line-height: 1.35;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto clamp(42px, 7vw, 80px);
  padding: clamp(24px, 4vw, 34px) clamp(18px, 4vw, 34px);
  border: 1px solid rgba(47, 125, 87, 0.2);
  border-radius: 8px;
  background: var(--soft);
}

.about-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.about-cta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.resource-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto clamp(42px, 7vw, 80px);
  padding: clamp(24px, 4vw, 34px) clamp(18px, 4vw, 34px);
  border: 1px solid rgba(47, 125, 87, 0.2);
  border-radius: 8px;
  background: var(--soft);
}

.resource-callout div {
  max-width: 760px;
}

.resource-callout h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.resource-callout p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.resource-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.resource-page p {
  color: #31445b;
  font-size: 1.08rem;
}

.resource-page .button {
  margin-top: 12px;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.contact-copy {
  max-width: 720px;
}

.contact-copy p {
  color: #31445b;
  font-size: 1.08rem;
}

.contact-lead {
  color: var(--deep-navy);
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-card div {
  display: grid;
  gap: 4px;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-card a {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--green-dark);
}

.quote-form {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.field {
  display: grid;
  gap: 8px;
  color: var(--deep-navy);
  font-weight: 800;
}

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

.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #c8d4dd;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 125, 87, 0.18);
  border-color: var(--green);
}

[aria-invalid="true"] {
  border-color: var(--warning);
}

.error-message {
  min-height: 20px;
  color: var(--warning);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.form-status {
  max-width: 680px;
  margin: 0;
  font-weight: 800;
}

.form-status[data-type="success"] {
  color: var(--green-dark);
}

.form-status[data-type="error"] {
  color: var(--warning);
}

.form-status[data-type="pending"] {
  color: var(--navy);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.footer-copy,
.footer-contact {
  display: grid;
  gap: 4px;
}

.footer-copy strong {
  color: var(--deep-navy);
}

.footer-copy p,
.footer-contact a {
  margin: 0;
}

.footer-contact {
  justify-items: end;
}

.footer-contact a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--green-dark);
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.placeholder-page {
  min-height: 48vh;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.placeholder-page p {
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .header-cta {
    order: 3;
    width: 100%;
  }

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

  .hero-portrait,
  .hero-portrait img {
    min-height: 340px;
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 360px);
  }

  .card-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-portrait-card {
    width: min(100%, 360px);
  }

  .contact-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    padding: 14px 16px;
  }

  .brand-logo {
    width: 180px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-footer {
    display: grid;
  }

  .footer-contact {
    justify-items: start;
  }

  .hero,
  .quote-hero {
    padding: 34px 16px;
  }

  .hero-portrait,
  .hero-portrait img {
    min-height: 320px;
  }

  .hero-logo {
    width: min(430px, 100%);
  }

  .hero-portrait img {
    object-position: 50% 20%;
  }

  h1 {
    font-size: 2.3rem;
  }

  .hero-actions,
  .form-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .process-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .form-section {
    padding: 38px 16px;
  }

  .about-hero {
    padding: 38px 16px;
  }

  .about-portrait-card {
    width: min(100%, 320px);
    justify-self: center;
  }

  .about-cta {
    margin-right: 16px;
    margin-left: 16px;
  }

  .resource-callout {
    display: grid;
    margin-right: 16px;
    margin-left: 16px;
  }

  .resource-page {
    padding: 38px 16px;
  }

  .contact-page {
    padding: 38px 16px;
  }

  .contact-actions {
    display: grid;
  }

  .quote-form {
    padding: 18px;
  }
}
