/* ==========================================================================
   CLARASEAL — Design System v2
   Monochrome + Warm Stone accent (#C4A96B)
   Font: Inter via Google Fonts
   ========================================================================== */

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --black:   #0A0A0A;
  --grey-900:#1A1A1A;
  --grey-800:#2A2A2A;
  --grey-700:#3A3A3A;
  --grey-600:#555555;
  --grey-500:#777777;
  --grey-400:#999999;
  --grey-300:#BBBBBB;
  --grey-200:#DEDEDE;
  --grey-100:#F2F2F2;
  --grey-50: #F8F8F8;
  --white:   #FFFFFF;
  --accent:  #C4A96B;   /* warm stone gold */
  --accent-dark: #A8893A;

  /* Typography */
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-w: 1200px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.20);

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --dur-fast: 150ms;
  --dur:      250ms;
  --dur-slow: 400ms;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--grey-800);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input,select,textarea { font-family: inherit; }

/* ── Layout Utilities ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (max-width: 768px) { .container { padding-inline: var(--space-4); } }

.section { padding: var(--space-24) 0; }
.section--sm { padding: var(--space-16) 0; }
.section--lg { padding: var(--space-32) 0; }

/* ── Typography ────────────────────────────────────────────────────────── */
.heading-display {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
}
.heading-1 {
  font-size: clamp(2rem, 4.5vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--black);
}
.heading-2 {
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}
.heading-3 {
  font-size: clamp(1.125rem, 2vw, var(--text-2xl));
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}
.heading-4 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
}
.label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.body-lg { font-size: var(--text-lg); line-height: 1.65; }
.body-sm { font-size: var(--text-sm); line-height: 1.55; color: var(--grey-600); }

/* Section title helper */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--grey-600);
  max-width: 60ch;
  line-height: 1.65;
}
.section-header { margin-bottom: var(--space-12); }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background var(--dur-fast) var(--ease);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: translateY(1px); }

/* Primary — black bg */
.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}
.btn-primary:hover { background: var(--grey-800); border-color: var(--grey-800); }

/* Secondary — white bg, black border */
.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-secondary:hover { background: var(--grey-100); }

/* Accent */
.btn-accent {
  background: var(--accent);
  color: var(--black);
  border: 2px solid var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Ghost on dark bg */
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Sizes */
.btn-sm  { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn-lg  { padding: 1rem 2.5rem; font-size: var(--text-base); }
.btn-xl  { padding: 1.125rem 3rem; font-size: var(--text-lg); }
.btn-full { width: 100%; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; object-fit: contain; }
.nav-logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--black);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-700);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--black); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: var(--space-1); }
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
  transform: translateX(-50%) translateY(-8px);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-700);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-dropdown-menu a:hover { background: var(--grey-50); color: var(--black); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black);
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  transition: all var(--dur-fast);
}
.nav-phone:hover { border-color: var(--black); }
.nav-phone svg { width: 16px; height: 16px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--dur-fast);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: var(--space-6);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  max-height: calc(100vh - 72px);
}
.nav-mobile.open { display: block; }
.nav-mobile-links { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-mobile-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--grey-700);
  border-radius: var(--radius);
  transition: background var(--dur-fast);
}
.nav-mobile-link:hover { background: var(--grey-50); color: var(--black); }
.nav-mobile-link.active { color: var(--black); font-weight: 600; }
.nav-mobile-services {
  padding: var(--space-2) var(--space-4);
}
.nav-mobile-services-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: var(--space-2);
}
.nav-mobile-services a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--grey-700);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.nav-mobile-services a:hover { background: var(--grey-100); color: var(--black); }
.nav-mobile-cta {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Page offset for fixed nav */
.page-offset { padding-top: 72px; }

/* ── Mobile Sticky CTA Bar ─────────────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}
.sticky-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  max-width: 480px;
  margin-inline: auto;
}
.sticky-cta .btn { font-size: var(--text-sm); padding: 0.875rem 1rem; }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  body { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--black) 0%, var(--grey-800) 60%, var(--grey-900) 100%);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-24) var(--space-6);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: var(--space-6);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
  max-width: 50ch;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}
.hero-trust-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Before/After slider */
.before-after-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
  background: var(--grey-900);
  flex-shrink: 0;
}
.before-after-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
}
.before-image,
.after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-image {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}
.after-image {
  z-index: 0;
}
.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  width: 3px;
  background: var(--white);
  cursor: ew-resize;
}
.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-handle::after {
  content: '⟨  ⟩';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: var(--grey-800);
  font-weight: 700;
  z-index: 1;
  letter-spacing: -3px;
}
.before-after-labels {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: space-between;
  z-index: 11;
  pointer-events: none;
}
.ba-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}
.ba-label-before { background: rgba(0,0,0,0.7); color: var(--white); }
.ba-label-after  { background: var(--white); color: var(--black); }

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-subtitle { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-container { padding: var(--space-16) var(--space-4); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ── Trust Bar ─────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: var(--space-5) 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-700);
}
.trust-bar-item svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 600px) { .trust-bar-inner { gap: var(--space-6); justify-content: flex-start; } }

