/* ============================================
   OCEAN FAN MARKETING S.L. — Custom Styles
   Visual system: Deep Atlantic + Steel + Copper
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --of-navy: #06101c;
  --of-navy-deep: #03080f;
  --of-steel: #1a2d42;
  --of-atlantic: #0e6e6e;
  --of-teal: #149494;
  --of-copper: #c47a3a;
  --of-copper-hover: #d48a4a;
  --of-foam: #e8f4f4;
  --of-mist: rgba(232, 244, 244, 0.72);
  --of-glass: rgba(6, 16, 28, 0.78);
  --of-glass-border: rgba(232, 244, 244, 0.12);
  --of-text: #f2f7f7;
  --of-text-muted: rgba(232, 244, 244, 0.65);
  --of-surface: #0a1522;
  --of-surface-2: #0f1e2e;
  --of-panel: rgba(255, 255, 255, 0.035);
  --of-panel-border: rgba(232, 244, 244, 0.1);
  --of-input-bg: rgba(255, 255, 255, 0.05);
  --of-map-filter: grayscale(0.35) contrast(1.05) brightness(0.85);
  --of-font-display: 'Syne', sans-serif;
  --of-font-body: 'Outfit', sans-serif;
  --of-header-h: 5.25rem;
  --of-ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --of-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --of-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

html[data-theme='light'] {
  --of-navy: #e7eef1;
  --of-navy-deep: #f4f8f9;
  --of-steel: #d5e2e6;
  --of-atlantic: #0c6a6a;
  --of-teal: #0d7a7a;
  --of-copper: #b86a2e;
  --of-copper-hover: #c87a3e;
  --of-foam: #06101c;
  --of-mist: rgba(6, 16, 28, 0.72);
  --of-glass: rgba(244, 248, 249, 0.86);
  --of-glass-border: rgba(6, 16, 28, 0.1);
  --of-text: #0b1724;
  --of-text-muted: rgba(11, 23, 36, 0.62);
  --of-surface: #eef4f6;
  --of-surface-2: #e2ebef;
  --of-panel: rgba(6, 16, 28, 0.04);
  --of-panel-border: rgba(6, 16, 28, 0.1);
  --of-input-bg: #ffffff;
  --of-map-filter: grayscale(0.15) contrast(1.02);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--of-font-body);
  color: var(--of-text);
  background-color: var(--of-navy-deep);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--of-ease-out), color 0.35s var(--of-ease-out);
}

body.is-loading {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-invalid-field {
  border-color: #d35a4a !important;
  box-shadow: 0 0 0 3px rgba(211, 90, 74, 0.2) !important;
}

.form-note-error {
  color: #e07a6c;
}

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(20, 148, 148, 0.22), transparent 42%),
    #03080f;
  transition: opacity 0.65s var(--of-ease-out), visibility 0.65s var(--of-ease-out);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: transparent;
  animation: ofPreloaderPulse 1.4s var(--of-ease-out) infinite;
}

.preloader-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader-brand {
  margin: 0 0 1.25rem;
  font-family: var(--of-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8f4f4;
}

.preloader-bar {
  width: 10rem;
  height: 2px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(232, 244, 244, 0.12);
  border-radius: 2px;
}

.preloader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #149494, #c47a3a);
  border-radius: 2px;
  animation: ofPreloaderSweep 1.1s var(--of-ease-out) infinite;
}

@keyframes ofPreloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes ofPreloaderSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* ============================================
   SHARED SECTION CHROME
   ============================================ */

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  scroll-margin-top: 5rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--of-teal);
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--of-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--of-text);
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity 0.7s var(--of-ease-out),
    transform 0.7s var(--of-ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-grid .reveal:nth-child(1) { --reveal-delay: 0ms; }
.service-grid .reveal:nth-child(2) { --reveal-delay: 80ms; }
.service-grid .reveal:nth-child(3) { --reveal-delay: 160ms; }
.service-grid .reveal:nth-child(4) { --reveal-delay: 240ms; }

.pathway-list .reveal:nth-child(1) { --reveal-delay: 0ms; }
.pathway-list .reveal:nth-child(2) { --reveal-delay: 90ms; }
.pathway-list .reveal:nth-child(3) { --reveal-delay: 180ms; }

.process-list .reveal:nth-child(1) { --reveal-delay: 0ms; }
.process-list .reveal:nth-child(2) { --reveal-delay: 100ms; }
.process-list .reveal:nth-child(3) { --reveal-delay: 200ms; }

/* ============================================
   HEADER — Transparent overlay → glass scroll
   Menu style: Option A (Numeric)
   ============================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1040;
  padding: 0.85rem 0;
  transition:
    background-color 0.45s var(--of-ease-out),
    backdrop-filter 0.45s var(--of-ease-out),
    box-shadow 0.45s var(--of-ease-out),
    padding 0.35s var(--of-ease-out),
    border-color 0.45s var(--of-ease-out);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 0.45rem 0;
  background: var(--of-glass);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom-color: var(--of-glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.site-header .navbar {
  padding: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--of-text);
  transition: opacity 0.25s var(--of-ease-out), transform 0.25s var(--of-ease-out);
}

.brand-lockup:hover,
.brand-lockup:focus-visible {
  color: var(--of-text);
  opacity: 0.92;
  transform: translateY(-1px);
  outline: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--of-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--of-text-muted);
}

.header-tools {
  margin-left: auto;
}

@media (min-width: 992px) {
  .header-tools {
    margin-left: 0.75rem;
    order: 3;
  }
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--of-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--of-text);
  cursor: pointer;
  transition:
    background-color 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out),
    transform 0.25s var(--of-ease-out);
}

.lang-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--of-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--of-text);
  font-family: var(--of-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background-color 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out),
    transform 0.25s var(--of-ease-out),
    color 0.25s var(--of-ease-out);
}

html[data-theme='light'] .lang-toggle {
  background: rgba(6, 16, 28, 0.04);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--of-teal);
  color: var(--of-copper);
  transform: translateY(-1px);
  outline: none;
}

html[data-theme='light'] .theme-toggle {
  background: rgba(6, 16, 28, 0.04);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--of-teal);
  transform: translateY(-1px);
  outline: none;
}

.theme-toggle .theme-icon-sun {
  display: none;
}

html[data-theme='light'] .theme-toggle .theme-icon-sun {
  display: inline-block;
}

html[data-theme='light'] .theme-toggle .theme-icon-moon {
  display: none;
}

.nav-numeric {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-numeric .nav-item {
  list-style: none;
}

.nav-numeric .nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  font-family: var(--of-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--of-mist) !important;
  text-decoration: none;
  border-radius: 0.4rem;
  transition:
    color 0.25s var(--of-ease-out),
    background-color 0.25s var(--of-ease-out);
}

.nav-numeric .nav-link .nav-index {
  font-family: var(--of-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--of-teal);
  opacity: 0.85;
  transition: color 0.25s var(--of-ease-out), opacity 0.25s var(--of-ease-out);
}

.nav-numeric .nav-link .nav-label {
  position: relative;
}

.nav-numeric .nav-link .nav-label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--of-teal), var(--of-copper));
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.35s var(--of-ease-out);
}

.nav-numeric .nav-link:hover,
.nav-numeric .nav-link:focus-visible,
.nav-numeric .nav-link.show {
  color: var(--of-text) !important;
  background: rgba(20, 148, 148, 0.1);
  outline: none;
}

.nav-numeric .nav-link:hover .nav-index,
.nav-numeric .nav-link:focus-visible .nav-index,
.nav-numeric .nav-link.show .nav-index {
  color: var(--of-copper);
  opacity: 1;
}

.nav-numeric .nav-link:hover .nav-label::after,
.nav-numeric .nav-link:focus-visible .nav-label::after,
.nav-numeric .nav-link.show .nav-label::after {
  width: 100%;
}

.nav-numeric .dropdown-toggle::after {
  margin-left: 0.35rem;
  vertical-align: 0.15em;
  border-top-color: var(--of-teal);
  transition: transform 0.3s var(--of-ease-out), border-top-color 0.25s ease;
}

.nav-numeric .dropdown-toggle.show::after,
.nav-numeric .dropdown-toggle:hover::after {
  border-top-color: var(--of-copper);
}

.nav-numeric .dropdown-toggle.show::after {
  transform: rotate(180deg);
}

@keyframes ofDropdownIn {
  0% {
    opacity: 0;
    transform: translateY(-0.65rem) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.site-header .dropdown-menu {
  --bs-dropdown-bg: transparent;
  --bs-dropdown-border-width: 0;
  --bs-dropdown-padding-x: 0;
  --bs-dropdown-padding-y: 0;
  --bs-dropdown-spacer: 0.65rem;
  min-width: 18.5rem;
  margin-top: 0.65rem !important;
  padding: 0.55rem;
  background: rgba(8, 18, 30, 0.94);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--of-glass-border);
  border-radius: 0.85rem;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.65rem) scale(0.96);
  transform-origin: top center;
  transition: none;
}

html[data-theme='light'] .site-header .dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(6, 16, 28, 0.12);
}

.site-header .dropdown-menu.show {
  visibility: visible;
  pointer-events: auto;
  animation: ofDropdownIn 0.42s var(--of-ease-out) forwards;
}

.site-header .dropdown-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.85rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  margin: 0.1rem 0;
  color: var(--of-text);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: 0.55rem;
  white-space: normal;
  transition:
    background-color 0.25s var(--of-ease-out),
    transform 0.25s var(--of-ease-out),
    color 0.25s var(--of-ease-out);
}

.site-header .dropdown-item .dd-index {
  font-family: var(--of-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--of-teal);
  padding-top: 0.12rem;
}

.site-header .dropdown-item .dd-title {
  display: block;
  font-weight: 600;
}

.site-header .dropdown-item .dd-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--of-text-muted);
  line-height: 1.35;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus-visible {
  background: linear-gradient(90deg, rgba(20, 148, 148, 0.18), rgba(196, 122, 58, 0.1));
  color: var(--of-text);
  transform: translateX(3px);
  outline: none;
}

.site-header .dropdown-item:hover .dd-index,
.site-header .dropdown-item:focus-visible .dd-index {
  color: var(--of-copper);
}

.site-header .dropdown-item:active {
  background: rgba(20, 148, 148, 0.28);
  color: var(--of-text);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--of-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #03080f;
  background: linear-gradient(135deg, var(--of-copper) 0%, #db9450 100%);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(196, 122, 58, 0.35);
  transition:
    transform 0.25s var(--of-ease-out),
    box-shadow 0.25s var(--of-ease-out),
    filter 0.25s var(--of-ease-out);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  color: #03080f;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 122, 58, 0.45);
  outline: none;
}

.btn-cta:focus-visible {
  outline: 2px solid var(--of-foam);
  outline-offset: 3px;
}

.btn-cta i {
  font-size: 0.8rem;
  transition: transform 0.3s var(--of-ease-spring);
}

.btn-cta:hover i,
.btn-cta:focus-visible i {
  transform: translateX(3px);
}

.btn-cta-lg {
  padding: 0.9rem 1.55rem;
  font-size: 0.95rem;
}

.btn-cta-sm {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  box-shadow: none;
}

.navbar-toggler {
  padding: 0.5rem;
  border: 1px solid var(--of-glass-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(20, 148, 148, 0.35);
  outline: none;
}

.navbar-toggler-icon-custom {
  display: block;
  width: 1.35rem;
  height: 1.1rem;
  position: relative;
}

.navbar-toggler-icon-custom span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--of-foam);
  border-radius: 2px;
  transition: transform 0.3s var(--of-ease-out), opacity 0.25s ease, top 0.3s var(--of-ease-out);
}

.navbar-toggler-icon-custom span:nth-child(1) { top: 0; }
.navbar-toggler-icon-custom span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navbar-toggler-icon-custom span:nth-child(3) { bottom: 0; }

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon-custom span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon-custom span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon-custom span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 0.85rem;
    padding: 1rem;
    background: var(--of-glass);
    border: 1px solid var(--of-glass-border);
    border-radius: 0.85rem;
    backdrop-filter: blur(16px);
  }

  .nav-numeric {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-numeric .nav-link {
    width: 100%;
  }

  .site-header .dropdown-menu {
    position: static !important;
    transform: none;
    margin: 0.35rem 0 0.5rem !important;
    box-shadow: none;
    border-color: rgba(20, 148, 148, 0.2);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .site-header .dropdown-menu.show {
    display: block;
    animation: ofDropdownIn 0.35s var(--of-ease-out) forwards;
  }

  .header-cta-wrap {
    margin-top: 0.75rem;
  }

  .header-cta-wrap .btn-cta {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    flex-grow: 1;
  }

  /* Equal gap: Request Quote ↔ language ↔ theme */
  .header-cta-wrap {
    margin-left: 0.75rem;
  }

  .header-tools {
    margin-left: 0.75rem;
    gap: 0.75rem !important;
  }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f2f7f7;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media-img {
  position: absolute;
  inset: -4%;
  background-color: #1a2d42;
  background-image:
    linear-gradient(120deg, rgba(6, 16, 28, 0.15), transparent 50%),
    url('../images/hero.webp');
  background-size: cover;
  background-position: center 40%;
  animation: ofHeroKenBurns 28s var(--of-ease-out) infinite alternate;
  will-change: transform;
}

.hero-media-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 8, 15, 0.55) 0%,
      rgba(3, 8, 15, 0.25) 35%,
      rgba(3, 8, 15, 0.72) 68%,
      rgba(3, 8, 15, 0.94) 100%
    ),
    linear-gradient(
      90deg,
      rgba(3, 8, 15, 0.78) 0%,
      rgba(3, 8, 15, 0.35) 55%,
      rgba(14, 110, 110, 0.18) 100%
    );
  pointer-events: none;
}

