/* ===========================================================================
   CHARJO — STYLESHEET
   You shouldn't need to edit this file. If you want to change the brand color,
   change --amber below and everything follows.
   =========================================================================== */

:root {
  /* Brand */
  --amber:       #FFB24E;   /* taken from the charjo wordmark */
  --amber-lift:  #FFC275;
  --amber-ink:   #8A5205;   /* dark enough to use as text on light backgrounds */

  /* Surfaces */
  --asphalt:     #16191E;   /* dark sections */
  --asphalt-2:   #202530;
  --concrete:    #ECECE8;   /* light page background */
  --paper:       #FFFFFF;

  /* Text */
  --ink:         #14171C;
  --slate:       #5A6270;
  --slate-light: #A8B0BC;

  /* Status */
  --st-operating:    #3FBF72;
  --st-construction: #FFB24E;
  --st-development:  #FFB24E;
  --st-permitting:   #62A8E8;
  --st-planned:      #98A2B3;

  --rule: rgba(20, 23, 28, 0.12);
  --rule-dark: rgba(255, 255, 255, 0.14);

  /* Wordmark only — geometric, closest relative to the Avenir Next logo. */
  --wordmark: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  /* Headlines — a grotesque, deliberately a different genre from the
     wordmark so the two read as a pairing rather than a near-miss. */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Small caps-style labels. Replaces the old monospace face. */
  --label: "Figtree", "Avenir Next", -apple-system, sans-serif;

  --wrap: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 999;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- wordmark */

.wordmark,
.foot-mark {
  font-family: var(--wordmark);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  text-decoration: none;
}

.wordmark {
  font-size: 34px;   /* 25% larger than the original 27px */
  color: var(--paper);
}

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--asphalt);
  border-bottom: 1px solid var(--rule-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav nav a {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 4px;
  transition: color .15s ease, background-color .15s ease;
}

.nav nav a:hover { color: var(--paper); }

.nav .nav-cta {
  color: var(--asphalt);
  background: var(--amber);
  font-weight: 600;
}
.nav .nav-cta:hover { color: var(--asphalt); background: var(--amber-lift); }

/* ------------------------------------------------------------------- hero */

.hero {
  background: var(--asphalt);
  color: var(--paper);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 92px;
}

.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 22px;
}

.hero h1 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: #C9D0DA;
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- hero photo */

.hero-photo {
  margin: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .8s cubic-bezier(.2, .7, .3, 1) forwards;
    animation-delay: .1s;
  }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary { background: var(--amber); color: var(--asphalt); }
.btn-primary:hover { background: var(--amber-lift); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { border-color: var(--paper); }

.btn-block { width: 100%; }

/* ------------------------------------------------------------------ bands */

.band { padding: 84px 0; }
.band-alt { background: var(--paper); }
.band-dark { background: var(--asphalt); color: var(--paper); }

.section-h {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.014em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.section-sub {
  color: var(--slate);
  max-width: 56ch;
  margin: 0 0 30px;
}

.band-dark .section-sub { color: var(--slate-light); }

.minor-h {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0 0 18px;
  font-weight: 500;
}

.fineprint {
  font-size: 13px;
  color: var(--slate);
  margin: 22px 0 0;
}
.band-dark .fineprint { color: var(--slate-light); }

/* --------------------------------------------------------- what we do */

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 2px solid var(--ink);
  margin-top: 28px;
}

.col {
  background: var(--concrete);
  padding: 30px 26px 34px;
}

.col h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
}

.col p { margin: 0; color: var(--slate); font-size: 16px; }

/* ---------------------------------------------------------------- filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--slate);
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .15s ease;
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ------------------------------------------------------------ network map */

.network-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#map {
  height: 560px;
  border: 1px solid var(--rule);
  background: #dfe3e6;
  z-index: 0;
}

.site-list {
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--rule);
}

.site-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 18px 20px;
  cursor: pointer;
  font: inherit;
  transition: background-color .15s ease;
}

