:root {
  --navy: #0f2c5c;
  --navy-dark: #081b3d;
  --red: #c8102e;
  --red-dark: #a30d25;
  --ink: #1b1f27;
  --grey-text: #545b66;
  --bg-soft: #f4f6fa;
  --border: #e3e7ee;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(15, 44, 92, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #cdd7ea; font-size: 0.82rem; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 20px; gap: 12px; flex-wrap: wrap;
}
.topbar-contacts a { margin-right: 16px; font-weight: 600; color: #e9edf5; }
.topbar-contacts a:hover { color: #fff; }
.topbar-tag { opacity: 0.85; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.12rem; letter-spacing: 0.3px; color: var(--navy); }
.brand-text small { font-size: 0.66rem; letter-spacing: 1.6px; color: var(--red); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-weight: 600; font-size: 0.94rem; color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--red); }
.site-nav a.active { color: var(--red); border-bottom-color: var(--red); }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px;
  font-weight: 700; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn.full { width: 100%; text-align: center; border: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, rgba(8,27,61,0.94) 30%, rgba(8,27,61,0.75) 65%, rgba(200,16,46,0.55) 100%),
              url("images/hero-electrician.jpg") center 30% / cover no-repeat;
}
.hero-inner {
  display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: center;
  padding: 64px 20px 70px; position: relative; z-index: 1;
}
.eyebrow {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 12px; border-radius: 30px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.4px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.18; margin: 0 0 18px; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.hero-lead { color: #e3e8f3; font-size: 1.03rem; max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.88rem; color: #dbe2ef; }
.hero-points li::before { content: "✓ "; color: #6ee7a0; font-weight: 700; }

.hero-panel { display: flex; justify-content: center; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px 28px; width: 100%; max-width: 300px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.hero-card h3 { margin: 0 0 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.hero-card p { margin: 0; font-weight: 600; }
.hero-card-name { font-size: 1.05rem; }
.hero-card hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; color: #fff; padding: 64px 0 44px;
  background-color: var(--navy-dark); background-size: cover; background-position: center;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,27,61,0.92), rgba(8,27,61,0.72));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.breadcrumb { font-size: 0.85rem; color: #cdd7ea; }
.breadcrumb a:hover { color: #fff; }
.page-banner p.lead { color: #d3dcec; max-width: 560px; margin: 10px 0 0; }

/* ---------- Section headings ---------- */
.section-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0 0 8px; color: var(--navy); }
.section-title.light { color: #fff; }
.section-sub { color: var(--grey-text); margin: 0 0 34px; max-width: 560px; }
.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Services grid (icons) ---------- */
.services { padding: 70px 0 50px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.service-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3d9e4; }
.service-card .icon { width: 34px; height: 34px; color: var(--red); stroke: var(--red); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.service-card h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--navy); }
.service-card p { font-size: 0.88rem; color: var(--grey-text); margin: 0; }
.service-note { text-align: center; color: var(--grey-text); font-size: 0.9rem; margin-top: 30px; font-style: italic; }

/* ---------- Split image/text rows (services categories) ---------- */
.split-section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.split-section:last-of-type { border-bottom: none; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 320px; object-fit: cover; }
.split-copy .tag { display: inline-block; color: var(--red); font-weight: 700; font-size: 0.76rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.split-copy h2 { color: var(--navy); margin: 0 0 12px; font-size: 1.5rem; }
.split-copy p { color: var(--grey-text); margin: 0 0 16px; }
.split-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.split-copy ul li { font-size: 0.94rem; color: var(--ink); padding-left: 22px; position: relative; }
.split-copy ul li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---------- Image showcase strip (home) ---------- */
.showcase { padding: 60px 0; background: var(--bg-soft); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.showcase-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 260px; box-shadow: var(--shadow); }
.showcase-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.showcase-card:hover img { transform: scale(1.06); }
.showcase-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(0deg, rgba(8,27,61,0.88), transparent);
  color: #fff; font-weight: 700; font-size: 0.98rem;
}

/* ---------- About ---------- */
.about { padding: 70px 0; }
.about-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.about-copy p { color: var(--grey-text); }
.about-stats { display: grid; gap: 16px; }
.stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; font-weight: 600; color: var(--grey-text); font-size: 0.92rem; }
.stat span { display: block; font-size: 1.7rem; color: var(--red); font-weight: 800; margin-bottom: 2px; }

.director-card {
  display: flex; align-items: center; gap: 16px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 26px;
}
.director-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.director-card h4 { margin: 0 0 2px; color: var(--navy); }
.director-card span { color: var(--grey-text); font-size: 0.88rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }
.value-card { padding: 20px; border-left: 3px solid var(--red); background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.value-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.value-card p { margin: 0; color: var(--grey-text); font-size: 0.9rem; }

/* ---------- Why ---------- */
.why { padding: 70px 0; background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.why-card { padding: 22px; border-left: 3px solid var(--red); background: #fff; border-radius: 0 8px 8px 0; box-shadow: var(--shadow); }
.why-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.why-card p { margin: 0; color: var(--grey-text); font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery { padding: 70px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 250px; cursor: pointer; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px;
  background: linear-gradient(0deg, rgba(8,27,61,0.9), transparent);
  color: #fff; font-size: 0.86rem; font-weight: 700;
}
.gallery-item.tall { grid-row: span 2; height: 100%; }

.lightbox {
  position: fixed; inset: 0; background: rgba(5,12,28,0.92); display: none;
  align-items: center; justify-content: center; z-index: 500; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: 12px; font-size: 0.92rem; }
.lightbox-close {
  position: absolute; top: 22px; right: 28px; color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1;
}
.gallery-note { text-align: center; color: var(--grey-text); font-size: 0.88rem; margin-top: 28px; font-style: italic; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 46px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 4px; font-size: 1.5rem; }
.cta-inner p { margin: 0; color: #cdd7ea; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { padding: 70px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info p { color: var(--grey-text); max-width: 420px; }
.contact-line { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; flex-wrap: wrap; }
.contact-line a { font-weight: 700; color: var(--navy); }
.contact-line a:hover { color: var(--red); }
.contact-label { min-width: 90px; color: #8b95a8; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.6px; font-weight: 700; padding-top: 2px; }

.quote-form { background: var(--bg-soft); color: var(--ink); border-radius: var(--radius); padding: 26px 26px 22px; border: 1px solid var(--border); }
.quote-form h3 { margin: 0 0 16px; color: var(--navy); }
.quote-form label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--grey-text); margin: 12px 0 5px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 0.92rem; color: var(--ink); background: #fff;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--navy); }
.quote-form button { margin-top: 18px; }
.form-note { font-size: 0.76rem; color: var(--grey-text); margin: 10px 0 0; text-align: center; }

.map-wrap { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd7ea; padding: 26px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { color: #fff; letter-spacing: 0.4px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: #fff; }
.footer-copy { opacity: 0.85; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3); z-index: 200; transition: transform 0.15s ease;
}
.fab-whatsapp:hover { transform: scale(1.07); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-copy { order: initial; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-panel { order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start;
    padding: 10px 20px 18px; gap: 14px; display: none; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-cta { margin-left: 0; }
  .topbar-inner { font-size: 0.74rem; }
  .showcase-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall { grid-row: span 1; height: 250px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
