/* Digital Plumber – modern, full-width, blue palette
   Single sans-serif (Plus Jakarta Sans), standardised type scale
   Responsive: mobile-first, tablet 600/768, desktop 1024+
   Accessibility: touch targets 44px+, focus-visible, reduced-motion */

:root {
  /* Blue palette */
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-accent: #2563eb;
  --color-accent-soft: #93c5fd;
  --color-accent-dark: #1d4ed8;
  --color-slate: #1e3a5f;
  --color-slate-light: #334155;
  --color-border: #e2e8f0;
  /* Body and UI */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  /* Headings (logo, section titles) */
  --font-heading: 'Space Grotesk', var(--font-sans);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 6rem;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.06);
  /* Standardised type scale (1.25 ratio) */
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.2vw, 0.9375rem);
  --text-xs: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --heading-1: clamp(2rem, 4vw + 1.25rem, 3.25rem);
  --heading-2: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem);
  --heading-3: clamp(1.25rem, 1vw + 0.75rem, 1.5rem);
  --heading-4: clamp(1.0625rem, 0.5vw + 0.875rem, 1.25rem);
  /* Full-width desktop with generous negative space */
  --container-max: 1400px;
  --container-padding: clamp(1.25rem, 5vw, 5rem);
  --touch-target: 44px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  word-wrap: break-word;
  letter-spacing: -0.01em;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-top: 0;
}
h1 { font-size: var(--heading-1); font-weight: 800; }
h2 { font-size: var(--heading-2); }
h3 { font-size: var(--heading-3); font-weight: 600; }
h4 { font-size: var(--heading-4); font-weight: 600; }

