/* BRANQUIA Marine Systems
 *
 * Colours are the exact values used in the 2026 catalog PDF.
 * Two rules keep text readable (WCAG AA):
 *   - teal is used for small text only on white (4.7:1 there, 4.46:1 on the pale panel)
 *   - aqua is used only on navy (9.2:1 there, 1.5:1 on white)
 */

:root {
  --navy: #092e46;
  --teal: #007f91;
  --aqua: #70e3e2;
  --mist: #b8d5db;
  --slate: #557080;
  --panel: #f5f9fa;
  --line: #d8e6ea;
  --navy-line: rgba(184, 213, 219, 0.28);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 12px;
}

@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

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

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

[id] {
  scroll-margin-top: 6rem;
}

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

.hero :focus-visible,
.section--navy :focus-visible,
.tank :focus-visible,
.system :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

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

.skip {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.skip:focus {
  left: 0.5rem;
}

.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.link:hover {
  text-decoration-color: currentColor;
}

/* Catalog-style section label: "05 / Turnkey installations". On white only. */
.label {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--slate);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

/* Slash-separated lists, as on the catalog cover. */
.slashes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin-block: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slashes li:not(:last-child)::after {
  content: "/";
  margin-inline: 0.8em;
  color: var(--slate);
  font-weight: 400;
}

/* ---------- Buttons ----------
 * btn--light: for white and pale backgrounds. btn--navy: for navy backgrounds.
 * btn--solid is the stronger action (buy, subscribe, call); btn--outline is a request. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}

.btn--solid.btn--light {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn--solid.btn--light:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.btn--outline.btn--light {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--outline.btn--light:hover {
  background: var(--navy);
  color: #fff;
}

.btn--solid.btn--navy {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--navy);
}

.btn--solid.btn--navy:hover {
  background: #fff;
  border-color: #fff;
}

.btn--outline.btn--navy {
  border-color: var(--aqua);
  color: var(--aqua);
}

.btn--outline.btn--navy:hover {
  background: var(--aqua);
  color: var(--navy);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}

.brand {
  flex: none;
  margin-right: auto;
}

.brand img {
  width: auto;
  height: 3.25rem;
}

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

.site-nav a {
  display: block;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.call {
  white-space: nowrap;
}

.call__verb {
  margin-right: 0.35em;
}

@media (max-width: 69.99rem) {
  .js .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .call {
    order: 3;
  }

  .site-nav {
    order: 4;
    flex-basis: 100%;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    color: var(--teal);
  }
}

@media (max-width: 35.99rem) {
  .brand img {
    height: 2.75rem;
  }

  /* Keep the number for screen readers; show only "Call" to fit a phone header. */
  .call__num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .call__verb {
    margin-right: 0;
  }
}

/* Narrow phones: keep logo, Menu and Call on one row. */
@media (max-width: 24.99rem) {
  .site-header__in {
    gap: 0.5rem;
  }

  .brand img {
    height: 2.1rem;
  }

  .nav-toggle,
  .call {
    padding: 0.45rem 0.7rem;
  }
}

/* ---------- Home: hero ---------- */

.hero {
  background: var(--navy);
  color: #fff;
}

.hero__in {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.hero h1 {
  font-size: clamp(2.1rem, 10.5vw, 4rem);
  line-height: 0.95;
}

.hero__lede {
  max-width: 30rem;
  margin: 0 0 1.5rem;
  color: var(--mist);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

@media (min-width: 60rem) {
  .hero__in {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 6.4vw, 5rem);
  }
}

.hero__photo {
  position: relative;
  margin: 0;
  background: #02090c;
}

.hero__photo img {
  width: 100%;
  height: clamp(15rem, 44vw, 36rem);
  object-fit: cover;
  object-position: center 62%;
}

.hero__waterline {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(2.25rem, 7vw, 6.5rem);
}

.capabilities {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--panel {
  background: var(--panel);
}

.section--navy {
  background: var(--navy);
  color: #fff;
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section__points {
  margin-top: 1rem;
  color: var(--slate);
}

.section__more {
  margin: 1.75rem 0 0;
}

/* ---------- Care plans ---------- */

.plans {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 56rem) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--navy);
  color: #fff;
}

.plan__name {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.plan__price {
  margin: 0;
  color: var(--aqua);
  font-weight: 700;
  white-space: nowrap;
}

.plan__price b {
  font-size: 1.5rem;
  font-weight: 900;
}

.plan__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}

.plan__body p {
  margin: 0;
}

.plan__visits {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal);
  font-weight: 700;
}

.plan__body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* One droplet per visit a month. */
.drops {
  display: inline-flex;
  gap: 0.3rem;
}

.drops i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 0 50% 50% 50%;
  background: var(--teal);
  transform: rotate(45deg);
}

.rider {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--panel);
}

.rider h2 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.rider ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--slate);
}

.rider li + li {
  margin-top: 0.4rem;
}

.rider__ask {
  margin: 1.25rem 0 0;
}

/* ---------- Home: catalog index ---------- */

.index {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
  list-style: none;
}

.index li {
  border-bottom: 1px solid var(--line);
}

.index a {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  gap: 0.1rem 0.75rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
}

.index a:hover {
  background: #fff;
}

.index__no {
  grid-row: span 2;
  color: var(--slate);
  font-size: 1.1rem;
  font-weight: 900;
}

