/* ============================================================
   Virinav Energy Advisors — Website Styles
   Light · airy · nature-green · photo-driven
   Palette per VIRINAV_BRAND_GUIDELINES.docx v2.0 (June 2026).
   Tokens marked "derived" are UI shades of the brand palette
   (scrims, gradients, tints) — not standalone brand colours.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --green:        #007C6E;   /* BG v2.0 Primary teal — headings, accents, links */
  --teal-wordmark:#467E7F;   /* BG v2.0 Wordmark teal — secondary headings */
  --gray-letter:  #A7ABAA;   /* BG v2.0 Lettering gray — captions, footers */
  --green-dark:   #005A52;   /* derived — dark shade for gradients/CTA cards */
  --green-deep:   #0A3D38;   /* derived — deep scrim base */
  --teal:         #629F9D;   /* BG v2.0 Sage — charts, secondary accents */
  --green-light:  #B8D8D8;   /* BG v2.0 Mist — highlights, dividers, hover */
  --green-mist:   #DCEFE8;   /* derived — soft fills */
  --green-pale:   #F4FAF7;   /* derived — airy section background */
  --sun:          #F2C14E;   /* web accent — BG v2.1 (adopted 2026-06-05, S05) */
  --ink:          #1C1C1C;   /* BG v2.0 Charcoal — body text */
  --ink-soft:     #51635F;   /* derived — muted text */
  --line:         #E6F0EC;   /* derived — borders */
  --white:        #FFFFFF;

  --font-head: "Saira", system-ui, sans-serif;
  --font-accent: "Oxanium", system-ui, sans-serif;
  --font-body: "Play", system-ui, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -34px rgba(0, 90, 82, .42);
  --shadow-sm: 0 10px 30px -18px rgba(0, 90, 82, .4);
  --shadow-soft: 0 16px 44px -30px rgba(10, 61, 56, .3);
  --t: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.68;
  font-size: 17px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; font-weight: 700; color: var(--green); letter-spacing: -.01em; } /* BG v2.0: Primary teal for headings */
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sun); border-radius: 2px; }
.eyebrow.center { justify-content: center; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8.5vw, 112px); }
.section--pale { background: var(--green-pale); }
.section--mist { background: linear-gradient(180deg, var(--green-pale), var(--green-mist)); }
/* Section with a soft, light photo background (e.g. faint B&W landscape) */
.section--photo { position: relative; overflow: hidden; isolation: isolate; }
.section--photo .photo-bg img { filter: grayscale(1); }
.section--photo .photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,250,247,.80) 0%, rgba(244,250,247,.66) 45%, rgba(244,250,247,.84) 100%);
}
.section--photo .wrap { position: relative; z-index: 2; }
/* frosted-glass cards: semi-transparent so the background reads through, blurred for legibility */
.section--photo .card {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
  backdrop-filter: blur(7px) saturate(115%);
  border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 14px 36px -22px rgba(10, 61, 56, .30);
}
.section--photo .card:hover { background: rgba(255, 255, 255, .72); border-color: var(--green-light); }
/* green variant — keeps the photo in colour with a soft green wash (not B&W) */
.section--photo--green .photo-bg img { filter: none; }
.section--photo--green .photo-bg::after {
  background: linear-gradient(180deg, rgba(223, 240, 233, .82) 0%, rgba(223, 240, 233, .62) 45%, rgba(223, 240, 233, .86) 100%);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-accent); font-weight: 600; font-size: .98rem;
  padding: .85em 1.6em; border-radius: 999px; cursor: pointer;
  transition: var(--t); border: 1.5px solid transparent;
}
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 10px 26px -12px rgba(0,124,110,.7); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(0,124,110,.75); }
.btn--sun { background: var(--sun); color: #4A3206; box-shadow: 0 10px 26px -12px rgba(242,193,78,.8); }
.btn--sun:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-family: var(--font-accent); font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding: .25rem 0; transition: color var(--t);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green); transition: width var(--t);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--green); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { margin-left: .5rem; }
.nav__cta::after { display: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--green-dark); margin: 5px 0; transition: var(--t); }

