/* ============================================================
   Go Green Electric Inc. — Shared base styles
   Palette: green primary · black accents · white-on-blue bands
   Type: Space Grotesk (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --green:        #16A34A;
  --green-dark:   #15803D;
  --green-light:  #22C55E;
  --green-glow:   #4ADE80;

  --ink:          #0A0E12;   /* black accent / dark sections */
  --ink-2:        #11161C;
  --ink-3:        #1A222B;

  --blue:         #0B2E4F;   /* blue band, white text */
  --blue-2:       #0E4575;
  --blue-light:   #1769A8;

  /* Neutrals */
  --bg:           #FFFFFF;
  --bg-soft:      #F5F8F6;
  --fg:           #0A0E12;
  --fg-soft:      #4A5560;
  --line:         #E2E8E6;
  --white:        #FFFFFF;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Scale / rhythm */
  --container:    1200px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 10px 30px rgba(10,14,18,.10);
  --shadow-lg:    0 24px 60px rgba(10,14,18,.22);
  --ease:         cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* contain side-drift reveal transforms; doesn't break sticky header */
}

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

h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
}
.eyebrow.on-dark { color: var(--green-glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-transform: uppercase;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--green-glow); color: var(--green-glow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; padding-block: 8px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: grid; place-items: center; color:#fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand small { display:block; font-family: var(--font-body); font-weight:500; font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; color: var(--green); margin-top:-2px; }
.brand-logo { width: clamp(200px, 22vw, 290px); height: clamp(74px, 8vw, 116px); object-fit: cover; object-position: center; display:block; }
/* Mobile: less aggressive crop + drop the visible area down so the logo top isn't clipped */
@media (max-width: 560px){
  .brand-logo { width: clamp(150px, 46vw, 190px); height: 86px; object-position: center 28%; }
}
/* Header logo entrance: drops from above, swells to ~2x, then settles to normal */
.site-header .brand-logo { animation: logoDrop 1.7s var(--ease) both; transform-origin: center center; }
@keyframes logoDrop {
  0%   { transform: translateY(-240px) scale(.8); opacity: 0; }
  45%  { opacity: 1; }
  68%  { transform: translateY(0) scale(2); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---------- Logo-sample carousel (review) ---------- */
.logo-gallery { background: var(--bg-soft); padding: clamp(48px,7vw,84px) 0; text-align:center; border-top:1px solid var(--line); }
.logo-gallery h2 { font-size: clamp(1.6rem,3.6vw,2.4rem); text-transform:uppercase; margin-bottom:.3rem; }
.logo-gallery .sub { color: var(--fg-soft); margin:0 auto 32px; max-width:52ch; }
.logo-carousel { display:flex; align-items:center; gap:14px; max-width:760px; margin:0 auto; }
.logo-stage { position:relative; flex:1 1 auto; min-width:0; aspect-ratio:4/3; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.logo-stage .slide { position:absolute; inset:0; display:block; padding:24px; opacity:0; transition:opacity .5s var(--ease); }
.logo-stage .slide.active { opacity:1; }
.logo-stage img { width:100%; height:100%; object-fit:contain; object-position:center; }
.logo-arrow { flex:0 0 auto; width:48px; height:48px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--ink); cursor:pointer; display:grid; place-items:center; box-shadow:var(--shadow); transition:.2s var(--ease); }
.logo-arrow:hover { background:var(--green); color:#fff; border-color:var(--green); }
.logo-arrow svg { width:22px; height:22px; }
.logo-controls { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:20px; flex-wrap:wrap; }
.logo-dots { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.logo-dots button { width:10px; height:10px; border-radius:999px; border:0; background:var(--line); cursor:pointer; padding:0; transition:.25s var(--ease); }
.logo-dots button.active { background:var(--green); width:28px; }
.logo-pause { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; padding:7px 16px; font-family:var(--font-display); font-weight:600; font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; cursor:pointer; transition:.2s var(--ease); }
.logo-pause:hover { border-color:var(--green); color:var(--green-dark); }
.logo-pause svg { width:15px; height:15px; }
@media (max-width:560px){ .logo-arrow { width:42px; height:42px; } }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--ink); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-phone { font-family: var(--font-display); font-weight: 600; color: var(--ink); display:flex; align-items:center; gap:.4rem; }
.nav-phone svg { width:18px;height:18px;color:var(--green); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width:26px; height:2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D2DA; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color:#fff; font-size:1rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:1.1rem; }
.site-footer a { color:#C9D2DA; transition: color .2s; }
.site-footer a:hover { color: var(--green-glow); }
.footer-links { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.6rem; font-size:.95rem; }
.footer-brand p { font-size:.95rem; max-width: 34ch; color:#9AA6B0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:48px; padding-top:24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem; color:#7E8A94; }
.footer-social { display:flex; gap:.8rem; }
.footer-social a { width:38px;height:38px;border:1px solid rgba(255,255,255,.18); border-radius:8px; display:grid; place-items:center; }
.footer-social svg { width:18px;height:18px; }

/* ---------- Version switcher (mockup review only) ---------- */
.ver-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  background: var(--ink); color:#fff; border-radius: 999px;
  display:flex; align-items:center; gap:6px; padding:6px;
  box-shadow: var(--shadow-lg); font-family: var(--font-display);
}
.ver-switch span { font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; color:#8B97A2; padding:0 8px; }
.ver-switch a { width:34px;height:34px;border-radius:999px; display:grid; place-items:center; font-weight:700; font-size:.9rem; color:#fff; }
.ver-switch a.active { background: var(--green); }
.ver-switch a:not(.active):hover { background: var(--ink-3); }

/* ---------- Scroll reveal ---------- */
.reveal, .reveal-l, .reveal-r {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal   { transform: translateY(32px); }       /* drift up   */
.reveal-l { transform: translateX(-60px); }       /* drift in from the left  */
.reveal-r { transform: translateX(60px); }        /* drift in from the right */
.reveal.in, .reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }

/* Stagger items inside a grid/row so they cascade in */
[data-stagger] > * { transition-delay: 0ms; }
[data-stagger] > *:nth-child(2) { transition-delay: 90ms; }
[data-stagger] > *:nth-child(3) { transition-delay: 180ms; }
[data-stagger] > *:nth-child(4) { transition-delay: 270ms; }
[data-stagger] > *:nth-child(5) { transition-delay: 360ms; }
[data-stagger] > *:nth-child(6) { transition-delay: 450ms; }

/* Scroll reveals run regardless of the OS "reduce motion" setting (client requested
   the animations be visible). Only continuously-looping motion (the V3 marquee) is
   paused for reduced-motion users — handled in that page's own stylesheet. */

/* ---------- Responsive nav ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { width:100%; padding: 14px 0; border-bottom:1px solid var(--line); font-size:1.05rem; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
}