@keyframes ofHeroKenBurns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--of-header-h) + 3rem);
  padding-bottom: 5.5rem;
}

.hero-copy {
  max-width: 38rem;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 1.35rem;
  opacity: 0;
  animation: ofHeroRise 0.9s var(--of-ease-out) 0.15s forwards;
}

.hero-brand-main {
  font-family: var(--of-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #e8f4f4;
}

.hero-brand-sub {
  font-family: var(--of-font-body);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #149494;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--of-font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #f2f7f7;
  max-width: 22ch;
  opacity: 0;
  animation: ofHeroRise 0.9s var(--of-ease-out) 0.35s forwards;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(232, 244, 244, 0.78);
  opacity: 0;
  animation: ofHeroRise 0.9s var(--of-ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  opacity: 0;
  animation: ofHeroRise 0.9s var(--of-ease-out) 0.65s forwards;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.35rem;
  font-family: var(--of-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #e8f4f4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  transition:
    color 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out),
    transform 0.25s var(--of-ease-out);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #d48a4a;
  border-bottom-color: #d48a4a;
  transform: translateY(-1px);
  outline: none;
}

@keyframes ofHeroRise {
  from { opacity: 0; transform: translateY(1.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  justify-content: center;
  width: 1.5rem;
  height: 2.4rem;
  transform: translateX(-50%);
  text-decoration: none;
  opacity: 0;
  animation: ofHeroRise 0.8s var(--of-ease-out) 1s forwards;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, #149494, transparent);
  transform-origin: top center;
  animation: ofScrollPulse 2.2s var(--of-ease-out) 1.4s infinite;
}

@keyframes ofScrollPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 575.98px) {
  .hero-inner { padding-bottom: 4.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-cta { width: 100%; }
}

/* ============================================
   SERVICES — filterable panels
   ============================================ */

.section-services {
  background:
    radial-gradient(ellipse at top right, rgba(20, 148, 148, 0.12), transparent 45%),
    var(--of-navy-deep);
}

.service-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1rem;
  font-family: var(--of-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--of-text-muted);
  background: transparent;
  border: 1px solid var(--of-panel-border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.25s var(--of-ease-out),
    background-color 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out),
    transform 0.25s var(--of-ease-out);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  color: var(--of-text);
  border-color: var(--of-teal);
  outline: none;
  transform: translateY(-1px);
}

.filter-btn.is-active {
  color: #03080f;
  background: linear-gradient(135deg, var(--of-teal), #1aa8a8);
  border-color: transparent;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--of-panel);
  border: 1px solid var(--of-panel-border);
  border-radius: 1rem;
  transition:
    transform 0.35s var(--of-ease-out),
    border-color 0.35s var(--of-ease-out),
    background-color 0.35s var(--of-ease-out),
    opacity 0.35s var(--of-ease-out);
}

.service-panel:hover,
.service-panel:focus-within {
  transform: translateY(-6px);
  border-color: rgba(20, 148, 148, 0.45);
  background: rgba(20, 148, 148, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.service-panel.is-hidden {
  display: none;
}

.service-panel-index {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  font-family: var(--of-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--of-teal);
}

.service-panel-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(20, 148, 148, 0.25), rgba(196, 122, 58, 0.12));
  color: var(--of-teal);
  font-size: 1.1rem;
}

.service-panel-title {
  margin: 0 0 0.75rem;
  font-family: var(--of-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--of-text);
}

.service-panel-text {
  margin: 0 0 1.35rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.service-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--of-copper);
  text-decoration: none;
  transition: gap 0.25s var(--of-ease-out), color 0.25s var(--of-ease-out);
}

.service-panel-link:hover,
.service-panel-link:focus-visible {
  color: var(--of-copper-hover);
  gap: 0.7rem;
  outline: none;
}

@media (max-width: 767.98px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ABOUT
   ============================================ */

.section-about {
  background: var(--of-surface);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-media-frame {
  min-height: clamp(280px, 42vw, 460px);
  border-radius: 1.15rem;
  background:
    linear-gradient(160deg, rgba(3, 8, 15, 0.25), rgba(3, 8, 15, 0.55)),
    url('../images/theatre-plumbing.webp')
      center / cover no-repeat;
  border: 1px solid var(--of-panel-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

.about-text {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--of-text-muted);
}

.about-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-top: 1px solid var(--of-panel-border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--of-text);
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--of-copper);
}

@media (max-width: 991.98px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROCUREMENT PATHWAYS (anti-cliche replacement)
   ============================================ */

.section-pathways {
  background:
    linear-gradient(180deg, var(--of-navy-deep), var(--of-surface-2));
}

.pathway-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pathway-item {
  padding: 1.5rem 1.35rem;
  border-top: 2px solid var(--of-teal);
  background: var(--of-panel);
  border-right: 1px solid var(--of-panel-border);
  border-bottom: 1px solid var(--of-panel-border);
  border-left: 1px solid var(--of-panel-border);
  border-radius: 0 0 0.75rem 0.75rem;
  transition:
    transform 0.3s var(--of-ease-out),
    border-color 0.3s var(--of-ease-out),
    background-color 0.3s var(--of-ease-out);
}

.pathway-item:hover,
.pathway-item:focus-within {
  transform: translateY(-3px);
  border-top-color: var(--of-copper);
  background: rgba(20, 148, 148, 0.08);
}

.pathway-title {
  margin: 0 0 0.65rem;
  font-family: var(--of-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--of-text);
}

.pathway-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.pathway-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.text-trigger {
  display: inline;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--of-copper);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(196, 122, 58, 0.45);
  cursor: pointer;
  transition: color 0.25s var(--of-ease-out), border-color 0.25s var(--of-ease-out);
}

.text-trigger:hover,
.text-trigger:focus-visible {
  color: var(--of-copper-hover);
  border-bottom-color: var(--of-copper-hover);
  outline: none;
}

.about-cta-row {
  margin: 1.5rem 0 0;
}

.about-page-link {
  color: var(--of-text);
}

@media (max-width: 991.98px) {
  .pathway-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROCESS
   ============================================ */

.section-process {
  background: var(--of-navy-deep);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--of-panel-border);
}

.process-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--of-panel-border);
  transition: background-color 0.3s var(--of-ease-out);
}

.process-step:hover,
.process-step:focus-within {
  background: rgba(20, 148, 148, 0.05);
}

.process-num {
  font-family: var(--of-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--of-teal);
  padding-top: 0.15rem;
}

.process-title {
  margin: 0 0 0.45rem;
  font-family: var(--of-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--of-text);
}

.process-text {
  margin: 0;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

@media (max-width: 575.98px) {
  .process-step {
    grid-template-columns: 3.25rem 1fr;
    gap: 0.85rem;
  }
}

/* ============================================
   CTA BAND
   ============================================ */

.section-cta {
  padding-top: 0;
  background: var(--of-navy-deep);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.15rem;
  background:
    linear-gradient(120deg, rgba(14, 110, 110, 0.35), rgba(196, 122, 58, 0.18)),
    var(--of-surface-2);
  border: 1px solid var(--of-panel-border);
}

.cta-band-title {
  margin: 0 0 0.55rem;
  font-family: var(--of-font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--of-text);
}

.cta-band-text {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--of-text-muted);
}

/* ============================================
   CONTACT
   ============================================ */

.section-contact {
  background: var(--of-surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.25rem 0;
}

.contact-block {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-style: normal;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--of-teal);
}

.contact-value {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--of-text);
}

