/* ============================================================
   BATHROOM 104 - Luxury Editorial Design System
   Inspired by high-end interior design magazines
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Palette - Moss & Stone (dark olive dominant) */
  --clr-charcoal: #2C3520;          /* dark moss - primary dark tone */
  --clr-dark: #3A4428;
  --clr-body: #3D4534;              /* olive-tinted body text */
  --clr-muted: #6F7661;              /* olive-stone muted text */
  --clr-border: #AEBA97;             /* olive-stone border */
  --clr-warm-grey: #C2D1B7;          /* medium cool moss - section backgrounds */
  --clr-cream: #D6DFC2;              /* lighter moss cream */
  --clr-white: #FFFFFF;
  --clr-accent: #5E7046;             /* mid olive - accent for hovers & highlights */
  --clr-accent-light: #91A78D;       /* soft olive - for contrast on dark backgrounds */
  --clr-accent-dark: #2C3520;        /* matches charcoal */
  --clr-olive: #5E7046;
  --clr-olive-dark: #2C3520;
  --clr-olive-mist: #D5DDC4;

  /* Typography */
  --ff-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(4rem, 8vw, 8rem);
  --fs-hero: clamp(2.4rem, 4.5vw, 4rem);
  --fs-h1: clamp(2rem, 3.5vw, 3.2rem);
  --fs-h2: clamp(1.7rem, 2.8vw, 2.6rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.8rem);
  --fs-h4: clamp(1.1rem, 1.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-body-lg: 1.25rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  --lh-body: 1.8;
  --lh-heading: 1.15;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 8rem;
  --sp-section: clamp(5rem, 10vw, 9rem);

  /* Layout */
  --max-w: 1400px;
  --max-w-narrow: 900px;
  --max-w-text: 720px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: 0.4s;
  --dur-fast: 0.25s;
  --dur-slow: 0.8s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.08);
}

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

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

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--clr-body);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--clr-charcoal); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--clr-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.container--narrow { max-width: var(--max-w-narrow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--clr-charcoal);
}
h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-md); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-md); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-sm); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--sp-sm); }

p, li {
  font-family: var(--ff-serif);
  line-height: 1.85;
}
p { margin-bottom: var(--sp-sm); }
p:last-child { margin-bottom: 0; }

.editorial-text {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  line-height: 1.9;
  color: var(--clr-body);
}

.label-text {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--clr-muted);
}

.spaced-text {
  font-family: var(--ff-sans);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.4rem;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--clr-charcoal);
  background: transparent;
  color: var(--clr-charcoal);
  transition: all var(--dur) var(--ease);
}
.btn:hover {
  background: var(--clr-charcoal);
  color: var(--clr-white);
}

.btn--white {
  border-color: var(--clr-white);
  color: var(--clr-white);
}
.btn--white:hover {
  background: var(--clr-white);
  color: var(--clr-charcoal);
}

.btn--filled {
  background: var(--clr-charcoal);
  color: var(--clr-white);
  border-color: var(--clr-charcoal);
}
.btn--filled:hover {
  background: transparent;
  color: var(--clr-charcoal);
}

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

.btn--sm { padding: 0.7rem 1.6rem; font-size: var(--fs-label); }
.btn--lg { padding: 1.2rem 3rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--dur-slow) var(--ease), backdrop-filter var(--dur-slow) var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.3) 50%, transparent 100%);
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.site-header.scrolled::before {
  opacity: 0;
}
.site-header.scrolled {
  background: rgba(44,53,32,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.18);
}

