/* ============================================================
   MONTPELLIER ASSAINISSEMENT — NEW PROTOTYPE
   Modern, Responsive, Live-Motion Design
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --clr-primary: #1b6b4a;
  --clr-primary-light: #27a96b;
  --clr-primary-dark: #0e3d2a;
  --clr-accent: #4ecdc4;
  --clr-accent-warm: #f7b731;
  --clr-bg: #f8faf9;
  --clr-bg-alt: #eef5f1;
  --clr-surface: #ffffff;
  --clr-text: #1a2e23;
  --clr-text-muted: #5a7265;
  --clr-text-light: #8fa89a;
  --clr-border: rgba(27, 107, 74, 0.1);
  --clr-hero-overlay: linear-gradient(135deg, rgba(14, 61, 42, 0.85) 0%, rgba(27, 107, 74, 0.7) 50%, rgba(78, 205, 196, 0.5) 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(78, 205, 196, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1280px;
  --header-h: 76px;
}

/* ---------- RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- SCROLL REVEAL CLASSES ---------- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition-smooth),
              box-shadow var(--transition-smooth),
              backdrop-filter var(--transition-smooth);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 30px rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 44px;
  width: auto;
  transition: transform var(--transition-spring);
}

.header__logo:hover img {
  transform: scale(1.05);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
  padding: 4px 0;
}

.header--scrolled .header__link {
  color: var(--clr-text-muted);
}

.header:not(.header--scrolled) .header__link {
  color: rgba(255, 255, 255, 0.85);
}

.header:not(.header--scrolled) .header__link:hover {
  color: #fff;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header__link:hover {
  color: var(--clr-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-spring);
  box-shadow: 0 4px 20px rgba(27, 107, 74, 0.3);
}

.header__cta:hover {
  background: var(--clr-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 107, 74, 0.4);
}

.header__cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  transform-origin: center;
}

.header:not(.header--scrolled) .nav-toggle span {
  background: #fff;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--clr-primary-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://storage.e.jimdo.com/cdn-cgi/image/quality=85,fit=scale-down,format=auto,width=1600,height=1200/image/530473976/84dec590-f481-455a-9e50-cd59309ae89b.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--clr-hero-overlay);
}

/* Animated floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(78, 205, 196, 0.15);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 999px;
  color: var(--clr-accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(78, 205, 196, 0); }
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title span {
  display: inline-block;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-accent), #45b7aa);
  color: var(--clr-primary-dark);
  box-shadow: 0 4px 25px rgba(78, 205, 196, 0.35);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px rgba(78, 205, 196, 0.5);
}

.btn--primary::before {
  background: linear-gradient(135deg, #5fe0d7, #4ecdc4);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span {
  position: relative;
  z-index: 1;
}

.btn--primary svg {
  position: relative;
  z-index: 1;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--dark {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(27, 107, 74, 0.3);
}

.btn--dark:hover {
  background: var(--clr-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(27, 107, 74, 0.4);
}

/* Hero stats bar */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}

.section--alt {
  background: var(--clr-bg-alt);
}

.section--dark {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  color: #fff;
}

.section__header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-primary-light);
  margin-bottom: 16px;
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--clr-primary-light);
  border-radius: 2px;
}

.section--dark .section__eyebrow {
  color: var(--clr-accent);
}

.section--dark .section__eyebrow::before,
.section--dark .section__eyebrow::after {
  background: var(--clr-accent);
}

.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.section--dark .section__desc {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__image-wrapper:hover img {
  transform: scale(1.03);
}

.about__image-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--clr-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  animation: floatSoft 4s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about__content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about__content h2 span {
  color: var(--clr-primary-light);
}

.about__content p {
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.about__feature:hover {
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about__feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about__feature-text {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: all var(--transition-spring);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
}

.service-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(14, 61, 42, 0.6));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover .service-card__image-overlay {
  opacity: 1;
}

.service-card__number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--clr-primary);
  transition: all var(--transition-spring);
}

