:root {
  --graphite: #2d2d2aff;
  --charcoal-brown: #353831ff;
  --charcoal-brown-2: #38423bff;
  --granite: #3f5e5aff;
  --muted-teal: #7f9c96ff;
  --pop: #ffb347;
  --pop-dark: #f08a24;
  --text: #eef3f1;
  --text-soft: #c5d3cf;
  --danger: #ff8f8f;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-head: "Climate Crisis", serif;
  --font-body: "Righteous", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--graphite);
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--pop); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #ffd08a; }

:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }

ul { margin: 0; padding: 0; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--pop); color: var(--graphite); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-primary { background: var(--pop); color: var(--graphite); }
.btn-primary:hover { background: #ffc671; color: var(--graphite); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--muted-teal); }
.btn-ghost:hover { background: var(--granite); color: var(--text); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(45, 45, 42, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--granite);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; object-fit: cover; }
.brand-name { font-family: var(--font-head); font-size: 1.05rem; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 0.4rem; }
.nav-list a {
  display: block; padding: 0.5rem 1rem; border-radius: 999px;
  color: var(--text); text-decoration: none;
}
.nav-list a:hover { background: var(--charcoal-brown-2); color: var(--text); }
.nav-list a.is-active { background: var(--granite); }
.nav-list a.nav-cta { background: var(--pop); color: var(--graphite); }
.nav-list a.nav-cta:hover { background: #ffc671; }

.nav-toggle {
  display: none; background: transparent; border: 2px solid var(--muted-teal);
  border-radius: 12px; padding: 0.6rem; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 24px; height: 3px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; width: 100%; min-height: 86vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-media, .page-hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(45, 45, 42, 0.92) 15%, rgba(56, 66, 59, 0.6) 60%, rgba(63, 94, 90, 0.35));
}
.hero-content, .page-hero-content { position: relative; z-index: 2; }
.hero-content { max-width: 720px; padding: 4rem 0; }
.hero-kicker {
  display: inline-block; background: var(--pop); color: var(--graphite);
  padding: 0.25rem 1rem; border-radius: 999px; transform: rotate(-2deg); margin-bottom: 1.2rem;
}
.hero-text { font-size: 1.25rem; color: var(--text-soft); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.page-hero { position: relative; min-height: 340px; display: flex; align-items: center; overflow: hidden; }
.page-hero-content { padding: 3.5rem 0; max-width: 780px; }
.page-hero-content p { color: var(--text-soft); font-size: 1.15rem; margin: 0; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 0.8rem; color: var(--muted-teal); }
.breadcrumb a { color: var(--muted-teal); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--charcoal-brown); }
.section-teal { background: var(--charcoal-brown-2); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-soft); }
.eyebrow { color: var(--muted-teal); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.85rem; margin-bottom: 0.6rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-media { position: relative; }
.split-media::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 3px dashed var(--muted-teal); border-radius: var(--radius);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
.stat { background: var(--granite); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--pop); }

/* Services: column flex */
.services-list { display: flex; flex-direction: column; gap: 1.2rem; list-style: none; }
.service-item {
  display: flex; align-items: center; gap: 1.6rem;
  background: var(--charcoal-brown-2); border: 2px solid var(--granite);
  border-radius: var(--radius); padding: 1.2rem; transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-item:hover { transform: translateX(6px); border-color: var(--pop); }
.service-thumb { flex: 0 0 200px; height: 140px; border-radius: 12px; object-fit: cover; }
.service-body { flex: 1; }
.service-body h3 { margin-bottom: 0.4rem; }
.service-body p { margin: 0; color: var(--text-soft); }
.service-price { flex: 0 0 auto; text-align: right; }
.price { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--pop); }
.price-note { display: block; font-size: 0.85rem; color: var(--muted-teal); margin-bottom: 0.7rem; }

/* Cards / links */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.link-card {
  background: var(--charcoal-brown); border-radius: var(--radius); padding: 1.8rem;
  border-top: 6px solid var(--muted-teal);
}
.link-card:nth-child(2) { border-top-color: var(--pop); }
.link-card:nth-child(3) { border-top-color: var(--granite); }
.link-card p { color: var(--text-soft); }
.text-link { font-size: 1.05rem; }