.contact-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color 0.25s var(--of-ease-out), border-color 0.25s var(--of-ease-out);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--of-copper);
  border-bottom-color: var(--of-copper);
  outline: none;
}

.contact-inline-link {
  color: var(--of-copper);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 122, 58, 0.45);
  transition: color 0.25s var(--of-ease-out), border-color 0.25s var(--of-ease-out);
}

.contact-inline-link:hover,
.contact-inline-link:focus-visible {
  color: var(--of-copper-hover);
  border-bottom-color: var(--of-copper-hover);
  outline: none;
}

.contact-map {
  min-height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--of-panel-border);
  background: var(--of-steel);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: var(--of-map-filter);
}

@media (max-width: 991.98px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAT FOOTER
   ============================================ */

.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  background: var(--of-navy);
  border-top: 1px solid var(--of-panel-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
}

.footer-brand-name {
  margin: 0 0 0.85rem;
  font-family: var(--of-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--of-text);
}

.footer-brand-text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.footer-col-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--of-teal);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  color: var(--of-mist);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s var(--of-ease-out);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--of-copper);
  outline: none;
}

.footer-newsletter-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--of-text-muted);
}

.newsletter-form {
  display: grid;
  gap: 0.65rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--of-font-body);
  font-size: 0.9rem;
  color: var(--of-text);
  background: var(--of-input-bg);
  border: 1px solid var(--of-panel-border);
  border-radius: 0.55rem;
  outline: none;
  transition: border-color 0.25s var(--of-ease-out), box-shadow 0.25s var(--of-ease-out);
}

