/* ============================================
   Les Entreprises JL - Complete Redesign
   Modern, impressive, user-friendly
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
  --primary: #1a1a2e;
  --primary-light: #2a2a3e;
  --primary-mid: #333350;
  --accent: #d4a017;
  --accent-hover: #b8890f;
  --accent-glow: rgba(212, 160, 23, 0.3);
  --gold: #d4a017;
  --gold-light: #e8be3f;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --light: #eef1f6;
  --gray-100: #e8ecf1;
  --gray-200: #d1d8e0;
  --gray-400: #8899a6;
  --gray-600: #5a6a7a;
  --gray-800: #2d3748;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --success: #10b981;
  --blue: #3b82f6;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --plomberie: #2563eb;
  --chauffage: #ea580c;
  --renovation: #16a34a;
  --construction: #ca8a04;
  --excavation: #78350f;
  --demolition: #dc2626;
  --isolation: #9333ea;
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all var(--transition); }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.7); }

.section--light { background: var(--off-white); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 160, 23, 0.1);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section--dark .section-header .label {
  background: rgba(212, 160, 23, 0.2);
}

.section-header h2 { margin-bottom: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  min-height: 56px;
  min-width: 56px;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn--secondary {
  background: var(--primary);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-3px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--gray-200);
}

.btn--outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn--large {
  padding: 1.15rem 2.5rem;
  font-size: 1.1rem;
  min-height: 60px;
  border-radius: var(--radius-lg);
}

.btn--block { width: 100%; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
}

.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 165, 0, 0.3);
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Logo ---------- */
.logo-svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar a { color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 0.4rem; }
.top-bar a:hover { color: var(--accent); }

.top-bar__left, .top-bar__contact { display: flex; align-items: center; gap: 1.5rem; }
.top-bar__right { display: flex; align-items: center; gap: 1rem; }

.top-bar__badge, .license-badge {
  background: rgba(255,255,255,0.08);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
}

/* Language Switch */
.lang-switch {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
  min-height: 36px;
  min-width: 40px;
}

.lang-switch button.active {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Header ---------- */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.header__logo-text {
  line-height: 1.15;
}

.header__logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav a, .nav__dropdown-toggle {
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav a:hover, .nav a.active { color: var(--accent); background: rgba(212, 160, 23, 0.06); }

.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
  cursor: pointer;
  background: none;
  border: none;
}

.nav__dropdown-toggle::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.nav__dropdown:hover .nav__dropdown-toggle::after,
.nav__dropdown.open .nav__dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 320px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.nav__dropdown-menu a:hover { background: var(--off-white); color: var(--text); }

.nav__dropdown-menu .svc-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.nav__dropdown-menu .svc-name { font-weight: 700; }
.nav__dropdown-menu .svc-sub { font-size: 0.78rem; color: var(--gray-400); }

/* Header CTA */
.header__cta { display: flex; align-items: center; gap: 0.75rem; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.header__phone:hover { background: rgba(212, 160, 23, 0.06); color: var(--accent); }

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.menu-toggle:hover { background: var(--off-white); }

.menu-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--primary); border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(15,52,96,0.85) 50%, rgba(26,26,46,0.9) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.25);
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.hero__stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero__stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Hero visual */
.hero__visual { position: relative; }

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

.hero__image-grid .img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}

.hero__image-grid .img-card:nth-child(2) { transform: translateY(2rem); }

.hero__image-grid .img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero__floating-card {
  position: absolute;
  bottom: 2rem;
  left: -1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__floating-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero__floating-card .text {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card__image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.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 40%, rgba(0,0,0,0.6));
}

.service-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 { margin-bottom: 0.6rem; }

.service-card p {
  font-size: 0.92rem;
  flex: 1;
  line-height: 1.65;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.service-card:hover .service-card__link { gap: 0.7rem; }

.service-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.service-card:hover .service-card__arrow {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--white);
  padding: 3.5rem 0;
  position: relative;
  z-index: 5;
  margin-top: -3rem;
}