.topic-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.topic-list li { padding: 1rem 0; border-bottom: 2px dotted var(--granite); }
.topic-list span { display: block; color: var(--text-soft); font-size: 0.95rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--charcoal-brown-2); border-radius: var(--radius); padding: 1.6rem; border: 2px solid var(--granite); }
.card p:last-child { margin-bottom: 0; }
.card-img { border-radius: 12px; margin-bottom: 1rem; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.check-list { list-style: none; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: 0.6rem; }
.check-list li::before { content: "\2726"; position: absolute; left: 0; color: var(--pop); }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tier { background: var(--charcoal-brown); border: 2px solid var(--granite); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.tier.is-featured { border-color: var(--pop); background: var(--charcoal-brown-2); }
.tier .btn { margin-top: auto; align-self: flex-start; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius);
  overflow: hidden; background: var(--graphite); aspect-ratio: 4 / 3; font-family: var(--font-body);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem 0.8rem; text-align: left;
  background: linear-gradient(transparent, rgba(45, 45, 42, 0.95)); color: var(--text); font-size: 1rem;
}

/* Carousel */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.carousel-track { display: flex; transition: transform 0.6s ease; }
.carousel-slide { position: relative; flex: 0 0 100%; min-height: 460px; margin: 0; display: flex; align-items: flex-end; }
.carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay {
  position: relative; z-index: 2; width: 100%; padding: 3rem 4.5rem 3.5rem;
  background: linear-gradient(transparent, rgba(45, 45, 42, 0.96) 60%);
}
.carousel-overlay blockquote { margin: 0 0 1rem; font-size: 1.3rem; max-width: 800px; }
.carousel-author { color: var(--pop); }
.carousel-author span { color: var(--text-soft); }
.carousel-btn {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pop); color: var(--graphite); font-size: 1.5rem; line-height: 1;
}
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-dots { position: absolute; z-index: 3; top: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text); background: transparent; cursor: pointer; padding: 0; }
.carousel-dot.is-active { background: var(--pop); border-color: var(--pop); }

/* CTA band */
.cta-band { background: var(--granite); text-align: center; padding: 4rem 0; }
.cta-band p { color: var(--text); max-width: 60ch; margin-inline: auto; }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--charcoal-brown); padding: 2rem; border-radius: var(--radius); border: 2px solid var(--granite); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { color: var(--text); }
.input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 0.8rem 1rem;
  border-radius: 12px; border: 2px solid var(--granite); background: var(--graphite); color: var(--text);
}
.input::placeholder { color: var(--muted-teal); }
.input:focus { outline: 3px solid var(--pop); border-color: var(--pop); }
.input.has-error { border-color: var(--danger); }
textarea.input { min-height: 140px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.9rem; min-height: 1.2em; }
.check-field { flex-direction: row; align-items: flex-start; gap: 0.7rem; flex-wrap: wrap; }
.check-field input { margin-top: 0.4rem; width: 20px; height: 20px; accent-color: var(--pop); }
.check-field .field-error { flex-basis: 100%; }

.info-card { background: var(--charcoal-brown-2); padding: 2rem; border-radius: var(--radius); border: 2px solid var(--granite); }
.info-card address { font-style: normal; margin-bottom: 1rem; }
.info-list { list-style: none; }
.info-list li { margin-bottom: 0.8rem; }

.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--granite); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }

/* Legal / prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.updated { color: var(--muted-teal); }

/* Footer */
.site-footer { background: var(--charcoal-brown); border-top: 4px solid var(--granite); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0; }
.footer-title { font-size: 1rem; color: var(--muted-teal); }
.footer-list, .legal-list { list-style: none; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a, .legal-list a { color: var(--text-soft); text-decoration: none; }
.footer-list a:hover, .legal-list a:hover { color: var(--pop); }
.footer-address { font-style: normal; color: var(--text-soft); }
.footer-address a { color: var(--text-soft); }
.footer-bottom { background: var(--graphite); padding: 1.2rem 0; font-size: 0.9rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; }
.footer-bottom p { margin: 0; color: var(--muted-teal); }
.legal-list { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* Toast */
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 400; display: flex; flex-direction: column; gap: 0.6rem; max-width: min(380px, calc(100% - 2rem)); }
.toast {
  background: var(--granite); color: var(--text); padding: 0.9rem 1.2rem; border-radius: 12px;
  border-left: 6px solid var(--muted-teal); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast-success { border-left-color: #8be28b; }
.toast-error { border-left-color: var(--danger); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 18, 0.8); }
.modal-dialog {
  position: relative; background: var(--charcoal-brown); border: 2px solid var(--granite);
  border-radius: var(--radius); padding: 2rem; width: min(760px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 0.6rem; right: 0.8rem; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--pop); color: var(--graphite); font-size: 1.6rem; line-height: 1;
}
.lightbox-figure { margin: 0; }
.lightbox-figure img { border-radius: 12px; width: 100%; }
.lightbox-figure figcaption { margin-top: 1rem; color: var(--text-soft); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 300; max-width: 520px;
  background: var(--charcoal-brown-2); border: 2px solid var(--muted-teal); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiers, .card-grid, .gallery, .link-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--graphite);
    border-bottom: 2px solid var(--granite); display: none; padding: 1rem 4%;
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .split, .form-layout { grid-template-columns: 1fr; }
  .split-media::before { display: none; }
  .service-item { flex-direction: column; align-items: flex-start; }
  .service-thumb { flex-basis: auto; width: 100%; height: 200px; }
  .service-price { text-align: left; }
  .carousel-overlay { padding: 2rem 1.4rem 3.5rem; }
  .carousel-overlay blockquote { font-size: 1.1rem; }
  .carousel-btn { top: auto; bottom: 1rem; transform: none; }
  .topic-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 78vh; }
  .brand-name { font-size: 0.85rem; }
  .footer-grid, .stats, .tiers, .card-grid, .gallery, .link-cards, .form-row { grid-template-columns: 1fr; }
  .form { padding: 1.3rem; }
  .cookie-banner { right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