.newsletter-form input:focus,
.newsletter-form input:focus-visible {
  border-color: var(--of-teal);
  box-shadow: 0 0 0 3px rgba(20, 148, 148, 0.2);
}

.form-note {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.8rem;
  color: var(--of-teal);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--of-panel-border);
}

.footer-meta-copy,
.footer-meta-address {
  margin: 0;
  font-size: 0.8rem;
  color: var(--of-text-muted);
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.footer-legal a {
  color: var(--of-mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--of-ease-out), border-color 0.25s var(--of-ease-out);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--of-copper);
  border-bottom-color: var(--of-copper);
  outline: none;
}

.footer-legal-sep {
  color: var(--of-text-muted);
  opacity: 0.6;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.1rem 1.2rem;
  background: rgba(8, 18, 30, 0.96);
  border: 1px solid var(--of-glass-border);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(1.25rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s var(--of-ease-out),
    transform 0.45s var(--of-ease-out),
    visibility 0.45s var(--of-ease-out);
}

html[data-theme='light'] .cookie-banner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(6, 16, 28, 0.12);
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-title {
  margin: 0 0 0.3rem;
  font-family: var(--of-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--of-text);
}

.cookie-text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--of-text-muted);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-ghost-dark {
  padding: 0.55rem 0.9rem;
  font-family: var(--of-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--of-text-muted);
  background: transparent;
  border: 1px solid var(--of-panel-border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out),
    background-color 0.25s var(--of-ease-out);
}

