/* ============================================================
   MGM Floors LLC — Premium Website Stylesheet
   Color Palette: Light & Airy — Cream/White + Natural Wood + MGM Blue
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors */
  --mgm-blue: hsl(209, 62%, 40%);
  --mgm-blue-dark: hsl(209, 65%, 28%);
  --mgm-blue-light: hsl(209, 55%, 55%);
  --mgm-blue-faint: hsl(209, 40%, 96%);

  /* Neutrals */
  --cream: hsl(36, 25%, 97%);
  --cream-mid: hsl(36, 20%, 93%);
  --warm-white: hsl(30, 15%, 98%);
  --taupe: hsl(30, 12%, 85%);
  --taupe-mid: hsl(30, 10%, 65%);
  --charcoal: hsl(220, 10%, 20%);
  --charcoal-mid: hsl(220, 8%, 35%);
  --charcoal-light: hsl(220, 6%, 50%);

  /* Wood Accents */
  --wood-warm: hsl(30, 35%, 55%);
  --wood-light: hsl(36, 30%, 78%);
  --wood-dark: hsl(22, 30%, 35%);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --shadow-blue: 0 8px 32px rgba(32, 92, 152, 0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --section-padding: 7rem 0;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section-padding {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--cream);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mgm-blue);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.section-title em {
  font-style: italic;
  color: var(--mgm-blue);
}

.section-title--left {
  text-align: left;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  line-height: 1.75;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.28s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--mgm-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--mgm-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(32, 92, 152, 0.35);
}

.btn-ghost {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background-color: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background-color: #fff;
  color: var(--mgm-blue);
}
.btn-white:hover, .btn-white:focus-visible {
  background-color: var(--mgm-blue-faint);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), height 0.3s var(--ease-out);
}

.navbar.scrolled {
  background: hsl(36, 30%, 78%);;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
  height: 68px;
}

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

.nav-logo-img {
  height: 62px;
  width: auto;
  transition: height 0.3s var(--ease-out), filter 0.4s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.navbar.scrolled .nav-logo-img {
  height: 51px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.navbar.scrolled .nav-link {
  color: var(--charcoal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--mgm-blue);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after, .nav-link:focus-visible::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--mgm-blue);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  box-shadow: var(--shadow-blue);
}

.navbar:not(.scrolled) .nav-cta {
  background-color: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.6);
  box-shadow: none;
}

.navbar:not(.scrolled) .nav-cta:hover {
  background-color: rgba(255,255,255,0.35);
}

.nav-cta:hover, .nav-cta:focus-visible {
  background-color: var(--mgm-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.navbar.scrolled .hamburger-line {
  background: var(--charcoal);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(25, 35, 45, 0.45) 0%,
    rgba(25, 35, 45, 0.55) 50%,
    rgba(25, 35, 45, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  animation: heroFadeIn 1.2s var(--ease-out) 0.3s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero-headline em {
  font-style: italic;
  color: var(--wood-light);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: min(100%, 280px);
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;

  /* Always span and center within the hero */
  left: 0;
  right: 0;

  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;

  opacity: 0.7;
  animation: heroScrollFadeIn 2.0s var(--ease-out) 1.5s both;
}

@keyframes heroScrollFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

.hero-slide-dots {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ===== QUALITY FEATURES ===== */
.quality-strip {
  background: var(--mgm-blue);
  color: #fff;
  padding: clamp(3.75rem, 6vw, 5.25rem) 0;
}

.quality-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.quality-feature {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  padding: clamp(0.5rem, 1vw, 0.85rem) clamp(2rem, 4.5vw, 4.25rem) clamp(2.75rem, 4vw, 3.5rem) 0;
}

.quality-feature:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(2rem, 4.5vw, 4.25rem);
  border-left: 1px solid rgba(229, 211, 185, 0.3);
}

.quality-feature:nth-child(n + 3) {
  padding-top: clamp(2.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(0.5rem, 1vw, 0.85rem);
  border-top: 1px solid rgba(229, 211, 185, 0.3);
}

.quality-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--wood-light);
}

.quality-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.quality-copy h2 {
  margin-bottom: 0.55rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.08;
}

.quality-copy p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== HARDWOOD FLOORING SERVICES ===== */
.services {
  position: relative;
  padding: clamp(5rem, 7vw, 6rem) 0 clamp(4.5rem, 6vw, 5.5rem);
  background: var(--cream);
  border-bottom: 1px solid var(--cream-mid);
  overflow: hidden;
}

.services > .container {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(28vw, 360px);
  height: 1px;
  background: var(--wood-warm);
  opacity: 0.7;
  transform: translateX(-50%);
}

.services-header {
  max-width: 780px;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  text-align: center;
}

.services-header .section-eyebrow {
  margin-bottom: 0.9rem;
}

.services-header .section-title {
  margin-bottom: 0.9rem;
}

.services-intro {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--charcoal-mid);
  font-size: 1.02rem;
  line-height: 1.8;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  color: var(--wood-dark);
}

.service-icon::after {
  display: none;
}

.service-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon .service-icon-accent {
  stroke: var(--mgm-blue);
}

.service-card-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  width: 100%;
  margin-bottom: 0.65rem;
}

.service-card h3 {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.14;
  text-wrap: balance;
}

.service-card h3 a {
  color: inherit;
  pointer-events: auto;
}

.service-card h3 a:focus-visible {
  outline: 2px solid rgba(32, 92, 152, 0.35);
  outline-offset: 3px;
}

.service-card p {
  margin-top: 0;
  color: var(--charcoal-mid);
  font-size: 0.88rem;
  line-height: 1.6;
}

.service-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding-top: 0;
  color: var(--mgm-blue-dark);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-underline-offset: 0.22em;
  pointer-events: auto;
}