/* ── Services Grid ─────────────────────────────────────────────────────── */
.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--dur) var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--grey-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  transition: background var(--dur-fast);
}
.service-card:hover .service-card-icon { background: var(--black); }
.service-card-icon svg { width: 24px; height: 24px; color: var(--grey-700); transition: color var(--dur-fast); }
.service-card:hover .service-card-icon svg { color: var(--accent); }
.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--space-3);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--grey-600);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-6);
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black);
  margin-top: auto;
  transition: gap var(--dur-fast);
}
.service-card-link:hover { gap: var(--space-3); }
.service-card-link svg { width: 16px; height: 16px; }

/* ── Process ───────────────────────────────────────────────────────────── */
.process-section { background: var(--black); color: var(--white); }
.process-section .section-title { color: var(--white); }
.process-section .section-label { color: var(--accent); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.process-step-card {
  padding: var(--space-10) var(--space-8);
  background: var(--grey-900);
  position: relative;
  transition: background var(--dur);
}
.process-step-card:hover { background: var(--grey-800); }
.process-step-num {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}
.process-step-icon {
  width: 44px; height: 44px;
  background: rgba(196,169,107,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.process-step-icon svg { width: 22px; height: 22px; color: var(--accent); }
.process-step-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.process-step-card p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

/* ── Gallery Grid ──────────────────────────────────────────────────────── */
.gallery-section { background: var(--grey-50); }
.gallery-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.filter-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-600);
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.filter-btn:hover { border-color: var(--grey-400); color: var(--black); }
.filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-900);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.gallery-item.hidden { display: none; }

.gallery-item .before-after-card {
  border-radius: 0;
  aspect-ratio: 4/3;
}
.gallery-item .before-after-container {
  border-radius: 0;
}

.gallery-single-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.gallery-single-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover .gallery-single-image img { transform: scale(1.04); }

.gallery-item-info {
  padding: var(--space-4) var(--space-5);
  background: var(--white);
}
.gallery-item-info h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-1);
}
.gallery-item-info p {
  font-size: var(--text-sm);
  color: var(--grey-500);
}
.gallery-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px var(--space-2);
  background: var(--grey-100);
  color: var(--grey-600);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}

/* ── Testimonials ──────────────────────────────────────────────────────── */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}
.testimonial-stars svg { width: 18px; height: 18px; color: var(--accent); fill: var(--accent); }
.testimonial-quote {
  flex: 1;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--grey-700);
  font-style: italic;
  margin-bottom: var(--space-6);
}
.testimonial-author { margin-top: auto; }
.testimonial-author strong { font-size: var(--text-sm); font-weight: 700; color: var(--black); }
.testimonial-author span { display: block; font-size: var(--text-xs); color: var(--grey-500); margin-top: 2px; }

