/* EnviroVIA brand colors (locked Oct 2026), copied from brand/envirovia-colors.css.
   Do not hard-code other hex values: every shade below is mixed from these tokens. */
:root {
  /* Core */
  --ev-navy:   #0E2A47; /* primary dark: header, hero, footer, dark sections */
  --ev-forest: #0B4A1F; /* headings and accents on light backgrounds */
  --ev-leaf:   #72A41E; /* buttons (navy text on it), links on dark, shapes */

  /* Supporting */
  --ev-moss:   #2F4F12; /* tagline, small details */
  --ev-mist:   #F2F5F1; /* light page sections */
  --ev-ink:    #1C2620; /* body text */
  --ev-white:  #FFFFFF;

  /* Derived from the tokens above */
  --leaf-hover:  color-mix(in srgb, var(--ev-leaf) 86%, var(--ev-white));
  --muted:       color-mix(in srgb, var(--ev-ink) 82%, var(--ev-white));
  --line:        color-mix(in srgb, var(--ev-navy) 14%, var(--ev-white));
  --field:       color-mix(in srgb, var(--ev-navy) 34%, var(--ev-white));
  --leaf-tint:   color-mix(in srgb, var(--ev-leaf) 16%, var(--ev-white));
  --on-navy:     color-mix(in srgb, var(--ev-white) 86%, var(--ev-navy));
  --navy-line:   color-mix(in srgb, var(--ev-white) 28%, var(--ev-navy));
  --navy-raised: color-mix(in srgb, var(--ev-white) 8%, var(--ev-navy));
  --shadow:      color-mix(in srgb, var(--ev-navy) 22%, transparent);

  --font: 'Public Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ev-ink); background: var(--ev-mist); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ev-forest); }
a:hover { color: var(--ev-navy); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ev-leaf); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ev-white); padding: 10px 14px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 48px; }

/* Header (white, so the logo always sits on a white background) */
.site-header { background: var(--ev-white); color: var(--ev-navy); position: relative; z-index: 1; border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.logo { display: inline-flex; align-items: center; padding: 6px 0; }
.logo img { height: 84px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.nav a, .header-phone { color: var(--ev-navy); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a { border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ev-forest); border-bottom-color: var(--ev-leaf); }
.nav a[aria-current="page"] { color: var(--ev-forest); border-bottom-color: var(--ev-leaf); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; white-space: nowrap; }
a.header-phone:hover { color: var(--ev-forest); }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; background: var(--ev-white); color: var(--ev-navy); border: 1.5px solid var(--ev-navy); border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 1100px) {
  .logo img { height: 60px; }
  .nav-toggle { display: inline-flex; align-items: center; order: 2; }
  .header-cta { order: 3; width: 100%; justify-content: space-between; }
  .nav { order: 4; display: none; width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; font-size: 17px; border-bottom: 0; }
}

/* Buttons: leaf background with navy text (never white on leaf) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--ev-leaf); color: var(--ev-navy); text-decoration: none; font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 6px; cursor: pointer; text-align: center; }
.btn:hover { background: var(--leaf-hover); color: var(--ev-navy); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 16px; white-space: nowrap; }
.btn.ghost { background: transparent; border: 1.5px solid var(--ev-white); color: var(--ev-white); font-weight: 600; }
.btn.ghost:hover { background: var(--navy-raised); border-color: var(--ev-leaf); color: var(--ev-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { background: var(--ev-navy); color: var(--ev-white); padding: 64px 0 88px; border-bottom: 6px solid var(--ev-leaf); }
.hero.compact { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ev-leaf); }
.eyebrow a { color: var(--ev-leaf); text-decoration: none; }
.eyebrow a:hover { color: var(--ev-white); text-decoration: underline; }
h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 54px); line-height: 1.12; letter-spacing: -1px; }
.hero.compact h1 { font-size: clamp(32px, 4.6vw, 46px); max-width: 860px; }
.lead { font-size: 19px; color: var(--on-navy); max-width: 620px; }
.hero-photo { width: 100%; height: 420px; object-fit: cover; border-radius: 10px; }

.seasons { background: var(--ev-white); border-radius: 10px; padding: 8px 28px; border-top: 5px solid var(--ev-leaf); }
.seasons li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.seasons li:last-child { border-bottom: 0; }
.seasons strong { font-weight: 800; font-size: 19px; color: var(--ev-forest); }
.seasons span { color: var(--ev-ink); font-size: 16px; }

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.white { background: var(--ev-white); }
.section.dark { background: var(--ev-navy); color: var(--ev-white); }
.section.dark h2 { color: var(--ev-white); }
.section.dark p { color: var(--on-navy); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.18; letter-spacing: -0.6px; color: var(--ev-forest); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ev-navy); }
.sub { font-size: 18px; color: var(--muted); }
p { color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 760px; font-size: 18px; }
.prose h2 { margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.card { background: var(--ev-white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.section.white .card { background: var(--ev-mist); }
a.card { transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--ev-leaf); box-shadow: 0 10px 24px var(--shadow); color: inherit; }
a.card .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--ev-forest); text-decoration: underline; text-decoration-color: var(--ev-leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card svg { flex: none; width: 52px; height: 52px; padding: 10px; border-radius: 50%; background: var(--leaf-tint); color: var(--ev-forest); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ev-leaf); padding-top: 20px; }
.step .num { font-weight: 800; font-size: 32px; color: var(--ev-forest); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.panel { background: var(--ev-white); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.section.white .panel { background: var(--ev-mist); }
.panel .tag { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ev-moss); }
.panel a { font-weight: 700; text-decoration-color: var(--ev-leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px 32px; }
.checks li { position: relative; padding-left: 30px; font-size: 17px; color: var(--ev-ink); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--ev-leaf); border-bottom: 3px solid var(--ev-leaf); transform: rotate(-45deg); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--navy-line); border-radius: 999px; font-size: 15px; color: var(--ev-white); text-decoration: none; }
.pills a:hover { border-color: var(--ev-leaf); color: var(--ev-leaf); }
.pills.light a { color: var(--ev-navy); border-color: var(--field); background: var(--ev-white); }
.pills.light a:hover { border-color: var(--ev-leaf); color: var(--ev-forest); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }

/* Form */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px; }
.quote-info { display: flex; flex-direction: column; gap: 18px; }
.quote-info h1 { color: var(--ev-forest); font-size: clamp(30px, 4.2vw, 42px); letter-spacing: -0.8px; line-height: 1.15; }
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.contact-lines a, .contact-lines .ph { font-weight: 700; }
.form { background: var(--ev-white); border: 1px solid var(--line); border-top: 5px solid var(--ev-leaf); border-radius: 10px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .form fieldset, .form .btn, .form .note { grid-column: 1 / -1; }
.field label, .form legend { font-size: 14px; font-weight: 600; color: var(--ev-ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; font: inherit; color: var(--ev-ink); background: var(--ev-white); }
.field textarea { padding: 10px 12px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 8px; }
.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radios label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 6px; font-weight: 500; cursor: pointer; }
.radios input { width: 18px; height: 18px; accent-color: var(--ev-forest); margin: 0; }
.radios label:has(input:checked) { border-color: var(--ev-forest); background: var(--leaf-tint); }
.form .note { font-size: 14px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 22px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 60px; }
  .hero.compact { padding: 36px 0 48px; }
}