.header-main {
  position: relative;
  z-index: 2;
  padding: 0.9rem 0 1rem;
  min-height: 92px;
  transition: min-height var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.scrolled .header-main {
  padding: 0.55rem 0 0.7rem;
  min-height: 70px;
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: inherit;
}

/* Logo / Branding */
.site-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}
.site-brand__number {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1;
  transition: color var(--dur-slow) var(--ease), font-size var(--dur) var(--ease);
}
.site-brand__arc {
  width: clamp(65px, 9vw, 95px);
  height: auto;
  margin: -0.3rem auto 0;
  transition: width var(--dur) var(--ease);
}
.site-header.scrolled .site-brand__number { font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.site-header.scrolled .site-brand__arc { width: clamp(55px, 7.5vw, 80px); }
.site-brand__arc path {
  stroke: var(--clr-accent);
  transition: stroke var(--dur-slow) var(--ease);
}
.site-brand__text {
  font-family: var(--ff-sans);
  font-size: clamp(0.55rem, 0.8vw, 0.7rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: -0.3rem;
  transition: color var(--dur-slow) var(--ease);
}
.site-brand__sub {
  font-family: var(--ff-sans);
  font-size: clamp(0.5rem, 0.7vw, 0.6rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.15rem;
  transition: color var(--dur-slow) var(--ease);
}

/* Scrolled brand colors - light text on dark moss header */
.site-header.scrolled .site-brand__number { color: var(--clr-white); }
.site-header.scrolled .site-brand__text { color: rgba(255,255,255,0.85); }
.site-header.scrolled .site-brand__sub { color: rgba(255,255,255,0.7); }

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.nav-left a, .nav-right a:not(.btn) {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav-left a:hover, .nav-right a:not(.btn):hover {
  color: var(--clr-white);
}
.nav-left a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-white);
  transition: width var(--dur) var(--ease);
}
.nav-left a:hover::after,
.nav-left a.active::after { width: 100%; }

/* Scrolled nav colors - keep text light against dark moss header */
.site-header.scrolled .nav-left a,
.site-header.scrolled .nav-right a:not(.btn) {
  color: rgba(255,255,255,0.9);
}
.site-header.scrolled .nav-left a:hover,
.site-header.scrolled .nav-right a:not(.btn):hover {
  color: var(--clr-white);
}
.site-header.scrolled .nav-left a::after {
  background: var(--clr-white);
}
.site-header.scrolled .nav-right .btn--white {
  border-color: var(--clr-white);
  color: var(--clr-white);
}
.site-header.scrolled .nav-right .btn--white:hover {
  background: var(--clr-white);
  color: var(--clr-charcoal);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -1.5rem;
  min-width: 260px;
  background: var(--clr-white);
  box-shadow: var(--shadow-lg);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.5rem;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-body) !important;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  background: var(--clr-warm-grey);
  color: var(--clr-charcoal) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--clr-white);
  transition: all var(--dur) var(--ease);
}
.site-header.scrolled .hamburger span { background: var(--clr-white); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--clr-white);
  z-index: 999;
  padding: 5rem 2.5rem 2.5rem;
  transition: right var(--dur) var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--clr-charcoal);
  border-bottom: 1px solid var(--clr-border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--clr-accent); }
.mobile-nav a.btn--filled {
  color: var(--clr-white);
  text-align: center;
  margin-top: var(--sp-md);
}
.mobile-nav a.btn--filled:hover { color: var(--clr-white); }

.mobile-nav__group {
  border-bottom: 1px solid var(--clr-border);
}
.mobile-nav__group > summary {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--clr-charcoal);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.mobile-nav__group > summary::-webkit-details-marker { display: none; }
.mobile-nav__group > summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--clr-accent);
  transition: transform var(--dur-fast) var(--ease);
}
.mobile-nav__group[open] > summary::after {
  content: '\2212';
}
.mobile-nav__group > a {
  padding-left: 1.25rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-body);
}
.mobile-nav__group > a:last-of-type { border-bottom: none; }
.mobile-nav__group > a:first-of-type { padding-top: 0.6rem; }
.mobile-nav__group > a:hover { color: var(--clr-accent); }
.mobile-nav .btn { margin-top: var(--sp-lg); width: 100%; }
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.4) 0%, rgba(26,26,26,0.1) 40%, rgba(26,26,26,0.15) 100%);
  z-index: 1;
}
.hero__content-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(50%, 620px);
  z-index: 2;
  background: rgba(245,243,240,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__content-panel h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-lg);
}
.hero__content-panel p {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  line-height: 1.8;
  color: var(--clr-body);
  margin-bottom: var(--sp-lg);
}

