/* Atlantic Marine Services
   Palette is taken from a working hull: navy topsides, red boot-top,
   white draught marks, signal yellow for the things you act on. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --navy: #10264a;
  --navy-deep: #0a1a35;
  --red: #b8322a;
  --signal: #f5b921;
  --ink: #0e1b2e;
  --slate: #536173;
  --deck: #eef2f5;
  --paper: #ffffff;
  --rule: #d3dbe3;

  --chart-sea: #dfe9f1;
  --chart-grid: #c6d5e2;
  --chart-land: #f6f1e4;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4rem, 9vw, 7.5rem);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --step-4: clamp(2.75rem, 1rem + 8.2vw, 7.25rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 var(--step-0)/1.6 "Archivo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

h1, h2 {
  font-stretch: 68%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); max-width: 18ch; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--signal); color: var(--ink); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--slate); max-width: 40ch; margin-top: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 2px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #ffd155; }
.btn--ghost { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / .1); }
.btn--ghost-dark { border-color: var(--rule); color: var(--ink); background: none; min-height: 2.5rem; padding: .4rem 1rem; }
.btn--ghost-dark:hover { border-color: var(--ink); }

.link-btn {
  font: inherit; font-weight: 700; color: var(--navy); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em;
  text-decoration-color: var(--red);
}
.link-btn:hover { color: var(--red); }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__name {
  font-stretch: 68%; font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: var(--navy);
}
.brand__name span { display: block; font-size: .8125rem; font-stretch: 100%; font-weight: 600; letter-spacing: .04em; color: var(--slate); text-transform: none; margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a:not(.btn) {
  font-weight: 600; text-decoration: none; padding-block: .4rem;
  border-bottom: 3px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current] { border-bottom-color: var(--red); }
.nav .btn { min-height: 2.75rem; padding-block: .5rem; }

.menu-btn { display: none; background: none; border: 0; padding: .6rem; color: var(--navy); cursor: pointer; }

/* Desktop: the nav is a popover element but should simply sit in the bar */
@media (min-width: 66rem) {
  .nav[popover] { position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; color: inherit; }
}
@media (max-width: 65.99rem) {
  .menu-btn { display: block; }
  .nav[popover] {
    inset: 4.5rem 0 auto 0; width: 100%; max-width: none; margin: 0;
    border: 0; border-bottom: 4px solid var(--red);
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper); color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: 0 24px 40px rgb(10 26 53 / .25);
  }
  .nav[popover]:not(:popover-open) { display: none; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: var(--step-1); }
  .nav .btn { margin-top: 1.25rem; }
}

/* Hero: the hull */
.hull {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(88svh, 52rem);
}
/* faint plate seams, like welded hull strakes */
.hull::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(to bottom, transparent 0 139px, rgb(255 255 255 / .05) 139px 140px),
    repeating-linear-gradient(to right, transparent 0 419px, rgb(0 0 0 / .16) 419px 420px);
}
.hull__body { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); align-self: center; }

.hull h1 {
  font-size: var(--step-4);
  font-stretch: 62%;
  font-weight: 800;
  line-height: .9;
  text-transform: uppercase;
  max-width: 11.5em;
  padding-right: clamp(0rem, 16vw, 15rem);
}
.hull__lede { font-size: var(--step-1); line-height: 1.45; max-width: 38ch; margin-top: 1.75rem; color: #d5deea; }
.hull__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hull__marks {
  position: absolute; z-index: 1; pointer-events: none;
  right: max(var(--gutter), (100vw - var(--wrap)) / 2);
  top: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 3rem);
  color: #fff;
}
.plimsoll { width: clamp(8rem, 17vw, 15rem); height: auto; margin-bottom: clamp(4rem, 9vw, 7.5rem); opacity: .95; }
.plimsoll text { font-family: "Archivo", sans-serif; font-stretch: 75%; }
.draught {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: 1.5rem;
  font-stretch: 62%; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1;
  text-align: center; min-width: 2.2em;
}

.boot-top { background: var(--red); position: relative; }
.boot-top__list {
  display: flex; flex-wrap: wrap; gap: .5rem clamp(1.5rem, 5vw, 4rem);
  padding-block: 1.4rem;
  font-weight: 700; font-stretch: 88%; font-size: var(--step-1);
  padding-right: clamp(4rem, 9vw, 7rem);
}

