/* ===== NANCY ELEC - STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Dark mode (default) */
  --bg-primary: #0f0f0e;
  --bg-secondary: #161614;
  --bg-card: #1a1a18;
  --bg-glass: rgba(26,26,24,0.85);
  --text-primary: #f0ede6;
  --text-secondary: #a09a8c;
  --text-muted: #5c5850;
  --accent: #e2a535;
  --accent-dark: #c48a1a;
  --accent-light: #f2d25f;
  --accent-glow: rgba(226,165,53,0.2);
  --accent-glow-strong: rgba(226,165,53,0.35);
  --border: rgba(226,165,53,0.12);
  --border-hover: rgba(226,165,53,0.35);
  --shadow: rgba(0,0,0,0.6);
  --nav-bg: rgba(15,15,14,0.92);
  --card-shadow: 0 4px 30px rgba(0,0,0,0.5);
  --logo-filter: none;
  --mode-icon: '☀️';
}

[data-theme="light"] {
  --bg-primary: #f5f2eb;
  --bg-secondary: #ede9df;
  --bg-card: #ffffff;
  --bg-glass: rgba(255,255,255,0.88);
  --text-primary: #1a1a18;
  --text-secondary: #5c5850;
  --text-muted: #9a9288;
  --accent: #c48a1a;
  --accent-dark: #a07010;
  --accent-light: #e2a535;
  --accent-glow: rgba(196,138,26,0.12);
  --accent-glow-strong: rgba(196,138,26,0.25);
  --border: rgba(196,138,26,0.18);
  --border-hover: rgba(196,138,26,0.45);
  --shadow: rgba(0,0,0,0.15);
  --nav-bg: rgba(245,242,235,0.94);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.1);
  --logo-filter: none;
  --mode-icon: '🌙';
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.8rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #0f0f0e;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow-strong); }
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover { background: var(--accent-glow); transform: translateY(-2px); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.nav-logo img {
  height: 80px;
  width: auto;
  transition: opacity 0.3s;
}
.nav-logo .logo-dark { display: block; }
.nav-logo .logo-light { display: none; }
[data-theme="light"] .nav-logo .logo-dark { display: none; }
[data-theme="light"] .nav-logo .logo-light { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  border: 1.5px solid var(--border-hover);
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  overflow: visible;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%;
  left: 1px;
  transform: translateY(-50%);
  transition: left 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow-strong);
}
[data-theme="light"] .theme-toggle::before { left: calc(100% - 19px); }

.theme-toggle-icon {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid var(--border); }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul a {
  display: block;
  padding: 1rem 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.mobile-menu ul a:hover { color: var(--accent); padding-left: 8px; }
.mobile-menu .mobile-cta { margin-top: 1.2rem; }

/* ===== HERO SECTION ===== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 82px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(226,165,53,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Circuit animation canvas */
#circuit-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

/* Radial circles (like image1.png) */
.hero-rings {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60vw;
  max-width: 700px;
  aspect-ratio: 1;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-rings {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    opacity: 0.25;
  }
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite;
}
.ring:nth-child(1) { width: 30%; height: 30%; border-color: rgba(226,165,53,0.5); animation-delay: 0s; }
.ring:nth-child(2) { width: 50%; height: 50%; animation-delay: 0.5s; }
.ring:nth-child(3) { width: 70%; height: 70%; animation-delay: 1s; }
.ring:nth-child(4) { width: 90%; height: 90%; animation-delay: 1.5s; }
.ring:nth-child(5) { width: 100%; height: 100%; animation-delay: 2s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.02); }
}

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  height: 25%;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226,165,53,0.4);
  box-shadow: 0 0 40px rgba(226,165,53,0.15), inset 0 0 20px rgba(0,0,0,0.3);
}
.ring-center svg { width: 45%; height: auto; }
.ring-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.55rem, 1.5vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* Orbiting dot */
.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent-glow-strong);
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: orbit 8s linear infinite;
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(500%) translateY(-500%); }
  to { transform: rotate(360deg) translateX(500%) translateY(-500%); }
}