/* ---------- PAGE BANNER (Subpages) ---------- */
.page-banner {
  position: relative;
  min-height: clamp(300px, 40vh, 450px);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-xl);
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.5) 0%, rgba(26,26,26,0.3) 60%, rgba(26,26,26,0.6) 100%);
  z-index: 1;
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner__content {
  position: relative;
  z-index: 2;
  color: var(--clr-white);
}
.page-banner__content h1 {
  color: var(--clr-white);
  font-family: var(--ff-serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  margin-bottom: var(--sp-xs);
}
.page-banner .breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.6);
}
.page-banner .breadcrumb a { color: rgba(255,255,255,.75); }
.page-banner .breadcrumb a:hover { color: var(--clr-white); }

/* ---------- SECTIONS ---------- */
.section { padding: var(--sp-section) 0; }
.section--warm { background: var(--clr-warm-grey); }
.section--cream { background: var(--clr-cream); }
.section--dark {
  background: var(--clr-charcoal);
  color: rgba(255,255,255,.85);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--clr-white); }

/* Accessible Bathrooms page: prevent inherited semi-bold body copy */
.accessible-page .page-banner__content p,
.accessible-page .section p,
.accessible-page .section li,
.accessible-page .section a,
.accessible-page .section .editorial-text,
.accessible-page .feature-card p,
.accessible-page .cta-band p {
  font-weight: 400;
}

/* ---------- EDITORIAL LAYOUT ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.editorial--reverse { direction: rtl; }
.editorial--reverse > * { direction: ltr; }

.editorial__image {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.editorial__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.editorial:hover .editorial__image img {
  transform: scale(1.03);
}

.editorial__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem);
}
.editorial__text .label-text { margin-bottom: var(--sp-sm); }
.editorial__text h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  margin-bottom: var(--sp-md);
}
.editorial__text p {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  line-height: 1.85;
  color: var(--clr-body);
}
.editorial__text .btn { margin-top: var(--sp-lg); align-self: flex-start; }

/* Overlap variant */
.editorial--overlap {
  position: relative;
}
.editorial--overlap .editorial__text {
  position: relative;
  z-index: 2;
  background: var(--clr-warm-grey);
  margin: var(--sp-xl) 0;
  margin-left: -4rem;
}
.editorial--overlap.editorial--reverse .editorial__text {
  margin-left: 0;
  margin-right: -4rem;
}
.editorial--bordered .editorial__text {
  border: 2px solid #000;
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover img {
  transform: scale(1.05);
}
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.1) 50%, transparent 100%);
  z-index: 1;
  transition: background var(--dur) var(--ease);
}
.service-card:hover .service-card__overlay {
  background: linear-gradient(0deg, rgba(26,26,26,0.8) 0%, rgba(26,26,26,0.2) 60%, rgba(26,26,26,0.1) 100%);
}
.service-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--clr-white);
}
.service-card__content h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--clr-white);
  margin-bottom: var(--sp-xs);
}
.service-card__content p {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.8);
  max-width: 280px;
}