.service-card:hover .service-card__number {
  background: var(--clr-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.service-card__body {
  padding: 24px;
}

.service-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-text);
}

.service-card__desc {
  color: var(--clr-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-primary);
  transition: all var(--transition-fast);
}

.service-card__link:hover {
  gap: 12px;
  color: var(--clr-primary-light);
}

.service-card__link svg {
  transition: transform 0.3s;
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   URGENCY BANNER
   ============================================================ */
.urgency {
  position: relative;
  overflow: hidden;
}

.urgency__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(40px, 6vw, 80px) 0;
  flex-wrap: wrap;
  text-align: center;
}

.urgency__text {
  max-width: 600px;
}

.urgency__text h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.urgency__text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.urgency__cta .btn {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* Animated background glow */
.urgency__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

.urgency__glow--1 {
  top: -200px;
  right: -100px;
}

.urgency__glow--2 {
  bottom: -200px;
  left: -100px;
  animation-delay: 2.5s;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ============================================================
   PARTNERS MARQUEE
   ============================================================ */
.partners {
  overflow: hidden;
  position: relative;
}

.partners__track-wrapper {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.partners__track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--clr-surface);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-smooth);
  min-width: 200px;
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-light);
}

.partner-item img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0.5);
  transition: filter var(--transition-smooth);
}

.partner-item:hover img {
  filter: grayscale(0);
}

.partner-item span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews__track-wrapper {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  overflow: hidden;
}

.reviews__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.reviews__track:hover {
  animation-play-state: paused;
}

.review-card {
  flex-shrink: 0;
  width: clamp(280px, 30vw, 360px);
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--clr-border);
  transition: all var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-light);
}

.review-card__stars {
  color: var(--clr-accent-warm);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border: 2px solid var(--clr-bg-alt);
}

.review-card__name {
  font-weight: 600;
  font-size: 0.92rem;
}

.review-card__role {
  font-size: 0.8rem;
  color: var(--clr-text-light);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact__info h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact__info > p {
  color: var(--clr-text-muted);
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.contact__detail:hover {
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact__detail-content strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.contact__detail-content span,
.contact__detail-content a {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

.contact__detail-content a:hover {
  color: var(--clr-primary);
}

.contact__form {
  background: var(--clr-surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--clr-text);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--clr-text);
  transition: all var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--clr-primary-light);
  box-shadow: 0 0 0 4px rgba(27, 107, 74, 0.08);
  background: var(--clr-surface);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--clr-text-light);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__submit {
  width: 100%;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  line-height: 1.6;
}

.footer__brand img {
  height: 40px;
  width: auto;
  filter: brightness(10);
}

.footer__col h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: all var(--transition-fast);
}

.footer__col a:hover {
  color: var(--clr-accent);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item svg {
  color: var(--clr-accent);
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: var(--clr-accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about__grid {
    gap: 40px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 360px);
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 1001;
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .header__nav .header__link {
    font-size: 1.15rem;
    padding: 12px 0;
    color: var(--clr-text) !important;
    width: 100%;
    border-bottom: 1px solid var(--clr-border);
  }

  .header__nav .header__cta {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .service-card__image {
    height: 180px;
  }

  .contact__form {
    padding: 24px;
  }
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   PAGE SPECIFIC — LEGAL PAGES
   ============================================================ */
.legal-page {
  padding-top: calc(var(--header-h) + 40px);
  min-height: 100vh;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
}

.legal-content h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--clr-primary-dark);
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--clr-primary);
}

.legal-content p,
.legal-content li {
  color: var(--clr-text-muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-content ol {
  list-style: decimal;
  padding-left: 24px;
}

.legal-content a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--clr-primary-light);
}

/* ============================================================
   SMOOTH LOADING
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   MISC ANIMATIONS
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Magnetic button effect placeholder */
.btn--magnetic {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
