/* ============================================================
   MIDNIGHT RESERVOIR — Design System v1.0
   Finflo Limited — Luxury Plumbing & Gas, Derbyshire
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@300;400;500&display=swap');

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --obsidian:      #0A0E1A;
  --navy:          #0D1B2A;
  --teal:          #00D4FF;
  --teal-15:       rgba(0,212,255,0.15);
  --teal-30:       rgba(0,212,255,0.30);
  --teal-glow:     0 0 40px rgba(0,212,255,0.30);
  --teal-glow-lg:  0 0 80px rgba(0,212,255,0.20);
  --copper:        #C0622B;
  --copper-15:     rgba(192,98,43,0.15);
  --silver:        #B8C5D0;
  --ghost:         #F0F4F8;
  --glass-bg:      rgba(255,255,255,0.05);
  --glass-border:  rgba(255,255,255,0.10);
  --glass-dark-bg: rgba(10,14,26,0.75);
  --font-head:     'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
  --nav-h:         72px;
  --section-py:    clamp(4rem, 8vw, 7rem);
  --max-w:         1280px;
  --z-nav:         100;
  --z-cursor:      9999;
  --z-velocity:    150;
  --z-overlay:     200;
  --z-modal:       300;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--obsidian);
  color: var(--silver);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: auto;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color 200ms ease; }
a:hover { color: #fff; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ghost);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.7; color: var(--silver); max-width: 68ch; }

.headline-gradient {
  background: linear-gradient(135deg, var(--ghost) 0%, var(--silver) 60%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pre-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.pre-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Layout Helpers ─────────────────────────────────────────── */
.container-xl {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-dark {
  background-color: var(--obsidian);
  padding-block: var(--section-py);
}

.section-navy {
  background-color: var(--navy);
  padding-block: var(--section-py);
}

.section-grid {
  display: grid;
  gap: 2rem;
}

/* ── Glassmorphism Utilities ────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-dark {
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  border-color: var(--teal-30);
  box-shadow: var(--teal-glow);
  transform: translateY(-4px) translate3d(0,0,0);
}

/* Liquid cursor removed — using normal OS cursor */

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--teal) 0%, #0099bb 100%);
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  will-change: transform;
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary:hover {
  transform: translateY(-2px) translate3d(0,0,0);
  box-shadow: 0 8px 32px rgba(0,212,255,0.40);
  filter: brightness(1.08);
  color: var(--obsidian);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid var(--teal-30);
  background: var(--teal-15);
  transition: all 200ms ease;
  cursor: pointer;
  min-height: 48px;
}
.btn-outline:hover {
  background: var(--teal-30);
  border-color: var(--teal);
  color: var(--ghost);
}

.btn-velocity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--copper) 0%, #e07232 100%);
  box-shadow: 0 4px 24px rgba(192,98,43,0.40);
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  min-height: 48px;
}
.btn-velocity:hover {
  transform: translateY(-2px) scale(1.02) translate3d(0,0,0);
  box-shadow: 0 8px 40px rgba(192,98,43,0.55);
  color: #fff;
}

/* ── Navigation ─────────────────────────────────────────────── */
.mr-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10,14,26,0.80);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 300ms ease, box-shadow 300ms ease;
}
.mr-nav.scrolled {
  background: rgba(10,14,26,0.95);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 80px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ghost);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--silver);
  border-radius: 6px;
  transition: color 200ms ease, background 200ms ease;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover, .nav-link.active {
  color: var(--ghost);
  background: var(--glass-bg);
}

.nav-cta { margin-left: 1rem; }

/* Mobile nav */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10,14,26,0.98);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  gap: 0.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 1.1rem; padding: 0.75rem 1rem; }
.nav-mobile .nav-cta { margin-left: 0; margin-top: 0.5rem; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #0C1220 0%, #0D1B2A 60%, #0A0E1A 100%);
  overflow: hidden;
}

/* Left column — text */
.hero-content {
  position: relative;
  z-index: 1;
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 5vw, 3.5rem) 4rem;
}

.hero-text {
  max-width: 580px;
}

/* Right column — canvas */
.hero-canvas-wrap {
  flex: 0 0 45%;
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: transform;
}

@media (max-width: 900px) {
  .hero-section { flex-direction: column; align-items: stretch; }
  .hero-content  { flex: none; padding-top: calc(var(--nav-h) + 2rem); }
  .hero-canvas-wrap { flex: none; height: 340px; }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--silver);
  font-weight: 300;
  margin-top: 1.25rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: droplet-fall 1.6s ease-in-out infinite;
}
.scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0.6;
}

/* Radial gradient backdrop for hero text area */
.hero-glow {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Company Intro ──────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-block: 1.5rem;
}
.intro-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--silver);
}
.intro-checklist li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.intro-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.intro-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 500ms ease;
}
.intro-image-wrap:hover img { transform: scale(1.03) translate3d(0,0,0); }
.intro-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid var(--teal-30);
  box-shadow: var(--teal-glow);
  pointer-events: none;
}

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-image-wrap img { height: 280px; }
}

