@import url('../fonts/poppins.css');

/* ==========================================================================
   Green Power Utilities — design tokens
   Palette taken from the print leaflet. See README for the accessibility
   rules these tokens exist to enforce.
   ========================================================================== */

:root {
  --deep: #143229;
  --mid: #1F4A3C;
  --cream: #F6F2E8;
  --sand: #DCD3BE;
  --gold: #E4C579;
  --gold-dark: #C1922F;
  --trust-bg: #0d211a;

  --text: #3A362C;          /* body on cream/white — 10.8:1 */
  --muted: #665E4C;         /* captions on cream/white — 5.7:1 */
  --muted-sand: #5B5445;    /* captions on sand — 5.1:1 (--muted fails here) */

  /* Text on deep green. Anything lighter than .72 starts failing AA at
     body sizes, so these are floors rather than suggestions. */
  --on-deep: rgba(255, 255, 255, .72);
  --on-deep-soft: rgba(255, 255, 255, .62);

  --section-y: clamp(48px, 8vw, 96px);
  --gutter: 20px;
  --wrap: 1000px;
  --wrap-wide: 1200px;

  --r-input: 10px;
  --r-card: 14px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, .06);
  --shadow-swatch: 0 4px 16px rgba(0, 0, 0, .1);

  --header-h: 72px;
  --header-h-sm: 60px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--deep); }
a:hover { color: var(--mid); }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  background: var(--deep);
  color: var(--gold);
  padding: 12px 24px;
  border-radius: var(--r-input);
  font: 600 14px/1 'Poppins', sans-serif;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* Decorative translucent circles used on the dark green panels. */
.circles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.circles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(228, 197, 121, .04);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: height .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  height: var(--header-h-sm);
  background: rgba(246, 242, 232, .97);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--sand);
}

.site-header__inner {
  max-width: var(--wrap-wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__logo { width: 48px; height: auto; transition: width .3s ease; }
.site-header.is-scrolled .site-header__logo { width: 36px; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--deep);
  text-decoration: none;
  font: 600 13px/1 'Poppins', sans-serif;
}
.header-phone svg { flex-shrink: 0; }
@media (min-width: 640px) { .header-phone { display: flex; } }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--r-input);
  font: 600 15px/1 'Poppins', sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  padding: 18px 40px;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--deep); }
.btn--gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .7); color: #fff; }

.btn--deep { background: var(--deep); color: var(--gold); width: 100%; padding: 18px; }
.btn--deep:hover { background: var(--mid); color: var(--gold); transform: translateY(-1px); }

/* Header CTA. Sized to the 44px touch guideline rather than the design's
   32px — on mobile this is the primary call to action. */
.btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  padding: calc(var(--header-h) + 48px) var(--gutter) 72px;
  text-align: center;
}
.hero__inner { position: relative; max-width: 800px; margin: 0 auto; }

.rule { width: 56px; height: 2px; background: var(--gold); margin: 0 auto 24px; border: 0; }

.eyebrow {
  font: 600 11px/1.4 'Poppins', sans-serif;
  color: var(--gold);
  letter-spacing: 3px;
  margin: 0 0 28px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  color: #fff;
  margin: 0 0 28px;
}
.hero h1 span { display: block; color: var(--gold); }

.hero__sub {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--on-deep);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   Entrance
   Content paints immediately and animates on top of itself — nothing is
   hidden behind a loading state, so this costs nothing in LCP. animation-
   fill-mode:both supplies the "from" state during the delay, which means
   there is no base opacity:0 to strand the text if animations never run.
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__inner > * { animation: fadeUp .7s cubic-bezier(.22, .7, .3, 1) both; }
.hero__inner > *:nth-child(1) { animation-delay: .06s; }
.hero__inner > *:nth-child(2) { animation-delay: .14s; }
.hero__inner > *:nth-child(3) { animation-delay: .22s; }
.hero__inner > *:nth-child(4) { animation-delay: .32s; }
.hero__inner > *:nth-child(5) { animation-delay: .42s; }