/* ---------- FEATURE LIST ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
}
.feature-item { text-align: center; padding: var(--sp-lg); }
.feature-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-md);
  color: var(--clr-accent);
}
.feature-item h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  margin-bottom: var(--sp-sm);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { text-align: center; }
.testimonial {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: var(--sp-xl) 0;
}
.testimonial__quote {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-lg);
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after { content: '\201D'; }
.testimonial__author {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: var(--sp-xl) 0;
}
.stat__number {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--clr-charcoal);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}
.stat__label {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* ---------- GALLERY GRID ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.gallery-grid__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-grid__item:hover img { transform: scale(1.08); }

/* Gallery masonry variant */
.gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}
.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  cursor: pointer;
}
.gallery-masonry__item img {
  width: 100%;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-masonry__item:hover img { transform: scale(1.04); }

/* ---------- CTA BAND ---------- */
.cta-band {
  padding: var(--sp-section) 0;
  text-align: center;
  background: var(--clr-charcoal);
  color: var(--clr-white);
}
.cta-band h2 {
  font-family: var(--ff-serif);
  font-weight: 300;
  color: var(--clr-white);
  margin-bottom: var(--sp-sm);
}
.cta-band p {
  color: rgba(255,255,255,.7);
  margin-bottom: var(--sp-lg);
  max-width: var(--max-w-text);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CONTACT FORM ---------- */
.contact-form { max-width: 600px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}
.form-group { margin-bottom: var(--sp-lg); }
.form-group label {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--clr-muted);
  margin-bottom: var(--sp-xs);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  color: var(--clr-charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--clr-border);
  transition: border-color var(--dur-fast) var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--clr-accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  padding: var(--sp-lg);
  text-align: center;
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  color: var(--clr-olive-dark);
}

/* ---------- SPLIT LAYOUT (form + info) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split__text { min-width: 0; }
.split__img { min-width: 0; }

.contact-info {
  background: var(--clr-warm-grey);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.contact-info__block {
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--clr-border);
}
.contact-info__block:first-child { padding-top: 0; }
.contact-info__block:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info__block h3 {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin: 0 0 var(--sp-xs);
}
.contact-info__block p {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--clr-charcoal);
  margin: 0;
  word-break: break-word;
}
.contact-info__block p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.contact-info__block p a:hover {
  border-bottom-color: var(--clr-charcoal);
}

/* Contact page: prevent any inherited semi-bold text in body copy */
.contact-page .section p,
.contact-page .section li,
.contact-page .contact-info__block p,
.contact-page .contact-info__block p a,
.contact-page .cta-band p {
  font-weight: 400;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-xl); }
}

/* ---------- BLOG CARDS ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-lg);
}
.blog-card {}
.blog-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: var(--sp-md);
  background-size: cover;
  background-position: center;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__date {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: var(--sp-xs);
}
.blog-card h3 {
  font-family: var(--ff-serif);
  font-weight: 400;
}
.blog-card h3 a { color: var(--clr-charcoal); }
.blog-card h3 a:hover { color: var(--clr-accent); }

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-lg);
}
.pricing-card {
  border: 1px solid var(--clr-border);
  padding: var(--sp-xl);
  text-align: center;
  transition: border-color var(--dur) var(--ease);
}
.pricing-card:hover { border-color: var(--clr-accent); }
.pricing-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--sp-sm);
}
.pricing-card__price {
  font-family: var(--ff-serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-md);
}
.pricing-card__features {
  margin-bottom: var(--sp-lg);
  color: var(--clr-muted);
}
.pricing-card__features li {
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--clr-warm-grey);
}

/* Pricing page info cards */
.pricing-info-card {
  max-width: 750px;
  margin: 0 auto;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
  text-align: center;
}

.pricing-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-info-list li {
  font-family: var(--ff-serif);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--clr-body);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--clr-warm-grey);
}

.pricing-info-list li:last-child {
  border-bottom: none;
}

/* Reduce gap beneath the request quote CTA */
.pricing-quote-cta {
  padding-bottom: var(--sp-md);
}

.pricing-note-section {
  padding-top: 0 !important;
}

/* Desktop pricing tiers: keep all four cards on one row */
@media (min-width: 901px) {
  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-md);
  }

  .pricing-grid .pricing-card {
    padding: clamp(1.25rem, 1.6vw, 2rem);
  }
}

/* ---------- PROCESS / HOW IT WORKS ---------- */
.section--grey { background: var(--clr-warm-grey); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 10vw, 9rem);
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "number  image"
    "content image";
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 0;
  align-items: start;
  counter-increment: step;
}

.process-step__number {
  grid-area: number;
  font-family: var(--ff-serif);
  font-size: clamp(5rem, 10vw, 11rem);
  font-weight: 300;
  line-height: 0.75;
  color: var(--clr-accent);
  opacity: 0.32;
  letter-spacing: -0.04em;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.process-step__img {
  grid-area: image;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  width: 100%;
  min-height: 100%;
  box-shadow: var(--shadow-lg);
}
.process-step__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.process-step:hover .process-step__img img { transform: scale(1.04); }

.process-step__content {
  grid-area: content;
  padding-top: var(--sp-sm);
}
.process-step__content::before {
  content: 'Step ' counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: var(--sp-md);
}
.process-step__content h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  margin: 0 0 var(--sp-md);
  line-height: 1.15;
  color: var(--clr-charcoal);
}
.process-step__content p {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  line-height: 1.85;
  color: var(--clr-body);
  margin-bottom: var(--sp-md);
}
.process-step__content p:last-of-type { margin-bottom: 0; }
.process-step__content::after {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  background: var(--clr-accent);
  margin-top: var(--sp-lg);
}

