/* ========== Base Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #f9fafb;
}

/* Links & Buttons reset */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ========== Layout Helpers ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-light {
  background-color: #edf2ff;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 42rem;
  margin: 0 auto 2rem auto;
  text-align: center;
  color: #4b5563;
}

/* ========== Header ========== */
.site-header {
  background-color: #0f172a;
  color: #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-img {
  height: 32px;        /* control logo size here */
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1rem;
}

/* Navigation: mobile-first = simple row that can wrap */
.main-nav {
  display: none; /* will show on larger screens */
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  border-color: #3b82f6;
}

/* Call in header */
.header-call {
  font-size: 0.85rem;
  background-color: #22c55e;
  color: #022c22;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* On small screens, we keep it simple: logo + call */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #e5e7eb;
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.hero-copy p {
  margin-bottom: 1.5rem;
  color: #cbd5f5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: #22c55e;
  color: #022c22;
  border-color: #16a34a;
}

.btn-primary:hover {
  background-color: #16a34a;
}

.btn-outline {
  background-color: transparent;
  color: #e5e7eb;
  border-color: #e5e7eb;
}

.btn-outline:hover {
  background-color: rgba(15, 23, 42, 0.2);
}

.btn-secondary {
  background-color: #1d4ed8;
  color: #e5e7eb;
  border-color: #1d4ed8;
}

.btn-secondary:hover {
  background-color: #1e40af;
}

.btn-whatsapp {
  background-color: #22c55e;
  color: #022c22;
}

/* ========== Cards & Grids ========== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  text-align: left;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.trust-item {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.trust-item h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

/* Contact actions */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-location {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ========== Floating WhatsApp Button ========== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background-color: #22c55e;
  color: #022c22;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.6);
  font-size: 1.5rem;
  z-index: 100;
}

/* ========== Larger Screens Tweaks ========== */
@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-copy {
    max-width: 32rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ========== Hero Background Image (4 Images Rotating) ========== */
.hero-with-image {
  position: relative;
  background: #0f172a; /* fallback color */
  color: #e5e7eb;
  overflow: hidden;
}

.hero-with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
  z-index: 0;
  animation: heroBackgroundRotate 20s infinite;
}

@keyframes heroBackgroundRotate {
  0%, 22% {
    background-image: url("images/hero-electrician.png");
  }
  25%, 47% {
    background-image: url("images/hero-electrician1.png");
  }
  50%, 72% {
    background-image: url("images/hero-electrician2.png");
  }
  75%, 97% {
    background-image: url("images/hero-electrician3.png");
  }
  100% {
    background-image: url("images/hero-electrician4.png");
  }
}

.hero-with-image .hero-inner,
.hero-with-image .hero-copy,
.hero-with-image .hero-ctas,
.hero-with-image .hero-meta {
  position: relative;
  z-index: 1;
}

/* ========== Footer ========== */
.site-footer {
  background-color: #0b1220;
  color: #e5e7eb;
  padding-top: 2.5rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  max-width: 26rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
}

.footer-text {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin: 0 0 0.75rem 0;
}

.footer-text a {
  color: #e5e7eb;
  text-decoration: underline;
}

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

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #020617;
  border: 1px solid #1f2937;
  transition: background-color 0.2s, transform 0.2s;
}

.footer-icon-link:hover {
  background-color: #111827;
  transform: translateY(-1px);
}

.footer-icon {
  width: 16px;
  height: 16px;
  fill: #e5e7eb;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 0.75rem 0;
  background-color: #020617;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive footer layout */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.whatsapp-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #25D366; /* WhatsApp green */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-btn:hover {
  background-color: #20BA5A; /* darker green on hover */
  transform: translateY(-2px);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

.get-to-know-btn {
  display: inline-flex;   /* same as .btn [web:22] */
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}


/* ========== Simple Image Slider ========== */
.slider {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-window {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  flex: 1;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slider-image {
  width: 100%;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  max-height: 380px;
}

.slider-btn {
  background-color: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.2s, transform 0.2s;
}

.slider-btn:hover {
  background-color: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.slider-btn:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* On very small screens, hide arrows to keep it clean (auto-slide only) */
@media (max-width: 480px) {
  .slider {
    gap: 0;
  }

  .slider-btn {
    display: none;
  }
}