/* Bottom stats badges */
.ring-stats {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  width: max-content;
}
.ring-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.ring-stat .val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.ring-stat .lab {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SECTION SHARED ===== */
section {
  padding: 6rem 0;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* ===== SECTION 1 — PRESENTATION ===== */
#about {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

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

.about-text .section-heading { margin-bottom: 1.5rem; }

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.stat-card .number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Electric animation in about visual */
.elec-animation {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elec-animation canvas { width: 100%; height: 100%; }

/* ===== SECTION 2 — SERVICES ===== */
#services {
  background: var(--bg-primary);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--card-shadow), 0 0 40px var(--accent-glow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--accent-glow-strong);
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.service-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.3s;
}
.service-gallery-btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.service-gallery-btn:hover { gap: 10px; }
.service-gallery-btn:hover svg { transform: translateX(3px); }

/* ===== SECTION 3 — QUALIFICATION ===== */
#qualification {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
#qualification::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.quali-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.quali-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quali-badge::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent-glow) 20%, transparent 40%);
  animation: rotateBadge 6s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}
@keyframes rotateBadge { to { transform: rotate(360deg); } }

.quali-badge-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
}
.quali-year {
  font-family: 'Rajdhani', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.quali-since {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}
.quali-logo-wrap {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  display: inline-block;
}
.quali-logo-wrap img { max-width: 160px; }

.quali-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
.quali-content p { color: var(--text-secondary); font-weight: 300; line-height: 1.8; margin-bottom: 1rem; }

.quali-points {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quali-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.quali-points li::before {
  content: '⚡';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ===== SECTION 4 — ZONES ===== */
#zones {
  background: var(--bg-primary);
}

.zones-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.zones-info h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.zones-info p { color: var(--text-secondary); font-weight: 300; margin-bottom: 1.5rem; line-height: 1.8; }

.zones-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.zones-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid var(--border);
}
.zones-list li::before { content: '📍'; font-size: 0.75rem; }

#map-container {
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
#map { width: 100%; height: 100%; }

.map-overlay-info {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  z-index: 500;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.map-overlay-info strong { color: var(--accent); font-family: 'Rajdhani', sans-serif; font-size: 1rem; }

/* ===== SECTION 5 — CONTACT ===== */
#contact {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 { font-size: 1.3rem; margin-bottom: 2rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.contact-item-text span { color: var(--text-secondary); font-size: 0.92rem; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e2a535' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* Captcha */
.captcha-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.captcha-question {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.05em;
}
.captcha-box input[type="number"] {
  width: 110px;
  flex-shrink: 0;
  /* inherit all form input styles — no override needed */
}
/* Remove spinner arrows */
.captcha-box input[type="number"]::-webkit-outer-spin-button,
.captcha-box input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-box input[type="number"] { -moz-appearance: textfield; }
.captcha-result { font-size: 0.8rem; color: var(--text-muted); }

.form-submit { margin-top: 0.5rem; }

/* ===== SECTION AVIS ===== */
#avis { background: var(--bg-primary); }

.avis-header { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }

.avis-platforms {
  display: flex; gap: 0.8rem; justify-content: center;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.platform-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.4rem 1rem; border-radius: 20px;
  border: 1.5px solid var(--border);
  font-family: 'Rajdhani', sans-serif; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.3s; color: var(--text-secondary);
}
.platform-badge:hover, .platform-badge.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-glow);
}
.platform-dot { width: 8px; height: 8px; border-radius: 50%; }
.platform-badge.google .platform-dot { background: #4285F4; }
.platform-badge.pj .platform-dot { background: #FF6600; }
.platform-badge.all .platform-dot { background: var(--accent); }

.avis-global {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; padding: 1.5rem 2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.avis-score { text-align: center; }
.avis-score .big-num {
  font-family: 'Rajdhani', sans-serif; font-size: 3.5rem;
  font-weight: 700; color: var(--accent); line-height: 1;
}
.avis-score .out-of { font-size: 0.78rem; color: var(--text-muted); }
.stars-row { display: flex; gap: 3px; margin: 4px 0; }
.star { font-size: 1.1rem; }
.star.filled { color: #F9C02E; }
.star.empty { color: var(--text-muted); }
.avis-divider { width: 1px; height: 60px; background: var(--border); }
.avis-counts { display: flex; flex-direction: column; gap: 6px; }
.avis-count-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-secondary);
}
.avis-count-row .cnt {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent);
}

.avis-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.25rem; margin-bottom: 1.5rem;
}
.avis-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.avis-card::before {
  content: '"'; position: absolute; top: -12px; right: 14px;
  font-size: 5rem; color: var(--accent-glow-strong);
  font-family: Georgia,serif; line-height: 1; pointer-events: none;
}
.avis-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--card-shadow); }