/* ---------- REVIEWS ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--sp-lg);
}
.review-card {
  padding: var(--sp-xl);
  border: 1px solid var(--clr-border);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.review-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
}
.review-card__stars {
  color: var(--clr-accent);
  font-size: 1.2rem;
  margin-bottom: var(--sp-md);
  letter-spacing: 0.1em;
}
.review-card__text {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  font-style: italic;
  line-height: 1.7;
  color: var(--clr-body);
  margin-bottom: var(--sp-md);
}
.review-card__author {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* ---------- DIVIDER ---------- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--clr-border);
  margin: var(--sp-lg) auto;
}
.divider--left { margin-left: 0; }
.divider--accent { background: var(--clr-accent); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--clr-charcoal);
  color: rgba(255,255,255,.6);
  padding: var(--sp-2xl) 0 var(--sp-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .site-brand__number {
  font-size: 2.5rem;
  color: var(--clr-white);
}
.footer-brand .site-brand__text,
.footer-brand .site-brand__sub {
  color: rgba(255,255,255,.5);
}
.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--sp-md);
}
.footer-col a {
  display: block;
  padding: 0.4rem 0;
  color: rgba(255,255,255,.65);
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col a:hover { color: var(--clr-accent-light); }
.footer-bottom {
  padding-top: var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ---------- CONTENT PAGES ---------- */
.content-page {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: var(--sp-section) 0;
}
.content-page h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  margin-top: var(--sp-xl);
}
.content-page h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  margin-top: var(--sp-lg);
}
.content-page ul, .content-page ol {
  padding-left: 1.5rem;
  margin-bottom: var(--sp-md);
}
.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }
.content-page li { margin-bottom: var(--sp-xs); }

/* ---------- TWO-COL LAYOUT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--clr-white);
  font-size: 2rem;
  font-family: var(--ff-sans);
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
  z-index: 900;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--clr-charcoal); border-color: var(--clr-charcoal); }
.back-to-top:hover svg { stroke: var(--clr-white); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--clr-charcoal); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 0.12s);
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial__image { min-height: 400px; }
  .editorial--overlap .editorial__text { margin-left: 0; margin-right: 0; }
  .editorial--overlap.editorial--reverse .editorial__text { margin-left: 0; margin-right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
}

@media (max-width: 900px) {
  .nav-left, .nav-right > a:not(.btn), .site-brand { display: none; }
  .hamburger { display: flex; }
  .nav-right .btn { display: none; }

  .header-main .container {
    justify-content: space-between;
  }

  /* Show logo image on mobile instead */
  .site-logo-mobile { display: block; }
  /* Start 2x larger on initial mobile render, then shrink on scroll */
  .site-logo-mobile img { height: 80px; width: auto; transition: height var(--dur) var(--ease); }
  /* On scroll, return to the previous mobile logo size */
  .site-header.scrolled .site-logo-mobile img { height: 40px; }
  /* Compress the header on scroll so more page is visible */
  .site-header.scrolled .header-main {
    min-height: 64px;
    padding: 0.7rem 0;
  }

  /* Mobile nav drawer - sit ABOVE the fixed header so links are clickable */
  .mobile-nav {
    z-index: 1002;
    padding-top: 5rem;
  }
  .nav-overlay { z-index: 1001; }
  /* Hamburger floats above the drawer so it can close it */
  .hamburger {
    position: fixed;
    top: 1.6rem;
    right: 1.5rem;
    z-index: 1003;
  }
  .site-header.scrolled .hamburger span { background: var(--clr-accent-light); }
  .mobile-nav.open ~ .site-header .hamburger span,
  .hamburger.open span { background: var(--clr-charcoal); }

  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
  .gallery-masonry { columns: 2; }
}