/* Layout – full width on desktop, negative space via padding */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Skip link (accessibility + SEO) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-slate);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space-md);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header & nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}
.site-header .nav-toggle {
  margin-left: auto;
}
@media (min-width: 768px) {
  .site-header .nav-toggle { margin-left: 0; }
  .site-header nav { margin-left: auto; }
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: var(--space-xs) 0;
}
.logo:hover { text-decoration: none; }
.logo img {
  height: 2.75rem;
  width: auto;
  max-height: 56px;
  object-fit: contain;
  vertical-align: middle;
}
@media (min-width: 600px) {
  .logo img { height: 3.25rem; max-height: 64px; }
}
.logo:hover img { opacity: 0.9; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.nav-list a {
  font-family: var(--font-heading);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.nav-list a:hover { color: var(--color-accent); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--color-accent); }
/* Header Contact button: match primary button style (nav-list a overrides otherwise) */
.nav-list a.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
  font-weight: 600;
}
.nav-list a.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}
.nav-list a.btn-primary[aria-current="page"] {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.nav-list a:focus-visible,
.btn:focus-visible,
.logo:focus-visible,
.nav-toggle:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
/* Touch targets: min 44px for interactive elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  line-height: 1.25;
  box-sizing: border-box;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--color-slate);
  border-color: var(--color-slate);
}
.btn-outline:hover { background: var(--color-slate); color: #fff; text-decoration: none; }

/* ----- Water-as-data: full-width heroes with superimposed content ----- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 560px);
  padding: clamp(3rem, 10vw, var(--space-4xl)) 0;
  padding-bottom: clamp(4rem, 12vw, 6rem);
  display: flex;
  align-items: center;
}
/* Full-width background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Single hero image: different section in view per page (hero.jpg) */
.hero-crop-index .hero-bg img { object-position: 35% 30%; }
.hero-crop-clear-picture .hero-bg img { object-position: 70% 25%; }
.hero-crop-about .hero-bg img { object-position: 20% 65%; }
.hero-crop-services .hero-bg img { object-position: 78% 45%; }
.hero-crop-pricing .hero-bg img { object-position: 25% 20%; }
.hero-crop-contact .hero-bg img { object-position: 62% 75%; }
.hero-crop-faq .hero-bg img { object-position: 45% 50%; }
.hero-crop-blog .hero-bg img { object-position: 72% 68%; }
.hero-crop-book .hero-bg img { object-position: 15% 28%; }
.hero-crop-privacy .hero-bg img { object-position: 55% 58%; }
.hero-crop-terms .hero-bg img { object-position: 88% 18%; }
.hero-crop-thankyou .hero-bg img { object-position: 28% 82%; }
.hero-mirror .hero-bg img { transform: scaleX(-1); }
/* Overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0.5;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.4) 45%, rgba(15, 23, 42, 0.2) 100%);
  pointer-events: none;
}
/* Screen-reader-only image for accessible alt text */
.hero-img-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Wave at bottom of hero – flow into next section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0 80V40 Q300 0 600 40 T1200 40 V80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-content-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-content h1 {
  margin-bottom: var(--space-lg);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  font-size: clamp(1.0625rem, 1.25vw + 0.75rem, 1.1875rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  max-width: 42ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}
.hero-actions .btn {
  flex-shrink: 0;
}
/* Inline hero (e.g. "Start with a clear picture") – same full-bleed treatment */
.hero-inline {
  min-height: min(52vh, 420px);
  padding: clamp(2.5rem, 8vw, var(--space-3xl)) 0;
}
.hero-inline--short {
  min-height: min(40vh, 320px);
  padding: clamp(2rem, 6vw, var(--space-2xl)) 0;
}
.hero-inline .hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
}
.hero-inline-content h2 {
  color: #fff;
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-inline-content p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 44ch;
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero-inline-content .btn-primary {
  margin-top: var(--space-sm);
}

/* Sections – generous vertical space */
.section {
  padding: clamp(3rem, 8vw, var(--space-4xl)) 0;
}
.section-alt {
  background: var(--color-bg-alt);
  position: relative;
  padding-top: 2.5rem; /* room for wave */
}
/* Wave divider above alt sections – flow between content */
.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23f1f5f9' d='M0 0v30 Q300 60 600 30 T1200 30 V0 Z'/%3E%3C/svg%3E") no-repeat top center;
  background-size: 100% 100%;
  pointer-events: none;
}
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--space-3xl);
}
.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-top: var(--space-md);
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-xl), 4vw, var(--space-2xl));
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-2px); }
}
.card h3 { margin-bottom: var(--space-sm); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Service cards: center-aligned content and wireframe icons */
.card-grid--center .card {
  text-align: center;
}
.card-grid--center .card .card-link {
  justify-content: center;
}
/* Desktop: full-width 2-over-3 layout – top row 2 wider cards, bottom row 3 cards */
@media (min-width: 768px) {
  .card-grid.card-grid--center {
    grid-template-columns: repeat(6, 1fr);
  }
  /* Row 1: two cards, each 50% width */
  .card-grid.card-grid--center .card:nth-child(1) { grid-column: 1 / 4; }
  .card-grid.card-grid--center .card:nth-child(2) { grid-column: 4 / 7; }
  /* Row 2: three cards, each ⅓ width */
  .card-grid.card-grid--center .card:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .card-grid.card-grid--center .card:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
  .card-grid.card-grid--center .card:nth-child(5) { grid-column: 5 / 7; grid-row: 2; }
}
.card-icon--wireframe {
  width: 80px;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
  background: none;
  border: none;
  color: var(--color-accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon--wireframe svg {
  display: block;
  width: 48px;
  height: 48px;
}
.card-grid--center .card-icon--wireframe {
  color: var(--color-accent);
}

/* ----- Book a review diary (demo) ----- */
.diary-demo {
  max-width: 56rem;
  margin: 0 auto;
}
.diary-demo-loading {
  color: var(--color-text-muted);
}
.diary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.diary-table th,
.diary-table td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  text-align: center;
}
.diary-table thead th {
  background: var(--color-slate);
  color: #fff;
  font-weight: 600;
}
.diary-table tbody th {
  background: var(--color-bg-alt);
  font-weight: 500;
  text-align: right;
  padding-right: var(--space-md);
}
.diary-slot {
  display: block;
  width: 100%;
  min-height: var(--touch-target);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.diary-slot:hover:not(:disabled) {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}
.diary-slot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.diary-slot:disabled,
.diary-slot.diary-slot--past {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--color-text-muted);
}
.diary-slot.diary-slot--busy {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}
.diary-slot.diary-slot--busy::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 2px solid var(--color-border);
}
/* Booking form modal */
.booking-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-lg);
}
.booking-form-overlay[hidden] { display: none; }
.booking-form-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 24rem;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.booking-form-modal h2 { margin-top: 0; margin-bottom: var(--space-sm); }
.booking-form-slot {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}
.booking-form .form-group { margin-bottom: var(--space-md); }
.booking-form .btn { margin-right: var(--space-sm); margin-top: var(--space-sm); }
.diary-demo-demo-notice {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-accent-soft);
  color: var(--color-slate);
  border-radius: var(--radius-lg);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}