.btn-ghost-dark:hover,
.btn-ghost-dark:focus-visible {
  color: var(--of-text);
  border-color: var(--of-teal);
  outline: none;
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1070;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--of-glass-border);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.9);
  color: var(--of-foam);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.92);
  transition:
    opacity 0.35s var(--of-ease-out),
    visibility 0.35s var(--of-ease-out),
    transform 0.35s var(--of-ease-out),
    background-color 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out);
}

html[data-theme='light'] .back-to-top {
  background: rgba(255, 255, 255, 0.95);
  color: var(--of-text);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--of-teal);
  background: var(--of-teal);
  color: #03080f;
  outline: none;
  transform: translateY(-2px) scale(1);
}

/* Lift above cookie banner when both visible */
body.has-cookie .back-to-top {
  bottom: 7.5rem;
}

@media (max-width: 575.98px) {
  body.has-cookie .back-to-top {
    bottom: 10.5rem;
  }
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   INQUIRY MODAL
   ============================================ */

.inquiry-modal {
  background: var(--of-surface-2);
  color: var(--of-text);
  border: 1px solid var(--of-panel-border);
  border-radius: 1rem;
}

.inquiry-modal .modal-header {
  border-bottom-color: var(--of-panel-border);
  align-items: flex-start;
}

.modal-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--of-teal);
}