.trust-bar .container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 3rem;
  border: 1px solid var(--gray-100);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--gray-100);
}

.trust-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  background: rgba(212, 160, 23, 0.08);
  color: var(--accent);
}

.trust-item h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.trust-item p { font-size: 0.85rem; margin-bottom: 0; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  display: flex;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--gray-200));
}

.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
  transition: all var(--transition);
}

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

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1.25rem;
}

.testimonial-card__stars svg { width: 20px; height: 20px; color: var(--gold); fill: var(--gold); }

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}

.testimonial-card__name { font-weight: 700; color: var(--text); }
.testimonial-card__loc { font-size: 0.82rem; color: var(--gray-400); }

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92), rgba(212,160,23,0.75));
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; }

/* ---------- Lead Form ---------- */
.form-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.form-section h2 { margin-bottom: 0.5rem; }
.form-section > p { margin-bottom: 2rem; }

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

.form-group { display: flex; flex-direction: column; }
.form-group--full { grid-column: 1 / -1; }

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem 1.15rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition);
  min-height: 56px;
  background: var(--off-white);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.1);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  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='M6 8L1 3h10z' fill='%236C757D'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.lead-form .btn { grid-column: 1 / -1; margin-top: 0.5rem; }

.form-success { display: none; text-align: center; padding: 2rem; }
.form-success.show { display: block; }
.form-success__icon { font-size: 4rem; margin-bottom: 1rem; }
.form-success h3 { color: var(--success); margin-bottom: 0.5rem; }

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, var(--page-hero-color, rgba(15,52,96,0.85)) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.page-hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Service Detail ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.service-detail-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-3px);
}

.service-detail-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-detail-item h4 { margin-bottom: 0.4rem; }
.service-detail-item p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

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

/* ---------- Why Grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.why-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

/* ---------- About Page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

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

.value-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

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

.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card h4 { margin-bottom: 0.3rem; }
.contact-card a { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.contact-card p { font-size: 0.85rem; margin-bottom: 0; }

.booking-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent;
  color: var(--white);
}

.booking-card h4 { color: var(--white); }
.booking-card p { color: rgba(255,255,255,0.85); }

.map-placeholder {
  width: 100%;
  height: 280px;
  background: var(--light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-weight: 600;
  margin-top: 1.5rem;
  border: 1px solid var(--gray-100);
}

/* ---------- Emergency Banner ---------- */
.emergency-banner {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: var(--white);
  padding: 0.75rem 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.emergency-banner a { color: var(--white); text-decoration: underline; font-weight: 800; }

/* ---------- Booking Wizard ---------- */
.booking-wizard { max-width: 700px; margin: 0 auto; }

.booking-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-400);
  background: var(--off-white);
  border: 2px solid transparent;
  transition: all var(--transition);
}

.booking-step.active {
  color: var(--accent);
  background: rgba(212, 160, 23, 0.1);
  border-color: var(--accent);
}

.booking-step.completed {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.booking-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.booking-step.active .booking-step__num { background: var(--accent); }
.booking-step.completed .booking-step__num { background: var(--success); }

.booking-panel { display: none; }
.booking-panel.active { display: block; }

.service-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-select-card {
  padding: 1.5rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.service-select-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-select-card.selected { border-color: var(--accent); background: rgba(212, 160, 23, 0.05); }

.service-select-card__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.service-select-card__name { font-weight: 700; font-size: 0.9rem; }

.booking-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.booking-summary {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.booking-summary__row:last-child { border: none; }
.booking-summary__label { color: var(--gray-600); font-weight: 600; }
.booking-summary__value { font-weight: 700; color: var(--text); }

.booking-success { text-align: center; padding: 2rem 0; }
.booking-success__icon { font-size: 4rem; margin-bottom: 1rem; }
.booking-success h3 { color: var(--success); margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer__brand { max-width: 320px; }
.footer__brand p { color: rgba(255,255,255,0.55); font-size: 0.92rem; margin-top: 1.25rem; line-height: 1.7; }

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 0.4rem 0;
  font-size: 0.92rem;
  transition: all var(--transition);
}

.footer__links a:hover { color: var(--accent); padding-left: 0.3rem; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__contact-item a { color: rgba(255,255,255,0.8); font-weight: 600; }
.footer__contact-item a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Floating Buttons ---------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 900;
}

.floating-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--white);
  position: relative;
}

.floating-btn:hover { transform: scale(1.12); color: var(--white); }
.floating-btn--call { background: var(--success); }
.floating-btn--book { background: var(--accent); }

.floating-btn__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  white-space: nowrap;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-btn:hover .floating-btn__tooltip { opacity: 1; }

/* ---------- Chatbot ---------- */
.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: 900;
  transition: all var(--transition);
}

