:root {
  --navy: #2f3a66;
  --navy-deep: #1d274f;
  --green: #3eaf4a;
  --green-deep: #356433;
  --green-soft: #e4fec8;
  --bg: #eef3e4;
  --card: #ffffff;
  --muted: #5a6578;
  --line: rgba(47, 58, 102, 0.16);
  --shadow: 0 16px 36px rgba(34, 51, 85, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--navy-deep);
  line-height: 1.55;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 5% 16%, rgba(122, 200, 30, 0.14), transparent 28%),
    radial-gradient(circle at 95% 4%, rgba(62, 175, 74, 0.14), transparent 30%),
    linear-gradient(180deg, #f6faef 0%, #eef3e4 56%, #eaf2df 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 5vw;
  background: rgba(238, 243, 228, 0.94);
  border-bottom: 1px solid rgba(47, 58, 102, 0.12);
  backdrop-filter: blur(9px);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 24px rgba(47, 58, 102, 0.15);
  border-color: rgba(47, 58, 102, 0.2);
}

.brand {
  display: inline-flex;
  width: min(230px, 44vw);
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  color: var(--green-deep);
  border-color: rgba(53, 100, 51, 0.45);
}

.nav-cta {
  background: linear-gradient(135deg, #3eaf4a 0%, #2d8e37 100%);
  color: #fff !important;
  border: none !important;
  border-radius: 9px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(62, 175, 74, 0.35);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 175, 74, 0.45);
  background: linear-gradient(135deg, #45c050 0%, #339a3d 100%);
  border-color: transparent !important;
}

body[data-page="home"] nav a[href="/"],
body[data-page="about"] nav a[href="/about"],
body[data-page="contact"] nav a[href="/contact"] {
  color: var(--green-deep);
  border-color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 20px;
  background: var(--navy-deep);
  margin: 8px 0;
}

main {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 112px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  background: linear-gradient(130deg, #f9fcf5 0%, #f2f8e8 54%, #e5f1d7 100%);
  border: 1px solid rgba(53, 100, 51, 0.2);
  border-radius: 24px;
  padding: clamp(24px, 4.5vw, 48px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-refresh {
  align-items: center;
}

.hero-content-refresh {
  max-width: 640px;
}

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(47, 58, 102, 0.22);
  box-shadow: 0 18px 34px rgba(29, 39, 79, 0.18);
  overflow: hidden;
  background: #dbead1;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-content h1 {
  margin: 10px 0 12px;
  font-family: "Sora", "Avenir Next", sans-serif;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.04;
  color: var(--navy);
}

.hero-points {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* When chips are the first element (homepage hero), no top gap needed */
.hero-content-refresh > .hero-points:first-child {
  margin-top: 0;
  margin-bottom: 14px;
}

.hero-points span {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(53, 100, 51, 0.26);
}

.monitoring-interactive {
  display: grid;
  /* screens left, tabs right */
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.monitoring-tabs {
  display: grid;
  gap: 10px;
}

.monitor-tab {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(47, 58, 102, 0.16);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 58, 102, 0.08);
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.monitor-tab:hover,
.monitor-tab:focus-visible,
.monitor-tab.is-active {
  border-color: rgba(53, 100, 51, 0.35);
  background: linear-gradient(130deg, #ffffff 0%, #edf6e3 100%);
  box-shadow: 0 12px 22px rgba(47, 58, 102, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.monitor-tab-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  border: 1px solid rgba(47, 58, 102, 0.18);
  background: #edf2fb;
}

.monitor-tab-copy strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-family: "Sora", sans-serif;
}

.monitor-tab-copy small {
  display: block;
  margin-top: 3px;
  color: #47556f;
  font-size: 0.84rem;
  font-weight: 600;
}

.monitor-preview {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(47, 58, 102, 0.16);
  background: #f3f7ff;
  box-shadow: 0 12px 24px rgba(47, 58, 102, 0.11);
  overflow: hidden;
  /* Lock the box to 16:9 — no SVG can change the container size */
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.monitor-preview img {
  /* SVG viewBox already cropped to content — cover fills with no whitespace */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s ease;
}

.monitor-preview img.fading {
  opacity: 0;
}

/* figcaption removed — descriptions now live in the right-side tabs */

.hero-microstats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-microstats article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 58, 102, 0.14);
  border-radius: 10px;
  padding: 10px;
}

.hero-microstats strong {
  display: block;
  font-family: "Sora", sans-serif;
  color: var(--green-deep);
  font-size: 1rem;
}

.hero-microstats span {
  display: block;
  color: #58667f;
  font-size: 0.75rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--green-deep);
  font-weight: 800;
}

.lead {
  margin: 0;
  color: #42506a;
  max-width: 72ch;
}

.lead.narrow {
  max-width: 58ch;
  margin: 8px auto 0;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 58, 102, 0.2);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-secondary {
  color: var(--green-deep);
  background: #fff;
  border: 1px solid rgba(53, 100, 51, 0.28);
}

.section {
  margin-top: 52px;
}

#resco-model {
  scroll-margin-top: 108px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head.center {
  text-align: center;
}

h2 {
  margin: 8px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

h3 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  color: var(--navy);
}

h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--green-deep);
  font-size: 1rem;
}

.about-grid,
.comparison-grid {
  display: grid;
  gap: 14px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(47, 58, 102, 0.08);
  padding: 20px;
}

.card p {
  margin: 0;
  color: #48566f;
}

/* Breathing room when a card has multiple paragraphs */
.card p + p {
  margin-top: 8px;
}

/* Bold lead line inside Our Approach card */
.approach-line {
  font-weight: 700;
  color: var(--green-deep) !important;
}

.meta {
  margin: 4px 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #445069;
}

.card li + li {
  margin-top: 8px;
}

.card.muted {
  background: #f7f8f8;
}

.card.accent {
  background: linear-gradient(145deg, #ffffff, #edf8e3);
  border-color: rgba(53, 100, 51, 0.3);
}

.accent-green {
  color: var(--green);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  background: #ffffff;
  border: 1px solid rgba(47, 58, 102, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(47, 58, 102, 0.08);
  padding: 14px 12px 16px;
  text-align: center;
}

.team-photo {
  width: min(112px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(47, 58, 102, 0.14);
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  background: #f4f7f2;
}

.team-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.team-card .meta {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.media-card {
  background: #ffffff;
  border: 1px solid rgba(47, 58, 102, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(47, 58, 102, 0.08);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.media-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.media-viewport {
  overflow: hidden;
}

.media-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
}

.media-track::-webkit-scrollbar {
  display: none;
}

.media-track .media-card {
  flex: 0 0 calc((100% - 42px) / 4);
  min-height: 246px;
  scroll-snap-align: start;
}

.media-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(47, 58, 102, 0.2);
  background: #ffffff;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(47, 58, 102, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.media-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(47, 58, 102, 0.18);
}

.media-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.media-logo {
  width: 150px;
  max-width: 100%;
  height: 64px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.media-card a:hover .media-logo {
  transform: scale(1.06);
}

.media-card h3 {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.media-source {
  margin: 8px 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-link {
  margin-top: auto;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.media-empty {
  margin: 0;
  color: #5c6880;
  font-weight: 600;
}

/* Old .epc-layout kept for reference — replaced by .epc-team-grid below */

.epc-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.epc-person-card {
  position: relative;
  border-radius: 20px;
  /* gradient + subtle dot texture */
  background:
    radial-gradient(circle, rgba(62, 175, 74, 0.14) 1px, transparent 1px),
    linear-gradient(160deg, #1b3d1c 0%, #24491a 45%, #1a3828 100%);
  background-size: 22px 22px, 100% 100%;
  border: 1px solid rgba(62, 175, 74, 0.22);
  box-shadow: 0 18px 40px rgba(15, 32, 16, 0.35);
  overflow: hidden;
  min-height: 360px;
}

/* person photo — anchored bottom-right, no container */
.epc-person-photo {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: 52%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  display: block;
}

.epc-person-info {
  position: relative;
  z-index: 2;
  padding: 28px;
  max-width: 56%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epc-person-stat {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(62, 175, 74, 0.22);
  border: 1px solid rgba(62, 175, 74, 0.38);
  color: #a8e8a0;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: "Sora", sans-serif;
  letter-spacing: 0.04em;
}

.epc-person-card h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.epc-person-card .meta {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.84rem;
}

.epc-person-card ul {
  margin: 4px 0 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  display: grid;
  gap: 7px;
}

.epc-person-card ul li {
  line-height: 1.55;
}

.workflow-process-card {
  border-radius: 20px;
  border: 1px solid rgba(53, 100, 51, 0.24);
  background: linear-gradient(160deg, #ffffff 0%, #ebf3e1 100%);
  box-shadow: 0 14px 30px rgba(47, 58, 102, 0.12);
  overflow: hidden;
}

.workflow-visual {
  position: relative;
  min-height: 320px;
  background: #dde8d3;
}

.workflow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.workflow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 56, 0.22) 0%, rgba(20, 30, 56, 0.44) 100%);
}

.workflow-plant {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: auto;
  height: 88%;
  max-width: 86%;
  object-fit: contain;
  z-index: 1;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.workflow-step {
  border-radius: 14px;
  border: 1px solid rgba(47, 58, 102, 0.14);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 58, 102, 0.08);
  padding: 14px;
}

.workflow-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy);
  border: 1px solid rgba(47, 58, 102, 0.18);
  background: #edf2fb;
}

.workflow-step h3 {
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  color: var(--green-deep);
}

.workflow-step p {
  margin: 0;
  color: #3f4d67;
  font-weight: 700;
}

.mini-profile + .mini-profile {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(47, 58, 102, 0.1);
}

.mini-profile p {
  margin: 6px 0 0;
  color: #4b5870;
}

.brochure-card {
  border-radius: 18px;
  border: 1px solid rgba(53, 100, 51, 0.24);
  background: linear-gradient(130deg, #ffffff 0%, #ecf5e4 100%);
  box-shadow: 0 14px 30px rgba(47, 58, 102, 0.11);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 14px;
}

.brochure-actions {
  display: grid;
  gap: 10px;
}

/* ── Mapbox map ── */
.mapbox-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(47, 58, 102, 0.14);
  box-shadow: var(--shadow);
}

.mapbox-map {
  width: 100%;
  height: 560px;
}

.mapbox-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 58, 102, 0.14);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3d4b67;
  backdrop-filter: blur(6px);
}

.mapbox-legend-sun {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── CTA banner ── */
.cta-banner {
  margin-top: 56px;
  border-radius: 20px;
  border: 1px solid rgba(53, 100, 51, 0.28);
  background: linear-gradient(120deg, #1a3d1c 0%, #276b26 55%, #2f6b32 100%);
  box-shadow: 0 16px 36px rgba(20, 50, 20, 0.32);
  color: #fff;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-banner h2,
.cta-banner p {
  color: #fff;
}

.cta-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #fff;
  color: #1a3d1c;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.btn-cta-primary:hover {
  background: var(--green-soft);
  transform: translateY(-2px);
}

.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.contact-hero-solo {
  grid-template-columns: 1fr;
  padding: 16px;
}

.contact-hero-panel {
  background: #e8f1de;
  border: 1px solid rgba(53, 100, 51, 0.2);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(47, 58, 102, 0.08);
  padding: clamp(20px, 4vw, 34px);
}

.contact-hero-solo .hero-content {
  max-width: 760px;
}

.contact-hero-solo .hero-content h1 {
  max-width: 16ch;
}

.contact-hero-solo .lead {
  max-width: 72ch;
}

.contact-hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 58, 102, 0.18);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(47, 58, 102, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #445069;
}

.contact-steps li {
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-hero-reach {
  border-top: 1px solid rgba(47, 58, 102, 0.1);
  padding-top: 14px;
  display: grid;
  gap: 2px;
}

.contact-hero-reach .meta {
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
}

.contact-fun-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 175, 74, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(47, 58, 102, 0.1), transparent 36%),
    linear-gradient(145deg, #f7fbf2 0%, #edf6e3 100%);
  border: 1px solid rgba(53, 100, 51, 0.24);
  box-shadow: 0 14px 28px rgba(47, 58, 102, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.contact-fun-card .lead {
  margin-top: 8px;
}

.contact-fun-list {
  display: grid;
  gap: 10px;
}

.contact-fun-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 58, 102, 0.12);
  border-radius: 12px;
  padding: 10px;
}

.contact-fun-no {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green-deep);
  background: #ffffff;
  border: 1px solid rgba(53, 100, 51, 0.24);
}

.contact-fun-item h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #1f2a4f;
}

.contact-fun-item p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #4e5b73;
}

.contact-fun-footer {
  margin-top: auto;
  border-top: 1px dashed rgba(53, 100, 51, 0.35);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-fun-footer .meta {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  color: #37435e;
  font-size: 0.9rem;
  font-weight: 700;
}

form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d5dceb;
  padding: 10px 12px;
  font: inherit;
  color: var(--navy-deep);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(62, 175, 74, 0.18);
  border-color: rgba(53, 100, 51, 0.46);
}

input.field-error,
textarea.field-error {
  border-color: #d93434 !important;
  outline: 2px solid rgba(217, 52, 52, 0.18);
  background: #fff6f6;
}

.field-shake {
  animation: field-shake 0.38s ease;
}

@keyframes field-shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

.status-message {
  min-height: 1.4em;
  margin: 0;
  font-weight: 700;
}

.status-message.success {
  color: var(--green-deep);
}

.status-message.error {
  color: #9c2f2f;
}

.site-footer {
  margin-top: 36px;
  padding: 28px 5vw 24px;
  border-top: 1px solid rgba(47, 58, 102, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(238, 243, 228, 0.8) 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto;
  gap: 20px;
  align-items: start;
}

.footer-brand {
  width: min(180px, 44vw);
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brief {
  margin: 10px 0 0;
  max-width: 62ch;
  color: #45526a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-contact {
  margin: 10px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #364463;
}

.footer-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
}

.btn-footer-primary {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 10px 22px rgba(40, 94, 52, 0.25);
}

.btn-footer-primary:hover {
  background: #254f2a;
}

.btn-footer-secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(47, 58, 102, 0.18);
}

.btn-footer-secondary:hover {
  background: #f4f7fb;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(47, 58, 102, 0.16);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(47, 58, 102, 0.09);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(47, 58, 102, 0.14);
}

.social-icon {
  width: 19px;
  height: 19px;
  display: block;
}

.footer-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: #5c6880;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .menu-toggle {
    display: inline-block;
  }

  nav {
    position: fixed;
    top: 72px;
    right: 4vw;
    display: none;
    min-width: 190px;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 58, 102, 0.16);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(47, 58, 102, 0.2);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(47, 58, 102, 0.1);
  }

  nav a:last-child {
    border-bottom: 0;
  }

  nav .nav-cta {
    margin: 8px 10px 10px;
    text-align: center;
    justify-content: center;
    border-radius: 9px;
  }

  .hero,
  .epc-layout,
  .epc-team-grid,
  .brochure-card,
  .monitoring-interactive,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .epc-person-card {
    min-height: 300px;
  }

  .epc-person-info {
    max-width: 58%;
  }

  .epc-person-photo {
    max-width: 48%;
  }

  .contact-hero-card {
    padding: 18px;
  }

  .contact-fun-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-visual {
    min-height: 280px;
  }

  .hero-microstats {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    aspect-ratio: 16 / 9;
  }

  .about-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-track .media-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .monitoring-tabs {
    gap: 8px;
  }

  .mapbox-map {
    height: 460px;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner-actions {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-cta-group,
  .footer-socials {
    justify-content: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  main {
    width: min(1160px, 94vw);
    padding-top: 100px;
  }

  .site-header {
    padding: 12px 4vw;
  }

  .brand {
    width: min(184px, 58vw);
  }

  nav {
    right: 3vw;
    left: 3vw;
    min-width: unset;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    gap: 8px;
  }

  .mapbox-map {
    height: 400px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-track .media-card {
    flex-basis: 100%;
  }

  .media-nav {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .team-photo {
    width: min(120px, 100%);
  }

  .contact-layout .card {
    padding: 16px;
  }

  input,
  textarea {
    font-size: 16px;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
  }

  .workflow-visual {
    min-height: 250px;
  }

  .monitor-tab-copy small,
  .monitor-preview figcaption span {
    font-size: 0.8rem;
  }

  .cta-banner {
    padding: 24px 18px;
  }

  .site-footer {
    padding: 24px 4vw 20px;
  }

  .footer-cta-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-cta-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .media-carousel {
    grid-template-columns: 1fr;
  }

  .media-nav {
    width: 100%;
    border-radius: 12px;
  }

  .media-track {
    padding-top: 0;
  }
}
