/* =============================================================================
   Nex-Aura — styles.css
   Sections: 1 tokens · 2 base · 3 layout · 4 header · 5 buttons · 6 hero & page
   headers · 7 content blocks · 8 bands · 9 forms · 10 alerts & badges · 11 footer
   · 12 utilities · 13 reduced motion
   System fonts only: no external requests, nothing to download before first paint.
   ========================================================================== */

/* ------------------------------------------------------------------ 1. tokens */
:root {
  --navy-900: #0b2447;
  --navy-800: #10305c;
  --navy-700: #19376d;
  --teal-600: #0b7285;
  --teal-700: #095c6b;
  --cyan-300: #5cd6de;

  --ink: #12202f;
  --muted: #46566b;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --line: #d9e0e8;
  --line-strong: #8d9bad;

  --error: #b42318;
  --warn-bg: #fff1cc;
  --warn-ink: #7a4b00;

  --radius: 6px;
  --container: 72.5rem;
  --header-h: 4.25rem;
  --focus: var(--teal-600);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* -------------------------------------------------------------------- 2. base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
:target { scroll-margin-top: calc(var(--header-h) + 1rem); }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1rem; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-dark { --focus: var(--cyan-300); }

/* ------------------------------------------------------------------ 3. layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin-bottom: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.stack > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------------ 4. header */
.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: .75rem; }

.preview-banner {
  background: var(--warn-bg); color: var(--warn-ink); padding: .6rem 1.25rem;
  text-align: center; font-size: .92rem; border-bottom: 1px solid #e7c76a;
}

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand-mark { display: block; flex: none; }
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-logo { display: block; height: 36px; width: auto; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; color: var(--navy-900);
}
.js .nav-toggle { display: inline-flex; }
.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block; width: 1.3rem; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-bars { position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { display: flex; flex-direction: column; gap: 1rem; padding-block: .75rem 1.25rem; }
.js .primary-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem;
}
.js .primary-nav.is-open { display: flex; }
.nav-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.nav-link {
  display: block; padding: .7rem .25rem; color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-link:hover { color: var(--teal-700); }
.nav-link[aria-current="page"] { color: var(--navy-900); border-bottom-color: var(--teal-600); }

@media (min-width: 56rem) {
  .js .nav-toggle, .nav-toggle { display: none; }
  .primary-nav, .js .primary-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 1.5rem;
    padding: 0; border: 0; background: transparent;
  }
  .nav-list { flex-direction: row; gap: .25rem; }
  .nav-link { padding: .5rem .8rem; }
}

/* ----------------------------------------------------------------- 5. buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .55rem 1.3rem; border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { min-height: 3.3rem; padding: .7rem 1.7rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: .4rem 1rem; font-size: .975rem; }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-accent { background: var(--cyan-300); color: var(--navy-900); }
.btn-accent:hover { background: #82e3e9; color: var(--navy-900); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link { font-weight: 650; }

/* ------------------------------------------------- 6. hero & page headers */
.corrugated {
  background-color: var(--navy-900);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0, rgba(255, 255, 255, .04) 2px, transparent 2px, transparent 9px);
  color: #fff;
}
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: end; }
.hero-copy { padding-bottom: 0; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; }
.hero .lead { color: #c7d3e3; max-width: 34rem; margin-bottom: 2rem; }
.hero-visual { margin-inline: -1.25rem; }
.hero-visual { position: relative; }
/* Extends the quay drawn in the artwork to the full width of the hero. 12.96% = 70/540 of the SVG height. */
.hero-visual::before {
  content: ""; position: absolute; z-index: 0; left: -100vw; right: -100vw; bottom: 0; height: 12.96%;
  background: #12356a; border-top: 2px solid rgba(92, 214, 222, .55);
}
.hero-visual img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; }
  .hero-copy { padding-bottom: 6.5rem; } /* clears the quay line drawn at the bottom of the artwork */
  .hero-visual { margin-inline: 0; }
}

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); color: #fff; margin-bottom: .75rem; }
.page-hero .lead { color: #c7d3e3; max-width: 40rem; margin: 0; }

/* ------------------------------------------------------- 7. content blocks */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section-alt .card { border-color: #cfd8e2; }
.card-title { margin-bottom: .4rem; }
.card-text { color: var(--muted); margin-bottom: 0; }
.service-card { display: flex; flex-direction: column; gap: .5rem; transition: border-color .15s ease; }
.service-card:hover { border-color: var(--teal-600); }
.service-card .text-link { margin-top: auto; padding-top: .75rem; }

.icon { display: inline-flex; flex: none; }
.icon svg { display: block; }
.icon-tile {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .5rem;
  background: var(--navy-900); color: var(--cyan-300); border-radius: var(--radius);
}

.why-layout { display: grid; gap: 2rem; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-item { display: flex; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-check {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; margin-top: .1rem;
  border-radius: 50%; background: var(--teal-600); color: #fff;
}
.why-check svg { width: 1.1rem; height: 1.1rem; }
.why-title { font-size: 1.1rem; margin-bottom: .2rem; }
.why-text { color: var(--muted); margin: 0; }
@media (min-width: 56rem) { .why-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4rem; } }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chip { padding: .55rem 1rem; background: #fff; border: 1px solid #cfd8e2; border-radius: var(--radius); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .9rem;
  border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700;
}
.step-title { font-size: 1.1rem; margin-bottom: .3rem; }
.step-text { color: var(--muted); margin: 0; }
@media (min-width: 56rem) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 1.15rem; left: 3.1rem; right: -1rem; height: 2px; background: var(--line-strong); opacity: .5;
  }
}

.empty-state, .placeholder-box {
  padding: 1.25rem 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: #fff; margin: 0;
}

.about-grid { display: grid; gap: 2.5rem; }
.about-block h2 { margin-bottom: 1rem; }
.about-pair { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.prose { max-width: 44rem; }
.prose p { font-size: 1.1rem; }

/* contact lists */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; padding-block: .6rem; }
.contact-item .icon { color: var(--teal-600); margin-top: .2rem; }
.contact-label { display: block; font-size: .875rem; color: var(--muted); }
.contact-value { font-weight: 600; font-style: normal; color: inherit; overflow-wrap: anywhere; }
a.contact-value { color: var(--teal-700); }
.contact-item--large { padding-block: 1rem; border-top: 1px solid var(--line); }
.contact-item--large:first-child { border-top: 0; }
.contact-item--large .contact-value { font-size: 1.15rem; }

.map-frame iframe { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--radius); display: block; margin-top: 1rem; }