/* ── Services Section ───────────────────────────────────────── */
.services-section {
  position: relative;
  padding-block: var(--section-py);
  background: #101E30;
  overflow: hidden;
}

/* ── Contact page: hide floating velocity CTA ── */
body.page-contact .btn-velocity {
  display: none !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--copper-15);
  border: 1px solid rgba(192,98,43,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 300ms ease, border-color 300ms ease;
}
.service-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--copper);
  stroke: var(--copper);
}
.service-card:hover .service-card-icon {
  background: var(--copper-15);
  border-color: var(--copper);
  box-shadow: 0 0 20px var(--copper-15);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--ghost);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--silver);
  max-width: none;
  line-height: 1.6;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  transition: gap 200ms ease;
}
.service-card:hover .card-link { gap: 0.65rem; }
.service-card .card-link svg { width: 14px; height: 14px; }

/* Ripple effect inside service cards */
.card-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,212,255,0.12);
  transform: scale(0);
  animation: ripple 600ms ease-out forwards;
  pointer-events: none;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ── Review Carousel ────────────────────────────────────────── */
.reviews-section {
  padding-block: var(--section-py);
  background: var(--obsidian);
  overflow: hidden;
}

.reviews-track-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 1rem;
  cursor: grab;
}
.reviews-track-wrap::-webkit-scrollbar { display: none; }
.reviews-track-wrap.dragging { cursor: grabbing; }

.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-bottom: 0.5rem;
}

.review-card {
  width: 340px;
  flex-shrink: 0;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.review-card:hover {
  border-color: var(--teal-30);
  box-shadow: var(--teal-glow);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.review-stars svg {
  width: 16px;
  height: 16px;
  color: var(--copper);
  fill: var(--copper);
}

.review-quote {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.review-quote::before { content: '\201C'; color: var(--teal); font-size: 1.5rem; line-height: 1; }

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-15), var(--copper-15));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}
.review-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ghost);
}
.review-location {
  font-size: 0.78rem;
  color: var(--silver);
  opacity: 0.7;
}

.reviews-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.reviews-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  color: var(--silver);
}
.reviews-nav-btn:hover {
  background: var(--teal-15);
  border-color: var(--teal-30);
  color: var(--teal);
}
.reviews-nav-btn svg { width: 18px; height: 18px; stroke: currentColor; }

/* ── Why Us Section ─────────────────────────────────────────── */
.why-us-section {
  padding-block: var(--section-py);
  background: var(--navy);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
}
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-15);
  border: 1px solid var(--teal-30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.why-icon svg { width: 24px; height: 24px; stroke: var(--teal); }

.why-stat {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.why-card p { font-size: 0.9rem; max-width: none; }

@media (max-width: 768px) {
  .why-us-grid { grid-template-columns: 1fr; }
}

/* ── Accreditations ─────────────────────────────────────────── */
.accreditations-section {
  padding-block: 3rem;
  background: var(--obsidian);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.accreditations-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.accreditation-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--silver);
  transition: border-color 200ms ease, color 200ms ease;
  cursor: pointer;
  min-height: 44px;
}
.accreditation-pill:hover {
  border-color: var(--teal-30);
  color: var(--ghost);
}
.accreditation-pill img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(0.8);
}

/* ── Inner Page Hero ────────────────────────────────────────── */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--obsidian) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Contact Page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-detail-card {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.contact-detail-card .detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-15);
  border: 1px solid var(--teal-30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.contact-detail-card .detail-icon svg { width: 18px; height: 18px; stroke: var(--teal); }
.contact-detail-card h4 { margin-bottom: 0.4rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--silver); }
.contact-detail-card a { color: var(--ghost); font-size: 1rem; font-weight: 500; }
.contact-detail-card a:hover { color: var(--teal); }

/* Contact Form */
.contact-form-wrap {
  padding: 2.5rem;
  border-radius: 20px;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--ghost);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  min-height: 48px;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(184,197,208,0.4); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-15);
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
}

/* Form submit animation */
.form-submit-wrap { position: relative; }
.btn-submit {
  width: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0;
  width: 100%;
  background: rgba(0,212,255,0.2);
  transition: height 1.2s ease;
}
.btn-submit.filling::after { height: 100%; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
}

/* ── Map ────────────────────────────────────────────────────── */
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  height: 220px;
  background: var(--navy);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(92%) hue-rotate(180deg) saturate(0.5);
}

/* ── Gallery Page ───────────────────────────────────────────── */
.gallery-section {
  padding-block: var(--section-py);
  background: var(--obsidian);
}

/* ── Reviews Page ───────────────────────────────────────────── */
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-page-card {
  padding: 2rem;
  border-radius: 16px;
}
.review-page-card .review-stars { margin-bottom: 1rem; }
.review-page-card blockquote {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--silver);
  font-style: italic;
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal-30);
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) { .reviews-page-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews-page-grid { grid-template-columns: 1fr; } }

