/* ---------- design tokens (shared with VEPCE) ---------- */
:root {
  --navy:        #0E2A47;
  --navy-deep:   #081B30;
  --navy-soft:   #173E66;
  --blue-mid:    #1B4A7E;
  --accent:      #3B7FBC;
  --accent-soft: #9EC5E3;
  --bg:          #F5F7FA;
  --bg-tinted:   #E8EEF5;
  --ink:         #14202E;
  --ink-soft:    #4A586B;
  --line:        #D6DEE8;
  --white:       #ffffff;

  --maxw: 1180px;
  --gut:  clamp(20px, 4vw, 56px);
  --radius: 6px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(214, 222, 232, 0.7);
}
.topbar-inner {
  padding: 16px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.brand, .topbar nav { flex-shrink: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  height: 56px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.brand-wordmark {
  font-family: 'Mulish', 'Avenir Next', 'Helvetica Neue', system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 1.2px;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1.1;
  text-transform: uppercase;
}
.topbar nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.topbar nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.topbar nav a:hover { color: var(--navy); }
.topbar nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
}
.topbar nav a.nav-cta:hover { background: var(--navy-soft); color: var(--white); }

@media (max-width: 980px) {
  .brand-wordmark { font-size: 18px; letter-spacing: 0.7px; white-space: normal; }
  .brand-mark { height: 48px; }
}
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 12px var(--gut); }
  .topbar nav {
    gap: 14px;
    row-gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 1;
    width: 100%;
    justify-content: flex-start;
  }
  .topbar nav a { font-size: 13px; }
  .brand-mark { height: 40px; }
  .brand-wordmark { font-size: 15px; }
}
@media (max-width: 480px) {
  .brand-wordmark { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(8, 27, 48, 0.78) 0%, rgba(8, 27, 48, 0.35) 60%, rgba(8, 27, 48, 0.55) 100%),
    url('assets/photos/sunfarms-aerial.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gut);
  align-self: center;
  color: var(--white);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px 0;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--blue-mid); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px 0;
}
.eyebrow-light { color: var(--accent-soft); }

/* ---------- stats strip ---------- */
.stats { background: var(--navy); color: var(--white); }
.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gut);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-unit {
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 4px;
  color: var(--accent-soft);
}
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.3px;
}

/* ---------- generic sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .lede { color: rgba(255, 255, 255, 0.78); }
.section-tinted { background: var(--bg-tinted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 0 0 18px 0;
  max-width: 26ch;
}
.section-dark h2 { color: var(--white); }
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 40px 0;
  line-height: 1.55;
}

/* ---------- two-col helper ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}
.col-text p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px 0; max-width: 56ch; }
.col-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.col-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--navy);
}

.check-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- pillar grid (3 cards) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 4px 0;
  color: var(--navy);
}
.pillar-tag {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 0 0 14px 0;
  text-transform: uppercase;
}
.pillar-card p:not(.pillar-tag) {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 16px 0;
  line-height: 1.55;
  flex-grow: 1;
}
.pillar-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.pillar-link:hover { color: var(--blue-mid); }

/* ---------- featured projects ---------- */
.project-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 56px);
  margin-bottom: 64px;
  align-items: center;
}
.project-feature:last-child { margin-bottom: 0; }
.project-feature.reverse .project-feature-photo { order: 2; }
@media (max-width: 820px) {
  .project-feature, .project-feature.reverse { grid-template-columns: 1fr; }
  .project-feature.reverse .project-feature-photo { order: 0; }
}
.project-feature-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-deep);
}
.project-feature-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-feature-text { padding: 6px 0; }
.project-feature-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 0 0 10px 0;
}
.project-feature h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 500;
  margin: 0 0 14px 0;
  color: var(--navy);
  line-height: 1.15;
}
.project-feature-text > p {
  color: var(--ink-soft);
  margin: 0 0 18px 0;
  line-height: 1.6;
}
.kv-list {
  list-style: none; padding: 0; margin: 16px 0 0 0;
  display: flex; flex-direction: column;
}
.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv-list li:last-child { border-bottom: none; }
.kv-list .k { color: var(--ink-soft); font-weight: 500; }
.kv-list .v { color: var(--ink); text-align: right; }

.placeholder-tile {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  display: flex; align-items: center; justify-content: center;
}
.placeholder-content {
  text-align: center;
  padding: 40px;
  display: flex; flex-direction: column; gap: 18px;
  align-items: center;
}
.placeholder-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.placeholder-statement {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.footnote {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 18px;
  font-style: italic;
}

/* ---------- team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: var(--navy);
}
.team-card .role {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.2px;
}
.team-card .loc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 14px 0;
}
.team-card p:last-child {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.inline-link:hover { color: var(--blue-mid); text-decoration: underline; }

/* ---------- jupiter band ---------- */
.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
}
.band-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(110deg, rgba(8, 27, 48, 0.92) 0%, rgba(8, 27, 48, 0.5) 65%, rgba(8, 27, 48, 0.3) 100%),
    url('assets/photos/smolyan-jupiter.jpg');
  background-size: cover;
  background-position: center;
}
.band-content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gut);
  color: var(--white);
}
.band-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  margin: 0 0 16px 0;
  line-height: 1.15;
  letter-spacing: -0.3px;
  max-width: 22ch;
  color: var(--white);
}
.band-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px 0;
  max-width: 62ch;
  line-height: 1.55;
}

/* ---------- landowners block ---------- */
.landowners-block .col-text p { color: var(--ink-soft); }
.landowners-block .btn { background: var(--accent); color: var(--white); }
.landowners-block .btn:hover { background: var(--blue-mid); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  margin-bottom: 56px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-single {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  margin-bottom: 56px;
}
.contact-single .contact-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
}
.contact-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 26px 28px;
  color: var(--white);
  transition: background 0.15s, transform 0.15s;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--white);
}
.contact-card .email {
  font-size: 14px;
  color: var(--accent-soft);
  margin: 0;
  word-break: break-all;
}

.contact-offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
@media (max-width: 820px) { .contact-offices { grid-template-columns: 1fr; gap: 20px; } }
.office p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.office-label {
  font-weight: 600 !important;
  color: var(--accent-soft) !important;
  font-size: 12px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px !important;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 36px 0;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  margin: 0 0 4px 0;
  font-size: 16px;
}
.footer-tag { margin: 0; font-size: 13px; }
.site-footer p { margin: 0 0 6px 0; }
.footer-links { font-size: 13px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent-soft); }