.diary-demo-demo-notice--visible {
  opacity: 1;
}
@media (max-width: 768px) {
  .diary-table th,
  .diary-table td { padding: var(--space-xs); }
  .diary-slot { min-height: 44px; font-size: var(--text-xs); }
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: var(--space-sm);
}
/* Bullet: favicon image */
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1em;
  height: 1em;
  background: url('../images/favicon.png') no-repeat center;
  background-size: contain;
}

/* Pricing table – scroll on narrow viewports */
.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--container-padding));
  padding: 0 var(--container-padding);
}
.pricing-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table th,
.pricing-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.pricing-table th {
  background: var(--color-slate);
  color: #fff;
  font-weight: 600;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: var(--color-bg); }
.price { font-weight: 600; color: var(--color-accent); white-space: nowrap; }

/* Two-column content */
.two-col {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.content-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-image img {
  width: 100%;
  height: clamp(220px, 40vw, 340px);
  object-fit: cover;
}

/* Wave at bottom of content – footer colour, flows into footer (on main, not footer, for correct join) */
main::after {
  content: '';
  display: block;
  height: 4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%231e3a5f' d='M0 0 Q600 65 1200 0 V80 H0 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--color-slate);
  color: rgba(255,255,255,0.88);
  padding: var(--space-3xl) 0 0;
  margin-top: 0;
}
.site-footer .container {
  position: relative;
  z-index: 1;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: var(--space-xl);
}
.footer-grid h4 {
  color: #fff;
  font-size: var(--heading-4);
  margin-bottom: var(--space-md);
}
.footer-grid p,
.footer-grid a { font-size: var(--text-sm); }
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: var(--space-xs); }
.footer-bottom {
  width: 100%;
  padding: var(--space-sm) var(--container-padding);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  text-align: left;
  box-sizing: border-box;
  line-height: 1.4;
}
.footer-bottom p { margin: 0; }

/* Page header */
.page-header {
  padding: clamp(2.5rem, 8vw, var(--space-3xl)) 0;
  background: var(--color-bg-alt);
  text-align: center;
}
.page-header h1 { margin-bottom: var(--space-sm); }
.page-header p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: var(--text-base);
}
.page-header-highlight {
  margin-top: var(--space-md);
  margin-bottom: 0;
  font-size: var(--heading-4);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.form-group input,
.form-group textarea {
  width: 100%;
  min-height: var(--touch-target);
  padding: var(--space-md);
  font-family: var(--font-sans);
  font-size: 16px; /* prevents zoom on focus in iOS */
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-sizing: border-box;
}
.form-group textarea {
  min-height: 10rem;
  resize: vertical;
}
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--color-accent-dark);
}
.form-error {
  display: block;
  font-size: 0.875rem;
  color: var(--color-accent-dark);
  margin-top: var(--space-xs);
}
.form-group-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-size: var(--heading-4); margin-bottom: var(--space-sm); }
.faq-item p { color: var(--color-text-muted); margin: 0; font-size: var(--text-sm); }

/* Mobile nav toggle – 44px touch target */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  padding: var(--space-sm);
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-sm);
    min-height: var(--touch-target);
    line-height: 1.4;
  }
  .nav-list .btn { min-height: var(--touch-target); justify-content: center; }
  .site-header .container { position: relative; flex-wrap: wrap; }
}

/* Blog / list pages */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}
.post-list li:last-child { border-bottom: none; }
.post-list a { font-weight: 600; }
.post-list time, .post-meta { font-size: 0.875rem; color: var(--color-text-muted); }