.inquiry-modal .modal-title {
  font-family: var(--of-font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.inquiry-modal .form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--of-text-muted);
}

.inquiry-modal .form-control,
.inquiry-modal .form-select {
  color: var(--of-text);
  background-color: var(--of-input-bg);
  border: 1px solid var(--of-panel-border);
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
}

.inquiry-modal .form-control:focus,
.inquiry-modal .form-select:focus {
  color: var(--of-text);
  background-color: var(--of-input-bg);
  border-color: var(--of-teal);
  box-shadow: 0 0 0 0.2rem rgba(20, 148, 148, 0.2);
}

.inquiry-modal .form-select option {
  color: #0b1724;
  background: #fff;
}

.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.35rem;
}

html[data-theme='light'] .inquiry-modal .btn-close {
  filter: none;
}

html:not([data-theme='light']) .inquiry-modal .btn-close {
  filter: invert(1) grayscale(100%);
}

/* Success modal */
.success-modal {
  background: var(--of-surface-2);
  color: var(--of-text);
  border: 1px solid var(--of-panel-border);
  border-radius: 1rem;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(20, 148, 148, 0.15);
  color: var(--of-teal);
  font-size: 1.65rem;
  animation: ofSuccessPop 0.55s var(--of-ease-spring);
}

.success-title {
  margin: 0 0 0.65rem;
  font-family: var(--of-font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.success-text {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

@keyframes ofSuccessPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Info modals (lead time / RFQ checklist) */
.info-modal {
  background: var(--of-surface-2);
  color: var(--of-text);
  border: 1px solid var(--of-panel-border);
  border-radius: 1rem;
}

.info-modal .modal-header {
  border-bottom-color: var(--of-panel-border);
  align-items: flex-start;
}

.info-modal .modal-title {
  font-family: var(--of-font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.info-modal-lead {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.info-modal-list,
.info-modal-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--of-text);
}

.info-modal-list li,
.info-modal-steps li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.info-modal-note {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  color: var(--of-text-muted);
}

.info-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

html:not([data-theme='light']) .info-modal .btn-close {
  filter: invert(1) grayscale(100%);
}

/* ============================================
   VALVE SPEC THEATRE — Service pages
   ============================================ */

.theatre-hero {
  position: relative;
  min-height: 72vh;
  min-height: 72dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f2f7f7;
}

.theatre-crossfade {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.theatre-slide {
  position: absolute;
  inset: 0;
  background-color: #1a2d42;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s var(--of-ease-out), transform 8s linear;
}

.theatre-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.theatre-hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 15, 0.5) 0%, rgba(3, 8, 15, 0.2) 40%, rgba(3, 8, 15, 0.88) 100%),
    linear-gradient(90deg, rgba(3, 8, 15, 0.75) 0%, transparent 55%);
  pointer-events: none;
}

.theatre-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--of-header-h) + 2.5rem);
  padding-bottom: 3.5rem;
}

.theatre-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #149494;
}

.theatre-hero-title {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--of-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #e8f4f4;
}

.theatre-hero-lead {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(232, 244, 244, 0.78);
}