.chatbot-toggle:hover { transform: scale(1.1); background: var(--primary-light); }

.chatbot-panel {
  position: fixed;
  bottom: 7rem;
  left: 2rem;
  width: 380px;
  max-height: 520px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  z-index: 901;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel.open { display: flex; }

.chatbot-panel__header {
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-panel__header h4 { color: var(--white); font-size: 1rem; }

.chatbot-panel__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.chatbot-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  max-height: 340px;
}

.chat-message {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.chat-message--bot .chat-bubble {
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 85%;
}

.chat-message--user { flex-direction: row-reverse; }

.chat-message--user .chat-bubble {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius) 0 var(--radius) var(--radius);
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 85%;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.chatbot-panel__input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.chatbot-panel__input input {
  flex: 1;
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  min-height: 48px;
}

.chatbot-panel__input input:focus { border-color: var(--accent); outline: none; }

.chatbot-panel__input button {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.chatbot-panel__input button:hover { background: var(--accent-hover); }

.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chat-quick-btn {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 50px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  font-family: inherit;
}

.chat-quick-btn:hover { border-color: var(--accent); color: var(--accent); }

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-bubble a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.chat-bubble a:hover { color: var(--accent-hover); }
.chat-bubble b { color: var(--text); }
.chat-message--bot .chat-bubble { white-space: pre-line; }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 1.5rem;
  z-index: 9999;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Service BGs ---------- */
.svc-bg--plomberie { background: rgba(37, 99, 235, 0.1); color: var(--plomberie); }
.svc-bg--chauffage { background: rgba(234, 88, 12, 0.1); color: var(--chauffage); }
.svc-bg--renovation { background: rgba(22, 163, 74, 0.1); color: var(--renovation); }
.svc-bg--construction { background: rgba(202, 138, 4, 0.1); color: var(--construction); }
.svc-bg--excavation { background: rgba(120, 53, 15, 0.1); color: var(--excavation); }
.svc-bg--demolition { background: rgba(220, 38, 38, 0.1); color: var(--demolition); }
.svc-bg--isolation { background: rgba(147, 51, 234, 0.1); color: var(--isolation); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { min-height: auto; padding: 5rem 0 4rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2)::after { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
}

@media (max-width: 768px) {
  html { font-size: 17px; }
  .top-bar { display: none; }
  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--gray-100);
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav.open { display: flex; }

  .nav a, .nav__dropdown-toggle {
    padding: 1rem;
    font-size: 1.05rem;
    width: 100%;
    min-height: 56px;
    border-radius: 10px;
  }

  .nav__dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 0.5rem;
    background: var(--off-white);
    margin-top: 0.5rem;
    border-radius: var(--radius);
    min-width: auto;
    border: none;
  }

  .nav__dropdown.open .nav__dropdown-menu { display: block; }

  .header__cta { display: none; }
  .header .container { height: 70px; }

  .section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar .container { padding: 2rem 1.5rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item::after { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-section { padding: 2rem 1.5rem; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .form-group { grid-column: 1; }
  .floating-btn__tooltip { display: none; }
  .chatbot-panel { left: 1rem; right: 1rem; width: auto; bottom: 6rem; }
  .why-grid { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .booking-steps { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .container { padding: 0 1.25rem; }
  .hero__stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .page-hero__buttons { flex-direction: column; }
  .page-hero__buttons .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

*:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ============================================
   Alternate Template Compatibility
   (construction, demolition, isolation pages)
   ============================================ */

/* Nav compat: header__nav maps to nav */
.header__nav { display: flex; align-items: center; gap: 0.25rem; }
.header__nav > a {
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.header__nav > a:hover, .header__nav > a.active { color: var(--accent); background: rgba(212, 160, 23, 0.06); }

/* Dropdown compat */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown__toggle:hover, .nav-dropdown__toggle.active { color: var(--accent); background: rgba(212, 160, 23, 0.06); }

.nav-dropdown__toggle::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
  margin-left: 0.25rem;
}
.nav-dropdown:hover .nav-dropdown__toggle::after { transform: rotate(180deg); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 340px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-dropdown__menu a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
}

.nav-dropdown__menu a:hover { background: var(--off-white); }
.nav-dropdown__menu a.active { background: rgba(212, 160, 23, 0.06); }
.nav-dropdown__menu a strong { font-weight: 700; font-size: 0.92rem; }
.nav-dropdown__menu a small { font-size: 0.78rem; color: var(--gray-400); font-weight: 400; }

/* Header menu button compat */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.header__menu-btn:hover { background: var(--off-white); }
.header__menu-btn span {
  display: block; width: 24px; height: 2.5px;
  background: var(--primary); border-radius: 2px;
  transition: all var(--transition);
}

/* Alternate chatbot compat */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 900;
}

.floating-btn--phone { background: var(--success); }
.floating-btn--chat { background: var(--primary); }
.floating-btn--chat:hover { background: var(--primary-light); }

.chatbot {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  width: 380px;
  max-height: 520px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  z-index: 901;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot[aria-hidden="false"] { display: flex; }

.chatbot__header {
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot__header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot__header-info strong { color: var(--white); font-size: 0.95rem; }
.chatbot__header-info small { color: rgba(255,255,255,0.6); font-size: 0.78rem; display: block; }

.chatbot__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.chatbot__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  max-height: 300px;
}

.chatbot__message { margin-bottom: 1rem; }

.chatbot__message--bot p {
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.5rem 1rem;
}

.chatbot__quick button {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 50px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  font-family: inherit;
}

.chatbot__quick button:hover { border-color: var(--accent); color: var(--accent); }

.chatbot__input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.chatbot__input input {
  flex: 1;
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  min-height: 48px;
}

.chatbot__input input:focus { border-color: var(--accent); outline: none; }

.chatbot__input button {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.chatbot__input button:hover { background: var(--accent-hover); }

.chatbot__message--user p {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius) 0 var(--radius) var(--radius);
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-left: auto;
  max-width: 85%;
  width: fit-content;
}

/* ============================================
   Missing Styles for Alternate Page Templates
   ============================================ */

/* Service items (construction, demolition, isolation pages) */
.service-item {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  background: var(--white);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.service-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: inherit;
}

.service-item h3 { margin-bottom: 0.25rem; }
.service-item p { font-size: 0.9rem; margin-bottom: 0; line-height: 1.65; }

/* Page hero with inline background-image */
.page-hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

/* Hero action buttons - alias for page-hero__buttons */
.page-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Outline white button */
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-3px);
  color: var(--white);
}

/* ============================================
   CSS Modernization Enhancements
   ============================================ */

/* Subtle animated gradient on page heroes */
.page-hero__bg::after {
  background: linear-gradient(
    135deg,
    rgba(26,26,46,0.94) 0%,
    var(--page-hero-color, rgba(15,52,96,0.85)) 50%,
    rgba(26,26,46,0.9) 100%
  );
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Decorative geometric elements on heroes */
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Enhanced hero with subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59,130,246,0.04) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* Enhanced page hero badge with glow */
.page-hero__badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
  50% { box-shadow: 0 0 20px 4px rgba(255,255,255,0.05); }
}

/* Better service card hover with gradient border */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before { opacity: 1; }

/* Enhanced service detail items with subtle left border accent */
.service-detail-item {
  border-left: 3px solid transparent;
  transition: all var(--transition), border-color 0.4s ease;
}

.service-detail-item:hover {
  border-left-color: var(--accent);
}

/* Improved trust bar with subtle separator animation */
.trust-item__icon {
  transition: all var(--transition);
}

.trust-item:hover .trust-item__icon {
  transform: scale(1.1);
  background: rgba(212, 160, 23, 0.15);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.15);
}

/* Enhanced testimonial cards */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 4rem;
  color: rgba(212, 160, 23, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* Better why-cards on dark sections */
.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.why-card:hover::before { opacity: 1; }

/* Enhanced process steps with better connected lines */
.process-step::before {
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.process-step:hover::before {
  transform: scale(1.1);
  box-shadow: 0 6px 25px var(--accent-glow);
}

/* Better value cards with top accent */
.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: all 0.4s ease;
}

.value-card:hover::before {
  opacity: 1;
  width: 100%;
}

/* Enhanced footer with subtle gradient top */
.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold-light), var(--accent));
}

/* Better form inputs with subtle transition */
.form-group input,
.form-group select,
.form-group textarea {
  border-left: 3px solid transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-left-color: var(--accent);
}

/* Smoother fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Staggered animation for grids */
.service-detail-item:nth-child(1) { transition-delay: 0.05s; }
.service-detail-item:nth-child(2) { transition-delay: 0.1s; }
.service-detail-item:nth-child(3) { transition-delay: 0.15s; }
.service-detail-item:nth-child(4) { transition-delay: 0.2s; }
.service-detail-item:nth-child(5) { transition-delay: 0.25s; }
.service-detail-item:nth-child(6) { transition-delay: 0.3s; }

/* Enhanced CTA section with pulsing button */
.cta-section .btn--primary {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 15px var(--accent-glow); }
  50% { box-shadow: 0 4px 30px rgba(212, 160, 23, 0.45); }
}

/* Smooth scroll indicator on heroes */
.page-hero .container::after {
  content: '';
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  margin: 2.5rem auto 0;
  position: relative;
}

.page-hero .container::after {
  animation: none;
}

/* Better header logo image treatment */
.header__logo img {
  border-radius: 10px;
  transition: transform var(--transition);
  object-fit: cover;
}

.header__logo:hover img {
  transform: scale(1.05);
}

/* Enhanced booking wizard steps */
.booking-step {
  position: relative;
  overflow: hidden;
}

.booking-step.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Better contact cards */
.contact-card__icon {
  transition: all var(--transition);
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.08) rotate(-3deg);
}

