/* SustainableITy preview — Plus Jakarta Sans + Nunito Sans, cream and friendly */

:root {
  --pine: #0f3d2e;
  --leaf: #16a34a;
  --sky: #0284c7;
  --sun: #f5b942;
  --cream: #f7f3ea;
  --mint: #dcfce7;
  --ink: #13231d;
  --white: #ffffff;
  --sky-dark: #0369a1;
  --leaf-dark: #15803d;
  --pine-soft: #1a5340;
  --line: rgba(15, 61, 46, 0.12);
  --shadow: 0 10px 30px rgba(15, 61, 46, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 61, 46, 0.14);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --wrap: 70rem;
  --header-h: 4.5rem;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:hover { color: var(--sky-dark); }
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

h1, h2, h3, .btn, .logo, .badge, .pills, .label {
  font-family: var(--font-display);
}

h1, h2, h3 { color: var(--pine); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 8.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1rem; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}
.wrap.narrow { width: min(52rem, calc(100% - 2rem)); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--pine);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--white); }

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

/* Header — floats over the hero like Grafix's mockup, solid cream once scrolled */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 0.6rem; flex: 0 1 auto; min-width: 0; text-decoration: none; color: var(--pine); }
.logo-mark { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--pine);
  white-space: nowrap;
}
.wordmark .sky { color: var(--sky); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sky { background: var(--sky); color: var(--white); }
.btn-sky:hover { background: var(--sky-dark); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--pine);
  border-color: rgba(15, 61, 46, 0.12);
  box-shadow: var(--shadow);
}
.btn-light:hover { color: var(--sky); border-color: var(--sky); }
.btn-pine { background: var(--pine); color: var(--white); width: 100%; }
.btn-pine:hover { background: var(--pine-soft); color: var(--white); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta-row .btn { flex: 1 1 12rem; }

/* Hero — rebuilt from sustainableity-hero-*-text mockups over the no-text art */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.25rem) 0 min(78vw, 22rem);
  background: var(--cream);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(247,243,234,0.97) 0%, rgba(247,243,234,0.92) 38%, rgba(247,243,234,0.55) 56%, rgba(247,243,234,0) 72%),
    image-set(url("images/hero-mobile.webp") type("image/webp"), url("images/hero-mobile.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.hero-inner { position: relative; }
.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(220, 252, 231, 0.92);
  color: var(--leaf-dark);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  margin: 0 0 1rem;
  max-width: 100%;
}
.hero h1 {
  font-size: clamp(2.35rem, 10.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  max-width: 12ch;
}
.grad {
  background: linear-gradient(90deg, var(--leaf) 10%, var(--sky) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1.05rem, 3.6vw, 1.3rem); color: #24352e; max-width: 36rem; line-height: 1.55; }
.service-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 1.25rem 0 0; max-width: 38rem; }
.service-chips li {
  display: flex; align-items: center; gap: 0.65rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 61, 46, 0.08);
  border-radius: 0.8rem;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--pine);
  box-shadow: 0 6px 18px rgba(15, 61, 46, 0.08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chip-ico { width: 1.75rem; height: 1.75rem; border-radius: 0.55rem; background: var(--mint); color: var(--leaf-dark); display: grid; place-items: center; flex: 0 0 auto; }
.chip-ico svg { width: 1.1rem; height: 1.1rem; }
.hero .cta-row { margin-top: 1.25rem; max-width: 38rem; }

.section-lede { color: #3a4a44; margin: 0 auto 1.75rem; max-width: 38rem; }
.sky { color: var(--sky); }

/* Initiatives */
.initiatives { padding: 3rem 0; }
.section-head { text-align: center; margin-bottom: 1.75rem; }
.cards {
  display: grid;
  gap: 1.15rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tile {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.tile svg { width: 1.55rem; height: 1.55rem; }
.tile.leaf { background: var(--mint); color: var(--leaf); }
.tile.sky { background: #e0f2fe; color: var(--sky); }
.tile.sun { background: #fff3d6; color: #b45309; }
.card p { color: #3a4a44; flex: 1; }
/* About */
.about {
  padding: 3rem 0;
  background: var(--pine);
  color: #e7eee9;
}
.about h2, .about h3 { color: var(--white); }
.about h3 { color: #7ddea6; font-weight: 600; letter-spacing: 0; font-size: 1.15rem; }
.about .lead { font-size: 1.12rem; color: #e7eee9; }
.about p { color: #d5e0d9; }
.about-grid { display: grid; gap: 1.75rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem; }
.pills li {
  background: rgba(220, 252, 231, 0.16);
  color: #dcfce7;
  border: 1px solid rgba(220, 252, 231, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Contact */
.contact { padding: 3rem 0; }
.contact-grid { display: grid; gap: 1.15rem; }
.contact-card, .connect-card {
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  min-width: 0;
}
.contact-card {
  background: var(--pine);
  color: #e7eee9;
}
.contact-card h2 { color: var(--white); }
.contact-card .intro { color: #cfe5d8; }
.contact-list { display: grid; gap: 1rem; }
.contact-list .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ad4b4;
  margin-bottom: 0.15rem;
}
.contact-list a, .contact-list address {
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
  font-style: normal;
  text-decoration: none;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--sun); }

.connect-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.connect-card p { color: #3a4a44; }
.tutorials {
  margin: 1.5rem 0 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pine);
}
.social { display: flex; justify-content: center; gap: 0.85rem; }
.social a {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--pine);
  text-decoration: none;
}
.social a:hover { background: var(--sky); color: var(--white); }
.social svg { width: 1.25rem; height: 1.25rem; }

/* Footer */
.site-footer {
  background: #0a2a1f;
  color: #b7c8bf;
  text-align: center;
  padding: 2rem 0 2.25rem;
}
.footer-logo { display: inline-flex; margin: 0 auto 0.85rem; }
.footer-logo .wordmark { color: var(--white); }
.footer-logo .wordmark .sky { color: #7cc8ef; }
.site-footer p { margin: 0.2rem 0; font-size: 0.95rem; }

.hero .cta-row .btn { flex: 1 1 12rem; padding: 0.8rem 1rem; white-space: nowrap; }
@media (min-width: 560px) {
  .service-chips li { font-size: 0.95rem; padding: 0.55rem 0.8rem; gap: 0.65rem; }
  .chip-ico { width: 2rem; height: 2rem; }
}

@media (min-width: 640px) {
  .contact-card, .connect-card { padding: 2rem; }
}

@media (min-width: 900px) {
  :root { --header-h: 5.5rem; }
  .logo-mark { width: 3rem; height: 3rem; }
  .wordmark { font-size: 1.6rem; }
  .hero {
    display: flex; align-items: center;
    min-height: max(46rem, 100svh);
    padding: calc(var(--header-h) + 1.5rem) 0 4rem;
  }
  .hero::before {
    background-image:
      radial-gradient(ellipse 62% 85% at 18% 42%, rgba(247,243,234,0.96) 0%, rgba(247,243,234,0.88) 45%, rgba(247,243,234,0.35) 78%, rgba(247,243,234,0) 100%),
      linear-gradient(90deg, rgba(247,243,234,0.55) 0%, rgba(247,243,234,0) 60%),
      image-set(url("images/hero-desktop.webp") type("image/webp"), url("images/hero-desktop.jpg") type("image/jpeg"));
    background-position: center center;
  }
  .hero h1 { font-size: clamp(3.4rem, 4.9vw, 5.4rem); max-width: 14.5ch; }
  .hero .cta-row .btn { flex: 0 0 auto; padding: 0.85rem 1.35rem; }
  .lede { max-width: 34rem; }
  .cta-row .btn { flex: 0 0 auto; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
  .about { padding: 5rem 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
  .initiatives { padding: 5rem 0; }
}

@media (min-width: 1100px) {
  .wrap { width: min(76rem, calc(100% - 6rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
.about .sky { color: #7cc8ef; }
@media (max-width: 379px) { .badge { font-size: 0.72rem; padding: 0.4rem 0.7rem; } }

/* ===== QA pass Nov 16: one header, one menu ===== */
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--pine); text-decoration: none; font-family: var(--font-display); font-weight: 700; }
.site-nav a:not(.btn):hover { color: var(--sky); }
.menu-btn {
  margin-left: auto; flex: 0 0 auto;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  color: var(--pine); background: rgba(255,255,255,0.9);
  border: 1px solid var(--line); border-radius: 0.8rem; box-shadow: var(--shadow); cursor: pointer; padding: 0;
}
.menu-btn .i-close { display: none; }
.menu-open .menu-btn { background: var(--pine); color: var(--white); }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
@media (max-width: 899.98px) {
  .site-header .header-inner { position: relative; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 0.25rem);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); padding: 0.5rem; z-index: 60; }
  .menu-open .site-nav { display: block; }
  .site-nav a:not(.btn) { display: block; padding: 0.8rem 0.9rem; border-radius: 0.6rem; }
  .site-nav a:not(.btn):hover { background: var(--mint); color: var(--pine); }
  .nav-cta-item { padding: 0.4rem 0.4rem 0.3rem; }
  .nav-cta { width: 100%; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 1.75rem; }
  .site-nav a:not(.btn) { font-size: 0.98rem; }
  .nav-cta { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
}

/* Hero: less empty art under the buttons on phones */
@media (max-width: 899.98px) {
  .hero { min-height: 0; padding-bottom: min(62vw, 17rem); }
}

/* Initiative cards: details tucked inside each card instead of a repeated section */
.card > p { flex: 0 0 auto; }
.card { gap: 0; }
details.more { margin-top: auto; padding-top: 0.25rem; font-family: var(--font-body); }
details.more summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; display: inline-flex; align-items: center; gap: 0.35rem; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::marker { content: ""; }
details.more summary::after { content: "+"; font-size: 1.15rem; line-height: 1; }
details.more[open] summary::after { content: "\2212"; }
details.more p { margin: 0.75rem 0 0; color: #3a4a44; font-size: 0.98rem; }
.leaf-link summary { color: var(--leaf-dark); }
.sky-link summary { color: var(--sky); }
.sun-link summary { color: #b45309; }

/* About: text only, centered, calm */
.about-grid { display: block; max-width: 46rem; margin-inline: auto; text-align: center; }
.about .pills { justify-content: center; }
@media (min-width:600px) and (max-width:899.98px){.site-nav{left:auto;width:20rem}}

.starlink-ref { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid #e4ddcc; text-align: center; }
.starlink-ref h3 { margin-bottom: .35rem; }
.btn-sky { background: var(--sky); color: var(--white); width: 100%; }
.btn-sky:hover { background: var(--pine); color: var(--white); }
.starlink-qr { display: block; width: 150px; height: 150px; margin: 1.1rem auto .4rem; border-radius: 10px; border: 1px solid #e4ddcc; }
.qr-cap { font-size: .85rem; margin: 0; }