@media (max-width: 767px) {
  .hero__content-panel {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: var(--sp-xl) var(--sp-md);
  }
  .hero {
    flex-direction: column;
    min-height: auto;
  }
  .hero-slider {
    position: relative;
    min-height: 60vh;
  }
  .hero-slide {
    min-height: 60vh;
  }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16/9; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 1; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-sm); text-align: center; }

  .process-step {
    grid-template-columns: 1fr;
    grid-template-areas:
      "number"
      "image"
      "content";
    row-gap: var(--sp-md);
  }
  .process-step__img { aspect-ratio: 4 / 3; }
  .process-step__number {
    font-size: clamp(5rem, 18vw, 8rem);
    margin-bottom: -0.2em;
  }
}

@media (max-width: 479px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* ========== RECOVERED COMPONENTS (was missing) ============== */
/* ============================================================ */

/* ---------- Button variants ---------- */
.btn--primary {
  background: var(--clr-charcoal);
  color: var(--clr-white);
  border-color: var(--clr-charcoal);
}
.btn--primary:hover {
  background: transparent;
  color: var(--clr-charcoal);
}
.btn--outline {
  background: transparent;
  border-color: var(--clr-charcoal);
  color: var(--clr-charcoal);
}
.btn--outline:hover {
  background: var(--clr-charcoal);
  color: var(--clr-white);
}

/* ---------- Page banner overlay ---------- */
.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.page-banner > .container { position: relative; z-index: 2; }

/* ---------- Section intro / subtitle ---------- */
.section-subtitle {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin: 0 0 var(--sp-sm);
}
.section-intro {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--clr-body);
  max-width: var(--max-w-text);
  margin: var(--sp-md) auto 0;
}

/* ---------- Blog intro (mobile only) ---------- */
.blog-intro-mobile {
  display: none;
}

/* ---------- Feature grid / cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
}
.feature-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card:hover {
  border-color: var(--clr-charcoal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--clr-charcoal);
  margin: 0 0 var(--sp-sm);
}
.feature-card p {
  font-family: var(--ff-serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-body);
  margin: 0;
}
.section--grey .feature-card,
.section--warm .feature-card { background: var(--clr-white); }

/* ---------- Split reverse + image variant ---------- */
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

/* ---------- Stat block ---------- */
.stat {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
}

/* ---------- FAQ (flat Q&A layout) ---------- */
.faq-category {
  max-width: var(--max-w-narrow);
  margin: 0 auto var(--sp-2xl);
}
.faq-category:last-child { margin-bottom: 0; }
.faq-category > h2,
.faq-intro h2 {
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--clr-charcoal);
  margin: 0 0 var(--sp-lg);
  text-align: center;
  padding-bottom: 0;
  border-bottom: none;
}
.faq-question {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--clr-charcoal);
  margin: var(--sp-lg) 0 0;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  position: relative;
  padding: 0.35rem 2rem 0.35rem 0;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-sans);
  font-size: 1.1rem;
  color: var(--clr-muted);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.faq-question:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 4px;
}

.faq-item.open .faq-question::after {
  content: '\2212';
  color: var(--clr-charcoal);
}

.faq-answer {
  font-family: var(--ff-serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-body);
  text-align: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-bottom: 0;
  border-bottom: none;
  transition: max-height var(--dur) var(--ease), opacity var(--dur-fast) var(--ease), padding-bottom var(--dur-fast) var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--clr-border);
}

.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: var(--sp-sm); }
.faq-category .faq-list .faq-item:last-child .faq-answer { border-bottom: none; }