/* ── Clients Bar ───────────────────────────────────────────────────────── */
.clients-section { background: var(--grey-50); border-top: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); padding: var(--space-12) 0; }
.clients-label { text-align: center; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-400); margin-bottom: var(--space-8); }
.clients-track-outer {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.clients-track {
  display: flex;
  gap: var(--space-12);
  width: max-content;
  animation: scroll-clients 30s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
@keyframes scroll-clients {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.client-logo:hover { color: var(--black); }

/* ── Trust Block ───────────────────────────────────────────────────────── */
.trust-section { background: var(--black); color: var(--white); }
.trust-section .section-title { color: var(--white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-item {
  padding: var(--space-8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  transition: border-color var(--dur), background var(--dur);
}
.trust-item:hover { border-color: var(--accent); background: rgba(196,169,107,0.05); }
.trust-item-icon {
  width: 48px; height: 48px;
  background: rgba(196,169,107,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.trust-item-icon svg { width: 24px; height: 24px; color: var(--accent); }
.trust-item h3 { font-size: var(--text-base); font-weight: 700; color: var(--white); margin-bottom: var(--space-2); }
.trust-item p { font-size: var(--text-sm); color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── Stats Row ─────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  background: var(--white);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--grey-500);
  font-weight: 500;
}

/* ── FAQ Accordion ─────────────────────────────────────────────────────── */
.faq-section { background: var(--white); }
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}
.faq-item:first-child { border-top: 1px solid var(--grey-200); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  padding: var(--space-6) 0;
  cursor: pointer;
  background: none;
  border: none;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--black);
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--grey-700); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--grey-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.faq-icon svg { width: 14px; height: 14px; color: var(--grey-600); transition: transform var(--dur-fast); }
.faq-item.open .faq-icon { background: var(--black); }
.faq-item.open .faq-icon svg { color: var(--white); transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease), padding var(--dur-slow) var(--ease);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--grey-600);
  line-height: 1.7;
}

/* ── CTA Section ───────────────────────────────────────────────────────── */
.cta-section {
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.cta-section .section-title { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.65); font-size: var(--text-lg); margin-bottom: var(--space-8); max-width: 55ch; margin-inline: auto; }
.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Lead Form ─────────────────────────────────────────────────────────── */
.form-section { background: var(--grey-50); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}
.form-card h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--space-2);
}
.form-card-sub {
  font-size: var(--text-sm);
  color: var(--grey-500);
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem var(--space-4);
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--black);
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Form info panel */
.form-info { padding-top: var(--space-4); }
.form-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--grey-200);
}
.form-info-item:last-child { border-bottom: none; }
.form-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--grey-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.form-info-icon svg { width: 20px; height: 20px; color: var(--grey-700); }
.form-info-text h4 { font-size: var(--text-sm); font-weight: 700; color: var(--black); margin-bottom: 2px; }
.form-info-text p { font-size: var(--text-sm); color: var(--grey-600); line-height: 1.5; }
.form-info-text a { font-weight: 600; color: var(--black); transition: color var(--dur-fast); }
.form-info-text a:hover { color: var(--accent-dark); }

/* ── Service Hero (inner pages) ────────────────────────────────────────── */
.service-hero {
  background: var(--black);
  color: var(--white);
  padding: calc(72px + var(--space-16)) 0 var(--space-20);
}
.service-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.service-hero-content .section-label { color: var(--accent); margin-bottom: var(--space-3); }
.service-hero h1 {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-5);
}
.service-hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}
.service-hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }
@media (max-width: 900px) {
  .service-hero .container { grid-template-columns: 1fr; }
  .service-hero-media { display: none; }
}

