/* =========================================================
   Green Gem Electrical
   ========================================================= */
:root {
  --ink: #08130f;          /* deepest green-black */
  --ink-2: #0d1d17;        /* dark panels */
  --ink-3: #14291f;        /* raised dark */
  --green: #2fd877;        /* primary accent */
  --green-2: #1fbf62;      /* hover */
  --green-deep: #0e9f57;   /* accent on light bg */
  --text: #13221b;
  --muted: #5a6b63;
  --light: #f4f7f5;
  --line: #e2e9e5;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 30px -12px rgba(8, 19, 15, .25);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 100px) 0; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow-dark { color: var(--green-deep); }
.accent { color: var(--green); }
.accent-dark { color: var(--green-deep); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { font-size: 1.05em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--green); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(47, 216, 119, .7); }
.btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { border-color: var(--green); background: rgba(47,216,119,.08); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--white); }
.btn-lg { padding: 16px 28px; font-size: 1rem; min-height: 60px; }
.btn-call { gap: 14px; text-align: left; line-height: 1.15; font-size: 1.15rem; font-weight: 700; }
.btn-call svg { font-size: 1.4rem; }
.btn-call small { display: block; font-size: .78rem; font-weight: 500; font-family: var(--font-body); opacity: .85; }
.btn-call:hover svg { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(8, 19, 15, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(8, 19, 15, .96); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.logo-text small { font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--green); margin-top: 5px; font-weight: 600; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--green); border-radius: 2px; }
.main-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--white); line-height: 1.15; }
.header-phone svg { font-size: 1.5rem; color: var(--green); }
.header-phone strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.header-phone small { font-size: .72rem; color: rgba(255,255,255,.7); }
.header-cta { padding: 11px 18px; font-size: .88rem; }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(780px, 100vh); display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 70px; color: var(--white); background: var(--ink); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,19,15,.97) 0%, rgba(8,19,15,.88) 32%, rgba(8,19,15,.35) 58%, rgba(8,19,15,.05) 80%),
    linear-gradient(0deg, rgba(8,19,15,.7) 0%, rgba(8,19,15,0) 30%),
    url("../images/hero.jpg") 70% center / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { position: relative; width: min(1200px, 100% - 40px); }
.hero-content { max-width: 600px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 .accent { display: block; }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 36px; }
.hero-trust li { display: flex; align-items: center; gap: 12px; font-size: .86rem; line-height: 1.35; color: rgba(255,255,255,.85); }
.hero-trust svg { font-size: 1.8rem; color: var(--green); }
.hero-script {
  position: absolute; right: 0; bottom: -40px; margin: 0;
  font-family: "Caveat", cursive; font-size: 1.9rem; line-height: 1.15; color: rgba(255,255,255,.9);
  transform: rotate(-6deg); text-align: right; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* ---------- Services ---------- */
.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 30px); padding-top: 10px; }
.services-intro p:not(.eyebrow) { color: var(--muted); font-size: .97rem; margin-bottom: 28px; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(8,19,15,.06); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-icon {
  /* margin-top % resolves against card width, so this sits on the 16:9 image edge */
  position: absolute; left: 14px; top: 0; margin-top: calc(56.25% - 24px);
  width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--green-deep);
  display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 4px 14px rgba(8,19,15,.18);
  border: 2px solid var(--white);
}
.service-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 32px 18px 20px; }
.service-body h3 { margin-bottom: 4px; }
.service-body p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.service-arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  flex-shrink: 0; font-size: .9rem; transition: background .2s, color .2s, border-color .2s;
}
.service-card:hover .service-arrow { background: var(--green); border-color: var(--green); color: var(--ink); }

/* ---------- Trust band ---------- */
.trust-band { background: var(--ink); color: var(--white); padding: 34px 0; border-top: 1px solid rgba(47,216,119,.15); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,.1); padding-left: 24px; }
.trust-item svg { font-size: 2rem; color: var(--green); }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.08rem; }
.trust-item span { font-size: .84rem; color: rgba(255,255,255,.65); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media > img { width: 100%; aspect-ratio: 4 / 4.3; max-height: 600px; object-fit: cover; object-position: center 15%; border-radius: 18px; }
.about-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 18px;
  border: 2px solid var(--green); z-index: -1;
}
.about-badge {
  position: absolute; left: -20px; bottom: 32px; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white); padding: 14px 20px 14px 16px; border-radius: 12px; box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.about-badge span { font-size: .78rem; color: rgba(255,255,255,.7); }
.about-content > p:not(.eyebrow) { color: var(--muted); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 28px 0 34px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; }
.check-list svg { font-size: 1.3rem; color: var(--green); }

/* ---------- Areas / Van ---------- */
.areas { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.areas-media { position: absolute; inset: 0 0 0 38%; }
.areas-media img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.areas-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(8,19,15,.85) 18%, rgba(8,19,15,.15) 50%, rgba(8,19,15,0) 100%);
}
.areas-inner { position: relative; padding: clamp(70px, 9vw, 120px) 0; }
.areas-content { max-width: 520px; }
.areas-content > p:not(.eyebrow) { color: rgba(255,255,255,.8); }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.area-chips li {
  font-size: .85rem; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.area-chips li:first-child { background: var(--green); color: var(--ink); border-color: var(--green); font-weight: 600; }
.sector-row { display: flex; flex-wrap: wrap; gap: 28px; font-family: var(--font-head); font-weight: 600; }
.sector-row span { display: flex; align-items: center; gap: 10px; }
.sector-row svg { font-size: 1.4rem; color: var(--green); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: 330px 1fr; gap: 48px; align-items: center; }
.how-intro h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { display: flex; gap: 18px; position: relative; }
.step-num {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--light); border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
}
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -20px; top: 26px; color: var(--muted); font-size: 1.1rem;
}
.step-icon { font-size: 1.7rem; color: var(--green-deep); margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Projects (enable later) ---------- */
.projects-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.project-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.project-grid figure { margin: 0; }
.project-grid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.project-grid figcaption { font-size: .82rem; font-weight: 600; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { position: relative; color: var(--white); background: var(--ink); padding: 70px 0; overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,19,15,.96) 0%, rgba(8,19,15,.85) 45%, rgba(8,19,15,.7) 100%),
    url("../images/cta-bg.jpg") center / cover no-repeat;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 40px; align-items: center; }