.service-detail-link:hover,
.service-detail-link:focus-visible {
  color: var(--mgm-blue);
  text-decoration: underline;
}

.service-detail-link:focus-visible {
  outline: 2px solid rgba(32, 92, 152, 0.35);
  outline-offset: 3px;
}

.services-comparison {
  position: relative;
  width: min(82vw, 1280px);
  height: clamp(300px, 26vw, 380px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(32, 92, 152, 0.24);
  border-radius: 6px;
  background: var(--cream-mid);
  box-shadow: 0 22px 60px rgba(23, 34, 45, 0.13);
}

.comparison-slider {
  --comparison-position: 50%;
  --before-object-position: 50% 50%;
  --after-object-position: 50% 50%;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.services-comparison .comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  image-rendering: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.services-comparison .comparison-image--before {
  z-index: 0;
  object-position: var(--before-object-position);
}

.services-comparison .comparison-image--after {
  z-index: 1;
  object-position: var(--after-object-position);
  clip-path: inset(0 0 0 var(--comparison-position));
}

.comparison-label {
  position: absolute;
  z-index: 3;
  top: 1rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  background: rgba(12, 25, 38, 0.58);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.comparison-label--before {
  left: 1rem;
}

.comparison-label--after {
  right: 1rem;
}

.comparison-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.62);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  color: var(--mgm-blue-dark);
  transform: translate(-50%, -50%);
}

.comparison-handle::before {
  content: '';
  position: absolute;
  inset: -6px;
}

.comparison-handle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comparison-range {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.comparison-slider:focus-within .comparison-handle {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(32, 92, 152, 0.72), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.services-specialties {
  width: min(92vw, 1480px);
  min-width: 0;
  max-width: 100%;
  margin: clamp(2.25rem, 4vw, 3.25rem) auto 0;
}

.services-specialties-label {
  margin-bottom: 0.75rem;
  text-align: center;
}

.services-rail {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0;
  cursor: grab;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.services-rail.is-autoplaying {
  scroll-snap-type: none;
}

.services-rail::-webkit-scrollbar {
  display: none;
}

.services-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.services-track {
  display: flex;
  align-items: stretch;
  gap: var(--service-rail-gap);
  width: max-content;
  padding: 0.35rem 0 0.8rem;
}

.services-rail-shell {
  --service-rail-gap: clamp(1rem, 1.5vw, 1.5rem);
  position: relative;
}

.services-rail-shell::before,
.services-rail-shell::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0.8rem;
  width: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

.services-rail-shell::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}

.services-rail-shell::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.services-rail-shell.can-scroll-left::before,
.services-rail-shell.can-scroll-right::after {
  opacity: 0.82;
}

.services-rail-control {
  position: absolute;
  z-index: 4;
  top: calc(50% - 0.4rem);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 92, 152, 0.2);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 5px 18px rgba(23, 34, 45, 0.16);
  color: var(--mgm-blue-dark);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), background-color 0.22s var(--ease-out);
}

.services-rail-control--prev {
  left: -18px;
}

.services-rail-control--next {
  right: -18px;
}

.can-scroll-left .services-rail-control--prev,
.can-scroll-right .services-rail-control--next {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.services-rail-control svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-rail-control:hover {
  background: #fff;
}

.services-rail-control:focus-visible {
  outline: 3px solid rgba(32, 92, 152, 0.25);
  outline-offset: 3px;
}

.service-card {
  display: flex;
  flex: 0 0 clamp(250px, 20vw, 300px);
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.3rem, 2vw, 1.65rem);
  border: 1px solid rgba(91, 78, 66, 0.17);
  border-radius: 3px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 5px 18px rgba(35, 31, 27, 0.035);
  scroll-snap-align: center;
}

.services-closing {
  max-width: 680px;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--taupe);
  text-align: center;
}