/* CTA block – flow accent (water as data) */
.cta-block {
  text-align: center;
  padding: clamp(var(--space-xl), 4vw, var(--space-2xl));
  background: var(--color-slate);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent-soft), var(--color-accent), var(--color-accent-soft), transparent);
  opacity: 0.9;
}
.cta-block h2 { color: #fff; margin-bottom: var(--space-md); }
.cta-block p { opacity: 0.9; margin-bottom: var(--space-lg); }
.cta-block .btn-primary { background: var(--color-accent); }
.cta-block .btn-primary:hover { background: var(--color-accent-dark); }

/* ----- Premium: scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.reveal-visible { transform: none; }
}

/* ----- Stats bar – flow/pipe accent ----- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.stats-bar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-soft), var(--color-accent), var(--color-accent-soft), transparent);
  opacity: 0.6;
}
.stat-item { padding: 0 var(--space-sm); }
.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  line-height: 1.2;
  display: block;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ----- Service icons (cards) ----- */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}
/* Pipe/flow underline – data flowing */
.card .card-link {
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  background: linear-gradient(to right, var(--color-accent) 50%, transparent 50%) bottom left / 0 2px no-repeat;
  background-size: 0 2px;
  background-position: left bottom;
  padding-bottom: 2px;
  transition: background-size 0.25s ease, color 0.2s;
}
.card .card-link:hover {
  color: var(--color-accent-dark);
  background-size: 100% 2px;
}

/* ----- Why choose us ----- */
.why-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.why-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
}
.why-item h3 { margin-bottom: var(--space-xs); font-size: var(--heading-4); }
.why-item p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* ----- Process / how it works ----- */
.process-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: process;
}
.process-item {
  position: relative;
  padding-left: 3rem;
  counter-increment: process;
}
.process-item::before {
  content: counter(process);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-slate);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-item h3 { margin-bottom: var(--space-xs); font-size: var(--heading-4); }
.process-item p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* ----- Testimonials ----- */
.testimonials-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Carousel when 4+ testimonials */
.testimonials-grid.testimonials-carousel {
  display: block;
  position: relative;
}
.testimonials-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.testimonials-carousel-wrapper .testimonials-viewport {
  flex: 1;
  min-width: 0;
}
.testimonials-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials-viewport::-webkit-scrollbar {
  display: none;
}
.testimonials-track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  min-width: 100%;
}
.testimonials-carousel .testimonial {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: var(--testimonial-card-width, 280px);
  min-width: var(--testimonial-card-width, 280px);
  flex-shrink: 0;
}
.testimonials-carousel-wrapper .testimonials-prev,
.testimonials-carousel-wrapper .testimonials-next {
  flex-shrink: 0;
}
.testimonials-prev,
.testimonials-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.testimonials-prev:hover,
.testimonials-next:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.testimonials-prev:focus-visible,
.testimonials-next:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}
.testimonial blockquote {
  margin: 0;
  padding: var(--space-lg) 0 0 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
}
.testimonial cite {
  display: block;
  padding-top: var(--space-md);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial cite a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: none;
}
.testimonial cite a:hover {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: none;
}
.testimonial .testimonial-role { font-weight: 400; color: var(--color-text-muted); }

/* ----- Trust strip / service areas ----- */
.trust-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  row-gap: var(--space-md);
}
.trust-group + .trust-group {
  margin-left: var(--space-xl);
}
.trust-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}
.trust-items span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
@media (max-width: 599px) {
  .trust-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .trust-group + .trust-group {
    margin-left: 0;
  }
}

/* ----- Hero premium (full-width overlay) ----- */
.hero-content h1 {
  letter-spacing: -0.03em;
}
.hero-actions .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Outline button on dark overlay: light border and text */
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-actions .btn:hover {
    transform: translateY(-1px);
  }
  .hero-actions .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
  }
  .hero-actions .btn-outline:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
}

/* ----- Button polish ----- */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(0.98); }
}
.card .btn { margin-top: var(--space-md); }

/* ----- Back to top ----- */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--container-padding);
  width: var(--touch-target);
  height: var(--touch-target);
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background 0.2s;
  z-index: 80;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .back-to-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
  }
}
/* ----- Responsive: small viewports (mobile) ----- */
@media (max-width: 480px) {
  .back-to-top { bottom: var(--space-lg); right: var(--space-md); }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
  }
  .process-grid { grid-template-columns: 1fr; }
  .process-item { padding-left: 2.75rem; }
  .process-item::before { width: 1.75rem; height: 1.75rem; font-size: 0.8125rem; }
}
