/* Green Electrical Ltd: shared styles on top of Tailwind Play CDN */
:root {
  --teal: #14646F;
  --deep: #0B3A41;
  --ink: #072A2F;
  --charcoal: #564F4F;
  --mint: #63D59B;
  --paper: #FAFAFA;
  --line: #EFEFEF;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Manrope', system-ui, sans-serif; color: #2f2b2b; background: #fff; }
.font-display { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; }

.h-hero { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.75rem, 6.2vw, 5.4rem); line-height: .92; letter-spacing: -0.015em; }
.h-section { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: .95; letter-spacing: -0.01em; }
.h-card { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; letter-spacing: .005em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; }
.prose-body p { line-height: 1.8; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

[hidden] { display: none !important; }

/* Let grid children shrink (carousels, long words) */
.grid > * { min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem;
  padding: .85rem 1.5rem; font-weight: 700; border-radius: .25rem; transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-mint { background: var(--mint); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(99,213,155,.7); }
.btn-mint:hover { background: #7fe0ae; transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-line { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-line:hover { background: var(--teal); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--mint); outline-offset: 3px; }

/* Header */
.site-header { transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: rgba(7,42,47,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.nav-link { position: relative; padding: .5rem 0; font-weight: 600; color: rgba(255,255,255,.85); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mint);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Cards and imagery */
.lift { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(7,42,47,.55); }
.zoom { overflow: hidden; }
.zoom img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img, .group:hover .zoom img { transform: scale(1.06); }

.grid-lines { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; }
.hatch { background-image: repeating-linear-gradient(135deg, rgba(99,213,155,.18) 0 2px, transparent 2px 14px); }

/* Logo marquee */
.marquee { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo { filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.client-logo:hover { filter: none; opacity: 1; }

/* Rotating hero line */
.rotator { display: inline-grid; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); transition: opacity .5s ease, transform .5s ease; }
.rotator > span.is-active { opacity: 1; transform: none; }

/* Testimonials */
.t-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.t-track::-webkit-scrollbar { display: none; }
.t-track > * { scroll-snap-align: start; flex: 0 0 100%; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  background: rgba(4,24,27,.94); padding: 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 78vh; max-width: min(1100px, 100%); border-radius: .25rem; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* Forms */
.field { width: 100%; min-height: 3.25rem; border: 1.5px solid #d8dede; border-radius: .25rem; background: #fff;
  padding: .8rem 1rem; color: #1f1d1d; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,100,111,.15); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee [data-dup] { display: none; }
}

/* Reach map (home "Where we work") */
.map-label text { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 700; fill: #fff;
  paint-order: stroke; stroke: #0B3A41; stroke-width: 5px; stroke-linejoin: round; }
.map-home { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 700; text-transform: uppercase;
  fill: #63D59B; paint-order: stroke; stroke: #0B3A41; stroke-width: 6px; letter-spacing: .02em; }
.map-pulse { transform-box: fill-box; transform-origin: center; animation: map-pulse 2.4s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pulse { animation: none; opacity: .6; } }
@media (max-width: 639px) {
  .map-label text { font-size: 30px; stroke-width: 7px; }
  .map-home { font-size: 36px; stroke-width: 8px; }
}