.services-closing p {
  color: var(--charcoal-mid);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-closing h3 {
  margin: 0.25rem 0 1.35rem;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
}

@media (hover: hover) and (pointer: fine) {
  .service-card h3,
  .service-icon {
    transition: color 0.25s var(--ease-out), transform 0.3s var(--ease-out);
  }

  .service-card:hover h3 {
    color: var(--mgm-blue-dark);
  }

  .service-card:hover .service-icon {
    color: var(--mgm-blue);
    transform: translateY(-2px);
  }
}

/* ===== MGM PROCESS ===== */
.process-section {
  position: relative;
  height: 180vh;
  background: var(--warm-white);
}

.process-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--cream-mid);
}

.process-stage-inner {
  width: 100%;
}

.process-header {
  max-width: 760px;
  margin: clamp(3rem, 5vh, 3.5rem) auto clamp(1rem, 2.2vh, 1.5rem);
  text-align: center;
}

.process-header .section-title {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.4vw, 3.45rem);
}

.process-list {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vh, 1.25rem) clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}

.process-panel {
  --panel-x: 0px;
  --panel-opacity: 1;
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(3.25rem, 6vw, 4.25rem) minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  padding: clamp(1.15rem, 2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid hsl(25, 24%, 45%);
  border-left: 5px solid var(--mgm-blue-dark);
  border-radius: 2px;
  background-color: hsl(35, 42%, 81%);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.24), transparent 32%, rgba(73,45,25,0.025) 72%, transparent),
    repeating-linear-gradient(4deg, rgba(73,45,25,0.025) 0, rgba(73,45,25,0.025) 1px, transparent 1px, transparent 8px);
  color: var(--charcoal);
  box-shadow: 0 3px 8px rgba(46, 34, 24, 0.12);
  opacity: var(--panel-opacity);
  transform: translate3d(var(--panel-x), 0, 0);
  will-change: transform, opacity;
}

.process-panel--two,
.process-panel--four {
  margin-top: clamp(0.45rem, 1.2vh, 0.85rem);
}

.process-panel--three {
  margin-left: 4%;
}

.process-panel--four {
  margin-left: 4%;
}

.process-number {
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  color: var(--charcoal);
  text-align: center;
}

.process-panel > div {
  min-width: 0;
  align-self: center;
}

.process-panel h3 {
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--charcoal);
  margin-bottom: clamp(0.65rem, 1.2vw, 0.85rem);
  text-wrap: balance;
}

.process-panel p {
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--charcoal);
}

.process-cta {
  --cta-opacity: 1;
  --cta-y: 0px;
  display: flex;
  justify-content: center;
  margin-top: clamp(1rem, 2.2vh, 1.5rem);
  margin-bottom: clamp(1rem, 2.2vh, 1.5rem);
  padding-bottom: clamp(1rem, 2.2vh, 1.5rem);
  opacity: var(--cta-opacity);
  transform: translateY(var(--cta-y));
  pointer-events: auto;
}

.process-enhanced .process-cta.is-inactive {
  pointer-events: none;
}

.process-cta .btn:focus-visible {
  outline: 3px solid var(--wood-light);
  outline-offset: 4px;
}

@media (min-width: 769px) {
  .process-stage {
    height: min(100vh, 880px);
    height: min(100svh, 880px);
  }

}

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal-mid);
  background: #fff;
  border: 1.5px solid var(--taupe);
  transition: all 0.25s var(--ease-out);
}

.filter-btn:hover, .filter-btn:focus-visible {
  border-color: var(--mgm-blue);
  color: var(--mgm-blue);
}

.filter-btn.active {
  background: var(--mgm-blue);
  border-color: var(--mgm-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--cream-mid);
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out), opacity 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 25, 45, 0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
}

.gallery-item.hidden {
  display: none;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 20, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-out);
}

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ===== ABOUT ===== */
.gallery {
  padding-bottom: clamp(3.5rem, 5vw, 4.5rem);
}

.gallery .gallery-cta {
  margin-top: clamp(2.25rem, 4vw, 3rem) !important;
}