.site-card:last-child { border-bottom: 0; }
.site-card:hover { background: #F6F6F3; }
.site-card.is-selected { background: #FFF6E9; }

.site-card h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 4px;
}

.site-meta {
  font-family: var(--label);
  font-weight: 500;
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

.site-amenities {
  font-size: 14px;
  color: var(--slate);
  margin: 10px 0 0;
  line-height: 1.5;
}

.site-amenities span {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 3px;
}

.popup-amenities {
  display: inline-block;
  margin-top: 6px;
  color: #5A6270;
  font-size: 13px;
}

.site-note {
  font-size: 14.5px;
  color: var(--slate);
  margin: 8px 0 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-planned);
}

.status[data-status="operating"]::before    { background: var(--st-operating); }
.status[data-status="construction"]::before { background: var(--st-construction); }
.status[data-status="development"]::before  { background: var(--st-development); }
.status[data-status="permitting"]::before   { background: var(--st-permitting); }
.status[data-status="planned"]::before      { background: var(--st-planned); }

.list-empty {
  padding: 28px 20px;
  color: var(--slate);
  background: var(--paper);
  font-size: 15px;
}

/* map pins */
.pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  background: var(--st-planned);
}
.pin[data-status="operating"]    { background: var(--st-operating); }
.pin[data-status="construction"] { background: var(--st-construction); }
.pin[data-status="development"]  { background: var(--st-development); }
.pin[data-status="permitting"]   { background: var(--st-permitting); }

.leaflet-popup-content {
  font-family: var(--body);
  font-size: 14px;
  margin: 12px 14px;
}
.leaflet-popup-content strong { font-size: 15px; }
.leaflet-container { font-family: var(--body); }

/* ------------------------------------------------------------------- host */

.host-band p {
  color: var(--slate);
  max-width: 56ch;
  font-size: 18px;
}

.host-band .btn { margin-top: 14px; }

/* ------------------------------------------------------------------- form */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact-intro p { color: var(--slate-light); max-width: 40ch; }
.contact-direct a { color: var(--amber); }

.form { max-width: 560px; }

.field { margin-bottom: 18px; }

.field label,
.field-group legend {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 7px;
  padding: 0;
}

.opt { text-transform: none; letter-spacing: 0; color: #7A8391; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--paper);
  background: var(--asphalt-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color .15s ease;
}

.field input::placeholder { color: #6C7484; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
}

.field textarea { resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-narrow { max-width: 120px; }

.field-group {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 18px 18px 2px;
  margin: 0 0 18px;
}

/* honeypot — hidden from people, still in the page for bots to trip over */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----------------------------------------------------------------- footer */

.foot {
  background: var(--asphalt);
  color: var(--slate-light);
  border-top: 1px solid var(--rule-dark);
  padding: 44px 0;
  font-size: 14.5px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  align-items: flex-start;
}

.foot p { margin: 0; }
.foot a { color: var(--amber); }

.foot-mark { font-size: 22px; color: var(--paper); }
.foot-copy { margin-left: auto; color: #6C7484; }

/* ------------------------------------------------------------- thanks page */

.thanks {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--asphalt);
  color: var(--paper);
  padding: 80px 24px;
}
.thanks h1 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 14px;
}
.thanks p { color: var(--slate-light); max-width: 44ch; margin: 0 auto 28px; }


/* ------------------------------------------------------------- about page */

.page-head {
  background: var(--asphalt);
  color: var(--paper);
  padding: 84px 0 76px;
}

.head-lockup {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.cs-icon {
  flex: none;
  width: 88px;
  height: auto;
  margin-top: 4px;
}

.page-head h1 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.016em;
  margin: 0 0 22px;
  max-width: 18ch;
}

.page-head .lede { max-width: 58ch; margin-bottom: 0; }

.prose { max-width: 66ch; }
.prose p { color: var(--slate); }

.team {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-top: 2px solid var(--ink);
  margin-top: 28px;
}

.member {
  background: var(--concrete);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  padding: 34px 4px 38px;
  align-items: start;
}

.portrait {
  position: relative;
  width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--asphalt-2);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.member-body h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.li {
  display: inline-flex;
  color: var(--slate);
  transition: color .15s ease;
}

.li svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  display: block;
}

.li:hover { color: #0A66C2; }

.role {
  font-family: var(--label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0 0 16px;
}

.member-body p { color: var(--slate); font-size: 16px; margin: 0 0 14px; }
.member-body p:last-child { margin-bottom: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-row .section-sub { margin-bottom: 0; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .network-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .cols { grid-template-columns: 1fr; }
  #map { height: 400px; }
  .site-list { max-height: 460px; }
  .band { padding: 60px 0; }
  .hero-photo img { max-width: 320px; }
  .page-head { padding: 60px 0 54px; }
  .head-lockup { flex-direction: column; gap: 20px; }
  .cs-icon { width: 68px; }
  .member { grid-template-columns: 1fr; gap: 22px; }
  .portrait { width: 160px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wordmark { font-size: 26px; }
  .nav-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav nav { width: 100%; justify-content: flex-start; }
  .nav nav a { padding: 8px 10px; }
  .field-row { grid-template-columns: 1fr; }
  .field-narrow { max-width: none; }
  .foot-copy { margin-left: 0; }
}

/* Belt and braces: some browsers ignore [hidden] on fieldset elements. */
[hidden] { display: none !important; }
