/* Higher Ground Plant Consulting — site styles
   Colors are taken from the logo. Change them here to restyle the whole site. */
@font-face { font-family: "Josefin Sans"; src: url("/fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --green-900: #0b3a26;
  --green-800: #134a32;
  --green-600: #2d6a46;
  --olive: #7f8c33;
  --olive-soft: #e7ead2;
  --tan: #c49a6c;
  --tan-soft: #efe2cf;
  --cream: #f6efdf;
  --paper: #fcfaf5;
  --ink: #1c2a22;
  --muted: #5a675f;
  --line: #e2dccd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 58, 38, .06), 0 8px 24px rgba(11, 58, 38, .08);
  --heading: "Josefin Sans", "Avenir Next", "Century Gothic", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--green-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(740px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green-900); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.eyebrow { font-family: var(--heading); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--olive); margin-bottom: .8rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }

/* buttons */
.btn { display: inline-block; font-family: var(--heading); font-weight: 600; letter-spacing: .04em; text-decoration: none;
  background: var(--green-900); color: #fff; padding: .85rem 1.5rem .75rem; border-radius: 999px; border: 2px solid var(--green-900);
  transition: background .15s, color .15s, transform .15s; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-900); }
.btn-ghost:hover { background: var(--green-900); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); border-color: #fff; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--green-900); }
.btn-small { padding: .5rem 1.1rem .42rem; font-size: .92rem; }
.btn { margin: .25rem .4rem .25rem 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 245, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; font-family: var(--heading); color: var(--green-900); line-height: 1.05; text-transform: uppercase; }
.brand-top { font-size: 1.2rem; font-weight: 600; letter-spacing: .03em; }
.brand-sub { font-size: .68rem; letter-spacing: .26em; color: var(--green-800); margin-top: .2rem; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { font-family: var(--heading); color: var(--ink); text-decoration: none; font-size: .98rem; padding: .35rem 0 .2rem; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--green-900); border-bottom-color: var(--tan); }
.nav-toggle { display: none; font-family: var(--heading); background: none; border: 1.5px solid var(--green-900); color: var(--green-900); border-radius: 999px; padding: .45rem 1rem .35rem; font-size: .95rem; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
  .nav-open .site-nav { display: flex; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--green-900); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 58, 38, .96) 0%, rgba(11, 58, 38, .82) 45%, rgba(11, 58, 38, .25) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(4rem, 10vw, 7.5rem) 0; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--tan); }
.hero p { font-size: 1.18rem; color: rgba(255, 255, 255, .9); max-width: 40rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin: 2rem 0 2.2rem; padding: 0; list-style: none; }
.stats li { font-size: .95rem; color: rgba(255, 255, 255, .82); }
.stats strong { display: block; font-family: var(--heading); font-size: 1.9rem; color: #fff; font-weight: 600; line-height: 1.1; }

/* sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.page-hero { background: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }

/* service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--tan); color: var(--ink); }
.card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--olive-soft); color: var(--green-900); display: grid; place-items: center; margin-bottom: 1rem; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .98rem; margin: 0 0 1rem; }
.card .more { margin-top: auto; font-family: var(--heading); font-size: .9rem; color: var(--green-600); }

/* collaborators + testimonial */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3.2rem; }
.logos a { display: block; }
.logos a:hover { filter: none; opacity: 1; }
.logos img { height: 58px; width: auto; }
.quote { max-width: 50rem; margin: 3.2rem auto 0; text-align: center; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--green-900); font-style: italic; }
.quote cite { font-style: normal; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--green-900); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }

/* services page */
.svc { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; padding: 2.6rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:first-child { border-top: 0; }
.svc h2 { font-size: 1.6rem; }
.svc .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--olive-soft); color: var(--green-900); display: grid; place-items: center; margin-bottom: 1rem; }
.svc .icon svg { width: 24px; height: 24px; }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem 1.6rem; }
.svc li { padding-left: 1.1rem; border-left: 3px solid var(--tan); }
.svc li strong { display: block; font-family: var(--heading); color: var(--green-900); font-weight: 600; }
.svc .intro { color: var(--muted); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 1rem; } }

/* about */
.bio p { font-size: 1.1rem; }
.creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.creds li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.creds strong { display: block; font-family: var(--heading); color: var(--green-900); font-size: 1.15rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 1.5rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* blog cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.post-card img, .post-card-ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--olive-soft); }
.post-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.post-card time { font-size: .85rem; color: var(--olive); font-weight: 600; letter-spacing: .02em; }
.post-card h3 { margin: .35rem 0 .55rem; font-size: 1.18rem; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* blog post */
.post { padding: clamp(2.5rem, 5vw, 4rem) 0 4rem; }
.post-header .back { display: inline-block; font-family: var(--heading); font-size: .92rem; text-decoration: none; margin-bottom: 1.4rem; }
.post-header time { display: block; color: var(--olive); font-weight: 600; font-size: .95rem; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .4rem 0 .6rem; }
.byline { color: var(--muted); }
.post-image { margin-top: 1.8rem; margin-bottom: 2.2rem; }
.post-image img { border-radius: var(--radius); width: 100%; }
.prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 .6em; }
.prose h2 { font-size: 1.7rem; } .prose h3 { font-size: 1.4rem; } .prose h4 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li p { margin: 0; }
.prose blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--tan); color: var(--green-900); }
.prose img { border-radius: 10px; margin: 1.5em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-family: var(--body); font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55em .75em; text-align: left; vertical-align: top; }
.prose th { background: var(--cream); }
.prose a { word-break: break-word; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post-cta { margin-top: 3.5rem; padding: 2rem; background: var(--cream); border-radius: var(--radius); }
.post-cta h2 { font-size: 1.5rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.post-nav a { text-decoration: none; font-family: var(--heading); color: var(--green-900); line-height: 1.3; }
.post-nav a span { display: block; font-size: .85rem; color: var(--olive); margin-bottom: .25rem; }
.post-nav .right { text-align: right; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--green-900); }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(45, 106, 70, .15); }
.contact-form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { display: none; }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 1.8rem; }
.contact-card h3 { margin-top: 1.4rem; } .contact-card h3:first-child { margin-top: 0; }
.note { background: var(--cream); padding: 1.2rem 1.4rem; border-radius: var(--radius); }

/* footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-logo { width: 180px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; color: var(--olive); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--green-600); text-decoration: underline; }
.site-footer p { line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