.theatre-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.theatre-stage {
  background: var(--of-navy-deep);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
}

.theatre-layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.spec-rail {
  position: sticky;
  top: 6rem;
  padding: 1.15rem;
  border: 1px solid var(--of-panel-border);
  border-radius: 1rem;
  background: var(--of-panel);
}

.spec-rail-label {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--of-teal);
}

.spec-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.spec-rail-nav a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--of-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition:
    color 0.25s var(--of-ease-out),
    background-color 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out);
}

.spec-rail-nav a:hover,
.spec-rail-nav a:focus-visible,
.spec-rail-nav a.is-active {
  color: var(--of-text);
  background: rgba(20, 148, 148, 0.1);
  border-left-color: var(--of-copper);
  outline: none;
}

.spec-rail .btn-cta {
  width: 100%;
}

.theatre-scroll {
  min-width: 0;
}

.theatre-block {
  scroll-margin-top: 6rem;
  padding: 0 0 2.75rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--of-panel-border);
}

.theatre-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.theatre-block-title {
  margin: 0 0 0.85rem;
  font-family: var(--of-font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--of-text);
}

.theatre-block-text {
  margin: 0 0 1rem;
  max-width: 52rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--of-text-muted);
}

.theatre-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
}

.theatre-spec-table th,
.theatre-spec-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--of-panel-border);
  vertical-align: top;
}

.theatre-spec-table th {
  width: 34%;
  font-weight: 600;
  color: var(--of-teal);
}

.theatre-spec-table td {
  color: var(--of-text);
}

/* Interactive pipe diagram */
.pipe-diagram {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--of-panel-border);
  background:
    radial-gradient(ellipse at 20% 30%, rgba(20, 148, 148, 0.12), transparent 50%),
    var(--of-surface);
  overflow: hidden;
}

.pipe-diagram-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--of-text-muted);
}

.pipe-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
}

.pipe-node {
  cursor: pointer;
  transition: transform 0.25s var(--of-ease-spring);
}

.pipe-node circle {
  fill: var(--of-copper);
  stroke: #e8f4f4;
  stroke-width: 2;
  transition: fill 0.25s var(--of-ease-out), r 0.25s var(--of-ease-out);
}

.pipe-node:hover circle,
.pipe-node:focus-visible circle {
  fill: var(--of-teal);
}

.pipe-node:focus-visible {
  outline: none;
}

.pipe-node-label {
  fill: var(--of-text);
  font-family: var(--of-font-body);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.service-siblings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.service-sibling {
  display: block;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--of-panel-border);
  background: var(--of-panel);
  color: var(--of-text);
  text-decoration: none;
  transition:
    transform 0.25s var(--of-ease-out),
    border-color 0.25s var(--of-ease-out);
}

.service-sibling:hover,
.service-sibling:focus-visible {
  transform: translateY(-2px);
  border-color: var(--of-teal);
  outline: none;
  color: var(--of-text);
}

.service-sibling span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--of-teal);
  margin-bottom: 0.35rem;
}

.service-sibling strong {
  font-family: var(--of-font-display);
  font-size: 0.95rem;
}

/* Inner pages (about / contact / legal) */
.page-hero {
  padding: calc(var(--of-header-h) + 3rem) 0 2.5rem;
  background:
    radial-gradient(ellipse at top left, rgba(20, 148, 148, 0.18), transparent 45%),
    var(--of-navy-deep);
}

.page-hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--of-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--of-text);
}

.page-hero-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.legal-content {
  max-width: 48rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--of-font-display);
  font-size: 1.35rem;
  color: var(--of-text);
}

.legal-content p,
.legal-content li {
  color: var(--of-text-muted);
  line-height: 1.65;
}

.nav-link.is-current {
  color: var(--of-text) !important;
  background: rgba(20, 148, 148, 0.1);
}

.nav-link.is-current .nav-index {
  color: var(--of-copper);
}

@media (max-width: 991.98px) {
  .theatre-layout {
    grid-template-columns: 1fr;
  }

  .spec-rail {
    position: relative;
    top: 0;
  }

  .spec-rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .spec-rail-nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .spec-rail-nav a.is-active,
  .spec-rail-nav a:hover,
  .spec-rail-nav a:focus-visible {
    border-left-color: transparent;
    border-bottom-color: var(--of-copper);
  }

  .service-siblings {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .site-header .dropdown-menu,
  .nav-numeric .nav-link,
  .btn-cta,
  .brand-lockup,
  .hero-media-img,
  .hero-brand,
  .hero-title,
  .hero-lead,
  .hero-actions,
  .hero-scroll,
  .hero-scroll-line,
  .reveal,
  .service-panel,
  .filter-btn,
  .preloader,
  .preloader-mark,
  .preloader-bar span,
  .cookie-banner,
  .back-to-top,
  .success-icon,
  .theatre-slide {
    transition: none !important;
    animation: none !important;
  }

  .site-header .dropdown-menu.show {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-brand,
  .hero-title,
  .hero-lead,
  .hero-actions,
  .hero-scroll,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media-img {
    transform: none;
  }
}

/* ---------- Related wholesale packs (service cross-sell) ---------- */
.related-packs {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--of-panel-border);
}

.related-packs-heading {
  margin: 0 0 1rem;
  font-family: var(--of-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--of-text);
}

.related-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--of-panel-border);
  background: var(--of-panel);
  overflow: hidden;
  transition:
    border-color 0.3s var(--of-ease-out),
    box-shadow 0.3s var(--of-ease-out);
}

