/*
 * SHARK page - the base of the "SHARK page" template's stylesheets: colours and
 * sizes, WordPress block resets, type and buttons shared by all sections, and the
 * brochure's page setup. One file per section next to it: shark-page.<section>.css.
 * Loaded only on products using the template.
 *
 * Everything is scoped under .shark - the Group block around the page's content -
 * so nothing reaches the site's header, footer or other pages. Variables are
 * prefixed --sd-. Ported from the mockup on 2026-11-23 (docs/changelog/2026-11-23
 * Redesign/mockup/shark-page.css, the design reference); changes are made here.
 */

/* ---- WordPress --------------------------------------------------------------------
 * The template's post content has no width limit and no block gap; Group blocks
 * inside the page shouldn't add their own either - spacing comes from the rules below.
 */
.shark.is-layout-flow > *,
.shark.is-layout-constrained > *,
.shark .is-layout-flow > *,
.shark .is-layout-constrained > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.shark.is-layout-constrained > *,
.shark .is-layout-constrained > * {
  max-width: none;
}

:root {
  --sd-ink: #292f36;
  --sd-sky: #00b1e2;
  --sd-night: #0b1820;
  --sd-deep: #12242e;
  --sd-mist: #eef0eb;
  --sd-grey: #636363;
  --sd-soft: #a4a4a4;
  --sd-white: #ffffff;
  --sd-vh: 100svh;
  --sd-pad: clamp(32px, calc(var(--sd-vh) * 0.07), 96px);
  --sd-wide: 1200px;
}

.shark {
  margin: 0;
  background: var(--sd-mist);
  color: var(--sd-ink);
  font:
    17px/1.6 Poppins,
    system-ui,
    sans-serif;
}

/* ---- Theme isolation ----------------------------------------------------------------
 * The theme's global styles give headings and text their own font, line height and,
 * for headings, colour; here they follow the page's. Zero specificity on the
 * elements, so every rule below still wins.
 */
.shark :where(h1, h2, h3, h4, h5, h6, p, summary, li, td, th, small, b, figcaption) {
  font-family: inherit;
  line-height: inherit;
}

.shark :where(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

/*
 * The site's own custom CSS (global styles) centres every paragraph and h2 on
 * narrow screens, with !important: p, h2 { text-align: center !important;
 * margin: auto !important }. On this page they follow the design, so they get
 * !important defaults here - and the few margins and alignments which differ from
 * them carry !important too (hero eyebrow, FAQ answers, closing call to action).
 */
.shark p,
.shark h2 {
  margin: 0 !important;
  text-align: start !important;
}

/* ---- Common --------------------------------------------------------------------- */
.shark a {
  color: var(--sd-ink);
}

.shark a:hover {
  color: var(--sd-sky);
}

.shark h1,
.shark h2,
.shark h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.shark h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.2;
}

.shark p {
  margin: 0;
}

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

.shark .eyebrow {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-ink);
}

.shark .eyebrow.on-dark {
  color: var(--sd-sky);
}

.shark .muted {
  color: var(--sd-grey);
}

.shark .lead {
  color: var(--sd-grey);
  font-size: 19px;
}

.shark .lead.on-dark {
  color: var(--sd-soft);
}

.shark .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 32px;
  background: var(--sd-sky);
  color: var(--sd-ink) !important;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
}

.shark .btn-primary:hover {
  filter: brightness(1.08);
}

.shark .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--sd-sky);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}

.shark .btn-outline.on-dark {
  min-height: 40px;
  padding: 0 16px;
  color: var(--sd-white) !important;
  font-size: 14px;
}

.shark .btn-outline svg {
  color: var(--sd-sky);
}

.shark .band {
  padding: var(--sd-pad) 0;
}

.shark .band.padded {
  padding: var(--sd-pad) 24px;
}

.shark .band.mist {
  background: var(--sd-mist);
}

.shark .band.white {
  background: var(--sd-white);
}

.shark .band.night {
  background: var(--sd-night);
  color: var(--sd-white);
}

.shark .inner {
  max-width: var(--sd-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, calc(var(--sd-vh) * 0.035), 40px);
}

.shark .head-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.shark .center {
  display: flex;
  justify-content: center;
}

/* ---- Phones ----------------------------------------------------------------------
 * Section intros - eyebrow, title, lead - and lone buttons are centred, like the
 * pictures below them. Lists, tables, cards and FAQ answers stay left-aligned: they
 * read line by line. Not in the brochure, which is laid out for paper.
 */
@media (max-width: 599px) {
  html:not(.brochure-mode) .shark :is(.hero-text, .head, .head-block, .sc-head, .specs-side) {
    align-items: center;
    text-align: center;
  }

  html:not(.brochure-mode) .shark :is(.hero-text, .head, .head-block, .sc-head, .specs-side) :is(p, h2),
  html:not(.brochure-mode) .shark .faq > h2 {
    text-align: center !important;
  }

  html:not(.brochure-mode) .shark .downloads {
    justify-content: center;
  }
}

/* ---- Rotators --------------------------------------------------------------------
 * Until shark-page.js runs them (it adds .is-running) - or if it can't run at all,
 * or in the brochure - the first item shows.
 */
.shark .sd-rotator:not(.is-running) .sd-slide:first-of-type {
  opacity: 1;
}

/* No section snap (decided 2026-11-23): jarring for continuous reading. Smooth scrolling only without reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html,
  .shark .track {
    scroll-behavior: smooth;
  }
}

/* Reduced motion: photos and views still change, without the fade */
@media (prefers-reduced-motion: reduce) {
  .shark .hero-img,
  .shark .fade {
    transition: none;
  }
}

/* ---- Brochure (brochure mode, A4) ------------------------------------------------------
 * What goes in and how it unfolds is marked in the HTML with brochure-* classes;
 * these rules give the SHARK page its printed look. A4 content area: 186 mm.
 * Media queries still see the popup's frame, not the paper, so the layouts
 * that depend on them are set here outright.
 */
html.brochure-mode {
  --sd-vh: 1000px;
  --sd-pad: 0px;
  font-size: 11pt;
}

.brochure-mode .shark {
  background: var(--sd-white);
  font-size: 10pt;
  line-height: 1.5;
}

.brochure-mode .shark h2 {
  font-size: 24pt;
}

.brochure-mode .shark .eyebrow {
  font-size: 8pt;
}

.brochure-mode .shark .lead {
  font-size: 11pt;
}

.brochure-mode .shark .band,
.brochure-mode .shark .band.padded {
  padding: 0 0 8mm;
  background: transparent;
}

.brochure-mode .shark .head {
  padding: 0;
  margin: 0 0 6mm;
  max-width: none;
}

.brochure-mode .shark .inner,
.brochure-mode .shark .sc {
  gap: 6mm;
}