/* Gallery items with better overlay */
.gallery-item::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 2rem;
  z-index: 2;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Responsive additions for alternate template */
@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--gray-100);
    max-height: 80vh;
    overflow-y: auto;
  }

  .header__nav.open { display: flex; }

  .header__nav > a, .nav-dropdown__toggle {
    padding: 1rem;
    font-size: 1.05rem;
    width: 100%;
    min-height: 56px;
    border-radius: 10px;
  }

  .nav-dropdown__menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 0.5rem;
    background: var(--off-white);
    margin-top: 0.5rem;
    border-radius: var(--radius);
    min-width: auto;
    border: none;
  }

  .nav-dropdown.open .nav-dropdown__menu { display: block; }

  .header__menu-btn { display: flex; }

  .floating-buttons { bottom: 1.5rem; right: 1.5rem; }

  .chatbot { left: 1rem; right: 1rem; width: auto; bottom: 6rem; }

  .services-grid .service-item { padding: 1.5rem; }

  .page-hero__actions { flex-direction: column; }
  .page-hero__actions .btn { width: 100%; }

  /* Remove decorative elements on mobile for performance */
  .page-hero::before,
  .page-hero::after,
  .hero::before { display: none; }
}

@media print {
  .header, .floating-actions, .floating-buttons, .top-bar, .footer, .chatbot-toggle, .chatbot-panel, .chatbot { display: none; }
}
