/* Evergreen Frame Construction — division landing + materials price list */

/* These pages open on a light background (Solar pages open on a dark hero),
   so keep the fixed nav solid for legible white nav text, and clear its height. */
.nav {
  background: rgba(7, 25, 15, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--panel-3);
}
main > .section:first-child { padding-top: clamp(104px, 12vw, 150px); }

/* ---- group home portal: brand intro + stacked division boxes, dark writing ---- */
.ec-portal .shell { max-width: 880px; display: flex; flex-direction: column; gap: 18px; }

.ec-portal-intro { margin-bottom: clamp(8px, 2.5vw, 22px); max-width: 60ch; }
.ec-portal-intro .brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ec-portal-mark { width: clamp(40px, 6vw, 52px); height: clamp(40px, 6vw, 52px); flex: none; }
.ec-portal-intro h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.02em; color: var(--panel); }
.ec-portal-intro .kicker { margin-top: 16px; }

.portal-box {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.2vw, 30px) clamp(22px, 4vw, 36px);
  text-decoration: none;
  color: var(--panel);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.portal-box:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: 0 18px 44px -28px rgba(0,0,0,.55); }
.portal-ico {
  flex: none; display: grid; place-items: center;
  width: clamp(52px, 8vw, 66px); height: clamp(52px, 8vw, 66px);
  border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--lime-deep, var(--lime));
}
.portal-ico svg { width: 56%; height: 56%; }
.portal-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.portal-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.05;
  color: var(--panel);
}
.portal-text b { font-weight: 800; }
.portal-desc { font-size: clamp(13px, 1.6vw, 15px); line-height: 1.45; color: var(--panel); opacity: .72; }
.portal-arrow { margin-left: auto; flex: none; width: 26px; height: 26px; color: var(--lime); transition: transform .2s var(--ease); align-self: center; }
.portal-box:hover .portal-arrow { transform: translateX(4px); }
@media (max-width: 540px) {
  .portal-box { gap: 14px; padding: 18px 18px; }
  .portal-arrow { display: none; }
}

/* ---- division hero ---- */
.ec-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.ec-hero-copy .ec-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.ec-hero-photo { max-width: 460px; width: 100%; justify-self: end; }
@media (max-width: 820px) {
  .ec-hero { grid-template-columns: 1fr; }
  .ec-hero-photo { justify-self: start; max-width: 520px; }
}

.ec-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 820px) { .ec-cards { grid-template-columns: 1fr; } }

.ec-cards .panel-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ec-cards .panel-card h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--foliage);
}
.ec-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--foliage);
  width: 100%;
}
.ec-cards .panel-card p { color: var(--mist); font-size: 15.5px; line-height: 1.55; }
.ec-cards .panel-card p a { color: var(--foliage); font-weight: 600; }
.ec-cards .panel-card p a:hover { text-decoration: underline; }
.ec-cards .panel-card .btn { margin-top: auto; align-self: flex-start; }

/* whole-card link (group home division chooser) */
.ec-card-link { text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.ec-card-link:hover { border-color: var(--lime); transform: translateY(-3px); box-shadow: 0 18px 44px -28px rgba(0,0,0,.55); }
.ec-card-link h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ec-card-link .ec-arrow { color: var(--lime); transition: transform .2s var(--ease); }
.ec-card-link:hover .ec-arrow { transform: translateX(4px); }

/* ---- price list ---- */
.ec-pricelist { margin-top: 34px; }
.ec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
}
.ec-table thead th {
  background: var(--foliage);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
}
.ec-table th.ec-price, .ec-table td.ec-price { text-align: right; }
.ec-table tbody td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.ec-table tbody tr:nth-child(even) { background: rgba(125, 194, 62, 0.10); }
.ec-table tbody td:first-child { font-weight: 600; }
.ec-table td.ec-price { font-weight: 700; font-variant-numeric: tabular-nums; }

.ec-note {
  margin-top: 14px;
  color: var(--mist);
  font-size: 13px;
  font-style: italic;
}

.ec-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