/* Footer (navy; the logo sits on its own white panel) */
.site-footer { background: var(--ev-navy); color: var(--on-navy); padding: 56px 0 32px; font-size: 15px; border-top: 6px solid var(--ev-leaf); }
.site-footer .logo { background: var(--ev-white); padding: 12px 16px; border-radius: 8px; }
.site-footer .logo img { height: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 36px; }
.footer-grid h2 { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ev-leaf); margin-bottom: 10px; }
.footer-grid li a { color: var(--ev-white); text-decoration: none; display: inline-block; padding: 5px 0; }
.footer-grid li a:hover { color: var(--ev-leaf); text-decoration: underline; }
.footer-grid li .ph { display: inline-block; padding: 5px 0; }
.footer-grid p { color: var(--on-navy); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-bottom { color: var(--on-navy); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: 14px; }

/* Owner bio (About page) */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ev-moss); }
.prose .kicker + h2 { margin-top: 0; }
.role { font-weight: 700; color: var(--ev-navy); margin-top: -10px; }
#owner .split { align-items: start; gap: 48px; }
.panel .checks { grid-template-columns: 1fr; }

/* Photos */
.page-photo { width: 100%; height: clamp(220px, 38vw, 440px); object-fit: cover; border-radius: 10px; }

.panel-photo { max-width: none; width: calc(100% + 64px); margin: -32px -32px 10px; height: 220px; object-fit: cover; object-position: center 60%; border-radius: 10px 10px 0 0; }

.bio-side { display: flex; flex-direction: column; gap: 24px; }
.bio-photo { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }


/* Homepage hero with a full-width background photo (set heroBackground in site.config.json) */
.hero.hero-bg { background: linear-gradient(90deg, color-mix(in srgb, var(--ev-navy) 94%, transparent) 0%, color-mix(in srgb, var(--ev-navy) 80%, transparent) 45%, color-mix(in srgb, var(--ev-navy) 25%, transparent) 100%), var(--hero-bg) var(--hero-pos, center 55%) / cover no-repeat; padding: 104px 0 128px; }
.hero.compact.hero-bg { padding: 88px 0 112px; }
@media (max-width: 700px) {
  .hero.hero-bg { background: linear-gradient(180deg, color-mix(in srgb, var(--ev-navy) 94%, transparent) 0%, color-mix(in srgb, var(--ev-navy) 86%, transparent) 55%, color-mix(in srgb, var(--ev-navy) 20%, transparent) 100%), var(--hero-bg) var(--hero-pos, center bottom) / cover no-repeat; padding: 56px 0 220px; }
  .hero.compact.hero-bg { padding: 44px 0 200px; }
}
/* Wide screens: give photo headers more height so tall subjects (the skyline) are not cropped */
@media (min-width: 1100px) {
  .hero.hero-bg { min-height: min(40vw, 720px); display: flex; align-items: center; }
  .hero.compact.hero-bg { min-height: min(32vw, 580px); }
  .hero.hero-bg > .wrap { width: 100%; }
}

/* Mailing address (contact sections and footer) */
.mail-address { display: block; font-size: 15px; line-height: 1.5; color: var(--muted); }
.mail-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ev-moss); margin-bottom: 2px; }
.footer-grid .mail-address { padding: 5px 0; color: var(--on-navy); }
.footer-grid .mail-label { color: var(--ev-leaf); }