.contact-layout { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .contact-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; } }

/* --------------------------------------------------------------- 8. bands */
.band { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
/* A lighter navy than the footer so the CTA band and footer read as two separate blocks. */
.band.corrugated { background-color: var(--navy-700); }
.band-inner { display: grid; gap: 1.5rem; align-items: center; }
.band h2 { color: #fff; margin-bottom: .5rem; }
.band p { color: #c7d3e3; margin: 0; max-width: 38rem; font-size: 1.1rem; }
@media (min-width: 56rem) { .band-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }

/* ---------------------------------------------------------------- 9. forms */
.quote-layout { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .quote-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.quote-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.quote-aside h2 { font-size: 1.25rem; }
.quote-aside ul { padding-left: 1.2rem; margin: 0 0 1.25rem; color: var(--muted); }
.quote-aside li + li { margin-top: .35rem; }

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.field label { display: block; font-weight: 650; margin-bottom: .35rem; }
.req { color: var(--error); margin-left: .15rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .65rem .85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-600); outline: 3px solid var(--focus); outline-offset: 1px; }
.field-hint { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }
.field-error { margin: .35rem 0 0; font-size: .95rem; font-weight: 600; color: var(--error); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); border-width: 2px; }

.checkbox { display: flex; gap: .75rem; align-items: flex-start; }
.checkbox input { width: 1.35rem; height: 1.35rem; margin: .2rem 0 0; flex: none; accent-color: var(--teal-600); }
.checkbox label { margin: 0; font-weight: 500; }
.form-footer { margin-top: 1.5rem; display: grid; gap: 1rem; }
.privacy-details { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }
.privacy-details summary { cursor: pointer; font-weight: 650; color: var(--ink); }

/* ------------------------------------------------------ 10. alerts & badges */
.alert { padding: 1rem 1.25rem; border: 1px solid; border-left-width: 5px; border-radius: var(--radius); margin-bottom: 1.25rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-title { font-weight: 700; margin: 0 0 .3rem; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert a { color: inherit; font-weight: 600; }
.alert .btn-row { margin-top: .9rem; }
.alert-info { background: #eaf6f8; border-color: var(--teal-600); }
.alert-success { background: #e8f6ee; border-color: #1b7f4b; }
.alert-warning { background: var(--warn-bg); border-color: #c99700; }
.alert-error { background: #fdecea; border-color: var(--error); }
.form-status:empty { display: none; }

.badge-draft {
  display: inline-block; margin-left: .5rem; padding: .08rem .45rem; border-radius: 3px;
  background: var(--warn-bg); color: var(--warn-ink); font-size: .75rem; font-weight: 700; letter-spacing: 0; vertical-align: middle;
}

/* -------------------------------------------------------------- 11. footer */
.site-footer { padding-block: 3.5rem 1.5rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; } }
.footer-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; letter-spacing: 0; }
.site-footer p { color: #a9b8cc; }
.site-footer a:not(.btn) { color: #e3ebf5; }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: .5rem; }
.site-footer .contact-item { padding-block: .4rem; }
.site-footer .contact-item .icon { color: var(--cyan-300); }
.site-footer .contact-label { color: #a9b8cc; }
.site-footer a.contact-value:not(.btn) { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; color: #a9b8cc; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------- 12. utilities */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.title-md { font-size: 1.35rem; margin-bottom: .6rem; }
.js-only { display: none; }
.js .js-only { display: block; }
.small { font-size: .9rem; }
.center { text-align: center; }
.error-page { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }
.error-page .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------------------------------------------------------- 13. reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
