/* GP Solar Solutions / gpsolar.solutions
 *
 * Theme lock: DARK for the whole page. No section inverts to a light
 * background. Surfaces step through three charcoals only.
 * Accent lock: --lime is the only accent on the page.
 * Shape lock: cards 14px, controls 10px, pills 999px. No other radii.
 */

:root {
  --ink:        #0F1318;   /* page */
  --surface:    #161C23;   /* raised */
  --surface-2:  #1B2027;   /* raised more, matches the logo field */
  --line:       rgba(255,255,255,0.10);
  --line-soft:  rgba(255,255,255,0.06);
  --text:       #EDF1F3;
  --text-dim:   #9BA6B0;
  --lime:       #96C93D;
  --lime-bright:#A9DE49;
  --lime-ink:   #10170A;   /* text on lime, AA against #96C93D */

  --r-card: 14px;
  --r-ctl:  10px;
  --r-pill: 999px;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); font-weight: 600; margin: 0 0 14px;
}

/* ── Skip link ─────────────────────────────────────────────────── */
/* Offset vertically, never horizontally: a large negative `left` widens the
   scrollable area and shows up as phantom horizontal scroll on mobile. */
.skip {
  position: absolute; left: 0; top: 0; z-index: 100;
  background: var(--lime); color: var(--lime-ink); padding: 12px 18px;
  border-radius: 0 0 var(--r-ctl) 0; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: translateY(0); }

/* ── Nav: single line, 72px ────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: 72px;
  background: rgba(15,19,24,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand .mark {
  width: 30px; height: 34px; flex-shrink: 0;
  background: var(--lime);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid; place-items: center;
  color: var(--lime-ink); font-family: var(--font-display);
  font-weight: 800; font-size: 14px; letter-spacing: -0.04em;
}
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand .sub { color: var(--text-dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-top: -3px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-call, .nav-call {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--lime); color: var(--lime-ink); text-decoration: none;
  font-weight: 650; font-size: 15px; padding: 10px 18px; border-radius: var(--r-ctl);
  transition: background .2s, transform .2s;
}
.nav-links a.nav-call:hover, .nav-call:hover { background: var(--lime-bright); color: var(--lime-ink); }
.nav-call:active { transform: translateY(1px); }
@media (max-width: 900px) { .nav-links a:not(.nav-call) { display: none; } .nav-links { margin-left: auto; } }
@media (max-width: 620px) {
  .nav .wrap { gap: 12px; }
  .brand { min-width: 0; }
  .brand b { font-size: 15px; }
  /* The CSLB sublabel is the first thing to go: it repeats in the hero
     credentials panel and in the footer, and keeping it here is what pushed
     the phone pill off the right edge at 390px. */
  .brand .sub { display: none; }
  .brand .mark { width: 26px; height: 30px; font-size: 12px; }
  .nav-call { font-size: 14px; padding: 9px 13px; }
}
@media (max-width: 430px) {
  /* Below this the full wordmark plus the phone pill cannot both fit. The
     name shortens to "GP Solar" rather than disappearing: a nav with only a
     hexagon and a phone number does not tell a visitor whose site this is. */
  .brand b .rest { display: none; }
  .brand b { font-size: 15px; }
  .nav-call { font-size: 13px; padding: 8px 11px; }
}

/* ── Hero: asymmetric split ────────────────────────────────────── */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(760px 420px at 88% 8%, rgba(150,201,61,0.13), transparent 62%),
    radial-gradient(520px 380px at 4% 92%, rgba(150,201,61,0.05), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: clamp(30px, 4.5vw, 56px);
  grid-template-columns: 1.05fr 0.95fr; align-items: center; }

.hero-shot { margin: 0; border-radius: var(--r-card); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--surface); }
.hero-shot img { width: 100%; height: auto; display: block; }
/* A charcoal wash ties the photograph to the page instead of letting a bright
   rectangle float on a dark background. */
.hero-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(15,19,24,0) 42%, rgba(15,19,24,0.55) 100%); }
.hero h1 { font-size: clamp(2.05rem, 4vw, 2.9rem); line-height: 1.08; margin: 0 0 20px; font-weight: 700; max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--text-dim); margin: 0 0 30px; max-width: 46ch; }
.cta-row { display: flex; gap: 13px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font-family: var(--font-body); font-weight: 650; font-size: 16px;
  padding: 14px 26px; border-radius: var(--r-ctl); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-bright); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.22); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn:active { transform: translateY(1px); }

/* Hero panel: the licence card. Real credentials, not decoration. */
.credbar { background: var(--surface-2); border-block: 1px solid var(--line-soft); padding: 30px 0; }
.cred { background: none; border: 0; padding: 0; }
.cred h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Three facts plus the footnote. Was repeat(4, auto) for the licence block
   this replaced, whose values were all short; sentence-length values in an
   auto column starve the 1fr footnote to a sliver. */
.cred dl { margin: 0; display: grid; gap: 22px 34px; grid-template-columns: repeat(3, auto) 1fr; align-items: center; }
.cred div { display: grid; gap: 1px; }
.cred dt { font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.03em; }
.cred dd { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 19px; }
.cred dd.lic { color: var(--lime); font-variant-numeric: tabular-nums; }
.cred .foot { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; max-width: 40ch; justify-self: end; }
.cred .foot a { color: var(--lime); }
@media (max-width: 1080px) { .cred dl { grid-template-columns: repeat(2, 1fr); } .cred .foot { grid-column: 1 / -1; justify-self: start; max-width: none; } }
@media (max-width: 520px) { .cred dl { grid-template-columns: 1fr 1fr; gap: 18px 20px; } }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero-shot { order: -1; } }