.site-header { animation: fadeIn .6s ease both; }
.trust-strip p { animation: fadeUp .7s cubic-bezier(.22, .7, .3, 1) .54s both; }

.trust-strip {
  background: var(--trust-bg);
  padding: 18px var(--gutter);
  text-align: center;
}
.trust-strip p {
  margin: 0 auto;
  max-width: 800px;
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1.8;
  color: rgba(228, 197, 121, .82);
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section { padding: var(--section-y) var(--gutter); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--sand { color: var(--muted-sand); }

.section__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--deep);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section__head h2::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.note {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: clamp(12px, 1.1vw, 13px);
  font-style: italic;
  text-align: center;
  color: var(--muted);
}
.section--sand .note { color: var(--muted-sand); }

/* ==========================================================================
   What we surface
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2px;
  border-radius: var(--r-card);
  overflow: hidden;
}
.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 32px);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.service:hover { background: rgba(228, 197, 121, .12); color: inherit; }
.service:hover .service__arrow { transform: translateX(4px); }
.service h3 {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 6px;
}
.service p { margin: 0; font-size: clamp(12px, 1.2vw, 14px); color: var(--muted); }
/* Decorative (aria-hidden) — the link text carries the meaning. Darker than
   the design's sand so it reads as an affordance rather than a smudge. */
.service__arrow {
  font-size: 20px;
  color: rgba(20, 50, 41, .35);
  flex-shrink: 0;
  transition: transform .2s ease;
}

/* ==========================================================================
   Key benefits
   ========================================================================== */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-card);
  background: var(--deep);
}
.benefit__num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: rgba(228, 197, 121, .25);
  flex-shrink: 0;
}
.benefit h3 {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}
.benefit p { margin: 0; font-size: clamp(12px, 1.2vw, 14px); color: var(--on-deep); }

/* ==========================================================================
   Why Green Power
   The crew photograph is ~2.3:1, so it runs full width above the credential
   grid rather than sitting in a 4:3 slot beside it.
   ========================================================================== */

.crew {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.crew picture { display: block; }
.crew img { width: 100%; height: auto; }
.crew figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 20px;
  background: rgba(20, 50, 41, .85);
  backdrop-filter: blur(4px);
  font-size: clamp(11px, 1.1vw, 13px);
  font-style: italic;
  color: rgba(255, 255, 255, .92);
}

/* Four cards, so force 2x2 rather than letting auto-fit orphan the fourth
   on a row of its own at desktop widths. */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.credential {
  padding: clamp(18px, 2vw, 24px);
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(220, 211, 190, .8);
}
.credential h3 {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 6px;
}
.credential p { margin: 0; font-size: clamp(12px, 1.1vw, 14px); color: var(--text); }

/* ==========================================================================
   Blends
   ========================================================================== */

.blends {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.blend { text-align: center; }
.blend picture { display: block; }
.blend img {
  width: clamp(88px, 10vw, 120px);
  height: clamp(88px, 10vw, 120px);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-swatch);
  object-fit: cover;
  margin: 0 auto 10px;
  transition: transform .2s ease;
}
.blend:hover img { transform: scale(1.08); }
.blend__name {
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  color: var(--deep);
}
.blend__desc { font-size: clamp(10px, 1vw, 12px); color: var(--muted-sand); }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--r-card);
  background: var(--deep);
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 12px;
}
.step h3 {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.step p { margin: 0; font-size: clamp(11px, 1.1vw, 13px); color: var(--on-deep-soft); }

/* ==========================================================================
   Our work
   ========================================================================== */

.work-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
}
.work-card h3 {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 8px;
}
.work-card p { margin: 0 0 18px; font-size: clamp(12px, 1.2vw, 14px); color: var(--muted-sand); }

/* When photos arrive, this grid replaces the card above. See README. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ==========================================================================
   Areas we cover
   ========================================================================== */

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.area h3 {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  color: var(--deep);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}
.area ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.area li {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(220, 211, 190, .8);
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--text);
}

/* ==========================================================================
   Quote form
   ========================================================================== */

#quote { scroll-margin-top: calc(var(--header-h) + 12px); }