/* ── Service Detail Sections ───────────────────────────────────────────── */
.highlights-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--grey-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.highlight-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.highlight-item-icon svg { width: 20px; height: 20px; color: var(--grey-700); }
.highlight-item h4 { font-size: var(--text-sm); font-weight: 700; color: var(--black); margin-bottom: 2px; }
.highlight-item p { font-size: var(--text-sm); color: var(--grey-600); line-height: 1.5; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
}
.benefit-card-icon {
  width: 44px; height: 44px;
  background: var(--grey-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.benefit-card-icon svg { width: 22px; height: 22px; color: var(--grey-700); }
.benefit-card h3 { font-size: var(--text-base); font-weight: 700; color: var(--black); margin-bottom: var(--space-2); }
.benefit-card p { font-size: var(--text-sm); color: var(--grey-600); line-height: 1.6; }

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .applications-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .applications-grid { grid-template-columns: 1fr; } }

.application-card {
  padding: var(--space-6);
  background: var(--grey-900);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--dur);
}
.application-card:hover { border-color: var(--accent); }
.application-card-icon {
  width: 52px; height: 52px;
  background: rgba(196,169,107,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
}
.application-card-icon svg { width: 26px; height: 26px; color: var(--accent); }
.application-card h3 { font-size: var(--text-base); font-weight: 700; color: var(--white); margin-bottom: var(--space-2); }
.application-card p { font-size: var(--text-sm); color: rgba(255,255,255,0.55); line-height: 1.6; }

/* Process numbered steps */
.process-numbered {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 700px;
  margin-inline: auto;
}
.process-numbered-step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}
.process-n-badge {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-base);
  font-weight: 800;
  margin-top: 2px;
}
.process-n-content h3 { font-size: var(--text-base); font-weight: 700; color: var(--black); margin-bottom: var(--space-2); }
.process-n-content p { font-size: var(--text-sm); color: var(--grey-600); line-height: 1.65; }

/* process-step-n aliases (used in service detail pages) */
.process-step-n { display: flex; gap: var(--space-6); align-items: flex-start; }
.process-step-n-number {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  margin-top: 2px;
}
.process-step-n-content h3 { font-size: var(--text-base); font-weight: 700; color: var(--black); margin-bottom: var(--space-2); }
.process-step-n-content p { font-size: var(--text-sm); color: var(--grey-600); line-height: 1.65; }

/* ── About Page ────────────────────────────────────────────────────────── */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
@media (max-width: 900px) { .about-story-grid { grid-template-columns: 1fr; } }
.about-story-text p { font-size: var(--text-base); color: var(--grey-600); line-height: 1.75; margin-bottom: var(--space-5); }
.about-story-text p:last-child { margin-bottom: 0; }
.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 540px) { .about-values-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: var(--space-6);
  background: var(--grey-50);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.value-card h3 { font-size: var(--text-base); font-weight: 700; color: var(--black); margin-bottom: var(--space-2); }
.value-card p { font-size: var(--text-sm); color: var(--grey-600); line-height: 1.6; }

/* ── Service Areas ─────────────────────────────────────────────────────── */
.areas-section { background: var(--grey-50); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card {
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
}
.area-card h3 { font-size: var(--text-base); font-weight: 700; color: var(--black); margin-bottom: var(--space-4); }
.area-card li {
  font-size: var(--text-sm);
  color: var(--grey-600);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--grey-100);
}
.area-card li:last-child { border-bottom: none; }
.areas-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--grey-500);
  font-style: italic;
}
.areas-note a { color: var(--black); font-weight: 600; text-decoration: underline; }

/* ── Page Hero (generic) ───────────────────────────────────────────────── */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: calc(72px + var(--space-20)) 0 var(--space-20);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.page-hero p { color: rgba(255,255,255,0.65); font-size: var(--text-lg); max-width: 55ch; margin-inline: auto; }

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-50);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--grey-500);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.breadcrumb-list a { color: var(--grey-500); transition: color var(--dur-fast); }
.breadcrumb-list a:hover { color: var(--black); }
.breadcrumb-list li:not(:last-child)::after { content: '/'; margin-left: var(--space-2); color: var(--grey-300); }
.breadcrumb-list li:last-child { color: var(--black); font-weight: 600; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: var(--space-20) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: var(--space-4);
  display: block;
}
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--space-6); }
.footer-contact { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-contact a {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); font-weight: 600; color: var(--white);
  transition: color var(--dur-fast);
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact a svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--dur-fast);
}
.footer-col li a:hover { color: var(--white); }