.about {
  position: relative;
  padding: clamp(3.75rem, 6vw, 5.5rem) 0 clamp(4.5rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--warm-white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  grid-template-areas:
    'visual intro'
    'visual proof'
    'visual cta';
  align-items: start;
  column-gap: clamp(3rem, 6vw, 5.5rem);
  row-gap: clamp(1.6rem, 3vw, 2.35rem);
}

.about-story-intro {
  grid-area: intro;
  align-self: end;
  max-width: 535px;
}

.about-story-intro .section-eyebrow {
  margin-bottom: 0.8rem;
}

.about-story-intro .section-title {
  margin-bottom: 1.2rem;
  font-size: clamp(2.65rem, 4.6vw, 4rem);
  line-height: 1.02;
}

.about-visuals {
  grid-area: visual;
  position: relative;
  width: 100%;
  max-width: 570px;
  margin: 0;
  align-self: center;
}

.about-img-primary {
  width: 92%;
  border: 1px solid rgba(91, 78, 66, 0.12);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(31, 38, 44, 0.13);
  aspect-ratio: 4/5;
}

.about-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  right: 0;
  bottom: 2.25rem;
  width: 45%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(31, 38, 44, 0.17);
  border: 5px solid var(--warm-white);
  aspect-ratio: 4/3;
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visuals figcaption {
  margin-top: 0.8rem;
  color: var(--charcoal-light);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.about-text {
  max-width: 52ch;
  color: var(--charcoal-mid);
  line-height: 1.76;
  font-size: 0.98rem;
}

.about-proof {
  grid-area: proof;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 560px;
  border-top: 1px solid var(--taupe);
  border-bottom: 1px solid var(--taupe);
  list-style: none;
}

.about-proof-item {
  min-width: 0;
  padding: 1.15rem clamp(0.6rem, 1vw, 0.8rem) 1.25rem;
}

.about-proof-item:first-child {
  padding-left: 0;
}

.about-proof-item + .about-proof-item {
  border-left: 1px solid var(--taupe);
}

.about-proof-number {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--mgm-blue);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.about-proof-item strong {
  display: block;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-transform: uppercase;
}

.about-proof-item > span:last-child {
  display: block;
  margin-top: 0.45rem;
  color: var(--charcoal-light);
  font-size: 0.72rem;
  line-height: 1.5;
}

.about-story-link {
  grid-area: cta;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mgm-blue-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  text-underline-offset: 0.28em;
}

.about-story-link span {
  transition: transform 0.25s var(--ease-out);
}

.about-story-link:hover,
.about-story-link:focus-visible {
  color: var(--mgm-blue);
  text-decoration: underline;
}

.about-story-link:hover span,
.about-story-link:focus-visible span {
  transform: translateX(4px);
}

.about-story-link:focus-visible {
  outline: 2px solid rgba(32, 92, 152, 0.3);
  outline-offset: 5px;
}

.about-img-primary.reveal {
  transform: translateY(26px) scale(1.025);
  transition-duration: 0.75s;
}

.about-img-primary.reveal.visible {
  transform: translateY(0) scale(1);
}

.about-img-secondary.reveal {
  transform: translateY(20px);
  transition-delay: 0.13s;
  transition-duration: 0.7s;
}

.about-img-secondary.reveal.visible {
  transform: translateY(0);
}

.about-story-intro.reveal {
  transition-duration: 0.68s;
}

.about-proof-item.reveal:nth-child(1) { transition-delay: 0.08s; }
.about-proof-item.reveal:nth-child(2) { transition-delay: 0.16s; }
.about-proof-item.reveal:nth-child(3) { transition-delay: 0.24s; }

.about-story-link.reveal {
  transition-delay: 0.28s;
}

/* ===== TESTIMONIALS ===== */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--taupe);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--mgm-blue-faint);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 400;
  color: var(--charcoal-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}

.testimonial-author {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--mgm-blue);
  letter-spacing: 0.05em;
  font-style: normal;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--warm-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}

.contact-intro {
  color: var(--charcoal-mid);
  line-height: 1.8;
  margin: 1.5rem 0 2.5rem;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mgm-blue-faint);
  color: var(--mgm-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}

a.contact-detail-value:hover {
  color: var(--mgm-blue);
}

/* ===== CONTACT FORM ===== */
.contact-form-column {
  min-width: 0;
}

.contact-form-toggle {
  width: 100%;
  min-height: 58px;
  padding: 1rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--taupe);
  border-bottom: 1px solid var(--taupe);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.contact-form-toggle:hover {
  color: var(--mgm-blue);
  border-color: var(--mgm-blue);
}

.contact-form-toggle:focus-visible {
  outline: 3px solid rgba(32, 92, 152, 0.2);
  outline-offset: 4px;
}

.contact-form-toggle-arrow {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease-out), opacity 0.3s ease, visibility 0s linear;
}

.contact-form-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.contact-layout.is-collapsible .contact-form-panel:not(.is-open) {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-out), opacity 0.3s ease, visibility 0s linear 0.4s;
}

.contact-form-panel[hidden] {
  display: none;
}

.contact-form {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--taupe);
  border-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--charcoal-mid);
  margin-bottom: 0.45rem;
}

.form-group label span {
  color: var(--mgm-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--taupe);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mgm-blue);
  box-shadow: 0 0 0 3px rgba(32, 92, 152, 0.12);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--charcoal-light);
  text-align: center;
  margin-top: 0.75rem;
}