.index__title {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.index__label {
  grid-column: 2;
  color: var(--slate);
  font-size: 0.95rem;
}

@media (min-width: 48rem) {
  .index a {
    grid-template-columns: 3.5rem 1fr auto;
  }

  .index__no {
    grid-row: auto;
  }

  .index__label {
    grid-column: 3;
    text-align: right;
  }
}

/* ---------- Home: sourcing ---------- */

.sourcing__in {
  display: grid;
  align-items: center;
  gap: 2rem 3.5rem;
}

@media (min-width: 52rem) {
  .sourcing__in {
    grid-template-columns: minmax(0, 24rem) 1fr;
  }
}

.sourcing__photo {
  max-width: 24rem;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--aqua);
  border-radius: var(--radius);
  background: #000;
}

/* The procurement steps happen in order, so they are numbered. */
.steps {
  --num: var(--teal);
  --rule: var(--line);
  display: grid;
  gap: 0.75rem 2rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.section--navy .steps {
  --num: var(--aqua);
  --rule: var(--navy-line);
}

@media (min-width: 36rem) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  min-width: 1ch;
  color: var(--num);
  font-weight: 900;
}

/* ---------- Emergency call-out ---------- */

.alarm {
  display: grid;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}

@media (min-width: 52rem) {
  .alarm {
    grid-template-columns: 1fr auto;
  }
}

.alarm h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.alarm p {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: var(--slate);
}

.alarm__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

/* ---------- Inner pages ---------- */

.page {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

.page--narrow > * {
  max-width: 50rem;
}

.page__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page__head .btn {
  margin-top: 0.75rem;
}

.page__points {
  margin-top: 1.25rem;
  color: var(--slate);
}

.group {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.group__head {
  margin-bottom: 1.5rem;
}

.support .steps {
  margin-bottom: 0;
}

.fineprint {
  max-width: 60rem;
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.fineprint p {
  margin: 0 0 0.35rem;
}

/* ---------- Price lists ---------- */

.rows {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "what price"
    "action action";
  align-items: baseline;
  gap: 0.6rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.row__what {
  grid-area: what;
  min-width: 0;
}

.row__name {
  margin-right: 0.4em;
  font-weight: 700;
}

.row__latin {
  color: var(--slate);
  font-size: 0.95em;
}

.row__detail {
  display: block;
  color: var(--slate);
  font-size: 0.95rem;
}

.row__price {
  grid-area: price;
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.row__action {
  grid-area: action;
}

.row .btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

@media (min-width: 44rem) {
  .row {
    grid-template-columns: 1fr auto 10.5rem;
    grid-template-areas: "what price action";
    align-items: center;
    gap: 1rem 1.5rem;
  }

  .row__action {
    justify-self: end;
  }
}

/* A rate card has no action column. */
.rows--rates .row {
  grid-template-columns: 1fr auto;
  grid-template-areas: "what price";
}

/* Navy price list, as in the catalog's livestock sections. */
.tank {
  display: grid;
  gap: 1.5rem 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.tank__photo {
  max-width: 16rem;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--aqua);
  border-radius: 10px;
  background: #000;
}

@media (min-width: 60rem) {
  .tank--photo {
    grid-template-columns: minmax(0, 20rem) 1fr;
    align-items: start;
  }

  .tank__photo {
    max-width: none;
  }
}

.tank__intro {
  margin-bottom: 1.1rem;
}

.tank__intro p {
  margin: 0;
  color: var(--mist);
}

.tank__intro .tank__title {
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rows--navy {
  border-top-color: var(--mist);
}

.rows--navy .row {
  border-bottom-color: var(--navy-line);
}

.rows--navy .row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rows--navy .row__latin {
  color: var(--mist);
}

.rows--navy .row__price {
  color: var(--aqua);
}

/* Installation cards. */
.systems {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .systems {
    grid-template-columns: 1fr 1fr;
  }
}

.system {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.system__name {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.system__price {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
}

/* Aqua is unreadable on teal, so the teal card uses white. */
.system--teal {
  background: var(--teal);
}

.system--teal .btn {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.system--teal .btn:hover {
  background: #fff;
  color: var(--navy);
}

.system--teal .btn--solid {
  background: #fff;
  color: var(--navy);
}

/* Contact strip at the foot of catalog pages. */
.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--navy);
}

.ask p {
  margin: 0;
}

.ask p a {
  font-weight: 700;
}

/* ---------- Quote form ---------- */

.quote__cols {
  display: grid;
  gap: 2.5rem 4rem;
}

@media (min-width: 56rem) {
  .quote__cols {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }
}

.form {
  display: grid;
  gap: 1.1rem;
}

/* Without JavaScript the email-app form cannot work; phone and email are shown beside it. */
.no-js .form[data-mailto] {
  display: none;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--slate);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.field-pair {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 36rem) {
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.form .btn {
  justify-self: start;
}

.form__hint {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.quote__direct {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--panel);
}

.quote__direct h2 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.quote__direct p {
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
}

.quote__big {
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
}

.quote__direct .quote__alarm {
  margin-top: 1.25rem;
}

/* ---------- Markdown content ---------- */

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}

.prose a {
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  background: var(--navy);
  color: var(--mist);
}

.site-footer__in {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 52rem) {
  .site-footer__in {
    grid-template-columns: 1.2fr 1fr;
  }
}

.site-footer__tag {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin: 0;
}

.site-footer__contact a {
  color: var(--aqua);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__contact a:hover,
.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.site-footer__nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: #fff;
  text-decoration: none;
}

.site-footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.9rem;
}