.contact-intro h2 { margin-bottom: 10px; }
.contact-intro p:not(.eyebrow) { color: rgba(255,255,255,.75); margin: 0; }
.quote-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { position: relative; display: block; }
.field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8a9a92; font-size: .95rem; pointer-events: none; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .9rem; color: var(--text); background: var(--white);
  border: 2px solid transparent; border-radius: 8px; padding: 12px 12px 12px 36px; outline: none; transition: border-color .2s;
}
.field textarea { padding-left: 14px; resize: vertical; min-height: 56px; height: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field-wide { grid-column: span 2; }
.btn-submit { height: 100%; min-height: 56px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .88rem; min-height: 1.2em; color: var(--green); }
.form-status.error { color: #ff8a8a; }
.contact-call { display: flex; gap: 14px; align-items: flex-start; }
.contact-call > svg { font-size: 2rem; color: var(--green); margin-top: 6px; }
.contact-call small { display: block; color: rgba(255,255,255,.75); font-size: .85rem; }
.contact-call a { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.85rem; line-height: 1.2; margin-bottom: 6px; }
.contact-call a:hover { color: var(--green); }
.contact-call span { display: block; font-size: .8rem; color: rgba(255,255,255,.65); line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer { background: #050d0a; color: rgba(255,255,255,.75); padding: 34px 0 20px; font-size: .85rem; }
.footer-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-inner .logo-text strong { font-size: 1.3rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a:hover, .footer-info a:hover { color: var(--green); }
.footer-info { margin-left: auto; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-info a { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.footer-info svg { color: var(--green); }
.footer-bottom { padding-top: 18px; font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-bottom p { margin: 0; }

.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .header-phone small { display: none; }
  .main-nav { gap: 20px; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .contact-call { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); padding: 12px 20px 24px; margin: 0; height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a.active::after { display: none; }
  .main-nav .nav-cta { display: flex; margin-top: 18px; border: 0; padding: 14px; color: var(--ink); }
  .header-actions { margin-left: auto; }

  .hero-script { display: none; }
  .services-grid, .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-intro { position: static; max-width: 640px; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .areas-media { inset: 0; }
  .areas-media::after { background: linear-gradient(90deg, rgba(8,19,15,.95) 0%, rgba(8,19,15,.75) 55%, rgba(8,19,15,.4) 100%); }
  .contact-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .container, .hero-inner { width: calc(100% - 32px); }
  .header-phone span { display: none; }
  .header-phone svg { font-size: 1.35rem; }
  .logo-text strong { font-size: 1.2rem; }
  .logo img { width: 34px; height: 34px; }

  /* Hero: photo on top, text below, instead of text over a heavily zoomed crop */
  .hero { display: block; min-height: auto; padding: var(--header-h) 0 48px; }
  .hero-bg {
    position: relative; inset: auto; height: 62vw; min-height: 230px; max-height: 340px; animation: none;
    background:
      linear-gradient(180deg, rgba(8,19,15,0) 55%, var(--ink) 100%),
      url("../images/hero.jpg") 82% 30% / cover no-repeat;
  }
  .hero-inner { margin: -28px auto 0; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.2rem); margin-bottom: 16px; }
  .hero-lead { font-size: 1rem; margin-bottom: 26px; }
  .hero-buttons { gap: 12px; margin-bottom: 32px; }
  .hero-buttons .btn { width: 100%; }

  /* Areas: show the van clearly, then the content */
  .areas-media { position: relative; inset: auto; height: 64vw; min-height: 230px; max-height: 360px; }
  .areas-media img { object-position: 30% center; }
  .areas-media::after { background: linear-gradient(180deg, rgba(8,19,15,0) 55%, var(--ink) 100%); }
  .areas-inner { padding: 0 0 56px; margin-top: -24px; }
  .area-chips { gap: 7px; margin: 20px 0 24px; }
  .area-chips li { font-size: .8rem; padding: 6px 12px; backdrop-filter: none; }
  .sector-row { gap: 10px 20px; font-size: .92rem; }
  .sector-row svg { font-size: 1.2rem; }
  .hero-trust { flex-direction: column; gap: 14px; }
  .hero-trust br { display: none; }

  .service-cards { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 18px; }
  .trust-item + .trust-item { border-left: 0; padding-left: 0; }
  .check-list { grid-template-columns: 1fr; }
  .about-media::before { inset: 16px -10px -16px 16px; }
  .about-badge { left: 12px; bottom: 16px; right: 12px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step:not(:last-child)::after { display: none; }
  .quote-form { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .contact-call a { font-size: 1.6rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-info { margin-left: 0; text-align: left; }
  .footer-info a { justify-content: flex-start; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }

  .site-footer { padding-bottom: 90px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 8px;
    font-family: var(--font-head); font-weight: 600;
  }
  .mb-call { border: 2px solid rgba(255,255,255,.3); color: var(--white); }
  .mb-call svg { color: var(--green); }
  .mb-quote { background: var(--green); color: var(--ink); }
}
