/* Inlet Systems site styles */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Color tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #f4f6f5;
  --surface: #ffffff;
  --tint: #e6eeec;
  --ink: #10222d;
  --muted: #4a5b64;
  --line: #d3dcdc;
  --line-strong: #b7c4c5;
  --accent: #1b6a64;
  --accent-hover: #155650;
  --accent-ink: #ffffff;
  --accent-text: #17615b;
  --input-bg: #ffffff;
  --input-border: #7a8b91;
  --error: #a8322a;
  --success: #1b6a64;
  --header-bg: rgba(244, 246, 245, 0.88);

  --band: #0f2530;
  --band-ink: #e8efee;
  --band-muted: #a9bcc0;
  --band-accent: #7cc9bf;
  --band-accent-hover: #9ad8cf;
  --band-accent-ink: #062320;
  --band-line: #24414d;

  --mark-tile: #10222d;
  --mark-line: #7cc9bf;
  --mark-dot: #f4f6f5;

  --c-land: #e8ebe5;
  --c-water: #eaf3f2;
  --c-shore: #1c4752;
  --c-depth: #86b9b2;
  --c-topo: #b5bfb7;
  --c-sound: #4d6a73;
  --c-frame: #10222d;
  --c-pin: #10222d;

  --radius: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1820;
    --surface: #11222c;
    --tint: #0f1f28;
    --ink: #e5eded;
    --muted: #a2b5b9;
    --line: #22343f;
    --line-strong: #2f4552;
    --accent: #6fc2b7;
    --accent-hover: #8dd3c9;
    --accent-ink: #062320;
    --accent-text: #7cc9bf;
    --input-bg: #0c1820;
    --input-border: #5b7583;
    --error: #f19a8f;
    --success: #7cc9bf;
    --header-bg: rgba(12, 24, 32, 0.86);

    --band: #08141b;
    --band-line: #1c2f3a;

    --mark-tile: #1a3542;

    --c-land: #0f1e27;
    --c-water: #122a33;
    --c-shore: #8fd0c6;
    --c-depth: #3f7e79;
    --c-topo: #2c434d;
    --c-sound: #8fb0b5;
    --c-frame: #8fb0b5;
    --c-pin: #e5eded;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

section[id],
.form-card {
  scroll-margin-top: 88px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-small {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.mark .tile {
  fill: var(--mark-tile);
}

.mark .shore {
  fill: none;
  stroke: var(--mark-line);
  stroke-linecap: round;
}

.mark .dot {
  fill: var(--mark-dot);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.975rem;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
  .header-inner > .btn {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.1rem;
  }
  .header-inner > .btn {
    padding-inline: 0.8rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.kicker {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.975rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 17ch;
}

.lede {
  margin-top: 1.4rem;
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 32rem;
}

.chart {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}

.chart-svg {
  width: 100%;
  height: auto;
}

.chart figcaption {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: right;
}

.c-land { fill: var(--c-land); }
.c-water { fill: var(--c-water); }
.c-topo { fill: none; stroke: var(--c-topo); stroke-width: 1; stroke-dasharray: 3 4; }
.c-depth { fill: none; stroke: var(--c-depth); stroke-width: 1; }
.c-shore { fill: none; stroke: var(--c-shore); stroke-width: 1.7; stroke-linejoin: round; }
.c-sound {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  fill: var(--c-sound);
  text-anchor: middle;
}
.c-sub { font-size: 8px; }
.c-frame { fill: none; stroke: var(--c-frame); stroke-width: 1; }
.c-thin { stroke-width: 0.75; }
.c-scale { fill: var(--c-frame); }
.c-north path { stroke: var(--c-frame); stroke-width: 1.2; fill: none; }
.c-north .c-north-head { fill: var(--c-frame); stroke: none; }
.c-north text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  fill: var(--c-frame);
  text-anchor: middle;
}
.c-pin { fill: var(--c-pin); }
.c-ring { fill: none; stroke: var(--c-pin); stroke-width: 1.2; }
.c-place {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  fill: var(--c-pin);
  text-anchor: middle;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart {
    justify-self: stretch;
    max-width: 520px;
  }
  .chart figcaption {
    text-align: left;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

.section-intro {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 34rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.services-head {
  position: sticky;
  top: 108px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.service-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-text);
  line-height: 1.5;
}

.service-list h3 {
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
}

.service-list p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-head {
    position: static;
  }
}

@media (max-width: 480px) {
  .service-list li {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }
}

/* Process */
.process-head {
  max-width: 40rem;
}

.steps {
  list-style: none;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 0;
  top: 9px;
  border-top: 1.5px dashed var(--line-strong);
}

.step {
  position: relative;
  padding-top: 2.5rem;
}

.step-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tint);
  border: 1.5px solid var(--accent);
}

.step-marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-text);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .steps::before {
    top: 10px;
    bottom: 10px;
    left: 9px;
    right: auto;
    border-top: 0;
    border-left: 1.5px dashed var(--line-strong);
  }
  .step {
    padding-top: 0;
    padding-left: 2.75rem;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.about-copy p {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

.about-copy p:first-of-type {
  color: var(--ink);
  font-size: 1.15rem;
}

.promise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

.promise h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.promise ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.promise li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.9rem;
  border-top: 1px solid var(--line);
}

.promise li:first-child {
  border-top: 0;
}

.promise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 0 0 2.5px var(--surface), inset 0 0 0 6px var(--accent);
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */
.contact {
  background: var(--band);
  color: var(--band-ink);
  border-top: 1px solid var(--band-line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.contact h2 {
  color: var(--band-ink);
}

.contact .section-intro {
  color: var(--band-muted);
}

.contact a {
  color: var(--band-accent);
}

.booking {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--band-line);
}

.booking h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.booking p {
  color: var(--band-muted);
  max-width: 28rem;
}

.btn-band {
  margin-top: 1.25rem;
  background: var(--band-accent);
  color: var(--band-accent-ink);
}

.contact a.btn-band {
  color: var(--band-accent-ink);
}

.btn-band:hover {
  background: var(--band-accent-hover);
}

.contact :focus-visible {
  outline-color: var(--band-accent);
}

.direct {
  margin-top: 2rem;
  color: var(--band-muted);
}

.direct a {
  font-weight: 600;
}

/* Form */
.form-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.form-card .form-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-card :focus-visible {
  outline-color: var(--accent);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font: 400 1rem/1.45 var(--sans);
  color: var(--ink);
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

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

.field-error {
  color: var(--error);
  font-size: 0.9rem;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

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

.form-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-actions .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  font-weight: 600;
  font-size: 0.975rem;
}

.form-status:empty {
  display: none;
}

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

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

.form-status a {
  color: inherit;
}

.noscript-note {
  margin-top: 1rem;
  color: var(--error);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--band);
  color: var(--band-muted);
  border-top: 1px solid var(--band-line);
  padding-block: 2rem 2.5rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer .brand {
  color: var(--band-ink);
  font-size: 1.1rem;
}

.site-footer .mark {
  width: 28px;
  height: 28px;
}

.site-footer .mark .tile {
  fill: #1a3542;
}

.site-footer a {
  color: var(--band-accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

/* ---------- 404 page ---------- */
.notfound {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding-block: 64px;
}

.notfound h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.notfound p {
  color: var(--muted);
  max-width: 32rem;
}
