/* =============================================
   ELECTROSAFE POWER — Custom Stylesheet
   Bootstrap 5 + Custom Design
   ============================================= */

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

:root {
  --yellow: #cc1212;
  --yellow-dark: #a50e0e;
  --dark: #0d0f14;
  --dark-2: #161b24;
  --dark-3: #1e2635;
  --mid: #2b3447;
  --light-text: #c8d0e0;
  --muted: #7a8599;
  --white: #ffffff;
  --danger: #e63946;
}

* { box-sizing: border-box; }

body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--dark);
  color: var(--light-text);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

a {
  color: var(--yellow);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #fff; }

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  background-color: rgba(13, 15, 20, 0.97) !important;
  border-bottom: 2px solid var(--yellow);
  padding: 0.75rem 0;
}
.navbar-brand img { height: 52px; }
.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-text) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--yellow) !important; }
.dropdown-menu {
  background-color: var(--dark-2);
  border: 1px solid var(--mid);
  border-top: 2px solid var(--yellow);
  border-radius: 0;
}
.dropdown-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light-text);
  padding: 0.5rem 1.25rem;
}
.dropdown-item:hover {
  background-color: var(--mid);
  color: var(--yellow);
}
.navbar-toggler { border-color: var(--yellow); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23cc1212' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── HERO / PAGE HEADER ─────────────────── */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-inner {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,20,0.95) 0%, rgba(13,15,20,0.4) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0 3rem;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.hero-content h1 span { color: var(--yellow); }
.hero-content p {
  font-size: 1.15rem;
  color: var(--light-text);
  max-width: 600px;
}

/* Carousel hero */
.hero-carousel .carousel-item { height: 560px; }
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.hero-carousel .carousel-caption {
  bottom: 10%;
  text-align: left;
  left: 8%;
  right: 8%;
}
.hero-carousel .carousel-caption h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.hero-carousel .carousel-caption p {
  font-size: 1.15rem;
  color: var(--light-text);
}
.carousel-indicators [data-bs-target] {
  background-color: var(--yellow);
  width: 30px;
  height: 3px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(0) sepia(1) saturate(5) hue-rotate(5deg);
}

/* ── PAGE HEADER (inner pages) ──────────── */
.page-header {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,20,1) 0%, rgba(13,15,20,0.5) 60%, transparent 100%);
}
.page-header-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  width: 100%;
}
.page-header-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}
.page-header-content .breadcrumb {
  background: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.breadcrumb-item, .breadcrumb-item a { color: var(--muted); font-size: 0.9rem; }
.breadcrumb-item.active { color: var(--yellow); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* ── BUTTONS ─────────────────────────────── */
.btn-primary {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  border-radius: 0;
  transition: all 0.2s;
}
.btn-primary:hover {
  background-color: #a50e0e;
  border-color: #a50e0e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(204,18,18,0.35);
}
.btn-outline-light {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.6rem 1.8rem;
}

/* ── SECTION STYLES ─────────────────────── */
section { padding: 5rem 0; }
.section-dark { background-color: var(--dark); }
.section-darker { background-color: var(--dark-2); }
.section-mid { background-color: var(--dark-3); }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}
.title-underline {
  width: 60px;
  height: 4px;
  background: var(--yellow);
  margin-bottom: 1.5rem;
}
.title-underline.center { margin: 0 auto 1.5rem; }

/* ── SERVICE CARDS ───────────────────────── */
.service-card {
  background: var(--dark-3);
  border: 1px solid var(--mid);
  border-top: 3px solid var(--yellow);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: var(--yellow);
}
.service-card .icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(204,18,18,0.12);
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card .icon-wrap img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(10deg);
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ── FEATURE LIST ────────────────────────── */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: var(--light-text);
  border-bottom: 1px solid var(--mid);
  font-size: 0.95rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 0.85rem;
  top: 0.45rem;
}

