@layer reset, base, components, layout;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --navy-950: #061d29;
    --navy-900: #092b3b;
    --navy-800: #123f50;
    --teal-700: #16736f;
    --teal-600: #188781;
    --teal-100: #d8eeea;
    --amber: #f2a93b;
    --focus-inner: #ffffff;
    --focus-outer: #003b5c;
    --cream: #f5f3eb;
    --paper: #fcfdfb;
    --ink: #16272d;
    --muted: #52646a;
    --line: #ccd7d5;
    --danger: #a12626;
    --success: #176a46;
    --shadow: 0 20px 55px rgb(6 29 41 / 12%);
  }
  html { scroll-padding-top: 8.5rem; }
  body { min-width: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; text-rendering: optimizeLegibility; }
  h1, h2, h3 { color: var(--navy-950); line-height: 1.12; text-wrap: balance; }
  h1 { max-width: 12ch; font-size: clamp(2.7rem, 7vw, 5.8rem); letter-spacing: -.055em; }
  h2 { font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.04em; }
  h3 { font-size: 1.18rem; letter-spacing: -.015em; }
  a { color: inherit; }
  :focus-visible {
    outline: 3px solid var(--focus-outer);
    outline-offset: 4px;
  }
  .site-header :focus-visible,
  .hero .text-link:focus-visible,
  .value :focus-visible,
  footer :focus-visible {
    outline-color: var(--focus-inner);
  }
  .hero .button.primary:focus-visible {
    outline-color: var(--focus-outer);
    box-shadow: 0 0 0 7px var(--focus-inner);
  }
  ::selection { background: var(--amber); color: var(--navy-950); }
  .shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
  .section { padding-block: clamp(4.5rem, 9vw, 8rem); }
  .eyebrow { margin-bottom: 1.1rem; color: var(--teal-700); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .section-heading { display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
  .section-heading > p { max-width: 42rem; color: var(--muted); font-size: 1.08rem; }
  .large-copy { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.55; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@layer components {
  .skip-link { position: absolute; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1rem; transform: translateY(-150%); background: white; color: var(--navy-950); font-weight: 750; border-radius: .35rem; }
  .skip-link:focus { transform: none; }
  .brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
  .brand-mark { width: 2.65rem; color: var(--paper); fill: currentColor; }
  .brand-mark .mark-accent { fill: var(--amber); }
  .brand span { display: grid; line-height: 1.05; }
  .brand strong { font-size: 1.05rem; letter-spacing: -.025em; }
  .brand small { margin-top: .25rem; color: #b9cecc; font-size: .67rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
  .button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; padding: .75rem 1.3rem; border: 2px solid transparent; border-radius: .35rem; text-decoration: none; font-weight: 780; cursor: pointer; }
  .button.primary { background: var(--amber); color: var(--navy-950); }
  .button.primary:hover { background: #ffc263; }
  .button.light { margin-top: 2rem; border-color: rgb(255 255 255 / 60%); color: white; }
  .button.light:hover { background: white; color: var(--navy-950); }
  .text-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; text-underline-offset: .3rem; }
  .text-link span { color: var(--amber); font-size: 1.35em; }
}

@layer layout {
  .site-header { position: sticky; z-index: 10; top: 0; background: rgb(6 29 41 / 96%); color: white; border-bottom: 1px solid rgb(255 255 255 / 12%); backdrop-filter: blur(12px); }
  .header-inner { display: flex; min-height: 5.25rem; align-items: center; justify-content: space-between; gap: 1.3rem; padding-block: .6rem; }
  nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem .25rem; }
  nav a { min-height: 2.75rem; display: inline-flex; align-items: center; padding-inline: .65rem; color: #e8f0ef; font-size: .82rem; font-weight: 700; text-decoration: none; }
  nav a:hover { color: var(--amber); }

  .hero { position: relative; overflow: hidden; background: var(--navy-950); color: #eff7f5; }
  .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 77% 27%, rgb(24 135 129 / 35%), transparent 34%), linear-gradient(120deg, transparent 65%, rgb(242 169 59 / 8%)); }
  .hero-grid { position: relative; display: grid; min-height: min(760px, calc(100vh - 5.25rem)); align-items: center; gap: 3rem; padding-block: clamp(4rem, 9vw, 7.5rem); }
  .hero h1 { color: white; }
  .hero .eyebrow { color: #74d4cd; }
  .hero-lede { max-width: 43rem; margin-top: 1.7rem; color: #cbdcda; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
  .hero-facts { display: grid; gap: .65rem; margin-top: 3.2rem; padding: 1.4rem 0 0; border-top: 1px solid rgb(255 255 255 / 20%); list-style: none; }
  .hero-facts li { color: #c8d9d7; font-size: .92rem; }
  .hero-facts strong { display: block; color: white; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
  .route-visual { display: none; min-width: 0; }
  .route-visual svg { filter: drop-shadow(0 28px 40px rgb(0 0 0 / 25%)); }
  .route-visual svg > rect { fill: rgb(255 255 255 / 8%); stroke: rgb(255 255 255 / 28%); stroke-width: 2; }
  .route-grid { fill: none; stroke: rgb(255 255 255 / 7%); stroke-width: 1; }
  .route-main { fill: none; stroke: #71d3cc; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 10 14; }
  .route-visual circle { fill: var(--amber); stroke: white; stroke-width: 5; }
  .route-arrow, .route-box { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
  .route-box { stroke: rgb(255 255 255 / 65%); stroke-width: 3; }
  .route-visual p { display: flex; justify-content: space-between; color: #b6cdca; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
  .route-visual p span { flex: 1; margin: .65em; border-top: 1px solid rgb(255 255 255 / 22%); }

  .services { background: var(--cream); }
  .service-grid { display: grid; gap: 1rem; }
  .service-grid article { position: relative; min-width: 0; padding: 1.7rem; background: var(--paper); border: 1px solid #dfe5e1; border-radius: .6rem; box-shadow: 0 8px 28px rgb(9 43 59 / 5%); }
  .service-grid article::before { content: ""; display: block; width: 2.6rem; height: .28rem; margin-bottom: 2.2rem; background: var(--teal-600); }
  .card-number { position: absolute; top: 1.45rem; right: 1.55rem; color: var(--muted); font-size: .73rem; font-weight: 800; }
  .service-grid p { margin-top: .85rem; color: var(--muted); overflow-wrap: anywhere; }

  .process-list { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: step; }
  .process-list li { position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-bottom: 2rem; }
  .process-list li:not(:last-child)::before { content: ""; position: absolute; top: 2.9rem; bottom: 0; left: 1.35rem; border-left: 1px solid var(--line); }
  .process-list li > span { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; background: var(--navy-900); color: white; border-radius: 50%; font-weight: 800; }
  .process-list p { margin-top: .55rem; color: var(--muted); }

  .value { background: var(--teal-700); color: #eaf8f6; }
  .value h2, .value h3 { color: white; }
  .value .eyebrow { color: #fff0d5; }
  .value-grid { display: grid; gap: 3.5rem; }
  .value-points { display: grid; gap: 1rem; }
  .value-points article { padding: 1.5rem; border-top: 1px solid rgb(255 255 255 / 42%); }
  .value-points p { margin-top: .6rem; color: #d2ece8; }

  .about-grid, .privacy-grid { display: grid; gap: 2rem; }
  .about-grid > div:last-child { display: grid; gap: 1.3rem; }
  .about-grid > div:last-child p:last-child { color: var(--muted); }

  .contact { background: var(--navy-900); color: #eaf3f1; }
  .contact h2 { color: white; }
  .contact .eyebrow { color: #7ad8d1; }
  .contact-grid { display: grid; gap: 2.5rem; }
  .contact-intro > p:not(.eyebrow) { margin-top: 1.2rem; color: #bfd1cf; }
  .contact-note { display: grid; margin-top: 2.4rem; padding-left: 1.1rem; border-left: 4px solid var(--amber); }
  .contact-note span { color: #bdd0ce; }
  form { min-width: 0; padding: clamp(1.2rem, 4vw, 2.3rem); background: var(--paper); color: var(--ink); border-radius: .7rem; box-shadow: var(--shadow); }
  .field-row { display: grid; gap: 1.2rem; }
  .field { min-width: 0; margin-bottom: 1.3rem; }
  label { display: block; margin-bottom: .45rem; color: var(--navy-950); font-weight: 760; }
  .optional { margin-left: .35rem; color: var(--muted); font-size: .74rem; font-weight: 600; }
  input, select, textarea { width: 100%; min-height: 3.15rem; padding: .7rem .8rem; border: 1px solid #84979b; border-radius: .3rem; background: white; color: var(--ink); }
  textarea { resize: vertical; }
  input:hover, select:hover, textarea:hover { border-color: var(--navy-900); }
  [aria-invalid="true"] { border: 2px solid var(--danger); }
  small { display: block; margin-top: .35rem; color: var(--muted); line-height: 1.4; }
  .field-error { display: block; min-height: 1.15rem; margin-top: .3rem; color: var(--danger); font-size: .86rem; font-weight: 700; }
  .error-summary { margin-bottom: 1.3rem; padding: 1rem 1.1rem; border-left: 5px solid var(--danger); background: #fae9e7; color: #771b1b; }
  .error-summary p { font-weight: 800; }
  .error-summary ul { margin: .5rem 0 0; padding-left: 1.25rem; }
  .error-summary a { text-underline-offset: .18rem; }
  .contact-unavailable { margin-bottom: 1.3rem; padding: 1rem 1.1rem; border-left: 5px solid var(--amber); background: #fff4d6; color: #513900; font-weight: 750; }
  .submit-button { width: 100%; border: 0; }
  .submit-button:disabled { cursor: not-allowed; opacity: .7; }
  input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; background: #eef1f0; color: #596360; }
  .form-status, .form-alert { min-height: 1.5rem; margin-top: 1rem; font-weight: 720; }
  .form-status { color: var(--success); }
  .form-alert { color: var(--danger); }
  .honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
  .noscript { margin-top: 1rem; color: var(--danger); }

  .privacy { background: var(--cream); }
  .privacy-copy { display: grid; gap: .55rem; }
  .privacy-copy h3:not(:first-child) { margin-top: 1.25rem; }
  .privacy-copy p { color: var(--muted); }
  .policy-note { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }

  footer { padding-block: 2.5rem; background: var(--navy-950); color: #bed0ce; }
  .brand small { color: #b9cecc; }
  .footer-inner { display: grid; gap: 1.5rem; align-items: center; }
  .footer-brand { color: white; }

  @media (min-width: 700px) {
    .shell { width: min(1180px, calc(100% - 4rem)); }
    .section-heading { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); align-items: end; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid article:last-child { grid-column: 1 / -1; }
    .hero-facts { grid-template-columns: repeat(3, 1fr); }
    .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-grid, .privacy-grid { grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr); }
    .footer-inner { grid-template-columns: 1fr auto auto; }
  }
  @media (min-width: 980px) {
    .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(24rem, .88fr); }
    .route-visual { display: block; }
    .service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .service-grid article { grid-column: span 2; }
    .service-grid article:nth-last-child(-n + 2) { grid-column: span 3; }
    .process-list { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
    .process-list li { grid-template-columns: 1fr; padding: 0; }
    .process-list li:not(:last-child)::before { top: 1.4rem; bottom: auto; left: 2.8rem; right: -1.4rem; border: 0; border-top: 1px solid var(--line); }
    .value-grid { grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr); align-items: start; }
    .contact-grid { grid-template-columns: minmax(18rem, .76fr) minmax(0, 1.24fr); align-items: start; }
  }
  @media (max-width: 799px) {
    .header-inner { align-items: flex-start; flex-direction: column; gap: .45rem; }
    nav { justify-content: flex-start; }
    html { scroll-padding-top: 11.5rem; }
  }
  @media (max-width: 420px) {
    .shell { width: min(100% - 1.25rem, 1180px); }
    .site-header { position: relative; }
    nav a { padding-inline: .45rem; font-size: .77rem; }
    h1 { font-size: clamp(2.45rem, 13.5vw, 3.5rem); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