/* ── Services Page ──────────────────────────────────────────── */
.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 4rem;
  border-bottom: 1px solid var(--glass-border);
}
.service-detail-item:last-child { border-bottom: none; }
.service-detail-item:nth-child(even) .service-detail-image { order: -1; }

.service-detail-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.service-detail-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 500ms ease;
}
.service-detail-image:hover img { transform: scale(1.04) translate3d(0,0,0); }
.service-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--teal-30);
  pointer-events: none;
}

.service-detail-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block: 1.25rem;
}
.service-detail-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: var(--silver);
}
.service-detail-check li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

@media (max-width: 768px) {
  .service-detail-item { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail-item:nth-child(even) .service-detail-image { order: unset; }
  .service-detail-image img { height: 260px; }
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner-section {
  padding-block: var(--section-py);
  background: linear-gradient(135deg, var(--navy) 0%, var(--obsidian) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner-section::before {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,98,43,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--glass-border);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-block: 1rem;
  max-width: 32ch;
}
.footer-brand .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.footer-brand .footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--silver);
  transition: color 200ms ease;
}
.footer-brand .footer-contact a:hover { color: var(--teal); }
.footer-brand .footer-contact svg { width: 14px; height: 14px; stroke: var(--teal); flex-shrink: 0; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--silver);
  transition: color 200ms ease, padding-left 200ms ease;
}
.footer-col ul li a:hover { color: var(--teal); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-left {
  font-size: 0.82rem;
  color: var(--silver);
  opacity: 0.6;
}
.footer-gas-safe img {
  height: 50px;
  width: auto;
  opacity: 0.8;
}

/* Zoalverse Credit */
.zoalverse-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: color 200ms ease;
  cursor: pointer;
}
.zoalverse-credit:hover { color: #ffffff; }
.zoalverse-credit:hover .zoalverse-logo-img { opacity: 1; }
.zoalverse-logo-img {
  height: 18px;
  width: auto;
  opacity: 0.7;
  transition: opacity 200ms ease;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Floating Velocity CTA ──────────────────────────────────── */
#velocity-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-velocity);
  will-change: transform;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
}
#velocity-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  animation: pulse 2s ease-in-out infinite;
}

/* Booking Overlay */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.booking-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.booking-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.booking-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  padding: 2.5rem;
  background: var(--navy);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--teal-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms ease;
}
.booking-overlay.open .booking-modal {
  transform: translateY(0) scale(1);
}
.booking-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--silver);
  transition: all 200ms ease;
}
.booking-modal-close:hover { background: var(--teal-15); color: var(--ghost); border-color: var(--teal-30); }
.booking-modal-close svg { width: 16px; height: 16px; stroke: currentColor; }

/* ── Reveal Animations ──────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px) translate3d(0,0,0);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0) translate3d(0,0,0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px) translate3d(0,0,0);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0) translate3d(0,0,0);
}

/* Stagger delays for .reveal-stagger children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 360ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 600ms; }

/* ── Keyframe Animations ────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { transform: scale(1) translate3d(0,0,0); box-shadow: 0 4px 24px rgba(192,98,43,0.40); }
  50%       { transform: scale(1.07) translate3d(0,0,0); box-shadow: 0 8px 40px rgba(192,98,43,0.65); }
}

@keyframes ripple {
  from { transform: scale(0); opacity: 0.6; }
  to   { transform: scale(4); opacity: 0; }
}

@keyframes droplet-fall {
  0%   { opacity: 0; transform: scaleY(0) translateY(-100%); transform-origin: top; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1) translateY(100%); transform-origin: bottom; }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px) translate3d(0,0,0); }
  to   { opacity: 1; transform: translateY(0) translate3d(0,0,0); }
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #hero-canvas { display: none; }
  .scroll-line { animation: none; }
  #velocity-btn { animation: none !important; }
}

/* ── Section header utility ─────────────────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-header p { margin-top: 0.75rem; }

/* ── Lighten sections slightly ──────────────────────────────── */
.section-dark  { background: #0E1525; }
.section-navy  { background: #101E30; }

/* ── Snake-pipe background texture ──────────────────────────
   A single SVG path that winds through the section like a pipe
   run. Scales to cover each section so the snake always fills
   the space. Applied after all background shorthand rules so
   it wins the cascade.                                         */
.services-section,
.section-dark,
.reviews-section,
.why-us-section,
.accreditations-section {
  background-image: url('/pipe-snake.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Image placeholder fallback */
.img-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0D1B2A 0%, #141E30 100%);
  position: relative;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Show gradient when img src is empty or broken */
.img-wrap img[alt]::after {
  content: attr(alt);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D1B2A, #101E30);
  color: var(--silver);
  font-size: 0.85rem;
}

/* ── Mobile Optimization ────────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
}