/* single load moment: the marks settle to the waterline */
@media (prefers-reduced-motion: no-preference) {
  .hull__marks { animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes settle { from { transform: translateY(-2.5rem); opacity: 0; } }
}

@media (max-width: 47.99rem) {
  .plimsoll { display: none; }
  .hull h1 { padding-right: 2.6rem; }
  .hull__marks { right: .6rem; opacity: .5; }
  .hull__lede { padding-right: 2.5rem; }
  .boot-top__list { flex-direction: column; font-size: var(--step-0); }
}

/* Bands */
.band { padding-block: var(--band); }
.band--deck { background: var(--deck); }
.band--navy { background: var(--navy); color: #fff; }
.band--navy .lede { color: #d5deea; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 60rem) {
  .split--intro { grid-template-columns: 1fr 1.1fr; align-items: end; }
  .split--chart { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .split--about { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .split--contact { grid-template-columns: .8fr 1.2fr; align-items: start; }
}

.photo img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split--intro .photo img { aspect-ratio: 16 / 9; }
.photo--tall img { aspect-ratio: 4 / 5; object-position: 78% 50%; }
@media (min-width: 60rem) { .photo--tall { position: sticky; top: 6.5rem; } }

/* Stores list: a requisition sheet */
.stores {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 3px solid var(--navy);
  display: grid;
}
.stores > div {
  display: grid; gap: .25rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.stores dt { font-weight: 700; font-size: var(--step-1); font-stretch: 88%; color: var(--navy); }
.stores dd { color: var(--slate); max-width: 62ch; }
@media (min-width: 48rem) {
  .stores > div { grid-template-columns: minmax(14rem, 1fr) 2.2fr; align-items: baseline; }
}

/* Services */
.services { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 48rem) { .services { grid-template-columns: 1fr 1fr; } }

.service { display: grid; grid-template-columns: 1fr; gap: 1.25rem; background: var(--paper); border-top: 5px solid var(--red); }
.service > div { padding: 0 1.5rem 1.75rem; }
.service ul { margin-top: .9rem; }
.service li { padding: .55rem 0 .55rem 1.4rem; border-top: 1px solid var(--rule); position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .7rem; height: 2px; background: var(--red); }
.service p { margin-top: .9rem; color: var(--slate); }
.service .photo img { aspect-ratio: 16 / 9; }
@media (min-width: 75rem) {
  .service { grid-template-columns: 13rem 1fr; gap: 0; }
  .service > div { padding: 1.5rem 1.75rem 1.75rem; }
  .service .photo, .service .photo img { height: 100%; }
  .service .photo img { aspect-ratio: auto; }
}

.guides {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--navy); color: #fff;
  display: grid; gap: 1.25rem;
}
.guides ul { display: grid; gap: .75rem; }
.guides a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .9rem 1.1rem; background: rgb(255 255 255 / .08);
  font-weight: 700; text-decoration: none; border-left: 4px solid var(--signal);
}
.guides a:hover { background: rgb(255 255 255 / .16); }
.guides small { font-weight: 400; font-size: var(--step--1); color: #c3d0e0; white-space: nowrap; }
@media (min-width: 60rem) {
  .guides { grid-template-columns: 16rem 1fr; align-items: center; }
  .guides ul { grid-template-columns: repeat(3, 1fr); }
  .guides a { flex-direction: column; gap: .2rem; height: 100%; }
}

/* Ports */
.port-list { margin-top: 2rem; border-top: 3px solid var(--navy); columns: 2; column-gap: 2rem; }
.port-list li { padding: .7rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; color: var(--slate); font-size: var(--step--1); }
.port-list strong { display: block; color: var(--ink); font-size: var(--step-0); }

.chart { min-width: 0; }
.chart__scroll { overflow-x: auto; border: 1px solid var(--rule); }
.chart svg { width: 100%; min-width: 36rem; }
.chart figcaption { font-size: var(--step--1); color: var(--slate); margin-top: .6rem; }
.chart text { font-family: "Archivo", sans-serif; }
.chart__land { fill: var(--chart-land); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.chart__canal { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.chart__water text { fill: #6a86a3; font-style: italic; font-size: 26px; text-anchor: middle; }
.chart__water .sm, .chart__region .sm { font-size: 19px; }
.chart__region text { fill: #9a927c; font-size: 26px; font-stretch: 125%; letter-spacing: .3em; text-anchor: middle; }
.chart__region .sm { letter-spacing: 0; font-stretch: 100%; fill: var(--navy); font-weight: 600; text-anchor: end; }
.chart__port circle { fill: var(--paper); stroke: var(--navy); stroke-width: 4; }
.chart__port text { fill: var(--ink); font-size: 24px; font-weight: 700; font-stretch: 80%; paint-order: stroke; stroke: var(--chart-land); stroke-width: 6px; }
.chart__port text:nth-of-type(1), .chart__port text:nth-of-type(3) { stroke: var(--chart-sea); }
.chart__home circle { fill: var(--red); }
.chart__home .ring { fill: none; stroke: var(--red); stroke-width: 3; }
.chart__home text { fill: var(--red); font-size: 34px; font-weight: 800; font-stretch: 68%; paint-order: stroke; stroke: var(--chart-sea); stroke-width: 6px; }
.chart__home .sm { font-size: 20px; font-weight: 600; font-stretch: 100%; fill: var(--ink); }

/* Memberships */
.members { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 3px solid var(--navy); }
.members li {
  display: grid; gap: .5rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule);
}
.members h3 { font-stretch: 75%; font-weight: 800; font-size: var(--step-2); color: var(--navy); }
.members p { color: var(--slate); max-width: 58ch; }
.members .link-btn { justify-self: start; }
@media (min-width: 56rem) {
  .members li { grid-template-columns: 17rem 1fr auto; align-items: baseline; }
}

/* About */
.prose > p { margin-top: 1.25rem; max-width: 62ch; }
.prose > p:first-of-type { margin-top: 1.75rem; }
.prose blockquote { margin-top: 2.5rem; padding-left: 1.5rem; border-left: 6px solid var(--red); }
.prose blockquote p { font-size: var(--step-2); font-stretch: 85%; font-weight: 600; line-height: 1.3; max-width: 30ch; }
.prose blockquote footer { margin-top: 1rem; color: var(--slate); font-size: var(--step--1); }
.pair { display: grid; gap: 1.5rem 2.5rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.pair p { margin-top: .5rem; color: var(--slate); }
@media (min-width: 40rem) { .pair { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact-card { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 3px solid var(--red); }
.contact-card dl { margin-top: 1.5rem; display: grid; gap: .9rem; }
.contact-card dl div { display: grid; grid-template-columns: 6rem 1fr; }
.contact-card dt { color: #a9b9cd; }
.contact-card a { text-decoration-color: var(--signal); text-underline-offset: .25em; }
.contact-card a:hover { color: var(--signal); }

.form { display: grid; gap: 1.25rem; background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
@media (min-width: 40rem) { .form { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field label span { font-weight: 400; color: var(--slate); }
.field input, .field textarea, .field select {
  font: inherit; color: inherit; width: 100%;
  padding: .75rem .9rem; background: var(--deck);
  border: 0; border-bottom: 2px solid var(--navy); border-radius: 0;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 0; background: #fff; }
.field [aria-invalid="true"] { border-bottom-color: var(--red); background: #fbeceb; }
.field .error { color: var(--red); font-size: var(--step--1); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-weight: 600; }
.form__status[data-state="ok"] { color: #17633a; }
.form__status[data-state="error"] { color: var(--red); }
.form[aria-busy="true"] button[type="submit"] { opacity: .6; pointer-events: none; }

/* Footer */
.footer { background: var(--navy-deep); color: #c3d0e0; font-size: var(--step--1); }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__name { font-stretch: 68%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: #fff; line-height: 1; margin-bottom: .9rem; }
.footer__head { color: #fff; font-weight: 700; margin-bottom: .6rem; }
.footer address { line-height: 1.8; }
.footer li { padding: .2rem 0; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem 1.75rem; border-top: 1px solid rgb(255 255 255 / .14); }
.footer__credit a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: .25em; }

/* Inner pages */
.page-head { background: var(--navy); color: #fff; border-bottom: .75rem solid var(--red); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem); font-stretch: 62%; text-transform: uppercase; line-height: .94; max-width: 16em; margin-top: 1.25rem; }
.page-head .hull__actions { margin-top: 2rem; }
.page-head__lede { font-size: var(--step-1); line-height: 1.45; color: #d5deea; max-width: 44ch; margin-top: 1.25rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; font-size: var(--step--1); color: #a9b9cd; }
.crumbs a { color: #fff; text-underline-offset: .25em; }

.article { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 62rem) { .article { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .article__side { position: sticky; top: 6rem; } }
.article__main, .article__side { min-width: 0; }
.article__main > p, .article__main > ul { max-width: 66ch; }
.article__main > p:first-child { font-size: var(--step-1); line-height: 1.5; }
.article__main h2 { font-size: var(--step-2); font-stretch: 78%; line-height: 1.1; max-width: none; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--navy); }
.article__main h2 code { font: inherit; font-stretch: 100%; font-size: var(--step--1); font-weight: 600; color: var(--slate); letter-spacing: .06em; margin-left: .4rem; }
.article__main h2 + p, .article__main h2 + ul { margin-top: .8rem; }
.article__main p + p { margin-top: 1rem; }
.article__main a { color: var(--navy); font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.article__main a:hover { color: var(--red); }
.article__main > .photo, .article__main > .photo-pair, .article__main > .chart, .article__main > .table-scroll { margin-block: 2rem; }
.article__main > .photo img { aspect-ratio: 16 / 9; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.ticks { display: grid; gap: 0 2rem; }
@media (min-width: 40rem) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { padding: .55rem 0 .55rem 1.4rem; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .7rem; height: 2px; background: var(--red); }

.downloads { display: grid; gap: .6rem; }
.downloads a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 1.1rem; background: var(--deck); border-left: 4px solid var(--signal); text-decoration: none; }
.downloads small { font-weight: 400; color: var(--slate); white-space: nowrap; }

.table-scroll { overflow-x: auto; }
.ports-table { width: 100%; min-width: 36rem; border-collapse: collapse; border-top: 3px solid var(--navy); }
.ports-table caption { text-align: left; font-weight: 700; padding-bottom: .6rem; }
.ports-table th, .ports-table td { text-align: left; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ports-table thead th { font-size: var(--step--1); color: var(--slate); font-weight: 600; }
.ports-table code, .article__main code { font-family: inherit; letter-spacing: .06em; }

.quote-card { background: var(--navy); color: #fff; padding: 1.75rem; border-top: 5px solid var(--red); }
.quote-card h2, .side-list h2 { font-size: var(--step-2); font-stretch: 75%; line-height: 1.1; }
.quote-card p { margin-top: .8rem; color: #d5deea; }
.quote-card .btn { width: 100%; }
.quote-card dl { margin-top: 1.25rem; display: grid; gap: .7rem; font-size: var(--step--1); }
.quote-card dl div { display: grid; grid-template-columns: 6rem 1fr; }
.quote-card dt { color: #a9b9cd; }
.quote-card a:not(.btn) { color: #fff; text-decoration-color: var(--signal); text-underline-offset: .25em; }
.side-list { margin-top: 1.5rem; padding: 1.75rem; background: var(--deck); }
.side-list ul { margin-top: .8rem; }
.side-list li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.side-list a { text-decoration: none; font-weight: 600; }
.side-list a:hover { color: var(--red); }

/* Questions and answers */
.qa { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 3px solid var(--navy); }
.qa__item { display: grid; gap: .5rem 2.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.qa__item h2, .qa__item h3 { font-size: var(--step-1); font-stretch: 90%; font-weight: 700; line-height: 1.3; max-width: none; margin: 0; padding: 0; border: 0; color: var(--navy); }
.qa__item p { color: var(--ink); max-width: 64ch; }
@media (min-width: 56rem) { .band > .wrap > .qa .qa__item { grid-template-columns: 1fr 1.5fr; } }
.article__main .qa { margin-top: 2rem; }

.more { margin-top: 1.5rem; }
.more a { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.more a:hover { color: var(--red); }
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--red); text-decoration: underline; }

/* Certificate viewer */
.cert { border: 0; padding: 0; max-width: min(92vw, 42rem); max-height: 92svh; background: var(--paper); color: var(--ink); }
.cert::backdrop { background: rgb(10 26 53 / .82); }
.cert__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--paper); }
.cert__bar h2 { font-size: var(--step-1); font-stretch: 85%; line-height: 1.2; max-width: none; }
.cert img { width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .masthead, .hull__marks, .form, .menu-btn { display: none; }
  .hull, .band--navy { background: none; color: #000; }
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2310264a' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.2rem;
  min-height: 3rem;
}

.form__privacy {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--slate);
}
.form__privacy a { color: var(--navy); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: .2em; }

.contact-card__map { margin-top: 1.5rem; }
.office-map { margin-top: 1.5rem; }
.office-map iframe { width: 100%; height: 16rem; border: 0; display: block; background: #dfe9f1; }
.office-map .btn { min-height: 2.5rem; }

/* Floating WhatsApp: small, clear of content; footer is padded so it does not cover links */
.wa-float {
  position: fixed;
  z-index: 40;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 3rem;
  padding: .5rem .95rem .5rem .65rem;
  background: #128C7E;
  color: #fff;
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  border-radius: 2rem;
  box-shadow: 0 4px 16px rgb(10 26 53 / .3);
}
.wa-float:hover { background: #075E54; color: #fff; }
.wa-float svg { width: 1.55rem; height: 1.55rem; flex-shrink: 0; }
.footer { padding-bottom: 1rem; }
.footer__row { padding-bottom: 4.75rem; }
@media (max-width: 29.99rem) {
  .wa-float { padding: .7rem; border-radius: 50%; }
  .wa-float span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media print {
  .wa-float, .office-map { display: none; }
}
