@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --navy: #071b34;
  --navy-2: #0d3c67;
  --blue: #14588b;
  --orange: #ff5a0a;
  --orange-2: #ff7a21;
  --ink: #10243a;
  --muted: #617082;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --line: #d9e1e7;
  --max: 1180px;
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  border-radius: 0.35rem;
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 10;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: min(300px, 36vw);
  flex: 0 1 auto;
}
.brand img {
  width: 100%;
  height: auto;
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 750;
}
nav a {
  text-decoration: none;
  white-space: nowrap;
}
nav a:not(.nav-cta):hover {
  color: var(--orange);
}
.nav-cta {
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--navy);
  border-radius: 0.4rem;
}
.nav-cta:hover {
  background: var(--navy);
  color: white;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: calc(var(--max) - 3rem);
  min-height: 610px;
  margin: 1.5rem auto 0;
  padding: clamp(3rem, 7vw, 6.5rem);
  border-radius: 1.25rem;
  background: linear-gradient(
    115deg,
    rgba(7, 27, 52, 0.98) 0%,
    rgba(7, 27, 52, 0.95) 58%,
    rgba(13, 60, 103, 0.9) 100%
  );
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 85px;
  right: -180px;
  top: 95px;
  background: linear-gradient(90deg, transparent, var(--orange));
  transform: rotate(-14deg);
  opacity: 0.92;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 80%);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.1rem, 7.5vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.hero-lede {
  max-width: 720px;
  margin: 1.75rem 0 0;
  color: #dce8f2;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 0.42rem;
  text-decoration: none;
  font-weight: 850;
}
.button-primary {
  background: var(--orange);
  color: var(--navy);
}
.button-primary:hover {
  background: var(--orange-2);
}
.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}
.button-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
}
.hero-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.8rem;
  background: rgba(4, 18, 35, 0.55);
  backdrop-filter: blur(8px);
}
.panel-label {
  display: block;
  margin-bottom: 0.7rem;
  color: #9eb8cd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-panel strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}
.hero-panel p {
  margin: 0.75rem 0;
  color: #cbd9e5;
  font-size: 0.95rem;
}
.panel-rule {
  height: 1px;
  margin: 1.1rem 0;
  background: rgba(255, 255, 255, 0.2);
}
.hero-panel > span:last-child {
  color: #a9bed0;
  font-size: 0.85rem;
}

.proof-strip {
  max-width: calc(var(--max) - 3rem);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--orange);
  color: var(--navy);
  border-radius: 0 0 0.85rem 0.85rem;
}
.proof-strip div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 1rem;
  border-right: 1px solid rgba(7, 27, 52, 0.25);
}
.proof-strip div:last-child {
  border-right: 0;
}
.proof-strip span {
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0.6;
}
.proof-strip strong {
  font-size: 0.9rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 1.5rem;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: 3rem;
}
.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}
h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--navy);
}
.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-grid article {
  min-height: 285px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.service-grid article:hover {
  background: var(--soft);
}
.service-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
}
h3 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1.2;
}
.service-grid p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.approach {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
  background: var(--soft);
  max-width: none;
  padding-left: max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem));
}
.approach-intro {
  position: sticky;
  top: 2rem;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #cbd6de;
}
.steps li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid #cbd6de;
}
.steps li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 900;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

