/* Lumeni Electrical — Direction A "Local & Trusted" */
:root {
  --bg: #F3F5EF;
  --ink: #0E1C27;
  --navy: #000F1A;
  --leaf: #4F8F2A;
  --leaf-dark: #3E7420;
  --sun: #F0A83A;
  --soft: #E4EBDD;
  --muted: #3A4A54;
  --line: #D3DBCC;
  --white: #fff;
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf-dark); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
h1 em, h2 em { font-style: normal; color: var(--leaf); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-weight: 700; color: var(--leaf); font-size: .9rem; letter-spacing: .04em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--leaf); color: var(--white);
  font-weight: 700; text-decoration: none; padding: .85em 1.5em;
  border-radius: 999px; border: 2px solid var(--leaf); white-space: nowrap;
  font-family: inherit; font-size: 1rem; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* Top strip + header */
.strip { background: var(--ink); color: #EAF1E4; text-align: center; padding: 9px 16px; font-size: .9rem; }
.strip a { color: var(--sun); font-weight: 700; text-decoration: none; }
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: #DCE6EC; text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--sun); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .wrap, .page-hero .wrap { grid-template-areas: ". photo" "head photo" "body photo" ". photo"; grid-template-rows: 1fr auto auto 1fr; row-gap: 0; }
.hero-head { grid-area: head; }
.hero-body { grid-area: body; }
.hero .photo, .page-hero .photo { grid-area: photo; align-self: center; }
.hero h1 { margin: 14px 0 20px; }
.hero .lead + .lead { margin-top: 12px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.trust { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; font-size: .92rem; color: var(--muted); }
.trust b { display: block; color: var(--ink); font: 800 1.3rem/1.3 var(--f-head); }
.stars, .trust b.stars { color: var(--sun); letter-spacing: .08em; }
.photo { position: relative; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 22%; border-radius: 28px; }
.photo .card {
  position: absolute; left: -28px; bottom: 32px; max-width: 270px;
  background: var(--white); border-radius: 16px; padding: 16px 18px; font-size: .95rem;
  box-shadow: 0 16px 40px -16px rgba(14, 28, 39, .35);
}
.photo .card b { display: block; }

/* Services */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { background: var(--soft); border-radius: var(--radius); padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; }
.svc .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--white); display: grid; place-items: center; color: var(--leaf); }
.svc .icon svg { width: 24px; height: 24px; }
.svc p { color: var(--muted); font-size: .98rem; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; flex: 1; }
.review figcaption b { display: block; }
.review figcaption span { color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { background: var(--navy); color: #E5EBE8; }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.contact h2 { color: var(--white); }
.contact h2 em { color: #8CC63F; }
.contact .lead { color: #A9B6BE; }
.details { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.details span { display: block; font-size: .85rem; color: #8FA3B0; }
.details a, .details strong { color: var(--white); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.details a:hover { color: var(--sun); }
form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--leaf); }
textarea { min-height: 130px; resize: vertical; }
.hidden { display: none; }
.form-msg { font-weight: 600; }
.form-msg.ok { color: var(--leaf-dark); }
.form-msg.err { color: #B3261E; }

/* About page */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.page-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 14px 0 20px; }
.page-hero .lead + .lead { margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { display: grid; gap: 16px; color: var(--muted); }
.prose h2 { color: var(--ink); margin-bottom: 4px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { background: var(--soft); border-radius: 14px; padding: 14px 18px 14px 50px; position: relative; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.band { background: var(--navy); color: #C9D4DA; }
.band h2 { color: var(--white); }
.band h2 em { color: #8CC63F; }
.band .prose { color: #C9D4DA; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags span { border: 1px solid #2A3E4C; color: var(--white); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.map { border-radius: 28px; overflow: hidden; margin-bottom: 24px; background: var(--soft); }
.map iframe { display: block; width: 100%; height: clamp(300px, 40vw, 440px); border: 0; }
.cta-box {background: var(--soft); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-box p { color: var(--muted); margin-top: 10px; }

/* Footer */
.site-footer { background: var(--navy); color: #8FA3B0; border-top: 1px solid #1C2E3B; padding: 32px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer img { height: 44px; width: auto; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: #C9D4DA; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }

/* Floating WhatsApp chat button */
.wa-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #06281C; font-weight: 700; text-decoration: none;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 15, 26, .28);
  transition: background .15s, transform .15s;
}
@media (hover: hover) { .wa-btn:hover { background: #1FBF5B; transform: translateY(-2px); } }
.wa-btn svg { display: block; flex: none; }

@media (max-width: 1024px) {
  .wa-btn { right: 12px; bottom: 12px; gap: 8px; padding: 6px 14px 6px 6px; font-size: .9rem; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .wa-btn svg { width: 30px; height: 30px; }
  .site-footer { padding-bottom: 80px; }
}
@media (max-width: 900px) {
  .hero .wrap, .page-hero .wrap, .contact .wrap, .split { grid-template-columns: 1fr; }
  .hero .wrap, .page-hero .wrap { grid-template-areas: "head" "photo" "body"; grid-template-rows: none; row-gap: 8px; }
  .hero .photo, .page-hero .photo { margin-bottom: 24px; }
  .svc-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .photo { max-width: 520px; }
  .photo .card { left: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .logo img { height: 42px; }
  .nav { gap: 16px; }
  .nav .btn { padding: .6em 1em; font-size: .9rem; }
  .nav .call-long { display: none; }
  .svc-grid, .reviews-grid, .field-row { grid-template-columns: 1fr; }
  .trust { gap: 20px; }
}
@media (min-width: 601px) { .nav .call-short { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wa-btn { transition: none; } .wa-btn:hover { transform: none; } }
