/* ==========================================================================
   Cowest Machinery B2B Design System
   Scandinavian Industrial Engineering Aesthetic | Mobile-First | WCAG AA
   ========================================================================== */

:root {
  --navy: #1b3a5c;
  --ink: #17202a;
  --body: #2b3440;
  --muted: #5c6773;
  --line: #d9dee5;
  --surface: #f4f6f9;
  --white: #ffffff;
  --accent: #e2611a;
  --accent-hover: #c7500f;
  --ok: #1f7a4d;

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 72ch;
  --container-max: 1200px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(23, 32, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(23, 32, 42, 0.08);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background-color: var(--white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 960px) {
  html {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

/* Focus styles (WCAG AA visible keyboard focus) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background-color: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Container & Grid */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-top: 0;
}

.hero-title,
.page-h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 960px) {
  .hero-title,
  .page-h1 {
    font-size: 2.25rem;
  }
}

.sec-h2 {
  font-size: 1.375rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.sec-h2:first-child {
  margin-top: 0;
}

@media (min-width: 960px) {
  .sec-h2 {
    font-size: 1.625rem;
  }
}

.sec-h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

p,
.body-p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  max-width: var(--measure);
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--accent {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--surface);
  color: var(--ink);
}

.btn--lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 200;
}

@media (min-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-short {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  display: none;
}

@media (min-width: 480px) {
  .brand-sub {
    display: inline;
  }
}

/* Mobile Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.primary-nav {
  display: none;
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--line);
}

.primary-nav.is-open {
  display: block;
}

@media (min-width: 960px) {
  .primary-nav {
    display: block;
    width: auto;
    padding: 0;
    border-top: 0;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 960px) {
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-item {
  position: relative;
}

.nav-link-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy);
  background-color: var(--surface);
}

.dropdown-toggle {
  background: transparent;
  border: 0;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.chevron {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem 1rem;
  display: none;
  background-color: var(--white);
}

.nav-item.is-open > .dropdown-menu {
  display: block;
}

@media (min-width: 960px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 250;
  }

  .nav-item.has-dropdown:hover > .dropdown-menu,
  .nav-item.has-dropdown:focus-within > .dropdown-menu,
  .nav-item.is-open > .dropdown-menu {
    display: block;
  }

  .nav-item--cta {
    margin-left: 0.5rem;
  }
}

.dropdown-link {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  color: var(--body);
  text-decoration: none;
  border-radius: var(--radius);
}

.dropdown-link:hover,
.dropdown-link.is-active {
  background-color: var(--surface);
  color: var(--navy);
  font-weight: 600;
}

/* ==========================================================================
   Breadcrumb Bar
   ========================================================================== */

.breadcrumb-bar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-item a {
  color: var(--navy);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--muted);
}

/* ==========================================================================
   Hero Band
   ========================================================================== */

.hero-band {
  background-color: var(--navy);
  color: var(--white);
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .hero-band {
    padding: 3.75rem 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-band--split .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.hero-band .hero-title {
  color: var(--white);
}

.hero-band .hero-lead {
  color: #e4eaf1;
  font-size: 1.05rem;
  max-width: 65ch;
  margin-bottom: 1.5rem;
}

.hero-band .hero-lead a {
  color: var(--white);
  font-weight: 600;
}

/* ==========================================================================
   Bands & Page Layouts
   ========================================================================== */

.band {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .band {
    padding: 3.75rem 0;
  }
}

.band--surface {
  background-color: var(--surface);
}

.band--final {
  background-color: var(--surface);
}

/* Content with sticky Side Index (Product, Application, Guide, Tool) */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 960px) {
  .content-with-sidebar {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.side-index {
  border: 1px solid var(--line);
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

@media (min-width: 960px) {
  .side-index {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}

.side-index-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.side-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.side-index-list a {
  color: var(--body);
  text-decoration: none;
  display: block;
  line-height: 1.35;
  padding: 0.2rem 0;
}

.side-index-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.main-column {
  min-width: 0;
}

.content-section {
  margin-bottom: 2.75rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.conversion-layout,
.legal-layout {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

/* ==========================================================================
   Image Placeholders (Intentional Engineering Grid Box)
   ========================================================================== */

figure.ph {
  margin: 1.5rem 0 0 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image:
    linear-gradient(to right, rgba(27, 58, 92, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 58, 92, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
}

figure.ph--hero {
  margin: 0;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* ==========================================================================
   Tables (Spec Table, Data Table, Recommended Setup, Card-Grid Table)
   ========================================================================== */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.data-table caption {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  background-color: var(--navy);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

/* Prominent Spec Table & Recommended Setup Table */
.table-wrap--spec,
.table-wrap--recommended {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-sm);
}

.data-table--spec thead th,
.data-table--recommended thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-wrap--recommended .data-table caption {
  background-color: #eef3f8;
  color: var(--navy);
  border-left: 4px solid var(--ok);
}

.data-table--spec tbody td:first-child,
.data-table--recommended tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* Card-Grid Presentation of Semantic Tables (Hubs & Home series/load tables) */
.table-wrap--cards {
  border: 0;
  background: transparent;
  overflow: visible;
}

.data-table--cards,
.data-table--cards tbody,
.data-table--cards tr,
.data-table--cards td {
  display: block;
}

.data-table--cards caption {
  display: block;
  background: transparent;
  border: 0;
  padding: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--muted);
}

.data-table--cards thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.data-table--cards tbody {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .data-table--cards tbody {
    grid-template-columns: repeat(2, 1fr);
  }
}

.data-table--cards tbody tr {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.data-table--cards tbody tr:nth-child(even) {
  background-color: var(--white);
}

.data-table--cards tbody tr[data-row-href] {
  border-top-color: var(--accent);
}

.data-table--cards tbody td {
  padding: 0;
  border: 0;
}

.data-table--cards tbody td:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.data-table--cards tbody td:not(:first-child)::before {
  content: attr(data-label) ": ";
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Callouts, Datapoints, Lists & CTAs
   ========================================================================== */

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  max-width: var(--measure);
}

.callout-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.datapoint {
  display: inline-block;
  margin: 0.5rem 0.75rem 0.75rem 0;
  padding: 0.65rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ok);
  border-radius: var(--radius);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.content-list {
  margin: 0 0 1.25rem 0;
  padding-left: 1.35rem;
  max-width: var(--measure);
}

.content-list li {
  margin-bottom: 0.5rem;
}

.content-list--ordered {
  list-style: none;
  padding-left: 0;
}

.content-list--ordered li {
  padding: 0.65rem 0.9rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cta-block {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.cta-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-band .cta-note {
  color: #dbe3ec;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

/* ==========================================================================
   FAQ Accordion (Native <details>)
   ========================================================================== */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--measure);
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q-heading {
  font-size: 1.02rem;
}

.faq-icon {
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 1.15rem 1rem 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Forms (RFQ Two-Column Form & Calculator Forms)
   ========================================================================== */

.rfq-form,
.calc-form {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .form-grid--two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
  }
}

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

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.req-marker {
  color: var(--accent);
  margin-left: 0.2rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid #b8c2cc;
  border-radius: var(--radius);
}

.form-control:focus {
  border-color: var(--navy);
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.calc-result {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.calc-result:empty {
  display: none;
}

/* Downloads Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--ink);
  word-break: break-all;
}

/* ==========================================================================
   Footer & Cookie Notice
   ========================================================================== */

.site-footer {
  background-color: var(--ink);
  color: #d9dee5;
  padding: 3rem 0 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer-wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-legal,
.footer-address,
.footer-contact {
  margin: 0 0 0.5rem 0;
  color: #cfd6df;
  font-size: 0.88rem;
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-heading a {
  color: var(--white);
  text-decoration: none;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav-list a {
  color: #cfd6df;
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-nav-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a,
.back-to-top {
  color: #cfd6df;
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover,
.back-to-top:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Cookie Bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background-color: var(--ink);
  color: var(--white);
  border-top: 2px solid var(--accent);
  padding: 0.85rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-bar[hidden] {
  display: none !important;
}

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

.cookie-bar-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white);
}

.cookie-bar-text a {
  color: #ffd0b0;
  margin-left: 0.35rem;
}

.cookie-bar-actions {
  display: flex;
  gap: 0.65rem;
}

/* ==========================================================================
   Module split: intro text beside the photo slot; inline photo slots capped
   ========================================================================== */

.mod-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 3rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .band .mod-split,
  .conversion-layout .mod-split,
  .legal-layout .mod-split {
    grid-template-columns: 7fr 5fr;
  }

  .main-column .mod-split,
  .article-column .mod-split {
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem 2.5rem;
  }
}

.mod-split-text > :last-child {
  margin-bottom: 0;
}

.mod-split-media figure.ph {
  margin: 0;
  max-width: none;
  aspect-ratio: 4 / 3;
}

.mod-split-media figure.ph + figure.ph {
  margin-top: 1rem;
}

figure.ph:not(.ph--hero) {
  max-width: 640px;
  aspect-ratio: 16 / 9;
}

.band figure.ph:not(.ph--hero) {
  margin-top: 1.5rem;
}

.band .mod-split-media figure.ph {
  aspect-ratio: 16 / 9;
}

/* ==========================================================================
   v2 (2026-10-20): photo-led hero, facts strip, denser rhythm, top bar
   ========================================================================== */

@media (min-width: 960px) {
  html { font-size: 16.5px; }
  .band { padding: 3rem 0; }
  .content-with-sidebar { padding-top: 2rem; }
}

.topbar {
  background-color: #132b45;
  color: #cfd9e5;
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.1rem;
  flex-wrap: wrap;
}

.topbar a { color: var(--white); }

@media (max-width: 959px) {
  .topbar-right { display: none; }
}

/* Home hero with photo background */
.hero-band--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  padding: 4rem 0 6.5rem;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(19, 43, 69, 0.95) 0%, rgba(27, 58, 92, 0.86) 48%, rgba(27, 58, 92, 0.38) 100%);
}

.hero-band--photo .container { position: relative; }

.hero-band--photo .hero-title {
  font-size: 2.4rem;
  max-width: 20ch;
  letter-spacing: -0.02em;
}

.hero-band--photo .hero-lead {
  font-size: 1.1rem;
  max-width: 58ch;
}

@media (min-width: 960px) {
  .hero-band--photo { padding: 5.5rem 0 8rem; min-height: 620px; }
  .hero-band--photo .hero-title { font-size: 3.2rem; }
  .hero-band--photo .hero-lead { font-size: 1.2rem; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

/* Facts strip */
.facts-strip {
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
}

.facts-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-left: 0;
  padding-right: 0;
}

.fact {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.fact-label {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

@media (min-width: 960px) {
  .facts-strip {
    position: relative;
    margin-top: -3.5rem;
    background: transparent;
    border-bottom: 0;
  }
  .facts-strip .container {
    grid-template-columns: repeat(5, 1fr);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    border: 1px solid var(--line);
  }
  .fact { border-bottom: 0; padding: 1.25rem 1.5rem; }
  .fact:last-child { border-right: 0; }
  .fact-value { font-size: 1.8rem; }
}

/* Photos */
figure.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--line);
}

figure.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figure.photo--hero {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.content-section > figure.photo,
.band .container > figure.photo,
.conversion-section > figure.photo,
.article-column > figure.photo {
  max-width: 640px;
  margin-top: 1.5rem;
}

.band .mod-split-media figure.photo img { aspect-ratio: 16 / 10; }

.mod-split-media figure.photo + figure.photo { margin-top: 1rem; }

/* Card grids: 3 or 4 across on wide screens, optional photo per card */
@media (min-width: 1100px) {
  .data-table--cards.cards-4 tbody { grid-template-columns: repeat(4, 1fr); }
  .data-table--cards.cards-3 tbody { grid-template-columns: repeat(3, 1fr); }
}

.data-table--cards tbody tr { padding: 1.1rem 1.15rem; }

.card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--surface);
  margin-bottom: 0.75rem;
}

.data-table--cards.cards-with-img tbody tr { padding-top: 0.9rem; }

/* Long dropdowns in two columns */
@media (min-width: 960px) {
  .dropdown-menu--cols { min-width: 520px; columns: 2; column-gap: 0.5rem; }
  .dropdown-menu--cols li { break-inside: avoid; }
}

/* Heading scale */
.sec-h2 { font-size: 1.45rem; }
@media (min-width: 960px) {
  .sec-h2 { font-size: 1.75rem; }
}

/* enquiry form backend (2026-10-26) */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: 6px; font-weight: 500; }
.form-status.is-ok { background: #e6f4ea; color: #1e5631; border: 1px solid #b7dfc2; }
.form-status.is-error { background: #fdecea; color: #8a1c1c; border: 1px solid #f5c2c0; }
.cf-turnstile { margin-top: 1.25rem; min-height: 65px; }

/* floating side dock: WhatsApp / quote / back to top (2026-10-26) */
.side-dock { position: fixed; right: 18px; bottom: 96px; z-index: 450; display: flex; flex-direction: column; gap: 8px; }
.side-dock-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 60px; height: 60px; border-radius: 6px; border: 0; cursor: pointer; text-decoration: none; font: 600 11px/1 "Inter", system-ui, sans-serif; letter-spacing: .02em; color: #fff; background: var(--navy); box-shadow: 0 8px 25px rgba(0, 24, 48, .25); transition: transform .15s ease, background-color .15s ease; }
.side-dock-btn:hover, .side-dock-btn:focus-visible { transform: translateY(-2px); color: #fff; text-decoration: none; }
.side-dock-btn--wa { background: #25d366; }
.side-dock-btn--wa:hover { background: #1ebe5b; }
.side-dock-btn--quote { background: var(--accent); }
.side-dock-btn--quote:hover { background: var(--accent-hover); }
.side-dock-btn--top { background: var(--navy); }
.side-dock-btn--top[hidden] { display: none; }
@media (max-width: 767px) {
  .side-dock { right: 10px; bottom: 76px; gap: 6px; }
  .side-dock-btn { width: 50px; height: 50px; font-size: 10px; }
  .side-dock-btn svg { width: 22px; height: 22px; }
}
.cookie-bar:not([hidden]) ~ .side-dock { bottom: 112px; }
@media (max-width: 767px) { .cookie-bar:not([hidden]) ~ .side-dock { bottom: 190px; } }
