/* ============================================
   Electrician Jhune — Main Stylesheet (Refactored FULL)
   ============================================ */

/* CSS CUSTOM PROPERTIES */
:root {
  --primary: #F97316;
  --primary-dark: #EA580C;
  --primary-light: #FED7AA;
  --secondary: #FACC15;
  --dark: #1F2937;
  --dark-light: #374151;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;
  --error: #EF4444;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
  --shadow-primary: 0 8px 30px rgba(249,115,22,0.35);

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
  --transition-slow: 0.5s ease;

  --nav-h: 80px;
  --max-w: 1280px;
}

/* =========== RESET & BASE =========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}

/* =========== TYPOGRAPHY =========== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}
p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* =========== LAYOUT =========== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section--white {
  background: var(--white);
}
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.flex-gap    { display: flex; gap: 1rem; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

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

/* =========== SECTION LABELS / TITLES / DIVIDERS =========== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  margin: 1rem 0 1.5rem;
}
.divider--center {
  margin: 1rem auto 1.5rem;
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(249,115,22,0.45);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-light);
  border-color: var(--dark-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* =========== BADGES =========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}
.badge--primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.badge--success {
  background: #D1FAE5;
  color: #065F46;
}
.badge--dark {
  background: var(--dark);
  color: var(--white);
}

/* =========== EMERGENCY BAR =========== */
.emergency-bar {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.emergency-bar a {
  color: var(--secondary);
  font-weight: 700;
}

/* =========== NAVIGATION =========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: rgba(31, 41, 55, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav__logo img {
  border-radius: var(--radius);
}
.nav__brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.nav__brand span {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav__links a:hover {
  color: var(--primary);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__phone {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}
.nav__phone:hover { color: var(--primary); }
/* Hamburger */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  background: none;
  border: none;
}
.nav__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.nav__menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--dark);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 999;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
}
.nav__mobile a {
  color: rgba(255,255,255,0.85);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  display: block;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav__mobile a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--primary);
}
.nav__mobile .btn {
  margin-top: 0.5rem;
  text-align: center;
  justify-content: center;
}

