/* Whalora Group Corp. — site styles
   Palette: abyss (brand navy), tide (accent), lagoon (contours on dark), paper, ink, slate, line. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("/static/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/static/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --abyss: #0c2340;
  --abyss-2: #123158;
  --tide: #1d6e8c;
  --tide-strong: #155a73;
  --lagoon: #8fd3cf;
  --paper: #f5f7f8;
  --surface: #ffffff;
  --ink: #13202e;
  --slate: #536173;
  --line: #d8e0e6;
  --focus: #1d6e8c;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.375rem, 4.6vw, 3.5rem);
  --step-5: clamp(2.75rem, 6.4vw, 5rem);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0a1828;
  --surface: #0f2034;
  --ink: #e7edf3;
  --slate: #9fb0c2;
  --line: #22374f;
  --tide: #5fb3c9;
  --tide-strong: #8fd3cf;
  --focus: #8fd3cf;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1828;
    --surface: #0f2034;
    --ink: #e7edf3;
    --slate: #9fb0c2;
    --line: #22374f;
    --tide: #5fb3c9;
    --tide-strong: #8fd3cf;
    --focus: #8fd3cf;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--tide); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tide-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 66ch; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; color: var(--tide); }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--slate); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.9375rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--line) 50%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--tide); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); width: 38px; height: 38px; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 8px; font: 600 0.9875rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--abyss); color: #fff; }
.btn-primary:hover { background: var(--abyss-2); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: var(--lagoon); color: var(--abyss); }
:root[data-theme="dark"] .btn-primary:hover { background: #b4e4e1; color: var(--abyss); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: var(--lagoon); color: var(--abyss); }
  :root:not([data-theme="light"]) .btn-primary:hover { background: #b4e4e1; color: var(--abyss); }
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--slate); color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }

/* Hero — the one memorable element: bathymetric contour lines over deep water */
.hero { position: relative; overflow: hidden; background: var(--abyss); color: #eaf2f7; isolation: isolate; }
.hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--lagoon); opacity: 0.55; }
.hero .contours path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero .contours path:nth-child(3n) { opacity: 0.45; }
.hero .contours path:nth-child(5n) { stroke-width: 1.6; opacity: 0.9; }
.hero .wrap { padding-top: clamp(72px, 11vw, 140px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { margin-top: 28px; max-width: 58ch; font-size: var(--step-1); line-height: 1.55; color: #c6d6e3; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: var(--lagoon); color: var(--abyss); }
.hero .btn-primary:hover { background: #b4e4e1; color: var(--abyss); }
.hero .btn-ghost { color: #eaf2f7; border-color: rgba(234, 242, 247, 0.32); }
.hero .btn-ghost:hover { border-color: #eaf2f7; color: #fff; }
.hero.compact .wrap { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 7vw, 80px); }
.hero.compact h1 { font-size: var(--step-4); max-width: 20ch; }
.hero.compact .contours { opacity: 0.35; }
.crumb { display: inline-block; margin-bottom: 20px; color: #a9c3d4; text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.crumb:hover { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .hero .contours path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s cubic-bezier(.3,.6,.2,1) forwards; }
  .hero .contours path:nth-child(2n) { animation-delay: .15s; }
  .hero .contours path:nth-child(3n) { animation-delay: .3s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Company facts strip under the hero */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.facts dl > div { padding: 22px 24px 22px 0; }
.facts dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--slate); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.section-head.single { grid-template-columns: 1fr; }
.prose { max-width: 68ch; }
.prose h2 { margin: 56px 0 16px; font-size: var(--step-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose .meta { color: var(--slate); font-size: var(--step--1); margin-bottom: 32px; }
.note { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--tide); background: color-mix(in srgb, var(--tide) 7%, transparent); color: var(--ink); }

/* Services as a ledger of rows, not a grid of identical cards */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: 16px 48px; align-items: baseline; padding: 30px 0; color: inherit; text-decoration: none; }
.service-list h3 { font-size: var(--step-2); font-weight: 600; }
.service-list p { color: var(--slate); }
.service-list .go { font-weight: 600; color: var(--tide); white-space: nowrap; }
.service-list a:hover h3, .service-list a:focus-visible h3 { color: var(--tide); }
.service-list a:hover .go { text-decoration: underline; }
.service-list .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: var(--step--1); color: var(--slate); }
.service-list .tags span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--tide); vertical-align: middle; }

/* Two-column feature text */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; }
.split.even { grid-template-columns: 1fr 1fr; }
.split .side { color: var(--slate); }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.points > div { padding: 24px 0; border-top: 1px solid var(--line); }
.points h3 { margin-bottom: 8px; }
.points p { color: var(--slate); }
.points.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Sequenced process — the only place numbers are used, because it is a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.steps li { counter-increment: step; padding: 22px 0 26px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--tide); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.0625rem; }
.steps p { margin-top: 6px; color: var(--slate); font-size: 0.975rem; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.checklist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.checklist li { break-inside: avoid; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 7px; border-left: 2px solid var(--tide); border-bottom: 2px solid var(--tide); transform: rotate(-45deg); }

.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.models > div { background: var(--surface); padding: 24px; }
.models h3 { margin-bottom: 8px; }
.models p { color: var(--slate); font-size: 0.975rem; }
.price { font-family: var(--display); font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; }
.price small { font-family: var(--body); font-size: var(--step-0); font-weight: 500; color: var(--slate); letter-spacing: 0; }

/* Closing call to action */
.cta { background: var(--abyss); color: #dbe7ef; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { color: #fff; max-width: 22ch; }
.cta p { margin-top: 10px; max-width: 52ch; color: #b5c8d6; }
.cta .btn-primary { background: var(--lagoon); color: var(--abyss); }
.cta .btn-primary:hover { background: #b4e4e1; color: var(--abyss); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 72px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--slate); }
.consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--tide); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 8px; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: color-mix(in srgb, #2e8b57 12%, transparent); border: 1px solid color-mix(in srgb, #2e8b57 40%, transparent); }
.form-status.err { background: color-mix(in srgb, #c0392b 10%, transparent); border: 1px solid color-mix(in srgb, #c0392b 40%, transparent); }
.details dl { margin: 0; }
.details div { padding: 18px 0; border-top: 1px solid var(--line); }
.details dt { font-size: var(--step--1); color: var(--slate); }
.details dd { margin: 4px 0 0; font-weight: 500; }

/* Footer */
.site-footer { background: #081a30; color: #a9bccb; font-size: 0.9375rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand svg { color: var(--lagoon); }
.site-footer p { margin-top: 14px; max-width: 42ch; }
.site-footer h2 { font-family: var(--body); font-size: 0.9375rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #cfdde8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal-line { max-width: none; margin-top: 48px; padding-top: 24px; border-top: 1px solid #1c3350; font-size: var(--step--1); color: #8ea3b5; }

/* Responsive */
@media (max-width: 980px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head, .split, .split.even, .contact-grid { grid-template-columns: 1fr; }
  .steps, .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--tide); }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .service-list a { grid-template-columns: 1fr; gap: 8px; }
  .service-list .tags { grid-column: 1; }
}
@media (max-width: 620px) {
  .facts dl { grid-template-columns: 1fr; }
  .facts dl > div, .facts dl > div + div { padding: 16px 0; border-left: 0; }
  .facts dl > div + div { border-top: 1px solid var(--line); }
  .points, .points.three, .steps, .steps.four, .form { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .cta, .hero .contours { display: none; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}

/* Services dropdown (TZ 04: Services menu lists the four service lines) */
.has-sub { position: relative; display: flex; }
.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 12px; height: 12px; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: -8px; min-width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(12, 35, 64, 0.14); display: none; z-index: 30; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); }
.sub a[aria-current="page"] { box-shadow: none; color: var(--tide); border-radius: 6px; }

.btn-link { color: #eaf2f7; background: transparent; padding: 0 10px; }
.btn-link:hover { color: #fff; text-decoration: underline; }
.gap { margin-top: 16px; }
.form-intro { margin-bottom: 28px; max-width: 60ch; }
.details-title { font-size: var(--step-1); margin-bottom: 16px; }
.contact-grid h2 + .form-intro { margin-top: 12px; }
.side { color: var(--slate); }

@media (max-width: 820px) {
  .has-sub { flex-direction: column; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; background: transparent; }
  .sub a { padding: 8px 0; color: var(--slate); }
  .caret { display: none; }
}