.quote__head {
  position: relative;
  overflow: hidden;
  background: var(--mid);
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(20px, 3vw, 36px);
  text-align: center;
}
.quote__head-inner { position: relative; max-width: 560px; margin: 0 auto; }
.quote__head h2 { font-size: clamp(24px, 4vw, 40px); color: #fff; margin-bottom: 8px; }
.quote__head p { margin: 0; font-size: clamp(13px, 1.3vw, 16px); color: var(--on-deep); }

.quote__body { background: var(--cream); padding: 0 var(--gutter) var(--section-y); }

.quote__card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-card);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label {
  font: 600 12px/1.3 'Poppins', sans-serif;
  color: var(--deep);
}
.field .hint { font: 400 11px/1.4 'Poppins', sans-serif; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border-radius: var(--r-input);
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 12px 16px;
  font: 400 14px/1.4 'Poppins', sans-serif;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(228, 197, 121, .35);
}

/* Photo upload. The dashed border and icon carry the gold; the label text
   is deep green because gold-dark on cream only reaches 2.5:1. */
.upload {
  position: relative;
  display: block;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 12px;
  border: 2px dashed var(--gold-dark);
  background: var(--cream);
  text-align: center;
  cursor: pointer;
  transition: background .2s ease;
  margin-bottom: 12px;
}
.upload:hover { background: rgba(228, 197, 121, .12); }
.upload:focus-within { background: rgba(228, 197, 121, .12); box-shadow: 0 0 0 3px rgba(228, 197, 121, .35); }
.upload svg { margin: 0 auto 8px; display: block; }
.upload__title { font: 600 clamp(12px, 1.2vw, 14px)/1.3 'Poppins', sans-serif; color: var(--deep); }
.upload__hint { font: 400 clamp(10px, 1vw, 12px)/1.4 'Poppins', sans-serif; color: var(--muted); margin-top: 4px; }
.upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload__files { margin-top: 10px; font: 600 12px/1.4 'Poppins', sans-serif; color: var(--mid); }

.consent {
  margin: 4px 0 16px;
  font: 400 12px/1.6 'Poppins', sans-serif;
  color: var(--muted);
}

/* Honeypot — hidden from people, visible to bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  margin: 12px 0 0;
  font: 400 13px/1.5 'Poppins', sans-serif;
  color: var(--mid);
  text-align: center;
  min-height: 1.5em;
}
.form-status.is-error { color: #A3352A; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { position: relative; overflow: hidden; background: var(--deep); }
.site-footer__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(24px, 3vw, 32px);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.site-footer__logo {
  width: 64px; height: 64px;
  border-radius: var(--r-card);
  background: #fff;
  padding: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The logo is portrait (240x355). Without a height cap, max-width alone
   lets it run to full natural height and burst out of the tile. */
.site-footer__logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.site-footer__area { font-size: clamp(12px, 1.2vw, 14px); color: var(--on-deep-soft); max-width: 260px; }

.site-footer h2 {
  font: 600 12px/1 'Poppins', sans-serif;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer__contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--on-deep);
  text-decoration: none;
}
.site-footer__contact a:hover { color: var(--gold); }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: clamp(16px, 2vw, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
/* Legally required company details — must stay readable, so this sits at
   AA rather than the design's .45 (which measured 4.04:1). */
.site-footer__legal p {
  margin: 0;
  font-size: clamp(10px, 1vw, 11px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  max-width: 720px;
}
.site-footer__legal a { color: rgba(255, 255, 255, .72); font-size: clamp(11px, 1vw, 12px); }
.site-footer__legal a:hover { color: var(--gold); }

/* ==========================================================================
   Content pages (privacy, thanks)
   ========================================================================== */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) var(--gutter) var(--section-y);
}
.page h1 { font-size: clamp(28px, 4vw, 40px); color: var(--deep); margin-bottom: 8px; }
.page h2 {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--deep);
  margin: 36px 0 10px;
}
.page p, .page li { font-size: 15px; line-height: 1.75; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }
.page .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

.page--center { text-align: center; }
.page--center .rule { margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