/* =========== HERO =========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('../hero.png') center center / cover no-repeat;
  z-index: 0; /* previously -2, use 0 to ensure visibility */
  opacity: 1;
  background-color: #111827;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(31,41,55,0.7) 100%);
  z-index: 1;
  opacity: 1;
}
.hero__content {
  max-width: 750px;
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.4);
  color: var(--primary-light);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__title span {
  color: var(--primary);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero__stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  animation: countUp 0.6s ease both;
}
.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========== ABOUT =========== */
.about__image-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-width: 0;
  width: 100%;
}
.about__image-wrap img {
  width: 100%;
  height: 520px;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .about__image-wrap img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .about__image-wrap img {
    height: 240px;
  }
}
.about__badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-primary);
}
.about__badge-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.about__badge-text {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}
.about__text {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.about__feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.about__feature-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =========== SERVICES =========== */
.services {
  background: var(--bg);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.service-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}
.service-card:hover .service-card__img {
  transform: scale(1.05);
}
.service-card__body {
  padding: 1.5rem;
}
.service-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.service-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.service-card__link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.service-card__link:hover { color: var(--primary-dark); }

/* =========== WHY US =========== */
.why-us {
  background: var(--dark);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: background var(--transition), transform var(--transition);
}
.why-card:hover {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-4px);
}
.why-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.why-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.why-card__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* =========== GALLERY =========== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.gallery__item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}
.gallery__item:hover img {
  transform: scale(1.08);
}
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery__item:hover .gallery__overlay {
  opacity: 1;
}
.gallery__caption {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =========== QUOTE / FORM =========== */
.quote {
  background: linear-gradient(135deg, var(--dark) 0%, #111827 100%);
}
.quote__wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
/* Progress bar */
.form-progress {
  position: relative;
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.form-progress__track {
  position: absolute;
  top: 2.85rem;
  left: calc(2.5rem + 1rem);
  right: calc(2.5rem + 1rem);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.form-progress__fill {
  position: absolute;
  top: 2.85rem;
  left: calc(2.5rem + 1rem);
  height: 2px;
  background: var(--primary);
  transition: width 0.4s ease;
  z-index: 1;
}
.form-progress__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.form-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.form-progress__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.form-progress__step.active .form-progress__dot {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.2);
}
.form-progress__step.completed .form-progress__dot {
  background: var(--success);
  color: var(--white);
}
.form-progress__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.form-progress__step.active .form-progress__label {
  color: var(--primary);
}
.form-step {
  display: none;
  padding: 2rem 2.5rem;
}
.form-step.active {
  display: block;
}
.form-step__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.form-step__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.form-group label span {
  color: var(--error);
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}
.form-control.error {
  border-color: var(--error);
}
.form-control.success {
  border-color: var(--success);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field-error {
  font-size: 0.8rem;
  color: var(--error);
  display: none;
}
.field-error.show {
  display: block;
}
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.step-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
/* Upload */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.upload-area:hover, .upload-area.dragging {
  border-color: var(--primary);
  background: rgba(249,115,22,0.03);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-area__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.upload-area__title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.upload-area__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.upload-area__btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.upload-preview__item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
}
.upload-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
/* Success */
.form-success {
  display: none;
  padding: 3rem 2.5rem;
  text-align: center;
}
.form-success.show {
  display: block;
}
.form-success__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.form-success__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.form-success__text {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* =========== TESTIMONIALS =========== */
.testimonials {
  background: var(--bg);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}
.star {
  color: var(--secondary);
  font-size: 1.1rem;
}
.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  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%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}
.testimonial-card__name {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
}
.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========== CONTACT =========== */
.contact {
  background: var(--white);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  transition: background var(--transition-fast);
  margin-bottom: 0.5rem;
}
.contact__item:hover {
  background: var(--bg);
}
.contact__item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact__item-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact__item-value {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}
a.contact__item-value:hover {
  color: var(--primary);
}
.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.contact__actions .btn {
  justify-content: center;
}
.contact__map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.contact__map iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* =========== FOOTER =========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer__brand img {
  border-radius: var(--radius);
}
.footer__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.footer__socials {
  display: flex;
  gap: 0.75rem;
}
.footer__social {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.footer__social:hover {
  background: var(--primary);
  color: var(--white);
}
.footer__heading {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer__links a:hover {
  color: var(--primary);
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.footer__contact-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.footer__contact-item a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer__contact-item a:hover {
  color: var(--primary);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer__bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer__bottom a:hover {
  color: var(--primary);
}

/* =========== STICKY BOTTOM BAR (Mobile) =========== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1rem;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.sticky-bar.visible {
  display: flex;
}
.sticky-bar__inner {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}
.sticky-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}
.sticky-bar__btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.sticky-bar__btn-icon {
  font-size: 1.2rem;
}
.sticky-bar__btn--primary {
  background: var(--primary);
  color: var(--white);
}
.sticky-bar__btn--primary:hover {
  background: var(--primary-dark);
}
.sticky-bar__btn--whatsapp {
  background: #25D366;
  color: var(--white);
}
.sticky-bar__btn--whatsapp:hover {
  background: #1dba57;
}

/* =========== TOAST NOTIFICATIONS =========== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 380px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  pointer-events: all;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  border-left: 4px solid var(--border);
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.hide {
  transform: translateX(110%);
  opacity: 0;
}
.toast--success {
  border-left-color: var(--success);
}
.toast--error {
  border-left-color: var(--error);
}
.toast--loading {
  border-left-color: var(--primary);
}
.toast--info {
  border-left-color: #3B82F6;
}
.toast__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.toast__body {
  flex: 1;
  min-width: 0;
}
.toast__title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.toast__message {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius);
  transition: color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}
.toast__close:hover {
  color: var(--text);
  background: var(--bg);
}

/* =========== SCROLL REVEAL ANIMATIONS =========== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal {
  transform: translateY(30px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view {
  opacity: 1;
  transform: none;
}
/* Animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* =========== RESPONSIVE STYLES =========== */
@media (max-width: 1024px) {
  .nav__actions { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__phone { display: none; }
  .nav__menu-btn { display: flex; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .emergency-bar { font-size: 0.75rem; gap: 0.5rem; }
  .grid-2, .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services__grid, .why-grid, .testimonials__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .about__features { grid-template-columns: 1fr; }
  .form-step { padding: 1.25rem !important; }
  .footer__bottom { flex-direction: column; text-align: center; }
  /* FIX: removed blanket .btn { width:100% } — it broke nav & inline buttons.
     Only block-level CTA buttons in specific sections go full-width. */
  .hero__ctas .btn,
  .contact__actions .btn,
  .about__content > .flex-gap .btn { width: 100%; justify-content: center; }
  .gallery__grid { grid-template-columns: 1fr; }
  /* Ensure section labels wrap on small screens */
  .section-label { flex-wrap: wrap; }
}

/* =========== svh FIX =========== */
.hero { min-height: 100svh; }

/* =========== LIGHTBOX =========== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}
.lightbox-close:hover { color: var(--primary); }
body.no-scroll { overflow: hidden; }

/* =========== ACTIVE NAV LINK =========== */
.nav__links a.active { color: var(--primary); }

/* =========== STICKY BAR BODY PADDING =========== */
body { padding-bottom: 0; }
.sticky-active body { padding-bottom: 70px; }
@media (min-width: 769px) {
  .sticky-active body { padding-bottom: 0; }
}