/* ── Services: bento with rhythm, 4 cells ──────────────────────── */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 46px); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 0 0 14px; font-weight: 700; }
.section-head p { color: var(--text-dim); margin: 0; }

.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.tile {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 0;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.tile-media { position: relative; overflow: hidden; background: var(--surface-2); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.tile-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,19,24,0) 55%, rgba(22,28,35,0.85) 100%); }
.tile-body { padding: clamp(22px, 2.6vw, 30px); flex: 1; }
.tile-sm .tile-media img { aspect-ratio: 4 / 3; }
/* The narrow tile shares a grid row with the tall one, so its image grows to
   fill what the shorter copy leaves behind rather than banking dead space.
   Desktop only: stacked on mobile there is no row to match and an
   unconstrained height would collapse. */
@media (min-width: 901px) {
  .tile-sm .tile-media { flex: 1; min-height: 200px; }
  .tile-sm .tile-media img { height: 100%; aspect-ratio: auto; }
}
.tile h3 { font-size: 1.32rem; margin: 0 0 10px; font-weight: 650; }
.tile p { color: var(--text-dim); margin: 0; font-size: 15.5px; }
.tile ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.tile li { font-size: 14.5px; color: var(--text-dim); padding-left: 17px; position: relative; }
.tile li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--lime); border-radius: 2px; }
.tile-lg { grid-column: span 4; }
.tile-sm { grid-column: span 2; }
.tile-half { grid-column: span 3; }
/* Two of the six cells carry a brand field rather than flat surface. */
.tile-lg { background: linear-gradient(145deg, rgba(150,201,61,0.12), var(--surface) 58%); border-color: rgba(150,201,61,0.22); }
.tile-half.accent { background: linear-gradient(200deg, rgba(150,201,61,0.07), var(--surface) 62%); }
/* The second wide tile keeps the plain surface so the lime field stays a
   single accent moment rather than a repeating pattern down the grid. */
.tile-lg.tile-plain { background: var(--surface); border-color: var(--line-soft); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile-lg, .tile-sm, .tile-half { grid-column: 1 / -1; } }

/* ── Process: horizontal rail, no step numbers ─────────────────── */
.rail-shot { margin: 0 0 clamp(26px, 3.5vw, 40px); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line-soft); max-width: 720px; }
.rail-shot img { width: 100%; height: auto; display: block; }

.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rail > div { padding: 30px 26px 30px 0; border-right: 1px solid var(--line-soft); }
.rail > div:last-child { border-right: none; }
.rail h3 { font-size: 1.1rem; margin: 0 0 9px; font-weight: 650; color: var(--lime); }
.rail p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
@media (max-width: 860px) { .rail { grid-template-columns: 1fr; } .rail > div { border-right: none; border-bottom: 1px solid var(--line-soft); padding-right: 0; } .rail > div:last-child { border-bottom: none; } }

/* ── Scope honesty band ────────────────────────────────────────── */
.band { background: var(--surface-2); border-block: 1px solid var(--line-soft); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 14px; line-height: 1.15; }
.band p { color: var(--text-dim); margin: 0 0 14px; }
.scope { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.scope li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; font-size: 15.5px; }
/* "Out" is three characters and overran a 22px column, colliding with the
   label next to it. Fixed width sized to the longer of the two words. */
.scope .y, .scope .n { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.scope .y { color: var(--lime); }
.scope .n { color: #6E7A85; }
.scope li span:last-child { color: var(--text-dim); }
.scope li.yes span:last-child { color: var(--text); }
@media (max-width: 820px) { .band .wrap { grid-template-columns: 1fr; } }

/* ── Contact ───────────────────────────────────────────────────── */
.contact .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-ctl);
  padding: 13px 15px; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #7E8A95; }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); }
.field .help { font-size: 13px; color: var(--text-dim); }
.field .err { font-size: 13.5px; color: #FF9E8A; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #FF9E8A; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; margin: 4px 0 20px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.consent input { width: 18px; height: 18px; accent-color: var(--lime); margin-top: 2px; }
.form-note { font-size: 13px; color: var(--text-dim); margin: 14px 0 0; }
.form-status { margin-top: 16px; font-size: 15px; display: none; padding: 14px 16px; border-radius: var(--r-ctl); }
.form-status.show { display: block; }
.form-status.ok { background: rgba(150,201,61,0.12); border: 1px solid rgba(150,201,61,0.4); color: var(--text); }
.form-status.bad { background: rgba(255,158,138,0.10); border: 1px solid rgba(255,158,138,0.42); color: #FFC9BC; }
.btn[aria-busy="true"] { opacity: .68; pointer-events: none; }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: 1fr; } }

.contact-direct { display: grid; gap: 22px; }
.contact-direct a.tel { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 700; color: var(--lime); text-decoration: none; letter-spacing: -0.02em; }
.contact-direct a.tel:hover { color: var(--lime-bright); }
.contact-direct .blk { font-size: 15px; color: var(--text-dim); }
.contact-direct .blk strong { color: var(--text); display: block; font-weight: 600; margin-bottom: 3px; }

/* ── Footer ────────────────────────────────────────────────────── */
.foot { background: var(--surface-2); border-top: 1px solid var(--line-soft); padding: 52px 0 40px; font-size: 14.5px; color: var(--text-dim); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.foot h4 { font-family: var(--font-display); font-size: 14px; color: var(--text); margin: 0 0 13px; font-weight: 650; letter-spacing: 0.02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--lime); }
.legal { border-top: 1px solid var(--line-soft); padding-top: 24px; font-size: 13.5px; line-height: 1.7; }
.legal .entity { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; gap: 26px; } }

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* Motion: entrance only, and only when the visitor allows it. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