/* ── STATS BAR ───────────────────────────── */
.stats-bar { background: var(--yellow); padding: 2.5rem 0; }
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ── HIRE PANEL ──────────────────────────── */
.hire-panel {
  background: var(--dark-3);
  border: 1px solid var(--mid);
  padding: 2rem;
}
.hire-panel h4 {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ── CLIENT LOGOS ────────────────────────── */
.clients-section { background: var(--dark-2); padding: 3.5rem 0; }
.client-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.client-logo {
  background: #212121;
  border: 1px solid var(--mid);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition: border-color 0.2s;
}
.client-logo:hover { border-color: var(--yellow);filter: brightness(1.5); }
.client-logo img {
  max-height: 42px;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.25s;
}
.client-logo:hover img { filter: grayscale(0%) brightness(1); }

/* ── CTA BAND ────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  padding: 4rem 0;
}
.cta-band h2 { font-size: 2.5rem; }
.cta-band p { color: var(--muted); font-size: 1.05rem; }

/* ── PHONE HIGHLIGHT ─────────────────────── */
.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(204,18,18,0.1);
  border: 1px solid var(--yellow);
  padding: 0.75rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--yellow);
  letter-spacing: 0.05em;
}
.phone-badge svg { width: 24px; height: 24px; fill: var(--yellow); }

/* ── CONTENT PAGE ────────────────────────── */
.content-card {
  background: var(--dark-3);
  border: 1px solid var(--mid);
  padding: 2.5rem;
}
.content-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.content-card p { color: var(--light-text); }

/* ── CONTACT FORM ────────────────────────── */
.form-control, .form-select {
  background-color: var(--mid);
  border: 1px solid var(--dark-3);
  border-radius: 0;
  color: var(--white);
  padding: 0.75rem 1rem;
  font-family: 'Barlow', sans-serif;
}
.form-control:focus {
  background-color: var(--mid);
  border-color: var(--yellow);
  color: var(--white);
  box-shadow: 0 0 0 2px rgba(245,197,24,0.2);
}
.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
textarea.form-control { min-height: 150px; resize: vertical; }

/* ── GENERATOR IMAGE ─────────────────────── */
.gen-img {
  border: 3px solid var(--mid);
  width: 100%;
  object-fit: cover;
}

/* ── GALLERY GRID ────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.gallery-thumb {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.4s; filter: brightness(0.75); }
.gallery-thumb:hover img { transform: scale(1.08); filter: brightness(1); }

/* ── FOOTER ──────────────────────────────── */
footer {
  background-color: #080a0e;
  border-top: 3px solid var(--yellow);
  padding: 3rem 0 1.5rem;
}
footer h5 {
  font-size: 1.1rem;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}
footer p, footer li { color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--yellow); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid var(--mid);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-method-card {
  background: var(--dark-3);
  border: 1px solid var(--mid);
  border-top: 3px solid var(--yellow);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.contact-method-icon {
  width: 60px;
  height: 60px;
  background: rgba(204,18,18,0.12);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.contact-method-icon svg { width: 26px; height: 26px; fill: var(--yellow); }
.contact-method-icon.wa-icon { background: rgba(37,211,102,0.12); border-color: #25d366; }
.contact-method-icon.wa-icon svg { fill: #25d366; }
.contact-method-card h4 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.contact-method-link {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--yellow);
  word-break: break-all;
}
.contact-method-link:hover { color: #fff; }
.wa-btn-link {
  display: inline-block;
  background: #25d366;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 1.3rem;
  transition: background 0.2s;
}
.wa-btn-link:hover { background: #1ebe5d; color: #fff; }
.btn-whatsapp {
  background: #25d366;
  border: none;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 2rem;
  border-radius: 0;
  transition: background 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; transform: translateY(-1px); }
.wa-panel-icon {
  width: 52px; height: 52px;
  background: rgba(37,211,102,0.12);
  border: 2px solid #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── UTILITIES ───────────────────────────── */
.text-yellow { color: var(--yellow) !important; }
.bg-yellow { background-color: var(--yellow) !important; }
.border-yellow { border-color: var(--yellow) !important; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 767px) {
  section { padding: 3rem 0; }
  .hero { height: 420px; }
  .hero-carousel .carousel-item { height: 420px; }
  .stat-number { font-size: 2rem; }
  .phone-badge { font-size: 1.25rem; }
}