/* ---------- Pricing card internals ---------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card__header {
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-md);
}
.pricing-card__header h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--clr-charcoal);
  margin: 0 0 var(--sp-xs);
}
.pricing-card__body {
  flex: 1;
  text-align: left;
}
.pricing-card__body ul,
.pricing-card__body .pricing-card__features {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
}
.pricing-card__body li {
  padding: 0.2rem 0;
  line-height: 1.75;
  font-family: var(--ff-serif);
  font-size: var(--fs-body);
  color: var(--clr-body);
  border-bottom: none;
  text-align: center;
}
.pricing-card__body li::marker {
  color: var(--clr-muted);
}
.pricing-card__body li:last-child { border-bottom: none; }
.pricing-card__footer {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--clr-border);
}
.pricing-card--featured {
  border-color: var(--clr-accent);
  border-width: 2px;
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.pricing-card--featured:hover { border-color: var(--clr-accent); }
.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--clr-charcoal);
  color: var(--clr-white);
  padding: 0.4rem 1.2rem;
  font-family: var(--ff-sans);
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Testimonials grid / cards ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-lg);
}
.testimonial-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.testimonial-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
}
.testimonial-card__stars {
  color: #D4A942;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-md);
}
.testimonial-card__quote {
  font-family: var(--ff-serif);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--clr-body);
  font-style: italic;
  margin: 0 0 var(--sp-md);
  flex: 1;
}
.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }
.testimonial-card__author {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin: 0;
}

/* ---------- Service area cards ---------- */
.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
}
.service-area-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-area-card:hover {
  border-color: var(--clr-charcoal);
  box-shadow: var(--shadow-md);
}
.service-area-card h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--clr-charcoal);
  margin: 0 0 var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--clr-border);
}
.service-area-card ul {
  font-family: var(--ff-sans);
  font-size: var(--fs-small);
  color: var(--clr-body);
  margin: 0;
}

/* ---------- Responsive overrides for recovered components ---------- */
@media (max-width: 900px) {
  .testimonials-grid,
  .service-areas-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }

  /* Item 10: process step number - smaller, less dominant on mobile */
  .process-step__number {
    font-size: clamp(3rem, 13vw, 5rem) !important;
    line-height: 0.85;
    margin-bottom: var(--sp-xs);
  }
}

/* ============================================================
   MOBILE REFINEMENTS - desktop layout untouched
   ============================================================ */