.standards {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}
.standards-card {
  min-height: 520px;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1rem;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.standards-card h2 {
  color: white;
}
.standards-card > p:last-child {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: #c9d8e4;
  font-size: 1.04rem;
}
.principles {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.principles div {
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.principles strong {
  display: block;
  color: var(--navy);
  font-size: 1.15rem;
}
.principles span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  border-top: 1px solid var(--line);
}
.about-copy {
  font-size: 1.15rem;
  color: var(--muted);
}
.about-copy p:first-child {
  margin-top: 0;
  color: var(--ink);
}
.intake-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.intake-intro {
  position: sticky;
  top: 2rem;
}
.intake-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}
.intake-note {
  margin-top: 1.8rem;
  padding: 1.1rem;
  border-left: 4px solid var(--orange);
  background: var(--soft);
}
.intake-note strong,
.intake-note span {
  display: block;
}
.intake-note strong {
  color: var(--navy);
}
.intake-note span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.intake-form {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 18px 55px rgba(7, 27, 52, 0.08);
}
.intake-form fieldset {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}
.intake-form legend {
  width: 100%;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 850;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.intake-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 750;
}
.intake-form label > span[aria-hidden] {
  display: inline;
  color: var(--orange);
}
.intake-form label small {
  color: var(--muted);
  font-weight: 550;
}
.intake-form input:not([type='checkbox']),
.intake-form textarea {
  width: 100%;
  border: 1px solid #bdc9d2;
  border-radius: 0.4rem;
  padding: 0.78rem 0.85rem;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}
.intake-form textarea {
  resize: vertical;
  margin-bottom: 0.9rem;
}
.intake-form input:focus,
.intake-form textarea:focus {
  outline: 3px solid rgba(255, 90, 10, 0.18);
  border-color: var(--orange);
}
.authorization {
  grid-template-columns: 22px 1fr;
  gap: 0.75rem !important;
  align-items: start;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #edf3f7;
}
.authorization + .authorization {
  margin-top: 0.8rem;
}
.authorization input {
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
  accent-color: var(--orange);
}
.authorization span {
  color: #31465a;
  font-size: 0.9rem;
  font-weight: 550;
}
.form-guidance {
  color: var(--muted);
  font-size: 0.88rem;
}
.form-submit {
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}
.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.closing {
  margin: 0 auto 2rem;
  max-width: calc(var(--max) - 3rem);
  padding: clamp(3rem, 7vw, 6rem);
  border-radius: 1rem;
  text-align: center;
  background: linear-gradient(135deg, #0a2441, #124a78);
  color: white;
}
.closing h2 {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: white;
}
.contact-email {
  margin: -1rem 0 1.25rem;
}
.contact-email a {
  color: #d8e8f4;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr auto;
  align-items: center;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer img {
  width: 100%;
}
footer strong,
footer span {
  display: block;
}
footer strong {
  color: var(--navy);
}
footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.thanks-page {
  min-height: 100vh;
  padding: 2rem 1.25rem;
  display: grid;
  place-content: center;
  gap: 2rem;
  background: linear-gradient(145deg, #f7fafc, #eaf1f6);
}
.thanks-page > img {
  width: min(520px, 88vw);
  margin: 0 auto;
}
.thanks-card {
  width: min(720px, 92vw);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 24px 70px rgba(7, 27, 52, 0.12);
  text-align: center;
}
.thanks-card h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(2rem, 6vw, 3.7rem);
  line-height: 1.05;
}
.thanks-card p:not(.eyebrow) {
  margin: 0 auto 1.75rem;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }
  .brand {
    width: min(260px, 45vw);
  }
  nav {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-panel {
    max-width: 520px;
  }
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }
  .proof-strip div:nth-child(2) {
    border-right: 0;
  }
  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(7, 27, 52, 0.25);
  }
  .section-heading,
  .approach,
  .standards,
  .about,
  .intake-section {
    grid-template-columns: 1fr;
  }
  .approach-intro {
    position: static;
  }
  .intake-intro {
    position: static;
  }
  .standards-card {
    min-height: 430px;
  }
  footer {
    grid-template-columns: minmax(180px, 260px) 1fr;
  }
  footer > span:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .form-submit {
    display: flex;
    width: 100%;
  }
  .site-header {
    padding: 0.8rem 1rem;
    gap: 1rem;
  }
  .brand {
    width: min(230px, 60vw);
  }
  .nav-cta {
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
  }
  .hero {
    margin: 0.75rem 0.75rem 0;
    padding: 3.5rem 1.25rem 1.5rem;
    border-radius: 0.85rem;
  }
  .hero::after {
    width: 480px;
    height: 50px;
    top: 55px;
    right: -240px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }
  .hero-actions {
    display: grid;
  }
  .proof-strip {
    margin: 0 0.75rem;
    padding: 0.8rem;
  }
  .proof-strip div {
    padding: 0.55rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }
  .proof-strip strong {
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .section {
    padding: 4.5rem 1.1rem;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-grid article {
    min-height: 235px;
  }
  .approach {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .standards {
    padding: 4.5rem 1.1rem;
  }
  .intake-section {
    padding: 0 1.1rem 4.5rem;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .standards-card {
    min-height: 470px;
    padding: 1.5rem;
  }
  .closing {
    margin: 0 0.75rem 1rem;
    padding: 3.5rem 1.25rem;
  }
  footer {
    grid-template-columns: 1fr;
    padding: 2rem 1.1rem 3rem;
  }
  footer img {
    max-width: 280px;
  }
  footer > span:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

.form-status {
  display: none;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.45rem;
  font-weight: 700;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: #e8f6ed;
  color: #185c32;
  border: 1px solid #a8d8b8;
}
.form-status.is-error {
  background: #fff0ec;
  color: #8a2f19;
  border: 1px solid #efb4a5;
}
.form-submit[disabled] {
  cursor: wait;
  opacity: 0.7;
}