.footer-cta-block h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
}
.footer-cta-block .btn { margin-bottom: var(--space-6); }
.footer-badges { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-badge {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,0.55);
}
.footer-badge svg { width: 14px; height: 14px; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: var(--space-5); }
.footer-bottom-links a { font-size: var(--text-xs); color: rgba(255,255,255,0.35); transition: color var(--dur-fast); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Two-col content ───────────────────────────────────────────────────── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.two-col-grid.reverse { direction: rtl; }
.two-col-grid.reverse > * { direction: ltr; }
@media (max-width: 900px) { .two-col-grid { grid-template-columns: 1fr; } .two-col-grid.reverse { direction: ltr; } }

/* ── Animations ────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-accent { color: var(--accent); }
.bg-black    { background: var(--black); }
.bg-white    { background: var(--white); }
.bg-grey     { background: var(--grey-50); }
.mt-auto { margin-top: auto; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE OPTIMISATION — comprehensive responsive fixes
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Shared section spacing ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: var(--space-12) 0; }
  .section--sm { padding: var(--space-8)  0; }
  .section--lg { padding: var(--space-16) 0; }

  .section-header { margin-bottom: var(--space-8); }
  .section-title  { font-size: clamp(1.5rem, 5vw, 2.25rem); }

  /* Prevent horizontal overflow globally */
  body { overflow-x: hidden; }

  /* Container tighter on small screens */
  .container { padding-inline: var(--space-5); }
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner {
    height: 60px;
    padding: 0 var(--space-4);
  }

  /* Ensure nav doesn't have scrollable overflow on mobile */
  .nav-logo-text { font-size: var(--text-sm); }

  .nav-mobile {
    top: 60px;
    max-height: calc(100svh - 60px);
  }

  body { padding-bottom: 76px; } /* room for sticky CTA */
}

/* ── Hero (homepage) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: var(--space-8) 0 var(--space-12); }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: calc(60px + var(--space-8)) var(--space-5) var(--space-8);
  }

  /* Hide before/after slider in hero on small phones — show full content */
  .before-after-card { display: block; }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .hero-ctas {
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }
  .hero-ctas .btn { width: 100%; text-align: center; }

  .hero-trust {
    gap: var(--space-4);
    flex-wrap: wrap;
  }
  .hero-trust-item { font-size: var(--text-xs); }
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    justify-items: start;
  }
}

/* ── Service cards ───────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .service-card { padding: var(--space-6); }
  .service-card-icon { width: 40px; height: 40px; }
}

/* ── Process steps ───────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .process-step-card { padding: var(--space-6); }
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .filter-btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .testimonial-card { padding: var(--space-6); }
  .testimonial-card p { font-size: var(--text-base); }
}

/* ── Stats row ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: var(--space-6) var(--space-4); }
  .stat-number { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .stat-label { font-size: var(--text-xs); }
}

/* ── CTA section ─────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }
  .cta-buttons .btn { width: 100%; }
  .cta-section p { font-size: var(--text-base); }
}

/* ── Lead form ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-card { padding: var(--space-6); }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group label { font-size: var(--text-sm); }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom on input focus */
    padding: var(--space-3) var(--space-4);
  }
}

/* ── Service hero (inner pages) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .service-hero {
    padding: calc(60px + var(--space-8)) 0 var(--space-10);
  }

  .service-hero h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
    margin-bottom: var(--space-4);
  }

  .service-hero p {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .service-hero-ctas {
    flex-direction: column;
    gap: var(--space-3);
  }
  .service-hero-ctas .btn { width: 100%; text-align: center; }

  /* Show media on medium phones, hide on very small */
  .service-hero-media { display: block; }
}

@media (max-width: 480px) {
  .service-hero-media { display: none; }
}

/* ── Two-col grid ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .two-col-grid { gap: var(--space-8); }
}

/* ── Highlight list (service detail) ────────────────────────────────────── */
@media (max-width: 540px) {
  .highlight-item { padding: var(--space-4); gap: var(--space-3); }
  .highlight-item h4 { font-size: var(--text-sm); }
  .highlight-item p  { font-size: var(--text-sm); }
}