@media (max-width: 767px) {
  /* Pricing page: reduce gap between quote CTA button and note text */
  .pricing-quote-cta {
    padding-bottom: var(--sp-md);
  }
  .pricing-note-section {
    padding-top: var(--sp-xs) !important;
  }

  /* Global mobile content centering (enabled per-page via body.mobile-centered) */
  .mobile-centered .section,
  .mobile-centered .cta-band,
  .mobile-centered .site-footer,
  .mobile-centered .section h1,
  .mobile-centered .section h2,
  .mobile-centered .section h3,
  .mobile-centered .section h4,
  .mobile-centered .section p,
  .mobile-centered .section li,
  .mobile-centered .section a,
  .mobile-centered .section .editorial-text,
  .mobile-centered .section .section-subtitle,
  .mobile-centered .section .section-intro,
  .mobile-centered .cta-band h1,
  .mobile-centered .cta-band h2,
  .mobile-centered .cta-band h3,
  .mobile-centered .cta-band p,
  .mobile-centered .cta-band a,
  .mobile-centered .site-footer h4,
  .mobile-centered .site-footer p,
  .mobile-centered .site-footer a,
  .mobile-centered .site-footer span,
  .mobile-centered .site-footer li,
  .mobile-centered .site-footer .footer-col,
  .mobile-centered .site-footer .footer-brand {
    text-align: center !important;
  }

  /* Keep CTA buttons centered in flex-based editorial layouts */
  .mobile-centered .editorial__text .btn {
    align-self: center !important;
  }

  /* Override inline `text-align:left` styles on mobile */
  .mobile-centered [style*="text-align:left"] {
    text-align: center !important;
  }

  /* Re-assert banner/header alignment after generic inline-style override */
  .mobile-centered .page-banner,
  .mobile-centered .page-banner h1,
  .mobile-centered .page-banner h2,
  .mobile-centered .page-banner h3,
  .mobile-centered .page-banner .breadcrumb,
  .mobile-centered .page-banner .breadcrumb a,
  .mobile-centered .page-banner .page-banner__content {
    text-align: left !important;
  }

  /* Why Choose Us page: center "What Sets Us Apart" section text on mobile */
  .why-choose-apart,
  .why-choose-apart h2,
  .why-choose-apart h3,
  .why-choose-apart p {
    text-align: center !important;
  }

  /* About page: center text blocks from "Our Approach" onward on mobile */
  .about-page .about-mobile-center,
  .about-page .about-mobile-center h2,
  .about-page .about-mobile-center h3,
  .about-page .about-mobile-center p {
    text-align: center !important;
  }
  .about-page .about-mobile-center .split__text {
    align-items: center;
  }
  .about-page .about-mobile-center .split__text .btn {
    align-self: center;
  }

  .blog-intro-mobile {
    display: block;
    padding-top: var(--sp-xl);
    padding-bottom: var(--sp-lg);
  }

  /* 1. Services feature cards - override inline `flex:0 1 320px` so they fit */
  .feature-grid > .feature-card {
    flex: 0 1 100% !important;
    max-width: 100%;
  }

  /* 2 & 9. About page custom 2-col grid - collapse to 1 col, drop orphan max-width */
  section .container .grid[style*="grid-template-columns:repeat(2"],
  section .container .grid[style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  section .container .grid > div[style*="grid-column:1 / -1"],
  section .container .grid > div[style*="grid-column: 1 / -1"] {
    max-width: none !important;
    justify-self: stretch !important;
  }

  /* 4. Page banner - mobile-only framing (desktop untouched) */
  .page-banner {
    height: clamp(240px, 44vh, 340px);
    min-height: 240px;
    padding-bottom: clamp(1.25rem, 5vw, 2rem);
  }
  .page-banner > img,
  .page-banner__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--banner-mobile-focus, 50% 28%);
  }
  .page-banner__bg {
    background-size: cover;
    background-position: var(--banner-mobile-focus, 50% 28%);
  }
  .page-banner::before {
    background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.42) 100%);
  }
  .page-banner__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.36) 100%);
  }
  .page-banner__content h1 {
    font-size: clamp(1.6rem, 7.4vw, 2.15rem);
    line-height: 1.12;
  }
  .page-banner .breadcrumb {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* 5. Service cards - wide landscape rather than tall portrait when stacked */
  .service-card {
    aspect-ratio: 16 / 10;
  }

  /* 6. Hero content panel - reset desktop offsets */
  .hero__content-panel {
    bottom: auto !important;
    right: auto !important;
    min-height: auto !important;
    padding: var(--sp-xl) var(--sp-md);
  }

  /* 8. CTA button pairs (centered flex wrappers) - stack vertically, full-width */
  .cta-band div[style*="display:flex"],
  section div[style*="display:flex"][style*="justify-content:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-band div[style*="display:flex"] .btn,
  section div[style*="display:flex"][style*="justify-content:center"] .btn {
    width: 100%;
  }

  /* 11. Hamburger tap target - pad to 44px for fingers */
  .hamburger {
    width: 44px;
    height: 44px;
    padding: 8px;
    box-sizing: content-box;
  }

  /* 12. Form inputs - add horizontal padding on mobile */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.75rem 0.75rem;
  }

  /* 14. Phone/email links in contact info - make them tappable */
  .contact-info__block p a {
    display: inline-block;
    padding: 0.4rem 0;
    min-height: 32px;
  }

  /* 16. Testimonial quote - clamp font so long quotes don't overflow */
  .testimonial-card__quote {
    font-size: clamp(1rem, 3.2vw, 1.25rem);
  }
}

@media (max-width: 479px) {
  .page-banner {
    height: clamp(220px, 40vh, 300px);
    min-height: 220px;
  }
  .page-banner > img,
  .page-banner__bg img {
    object-position: var(--banner-mobile-focus-xs, var(--banner-mobile-focus, 50% 24%));
  }
  .page-banner__bg {
    background-position: var(--banner-mobile-focus-xs, var(--banner-mobile-focus, 50% 24%));
  }

  /* 7. Gallery grid - single column on smallest phones */
  .gallery-grid { grid-template-columns: 1fr !important; }

  /* 13. Breadcrumbs - wrap nicely, smaller font */
  .page-banner .breadcrumb {
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    row-gap: 0.25rem;
  }

  /* 15. Testimonial card padding - minimum breathing room */
  .testimonial-card {
    padding: 1.25rem;
  }

  /* 17. Stats bar - single column on tiny phones */
  .stats-bar { grid-template-columns: 1fr !important; gap: var(--sp-md); }

  /* 18. Back-to-top - closer to corner, smaller */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}