.avis-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.avis-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avis-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.9rem; color: #0f0f0e; flex-shrink: 0;
}
.avis-name {
  font-family: 'Rajdhani', sans-serif; font-size: 0.9rem;
  font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avis-date { font-size: 0.7rem; color: var(--text-muted); }
.avis-source {
  font-size: 0.68rem; padding: 2px 7px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.avis-source.google { border-color: rgba(66,133,244,0.4); color: #4285F4; background: rgba(66,133,244,0.08); }
.avis-source.pj { border-color: rgba(255,102,0,0.4); color: #FF6600; background: rgba(255,102,0,0.08); }

.avis-stars { display: flex; gap: 2px; }
.avis-stars .star { font-size: 0.82rem; }
.avis-text { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.7; font-weight: 300; flex: 1; }

.avis-loader {
  display: flex; justify-content: center; align-items: center;
  min-height: 160px; gap: 8px; color: var(--text-muted); font-size: 0.9rem; grid-column: 1/-1;
}
.avis-loader-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: loaderBounce 1.2s ease-in-out infinite;
}
.avis-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.avis-loader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderBounce {
  0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.avis-notice {
  text-align: center; padding: 1rem; grid-column: 1/-1;
  background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: 8px; font-size: 0.8rem; color: var(--text-muted);
}
.avis-notice a { color: var(--accent); }
.avis-cta { text-align: center; margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) { .avis-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .avis-grid { grid-template-columns: 1fr; }
  .avis-global { gap: 1rem; }
  .avis-divider { display: none; }
}
.form-message { font-size: 0.9rem; margin-top: 0.5rem; display: none; }
.form-message.success { color: #4ade80; display: block; }
.form-message.error { color: #f87171; display: block; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); max-width: 260px; line-height: 1.7; }

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li { font-size: 0.85rem; color: var(--text-secondary); }
.footer-col ul a { color: var(--text-secondary); transition: color 0.3s; }
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== MODAL GALLERY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 92vw;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  color: var(--text-primary);
}
.modal-close:hover { background: var(--accent-glow); border-color: var(--accent); }

.modal-carousel {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 400px;
  background: #000;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a08;
}
.carousel-slide img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.carousel-placeholder .icon { font-size: 3rem; opacity: 0.4; }
.carousel-placeholder p { color: var(--text-muted); font-size: 0.8rem; text-align: center; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.carousel-btn:hover { background: var(--accent-glow); border-color: var(--accent); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.modal-footer-info {
  padding: 0.8rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== SCROLL TO TOP ===== */
#scrolltop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0f0e;
  font-size: 1.1rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  cursor: pointer;
}
#scrolltop.visible { opacity: 1; transform: translateY(0); }
#scrolltop:hover { transform: translateY(-4px); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .quali-inner { grid-template-columns: 1fr; }
  .zones-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .ring-stats { flex-direction: column; width: auto; left: 1.5rem; transform: none; }
  #map-container { height: 300px; }
  .captcha-box { flex-direction: column; align-items: flex-start; }
}

/* Light mode map tiles fix */
[data-theme="light"] .leaflet-tile { filter: brightness(1.05) contrast(0.95); }
