/* ==========================================================================
   Edge GreenTech — Core Stylesheet
   Distinct clean-energy identity (forest + signal green).
   Family resemblance to Edge Management / RCP: shared structure, own palette.
   ========================================================================== */

:root {
  /* ---- Brand palette (distinct greentech identity) ---- */
  --forest:     #29784A;   /* deep evergreen — primary */
  --forest-deep:#216D46;   /* darker, footer/hero depth */
  --signal:     #A6E22E;   /* vivid signal green — accent (ties to Edge family) */
  --signal-deep:#6E9E12;   /* hover/active */
  --signal-pale:#E8F8C6;   /* light fills, tints */
  --teal-slate: #216E6E;   /* secondary depth tone */

  /* ---- Neutrals ---- */
  --paper:      #F6F5F0;   /* warm off-white ground */
  --wash:       #F1F8E4;   /* faint green section tint */
  --white:      #FFFFFF;
  --ink:        #1A2B26;   /* near-black, green-tinted */
  --body:       #46554E;   /* body text */
  --muted:      #5C6B64;   /* secondary text */
  --line:       #DCE6E0;   /* hairline borders */
  --line-soft:  #EAF0EC;

  /* ---- Type ---- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Scale / rhythm ---- */
  --wrap: 1200px;
  --gap: 24px;
  --section-y: 108px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(13,44,34,.04), 0 2px 8px rgba(13,44,34,.05);
  --shadow-md: 0 8px 28px rgba(13,44,34,.10);
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--body); background: var(--paper);
  line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; }
.display { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.015em; color: var(--ink); }
.display em { font-style: italic; color: var(--signal-deep); font-weight: 500; }
h1.display { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2.display { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal-deep); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--signal); display: inline-block; transform: skewX(-24deg); }
.lede { font-size: 1.16rem; line-height: 1.6; color: var(--body); }

/* ---- Layout ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--wash); }
.section--forest { background: var(--forest); color: #EAF7EF; }
.section--forest h1, .section--forest h2, .section--forest h3, .section--forest .display { color: #fff; }
.section--forest .eyebrow { color: var(--signal-pale); }
.section--forest .eyebrow::before { background: var(--signal-pale); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans);
  font-size: .92rem; font-weight: 600; padding: 15px 28px; border-radius: var(--radius);
  transition: all .25s var(--ease); cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-deep); }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--teal-slate); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal-deep); }
.section--forest .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.section--forest .btn--ghost:hover { border-color: var(--signal-pale); color: var(--signal-pale); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,245,240,.9); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display:flex; align-items:center; gap:11px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--forest); }
.nav__logo .mark { width: 30px; height: 30px; flex-shrink:0; }
.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 500; color: var(--ink); padding: 12px 14px; border-radius: var(--radius); transition: color .2s var(--ease); }
.nav__link:hover { color: var(--signal-deep); }
.nav__link .chev { width: 11px; height: 11px; transition: transform .2s var(--ease); }
.nav__item:hover .chev { transform: rotate(180deg); }
.nav__drop { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 10px; opacity: 0; visibility: hidden; transition: all .2s var(--ease); }
.nav__item:hover .nav__drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__drop a { display: block; padding: 11px 14px; border-radius: var(--radius); transition: background .18s var(--ease); }
.nav__drop a:hover { background: var(--wash); }
.nav__drop .dt { font-size: .9rem; font-weight: 600; color: var(--ink); display:block; }
.nav__drop .dd { font-size: .78rem; color: var(--muted); display:block; margin-top:1px; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: .3s var(--ease); }

@media (max-width: 1080px) {
  .nav__menu { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 32px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto; transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md); }
  .nav__menu.open { transform: translateY(0); }
  .nav__link { padding: 15px 8px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius:0; }
  .nav__drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; min-width: 0; padding: 0 0 8px 8px; display: none; }
  .nav__item.expand .nav__drop { display: block; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle { display: block; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--forest-deep); color: #D6E8DD; padding: 74px 0 32px; font-size: .9rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer__brand .nav__logo { color:#fff; margin-bottom: 18px; }
.footer__brand p { color: #C4DBCD; max-width: 300px; line-height: 1.65; }
.footer__col h4 { color: #fff; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; color: #D6E8DD; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--signal-pale); }
.footer__offices { display: flex; flex-wrap: wrap; gap: 40px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer__office strong { color: #fff; display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; font-weight: 600; }
.footer__office span { color: #C4DBCD; font-size: .86rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 14px; }
.footer__bottom .fam { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom .fam a { color:#D6E8DD; } .footer__bottom .fam a:hover { color: var(--signal); }
.footer__legal { color: #A9C6B5; font-size: .8rem; }

@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Reusable components
   ========================================================================== */
.head { max-width: 760px; margin-bottom: 54px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2,1fr);} .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 680px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--signal-pale); }
.card__num { font-family: var(--serif); font-size: 1.5rem; color: var(--signal); font-weight: 600; margin-bottom: 14px; display:block; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--body); }
.card__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .88rem; color: var(--signal-deep); }
.card__link .arw { transition: transform .25s var(--ease); }
.card:hover .card__link .arw { transform: translateX(4px); }

.stat__num { font-family: var(--serif); font-size: clamp(2.2rem,3.8vw,3.2rem); font-weight: 600; color: var(--signal); line-height: 1; letter-spacing: -.02em; }
.section--forest .stat__num { color: var(--signal-pale); }
.stat__label { margin-top: 12px; font-size: .94rem; color: var(--body); }
.section--forest .stat__label { color: #D6E8DD; }

.prose { max-width: 74ch; }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 580px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2.5px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color:#fff; padding: 10px 18px; border-radius: var(--radius); z-index: 200; }
.skip:focus { left: 12px; }

/* Page hero (interior) */
.page-hero { padding: 92px 0 80px; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; top:0; right:-6%; bottom:0; width:42%; background: linear-gradient(120deg, transparent, rgba(29,158,117,.16) 55%, transparent); transform: skewX(-16deg); pointer-events:none; }

/* Growth-angle slant motif */
.slant-rule { height: 3px; width: 54px; background: var(--signal); transform: skewX(-24deg); }

/* chartreuse: keep accent bright on dark heroes, deep on white */
.section--forest .display em { color: #A6E22E; }
.section--forest .card__link { color: #C6EE73; }

/* Carrier wall (partners) */
.carrier-wall { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:28px; }
.carrier-wall span { font-family:var(--serif); font-size:1.25rem; font-weight:600; color:var(--forest); padding:24px 16px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; text-align:center; transition:border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.carrier-wall span:hover { border-color:var(--signal); color:var(--signal-deep); transform:translateY(-3px); }
@media (max-width:860px){ .carrier-wall{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:520px){ .carrier-wall{ grid-template-columns:repeat(2,1fr);} .carrier-wall span{ font-size:1.05rem; padding:18px 12px;} }