.related-card:hover,
.related-card:focus-within {
  border-color: rgba(20, 148, 148, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.related-card-link {
  display: block;
  padding: 1rem 1rem 0.75rem;
  color: var(--of-text);
  text-decoration: none;
  transition: color 0.25s var(--of-ease-out);
}

.related-card-link:hover,
.related-card-link:focus-visible {
  color: var(--of-text);
  outline: none;
}

.related-card-tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--of-teal);
  margin-bottom: 0.4rem;
}

.related-card-title {
  display: block;
  font-family: var(--of-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.related-card-oneliner {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--of-text-muted);
}

.related-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--of-panel-border);
}

.related-card-actions .btn-ghost {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

/* ---------- Compare modal (service cross-sell) ---------- */
.compare-modal {
  background: var(--of-surface-2);
  color: var(--of-text);
  border: 1px solid var(--of-panel-border);
  border-radius: 1rem;
}

.compare-modal .modal-header {
  border-bottom-color: var(--of-panel-border);
  align-items: flex-start;
}

.compare-modal .modal-title {
  font-family: var(--of-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--of-text);
}

.compare-modal .modal-body {
  padding-top: 0.5rem;
}

html[data-theme='light'] .compare-modal .btn-close {
  filter: none;
}

html:not([data-theme='light']) .compare-modal .btn-close {
  filter: invert(1) grayscale(100%);
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.compare-col {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--of-panel-border);
  background: var(--of-panel);
}

.compare-col-label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--of-teal);
}

.compare-col-title {
  margin: 0 0 0.6rem;
  font-family: var(--of-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--of-text);
  line-height: 1.3;
}

.compare-col-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(20, 148, 148, 0.15);
  color: var(--of-teal);
  font-size: 0.75rem;
}

.compare-modal-actions {
  margin-top: 1.25rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .related-packs-grid {
    grid-template-columns: 1fr;
  }

  .compare-columns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .compare-divider {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 auto;
    transform: rotate(90deg);
  }
}

/* ============================================
   CONTACT DESK UPGRADE — Timeline & RFQ Calc
   ============================================ */

.section-desk-timeline {
  background: var(--of-navy-deep);
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.desk-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  position: relative;
}

.desk-timeline::before {
  content: '';
  position: absolute;
  top: 2.35rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--of-teal), var(--of-copper));
  opacity: 0.3;
  pointer-events: none;
}

.desk-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem;
  background: var(--of-panel);
  border: 1px solid var(--of-panel-border);
  border-radius: 1rem;
  transition:
    transform 0.45s var(--of-ease-out),
    border-color 0.45s var(--of-ease-out),
    box-shadow 0.45s var(--of-ease-out);
}

.desk-timeline-step:hover,
.desk-timeline-step:focus-within {
  transform: translateY(-4px);
  border-color: rgba(20, 148, 148, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.desk-timeline-num {
  font-family: var(--of-font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--of-copper);
  line-height: 1;
}

.desk-timeline-title {
  margin: 0 0 0.4rem;
  font-family: var(--of-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--of-text);
}

.desk-timeline-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--of-text-muted);
}

.desk-timeline-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.desk-timeline-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--of-text-muted);
}

/* RFQ Calculator modal */
.rfq-calc-modal .rfq-calc-intro {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--of-text-muted);
}

.rfq-calc-result {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: rgba(20, 148, 148, 0.08);
  border: 1px solid rgba(20, 148, 148, 0.28);
  border-radius: 0.75rem;
  transition: opacity 0.4s var(--of-ease-out);
}

.rfq-calc-result[hidden] {
  display: none;
}

.rfq-calc-advisory-lead {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--of-text);
}

.rfq-calc-advisory-detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--of-text-muted);
}

.rfq-calc-advisory-notes {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--of-text-muted);
}

.rfq-calc-advisory-notes li + li {
  margin-top: 0.35rem;
}

.rfq-calc-followup {
  margin-top: 1.15rem;
}

.rfq-calc-followup[hidden] {
  display: none;
}

@media (max-width: 991.98px) {
  .desk-timeline {
    grid-template-columns: 1fr;
  }

  .desk-timeline::before {
    display: none;
  }
}