.form-success {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: hsl(145, 50%, 95%);
  border: 1.5px solid hsl(145, 40%, 70%);
  border-radius: var(--radius-md);
  color: hsl(145, 45%, 30%);
  font-size: 0.93rem;
  font-weight: 500;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-link:hover, .footer-link:focus-visible {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.social-link:hover, .social-link:focus-visible {
  background: var(--mgm-blue);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (min-width: 1100px) {
  .service-card {
    flex-basis: calc((min(92vw, 1480px) - var(--service-rail-gap) - var(--service-rail-gap) - var(--service-rail-gap)) / 4);
  }
}

@media (max-width: 1099px) {
  .services-header {
    margin-bottom: 2.75rem;
  }

  .services-comparison {
    width: min(86vw, 1280px);
    height: clamp(285px, 34vw, 350px);
  }
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    column-gap: clamp(2.25rem, 5vw, 3.5rem);
  }

  .about-visuals {
    max-width: none;
    margin: 0;
  }

  .about-story-intro .section-title {
    font-size: clamp(2.45rem, 5vw, 3.35rem);
  }

  .about-proof-item {
    padding-inline: 0.65rem;
  }


  .testimonials-track {
    grid-template-columns: 1fr;
  }

  .quality-feature {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .quality-icon {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form-column,
  .contact-form-toggle,
  .contact-form-panel,
  .contact-form-panel-inner,
  .contact-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 10;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(255, 252, 248, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    color: var(--charcoal);
    font-size: 1.2rem;
  }

  .nav-cta {
    background-color: var(--mgm-blue) !important;
    border: none !important;
    box-shadow: var(--shadow-blue);
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  .process-section {
    height: auto;
    min-height: 0;
    overflow-x: clip;
  }

  .process-stage {
    position: static;
    height: auto;
    min-height: 0;
    overflow: clip;
  }


  .process-header {
    margin-bottom: 2rem;
  }

  .process-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .process-panel,
  .process-panel--two,
  .process-panel--three,
  .process-panel--four {
    min-height: 0;
    margin: 0;
    padding: 1.25rem;
    will-change: auto;
  }

  .process-panel p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .process-enhanced .process-panel {
    opacity: 0;
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  }

  .process-enhanced .process-panel:nth-child(odd) {
    transform: translate3d(-42px, 0, 0);
  }

  .process-enhanced .process-panel:nth-child(even) {
    transform: translate3d(42px, 0, 0);
  }

  .process-enhanced .process-panel.mobile-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .process-cta {
    --cta-opacity: 1 !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav {
    gap: 1.25rem;
  }

  .hero-slide-dots {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item--large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .about-img-secondary {
    right: -1rem;
    bottom: -1rem;
  }

  .about-badge {
    left: -0.5rem;
  }
}

@media (max-width: 767px) {
  .gallery {
    padding-bottom: 3rem;
  }

  .gallery .gallery-cta {
    margin-top: 2.25rem !important;
  }

  .about {
    padding: 3.25rem 0 4rem;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'visual'
      'proof'
      'cta';
    row-gap: 0;
  }

  .about-story-intro {
    max-width: none;
  }

  .about-story-intro .section-title {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    line-height: 1.04;
  }

  .about-text {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .about-visuals {
    width: 100%;
    max-width: 520px;
    margin: 2rem auto 0;
  }

  .about-img-primary {
    width: 92%;
  }

  .about-img-secondary {
    right: 0;
    bottom: 2rem;
    width: 46%;
    border-width: 4px;
  }

  .about-visuals figcaption {
    margin-top: 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.13em;
  }

  .about-proof {
    grid-template-columns: 1fr;
    margin-top: 2.4rem;
  }

  .about-proof-item,
  .about-proof-item:first-child {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    padding: 0.95rem 0;
  }

  .about-proof-item + .about-proof-item {
    border-top: 1px solid var(--taupe);
    border-left: 0;
  }

  .about-proof-number {
    grid-row: 1 / 3;
    margin: 0;
    padding-top: 0.12rem;
  }

  .about-proof-item strong,
  .about-proof-item > span:last-child {
    grid-column: 2;
  }

  .about-proof-item strong {
    font-size: 1.12rem;
  }

  .about-proof-item > span:last-child {
    margin-top: 0.25rem;
    font-size: 0.76rem;
  }

  .about-story-link {
    margin-top: 1.75rem;
  }

  .services {
    padding-block: 4rem;
    scroll-margin-top: calc(var(--nav-height) + 1rem);
  }

  .services-header {
    margin-bottom: 1.9rem;
    padding-top: 0.75rem;
  }

  .services-header .section-title {
    font-size: clamp(2.15rem, 10.5vw, 2.85rem);
  }

  .services-intro {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .services-comparison {
    width: 94%;
    height: clamp(205px, 58vw, 265px);
    border-radius: 4px;
    box-shadow: 0 14px 36px rgba(23, 34, 45, 0.11);
  }

  .comparison-label {
    top: 0.75rem;
  }

  .comparison-label--before {
    left: 0.75rem;
  }

  .comparison-label--after {
    right: 0.75rem;
  }

  .services-specialties {
    width: 100%;
    margin-top: 2.2rem;
  }

  .services-specialties-label {
    margin-bottom: 0.65rem;
  }

  .service-card {
    flex-basis: min(78vw, 320px);
    height: 280px;
    min-height: 280px;
    padding: 1.3rem;
  }

  .services-rail-shell {
    --service-rail-gap: 0.75rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .services-rail {
    width: 100vw;
    scroll-padding-inline: calc((100vw - min(78vw, 320px)) / 2);
    overscroll-behavior-inline: contain;
  }

  .services-track {
    padding-right: calc((100vw - min(78vw, 320px)) / 2);
    padding-left: calc((100vw - min(78vw, 320px)) / 2);
  }

  .services-rail-control {
    width: 34px;
    height: 34px;
  }

  .services-rail-shell::before,
  .services-rail-shell::after {
    width: 20px;
  }

  .services-rail-control--prev {
    left: 4px;
  }

  .services-rail-control--next {
    right: 4px;
  }

  .services-closing {
    margin-top: 1.5rem;
    padding-top: 1.9rem;
  }

  .services-closing .btn {
    width: 100%;
    white-space: normal;
  }
}


@media (prefers-reduced-motion: reduce) {
  .about .reveal,
  .about .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-story-link span {
    transition: none !important;
  }

  .service-card h3,
  .service-icon,
  .service-detail-link,
  .services-rail-control,
  .services-rail-shell::before,
  .services-rail-shell::after {
    transition: none !important;
  }

  .service-card:hover .service-icon {
    transform: none !important;
  }

  .contact-form-panel,
  .contact-form-toggle {
    transition: none;
  }

  .process-section {
    height: auto;
    min-height: 0;
  }

  .process-stage {
    position: static;
    height: auto;
    min-height: 0;
  }

  .process-panel,
  .process-enhanced .process-panel,
  .process-enhanced .process-panel:nth-child(odd),
  .process-enhanced .process-panel:nth-child(even) {
    --panel-x: 0px !important;
    --panel-opacity: 1 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .process-cta {
    --cta-opacity: 1 !important;
    --cta-y: 0px !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* ===== SUBPAGE HERO & PORTFOLIO ENHANCEMENTS ===== */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(32, 92, 152, 0.4), rgba(20, 25, 35, 0.85));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero-title em {
  font-style: italic;
  color: var(--wood-light);
}

.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== SERVICE DETAIL PAGES ===== */
.service-page {
  background: var(--warm-white);
  color: var(--charcoal);
}

.service-page-hero {
  position: relative;
  min-height: min(780px, 90svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
  color: #fff;
}

.service-page-hero-image,
.service-page-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-page-hero-image {
  object-fit: cover;
  object-position: center 63%;
}

.service-page-hero-overlay {
  background: linear-gradient(90deg, rgba(11, 24, 37, 0.9) 0%, rgba(15, 29, 43, 0.66) 52%, rgba(15, 25, 35, 0.34) 100%), linear-gradient(to top, rgba(10, 20, 30, 0.58), transparent 52%);
}

.service-page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.breadcrumb {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.4;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.55rem;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.service-page-hero .section-eyebrow {
  color: var(--wood-light);
}

.service-page-hero h1 {
  max-width: 820px;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 7.5vw, 6.25rem);
  font-weight: 600;
  line-height: 0.98;
  text-wrap: balance;
}

.service-page-hero-content > p:not(.section-eyebrow) {
  max-width: 680px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.service-content-section h2,
.service-area h2,
.service-faq h2,
.service-related-section h2,
.service-page-cta h2 {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}

.service-section-alt {
  background: var(--cream);
  border-top: 1px solid var(--cream-mid);
  border-bottom: 1px solid var(--cream-mid);
}

.service-page [id] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.service-intro-layout,
.service-detail-feature-grid,
.service-area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.service-prose > * + * {
  margin-top: 1.25rem;
}

.service-prose .section-eyebrow + h2 {
  margin-top: 0;
}

.service-prose p,
.service-section-heading > p:last-child,
.service-area .service-prose {
  color: var(--charcoal-mid);
  font-size: 1rem;
  line-height: 1.8;
}

.service-prose a {
  color: var(--mgm-blue-dark);
  text-underline-offset: 0.22em;
}

.service-callout {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--taupe);
  border-left: 4px solid var(--mgm-blue);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.service-callout h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.service-callout ul,
.material-comparison ul {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.service-callout li,
.material-comparison li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--charcoal-mid);
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-callout li::before,
.material-comparison li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mgm-blue);
}

.service-section-heading {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.service-section-heading > p:last-child {
  max-width: 68ch;
  margin: 1rem auto 0;
}

.service-process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
}

.service-process-section {
  padding-top: clamp(4.75rem, 7vw, 6.5rem);
  padding-bottom: clamp(4.75rem, 7vw, 6.5rem);
}

.service-process-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--mgm-blue), rgba(32, 92, 152, 0.22));
}

.service-process-grid li {
  position: relative;
  min-width: 0;
  padding: 0 0.25rem;
}

.service-process-grid li > span {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 0 1.5rem -0.25rem;
  border: 6px solid var(--cream);
  border-radius: 50%;
  background: var(--mgm-blue);
  box-shadow: 0 4px 14px rgba(32, 92, 152, 0.2);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.service-process-grid h3,
.material-comparison h3 {
  margin-bottom: 0.75rem;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
}

.service-process-grid p,
.material-comparison p {
  color: var(--charcoal-mid);
  font-size: 0.88rem;
  line-height: 1.65;
}

.service-process-grid h3 {
  max-width: 12ch;
}

.service-inline-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.material-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.material-comparison article {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-top: 3px solid var(--mgm-blue);
  background: var(--cream);
}

.service-detail-image-wrap {
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(32, 92, 152, 0.42);
  box-shadow: 18px 18px 0 rgba(194, 163, 124, 0.18);
}

.service-detail-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.service-detail-list {
  display: grid;
  gap: 0;
}

.service-detail-list div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--taupe);
}

.service-detail-list div:first-child {
  border-top: 1px solid var(--taupe);
}

.service-detail-list dt {
  color: var(--charcoal);
  font-weight: 600;
}

.service-detail-list dd {
  margin-top: 0.3rem;
  color: var(--charcoal-mid);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.service-project-grid figure {
  min-width: 0;
  margin: 0;
}

.service-project-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream-mid);
}

.service-project-grid figcaption {
  padding-top: 0.8rem;
  color: var(--charcoal-mid);
  font-size: 0.8rem;
  line-height: 1.5;
}

.service-projects-link {
  margin-top: 1.75rem;
  text-align: center;
}

.service-projects-link .service-detail-link {
  font-size: 0.86rem;
}

.service-area-grid {
  align-items: start;
}

.service-narrow {
  max-width: 900px;
}

.service-faq-list {
  border-top: 1px solid var(--taupe);
}

.service-faq-item {
  border-bottom: 1px solid var(--taupe);
}

.service-faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.service-faq-question > span {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(32, 92, 152, 0.32);
  border-radius: 50%;
  background: rgba(32, 92, 152, 0.05);
  color: var(--mgm-blue);
}

.service-faq-question > span::before,
.service-faq-question > span::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.service-faq-question > span::after {
  content: '\2212';
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.service-faq-question[aria-expanded='true'] > span::before {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-faq-question[aria-expanded='true'] > span::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0);
}

.service-faq-question:hover {
  color: var(--mgm-blue-dark);
}

.service-faq-question:focus-visible {
  outline: 2px solid rgba(32, 92, 152, 0.38);
  outline-offset: 4px;
}

.service-faq-answer p {
  max-width: 72ch;
  padding: 0 3rem 1.4rem 0;
  color: var(--charcoal-mid);
  font-size: 1rem;
  line-height: 1.8;
}

.no-js .service-faq-answer[hidden] {
  display: block !important;
}

.service-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-related-card {
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.4rem, 3vw, 2rem) 3.5rem clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--taupe);
  background: var(--warm-white);
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.service-related-card strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
}

.service-related-card-copy {
  color: var(--charcoal-mid);
  font-size: 0.88rem;
  line-height: 1.65;
}

.service-related-card-arrow {
  position: absolute;
  top: clamp(1.4rem, 3vw, 2rem);
  right: clamp(1.4rem, 3vw, 2rem);
  color: var(--mgm-blue);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s var(--ease-out);
}

.service-related-card:hover,
.service-related-card:focus-visible {
  border-color: var(--mgm-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.service-related-card:hover .service-related-card-arrow,
.service-related-card:focus-visible .service-related-card-arrow {
  transform: translateX(3px);
}

.service-related-card:focus-visible {
  outline: 3px solid rgba(32, 92, 152, 0.25);
  outline-offset: 3px;
}

.service-page-cta {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: linear-gradient(135deg, var(--mgm-blue-dark), var(--charcoal));
  color: #fff;
  text-align: center;
}

.service-page-cta .section-eyebrow {
  color: var(--wood-light);
}

.service-page-cta h2 {
  color: #fff;
}

.service-page-cta p:not(.section-eyebrow) {
  max-width: 620px;
  margin: 1rem auto 2rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.service-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

@media (max-width: 1024px) {
  .service-process-grid {
    max-width: 720px;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 auto;
  }

  .service-process-grid::before {
    top: 24px;
    right: auto;
    bottom: 24px;
    left: 23px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--mgm-blue), rgba(32, 92, 152, 0.18));
  }

  .service-process-grid li {
    min-height: 145px;
    padding: 0 0 2.25rem 5rem;
  }

  .service-process-grid li:last-child {
    min-height: 0;
    padding-bottom: 0;
  }

  .service-process-grid li > span {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .service-process-grid h3 {
    max-width: none;
  }

  .service-intro-layout,
  .service-detail-feature-grid,
  .service-area-grid {
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

@media (max-width: 768px) {
  .service-page-hero {
    min-height: 680px;
  }

  .service-page-hero-image {
    object-position: 58% center;
  }

  .service-page-hero-overlay {
    background: linear-gradient(to top, rgba(10, 22, 34, 0.94) 0%, rgba(12, 25, 38, 0.7) 70%, rgba(12, 25, 38, 0.52) 100%);
  }

  .service-page-hero-content {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
  }

  .service-page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.3rem);
  }

  .breadcrumb {
    margin-bottom: 2.5rem;
  }

  .service-intro-layout,
  .service-detail-feature-grid,
  .service-area-grid,
  .material-comparison {
    grid-template-columns: 1fr;
  }

  .service-detail-image-wrap,
  .service-detail-image-wrap img {
    min-height: 0;
  }

  .service-detail-image-wrap {
    aspect-ratio: 4 / 3;
    box-shadow: 10px 10px 0 rgba(194, 163, 124, 0.18);
  }

  .service-project-grid,
  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .service-project-grid img {
    aspect-ratio: 4 / 3;
  }

  .service-related-card {
    min-height: 135px;
  }

  .service-inline-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .service-page-hero .btn,
  .service-page-cta .btn,
  .service-inline-cta .btn {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .service-related-card,
  .service-related-card-arrow,
  .service-faq-question > span::before,
  .service-faq-question > span::after {
    transition: none;
  }

  .service-related-card:hover,
  .service-related-card:focus-visible,
  .service-related-card:hover .service-related-card-arrow,
  .service-related-card:focus-visible .service-related-card-arrow {
    transform: none;
  }
}

.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .portfolio-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.portfolio-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--taupe);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.portfolio-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.05);
}

.portfolio-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 25, 45, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

.portfolio-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.portfolio-card-desc {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.portfolio-card-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cream-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--charcoal-mid);
}

/* ===== MOBILE SPACING COMPACTION ===== */
@media (max-width: 767px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .quality-strip {
    padding: 3.25rem 0;
  }

  .quality-feature {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
  }

  .quality-feature:nth-child(even) {
    padding-left: 1.5rem;
  }

  .quality-feature:nth-child(n + 3) {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .quality-icon {
    width: 48px;
    height: 48px;
  }

  .quality-copy h2 {
    font-size: clamp(1.45rem, 4.8vw, 1.8rem);
  }

  .quality-copy p {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .services {
    padding-block: 3.25rem;
  }

  .services-header {
    margin-bottom: 1.5rem;
    padding-top: 0;
  }

  .services-specialties {
    margin-top: 1.75rem;
  }

  .services-closing {
    margin-top: 1.25rem;
    padding-top: 1.5rem;
  }

  .process-header {
    margin: 2.25rem auto 1.25rem;
  }

  .process-list {
    gap: 0.75rem;
  }

  .process-cta {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 1rem;
  }

  .gallery {
    padding-bottom: 2.75rem;
  }

  .gallery .gallery-cta {
    margin-top: 1.75rem !important;
  }

  .about {
    padding: 3rem 0 3.25rem;
  }

  .about-visuals {
    margin-top: 1.5rem;
  }

  .about-proof {
    margin-top: 1.75rem;
  }

  .about-story-link {
    margin-top: 1.25rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .contact-layout {
    gap: 1.75rem;
  }

  .contact-intro {
    margin: 1rem 0 1.5rem;
  }

  .contact-details {
    gap: 1.1rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .footer-layout {
    gap: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer-bottom {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .page-hero {
    padding: 110px 0 3rem;
  }

  .service-page-hero {
    min-height: 600px;
  }

  .service-page-hero-content {
    padding-top: calc(var(--nav-height) + 2.75rem);
    padding-bottom: 3rem;
  }

  .breadcrumb {
    margin-bottom: 1.5rem;
  }

  .service-page-hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.65rem);
  }

  .service-page-hero-content > p:not(.section-eyebrow) {
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .service-intro-layout,
  .service-detail-feature-grid,
  .service-area-grid {
    gap: 2rem;
  }

  .service-section-heading {
    margin-bottom: 2rem;
  }

  .service-process-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .service-process-grid li {
    min-height: 0;
    padding-bottom: 1.75rem;
  }

  .service-inline-cta {
    margin-top: 2rem;
  }

  .material-comparison article {
    padding: 1.4rem;
  }

  .service-page-cta {
    padding: 3.5rem 0;
  }

  .portfolio-full-grid {
    gap: 1.1rem;
    margin-top: 1.5rem;
  }

  .portfolio-card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  .quality-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quality-feature,
  .quality-feature:nth-child(even),
  .quality-feature:nth-child(n + 3) {
    padding: 1.65rem 0;
    border-left: 0;
    border-top: 1px solid rgba(229, 211, 185, 0.3);
  }

  .quality-feature:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .quality-feature:last-child {
    padding-bottom: 0;
  }
}