/* ---- Photo backdrop helper (hero + bands) ---- */
.photo-bg { position: absolute; inset: 0; z-index: 0; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Hero ---- */
.hero { position: relative; color: var(--white); background: var(--green-deep); overflow: hidden; isolation: isolate; }
.hero .photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(98deg, rgba(8,52,47,.9) 0%, rgba(0,80,72,.66) 42%, rgba(0,90,82,.22) 72%, rgba(184,216,216,.04) 100%),
    radial-gradient(80% 60% at 80% 0%, rgba(242,193,78,.18), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(92px, 15vw, 168px); max-width: 720px; }
.hero h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0,40,36,.35); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--sun); }
.hero p { color: #E7F4EF; margin-top: 1.3rem; }
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Stat band ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 1.4rem 1rem; border-radius: var(--radius); transition: var(--t); }
.stat:hover { background: var(--green-pale); }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.3rem); font-weight: 800; color: var(--green); line-height: 1; }
.stat__num .plus { color: var(--sun); }
.stat__label { font-family: var(--font-accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-top: .5rem; }

/* ---- Grid / cards ---- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Icon card (kept light) */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: var(--t); height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-light); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-mist); color: var(--green); margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }

/* Photo card */
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: var(--t);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-light); }
.pcard__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-family: var(--font-accent); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--green-dark); padding: .35em .8em; border-radius: 999px;
}
.pcard__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { margin-bottom: .5rem; }
.pcard__body p { font-size: .95rem; }
.pcard__link { margin-top: auto; padding-top: 1rem; font-family: var(--font-accent); font-weight: 600; font-size: .9rem; color: var(--green); display: inline-flex; gap: .4rem; }
.pcard:hover .pcard__link .arrow { transform: translateX(3px); }

/* ---- Section heading block ---- */
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.sec-head.center { margin-inline: auto; }

/* ---- Split (text + media) ---- */
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 380px; box-shadow: var(--shadow); background: var(--green-mist);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.media:hover img { transform: scale(1.04); }
.media__badge {
  position: absolute; z-index: 2; left: 18px; bottom: 18px;
  background: rgba(255,255,255,.94); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: .75rem; max-width: 78%;
}
.media__badge .n { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--green); line-height: 1; }
.media__badge .l { font-family: var(--font-accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

/* ---- Trust / profile link ---- */
.trust-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; font-family: var(--font-accent); font-weight: 600; font-size: .95rem; color: var(--green); transition: color var(--t); }
.trust-link:hover { color: var(--sun); }
.trust-link svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.trust-link .arrow { transition: transform var(--t); }
.trust-link:hover .arrow { transform: translateX(3px); }

/* ---- Value / list rows ---- */
.vlist { display: grid; gap: 1.3rem; }
.vrow { display: flex; gap: 1rem; align-items: flex-start; }
.vrow__mark { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--green-mist); color: var(--green); display: grid; place-items: center; font-family: var(--font-accent); font-weight: 700; font-size: .9rem; margin-top: 3px; }
.vrow h3 { font-size: 1.12rem; margin-bottom: .15rem; }
.vrow p { font-size: .95rem; }

/* ---- Regions ---- */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.region {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  background: var(--white); transition: var(--t); position: relative; overflow: hidden;
}
.region::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal); transition: var(--t); }
.region:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.region:hover::before { background: var(--green); width: 6px; }
.region__flag { font-size: 1.8rem; margin-bottom: .6rem; }
.region h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.region p { font-size: .9rem; }