/* ── Process numbered (service detail) ──────────────────────────────────── */
@media (max-width: 540px) {
  .process-step-n { gap: var(--space-4); }
  .process-step-n-number {
    width: 38px; height: 38px;
    font-size: var(--text-xs);
  }
  .process-step-n-content h3 { font-size: var(--text-sm); }
  .process-step-n-content p  { font-size: var(--text-sm); }

  .process-numbered-step { gap: var(--space-4); }
  .process-n-badge { width: 34px; height: 34px; font-size: var(--text-xs); }
  .process-n-content h3 { font-size: var(--text-sm); }
  .process-n-content p  { font-size: var(--text-sm); }
}

/* ── Applications grid (service detail) ─────────────────────────────────── */
@media (max-width: 540px) {
  .applications-grid { grid-template-columns: 1fr; }
  .application-card { padding: var(--space-6); }
}

/* ── Benefits grid (service detail) ─────────────────────────────────────── */
@media (max-width: 540px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: var(--space-5); }
}

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: calc(60px + var(--space-10)) 0 var(--space-10); }
  .page-hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .page-hero p  { font-size: var(--text-base); }
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .breadcrumb-list { font-size: var(--text-xs); padding-inline: var(--space-5); }
}

/* ── About story grid ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-story-grid { gap: var(--space-8); }
}

/* ── Areas grid ──────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .area-card { padding: var(--space-4); }
  .area-card h3 { font-size: var(--text-base); }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer { padding: var(--space-12) 0 var(--space-8); }
}

@media (max-width: 540px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  .footer-bottom-links { justify-content: center; }
}

/* ── Sticky CTA bar ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sticky-cta {
    padding: var(--space-3) var(--space-5);
    /* iOS safe-area: avoid overlap with home indicator */
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  }
  .sticky-cta .btn {
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
  }

  /* Add extra bottom padding to body so content isn't hidden behind CTA + safe area */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* iOS notch / Dynamic Island safe area for fixed nav */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    .nav {
      padding-top: env(safe-area-inset-top);
    }
    .nav-inner { height: auto; min-height: 60px; }
    /* Adjust hero and page-hero offsets to account for extra notch height */
    .hero-container { padding-top: calc(60px + env(safe-area-inset-top) + var(--space-8)); }
    .service-hero   { padding-top: calc(60px + env(safe-area-inset-top) + var(--space-8)); }
    .page-hero      { padding-top: calc(60px + env(safe-area-inset-top) + var(--space-10)); }
    .nav-mobile     { top: calc(60px + env(safe-area-inset-top)); }
  }
}

/* ── Clients marquee ─────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .client-logo {
    font-size: var(--text-base);
    padding-inline: var(--space-5);
  }
}

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .faq-question {
    font-size: var(--text-sm);
    padding: var(--space-5) 0;
    gap: var(--space-3);
  }
  .faq-answer-inner { font-size: var(--text-sm); }
}

/* ── Before/After sliders ────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .slider-handle::before {
    width: 36px;
    height: 36px;
  }
  .ba-label { font-size: 10px; padding: 2px var(--space-2); }
}

/* ── Form info sidebar ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .form-info { order: -1; } /* show contact info above form on mobile */
}

/* ── Accessibility: avoid hover states on touch ──────────────────────────── */
@media (hover: none) {
  .service-card:hover,
  .trust-item:hover,
  .benefit-card:hover { transform: none; box-shadow: none; }
}

/* ── Touch targets: min 44×44px on mobile ────────────────────────────────── */
@media (max-width: 768px) {
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-hamburger { padding: var(--space-3); }
  .faq-question { min-height: 44px; }
  a[href^="tel"], a[href^="mailto"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── Typography scaling ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }

  /* Ensure long words / URLs wrap */
  p, li { overflow-wrap: break-word; word-break: break-word; }
}

/* ── Thank You Page ────────────────────────────────────────────────────── */
.thankyou-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--white);
}
.thankyou-inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  padding: var(--space-16) var(--space-6);
}
.thankyou-icon {
  width: 80px; height: 80px;
  background: var(--grey-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-8);
}
.thankyou-icon svg { width: 40px; height: 40px; color: var(--accent); }