/* ---- Image CTA / feature band ---- */
.band { position: relative; overflow: hidden; color: var(--white); isolation: isolate; }
.band .photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,52,47,.9) 0%, rgba(0,80,72,.78) 60%, rgba(0,90,82,.62) 100%);
}
.band__inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(64px, 9vw, 116px); }
.band__inner h2 { color: var(--white); }
.band__inner .eyebrow { color: #fff; justify-content: center; }
.band__inner p { color: #DCEFE8; max-width: 52ch; margin: 1rem auto 2rem; }
/* dramatic monochrome band — keeps a B&W photo neutral, left-weighted scrim */
.band--bw .photo-bg img { filter: grayscale(1) contrast(1.05); }
.band--bw .photo-bg::after {
  background: linear-gradient(105deg, rgba(10,12,14,.84) 0%, rgba(14,16,18,.6) 55%, rgba(14,16,18,.42) 100%);
}

/* ---- Page hero (interior) ---- */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--green-deep); }
.page-hero .photo-bg::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(8,52,47,.86) 0%, rgba(0,80,72,.62) 55%, rgba(0,90,82,.3) 100%);
}
/* Monochrome hero variant — keeps B&W photography neutral (not green-tinted) */
.page-hero--mono .photo-bg img { filter: grayscale(1) contrast(1.04); }
.page-hero--mono .photo-bg::after {
  background: linear-gradient(100deg, rgba(12,15,16,.84) 0%, rgba(18,22,24,.5) 52%, rgba(18,22,24,.22) 100%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 720px; padding-block: clamp(70px, 11vw, 124px); }
.page-hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,40,36,.3); }
.page-hero p { color: #E7F4EF; margin-top: 1rem; font-size: 1.15rem; }
.breadcrumb { font-family: var(--font-accent); font-size: .82rem; color: #fff; opacity: .82; margin-bottom: 1rem; letter-spacing: .04em; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Insights ---- */
.report-card .meta { margin-top: auto; padding-top: 1.2rem; font-size: .85rem; color: var(--ink-soft); font-family: var(--font-accent); }
/* Insights report cards are links to downloadable PDF executive summaries */
a.report-card { text-decoration: none; color: inherit; }
a.report-card:hover { text-decoration: none; }
.report-dl {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--font-accent); font-weight: 600; font-size: .9rem; color: var(--green);
  display: inline-flex; align-items: center; gap: .4rem;
}
.report-dl .arrow { transition: var(--t); }
a.report-card:hover .report-dl { color: var(--green-dark); }
a.report-card:hover .report-dl .arrow { transform: translateX(3px); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.field { margin-bottom: 1.2rem; }
.field label { font-family: var(--font-accent); font-size: .85rem; font-weight: 600; color: var(--green-dark); display: block; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85em 1em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); transition: var(--t);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,124,110,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 1.4rem; align-content: start; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item .ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--green-mist); color: var(--green); display: grid; place-items: center; }
.contact-item .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.contact-item span.l { font-family: var(--font-accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); display: block; }
.contact-item a, .contact-item p { color: var(--ink); font-weight: 500; }

/* ---- Footer ---- */
.site-footer { background: #0A2521; color: #9FC0B8; padding-block: clamp(48px, 7vw, 76px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer img { height: 40px; margin-bottom: 1.2rem; }
.site-footer h4 { font-family: var(--font-accent); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.site-footer a { color: #9FC0B8; font-size: .95rem; transition: color var(--t); display: inline-block; padding: .2rem 0; }
.site-footer a:hover { color: var(--green-light); }
.site-footer .blurb { font-size: .95rem; max-width: 32ch; color: #8AAFA6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #7B9C92; }
.footer-note { text-align: center; font-size: .78rem; line-height: 1.6; color: #6E8C83; max-width: 70ch; margin: 1.2rem auto 0; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .grid--3, .grid--4, .regions, .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .media { min-height: 280px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: #fff; padding: 1.5rem var(--gutter); gap: 1.2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform var(--t); box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .grid--2, .grid--3, .grid--4, .regions, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .reveal { transition: none; opacity: 1; transform: none; } .media img, .pcard__img img { transition: none; } }

/* S05-R2: 4-stat strip + wide stat numbers (52 MW / 180 MWh unified) */
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat__num--wide { font-size: clamp(1.5rem, 3vw, 2.4rem); padding-top: .45em; }
@media (max-width: 860px) { .stats--4 { grid-template-columns: repeat(2, 1fr); } }
