:root {
  --green-900: #063f2f;
  --green-800: #075f3f;
  --green-700: #0b7a51;
  --green-100: #edf7f2;
  --graphite-950: #101615;
  --graphite-800: #24302d;
  --graphite-600: #52605c;
  --line: #dfe8e4;
  --soft: #f6f9f7;
  --surface: #ffffff;
  --shadow: 0 14px 34px rgba(12, 35, 28, 0.08);
  --radius: 14px;
  --container: min(1120px, calc(100vw - 40px));
  --header-height: 74px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--graphite-800);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  animation: pageFade 420ms ease both;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, textarea { font: inherit; }

input,
textarea {
  min-height: 38px;
  padding: 8px 11px;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.has-reveal .section,
.has-reveal .page-hero,
.has-reveal .hero-copy,
.has-reveal .intro-grid,
.has-reveal .split-grid,
.has-reveal .video-grid,
.has-reveal .company-card,
.has-reveal .service-card,
.has-reveal .contact-card,
.has-reveal .footer-grid {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal .section.is-visible,
.has-reveal .page-hero.is-visible,
.has-reveal .hero-copy.is-visible,
.has-reveal .intro-grid.is-visible,
.has-reveal .split-grid.is-visible,
.has-reveal .video-grid.is-visible,
.has-reveal .company-card.is-visible,
.has-reveal .service-card.is-visible,
.has-reveal .contact-card.is-visible,
.has-reveal .footer-grid.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--green-800);
}

.skip-link:focus { transform: translateY(0); }
.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 820px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(223, 232, 228, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled { box-shadow: 0 10px 26px rgba(12, 35, 28, 0.08); }

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--green-900);
  font-size: 0;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--green-700);
  background: var(--green-100);
}

.brand-mark svg { width: 24px; height: 24px; fill: currentColor; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--graphite-600);
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-900);
  border-bottom-color: var(--green-700);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta,
.btn-primary {
  color: #fff;
  background: var(--green-800);
}

.btn-primary:hover,
.header-cta:hover { background: var(--green-900); transform: translateY(-1px); }

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  color: var(--green-800);
  border-color: var(--green-800);
  background: #fff;
}

.btn-light {
  color: var(--green-900);
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--green-900);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.section { padding: 76px 0; }
.muted-section { background: var(--soft); }

.compact-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/hero-facility.webp") center / cover no-repeat;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 33, 27, 0.78) 0%, rgba(7, 33, 27, 0.46) 44%, rgba(7, 33, 27, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 33, 27, 0.2), transparent 55%);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 650px;
  padding: 42px 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 16px;
  color: inherit;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 1.03;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 750;
  line-height: 1.28;
}

.hero-copy p:not(.hero-lead) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-hero {
  padding: 86px 0 70px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.page-hero .narrow {
  width: var(--container);
  max-width: 1120px;
}

.image-page-hero {
  min-height: 420px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 63, 47, 0.88), rgba(6, 63, 47, 0.6)),
    url("assets/environment-education.webp") center / cover no-repeat;
}

.hero-about {
  background:
    linear-gradient(90deg, rgba(6, 63, 47, 0.88), rgba(6, 63, 47, 0.58)),
    url("assets/team-monitoring.webp") center / cover no-repeat;
}

.hero-solutions,
.hero-downloads {
  background:
    linear-gradient(90deg, rgba(6, 63, 47, 0.88), rgba(6, 63, 47, 0.56)),
    url("assets/hero-facility.webp") center / cover no-repeat;
}

.hero-contact {
  background:
    linear-gradient(90deg, rgba(6, 63, 47, 0.9), rgba(6, 63, 47, 0.58)),
    url("assets/team-monitoring.webp") center / cover no-repeat;
}

.section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-page-hero .section-number { color: rgba(255, 255, 255, 0.82); }

h2 {
  margin-bottom: 14px;
  color: var(--green-900);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.12;
  font-weight: 820;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--green-900);
  font-size: 1.08rem;
  line-height: 1.28;
}

p { color: var(--graphite-600); }

.page-hero p,
.image-page-hero p {
  max-width: 640px;
  font-size: 1.06rem;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(1.7rem, 4.65vw, 4.14rem);
  line-height: 1.08;
}

.image-page-hero h1,
.image-page-hero p { color: #fff; }

.intro-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 58px;
  align-items: start;
}

.text-stack {
  display: grid;
  gap: 14px;
}

.text-stack p { margin-bottom: 0; }

.text-link {
  width: fit-content;
  margin-top: 8px;
  color: var(--green-800);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }

.minimal-card,
.contact-card,
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 35, 28, 0.045);
}

.minimal-card {
  padding: 28px;
}

.minimal-card p,
.minimal-card li { color: var(--graphite-600); }

.minimal-card h2 {
  font-size: 1.25rem;
}

.section-action { margin-top: 24px; }

.quote-band {
  padding: 42px;
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius);
  background: var(--green-100);
}

.quote-band p {
  margin: 0;
  max-width: 820px;
  color: var(--green-900);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 820;
  line-height: 1.25;
}

.companies-section {
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.company-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.company-info {
  padding: 30px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.company-logo {
  width: 205px;
  height: 112px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
}

.empesa-logo {
  width: 245px;
}

.company-info .btn {
  align-self: flex-start;
  margin-top: auto;
}

.company-info ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}

.company-info li {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.company-info strong {
  color: var(--green-900);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-info span {
  color: var(--graphite-600);
}

.map-preview {
  position: relative;
  min-height: 220px;
  display: block;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background-color: #e9f0ed;
}

.map-preview::before,
.map-preview::after {
  content: "";
  position: absolute;
  inset: 0;
}

.map-preview::before {
  background:
    linear-gradient(32deg, transparent 0 42%, rgba(255, 255, 255, 0.92) 42% 45%, transparent 45% 100%),
    linear-gradient(142deg, transparent 0 49%, rgba(255, 255, 255, 0.9) 49% 52%, transparent 52% 100%),
    linear-gradient(8deg, transparent 0 58%, rgba(255, 255, 255, 0.76) 58% 60%, transparent 60% 100%),
    radial-gradient(circle at 25% 30%, rgba(11, 122, 81, 0.16), transparent 22%),
    radial-gradient(circle at 78% 70%, rgba(11, 122, 81, 0.12), transparent 24%);
}

.map-rural {
  background:
    linear-gradient(135deg, rgba(126, 198, 154, 0.44), rgba(236, 247, 241, 0.92)),
    #e9f0ed;
}

.map-urban {
  background:
    linear-gradient(135deg, rgba(219, 229, 235, 0.88), rgba(245, 248, 246, 0.96)),
    #e9f0ed;
}

.map-preview span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  border-radius: 999px;
  background: var(--green-800);
  box-shadow: 0 14px 34px rgba(6, 63, 47, 0.22);
  font-weight: 900;
}

.map-preview span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--green-800);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.map-embed {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #e9f0ed;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed a {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(12, 35, 28, 0.14);
  font-size: 0.86rem;
  font-weight: 900;
}

.video-section {
  background: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--green-900);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.video-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 63, 47, 0.46), rgba(6, 63, 47, 0.12));
}

.video-link:hover img {
  transform: scale(1.03);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 63, 47, 0.28);
}

.play-button::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 24px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid var(--green-800);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vh, 36px) clamp(16px, 4vw, 42px);
  animation: modalFade 180ms ease both;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 22, 17, 0.78);
  backdrop-filter: blur(8px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100vw - 48px), calc((100vh - 72px) * 1.777));
  max-height: calc(100vh - 72px);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modalRise 220ms ease both;
}

.video-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--green-900);
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.video-modal-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 72px);
}

.video-modal-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.video-watch-link {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  color: var(--green-900);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

.video-watch-link::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 11px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--green-800);
}

.image-card,
.about-image {
  min-height: 360px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.about-image { background-image: url("assets/team-monitoring.webp"); }

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 20px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-700);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) 1fr;
  gap: 42px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-list h2 {
  margin: 0;
  font-size: 1.2rem;
}

.service-list p { margin: 0; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--graphite-800);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form .full { grid-column: 1 / -1; }

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--graphite-800);
  background: #fff;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea { resize: vertical; }
input:focus,
textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(11, 122, 81, 0.11);
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 28px;
}

.contact-card.primary-contact {
  color: #fff;
  border-color: transparent;
  background: var(--green-900);
}

.contact-card.primary-contact h2,
.contact-card.primary-contact p { color: #fff; }

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.download-card {
  min-height: 170px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.download-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-900);
  line-height: 1.25;
}

.download-card small {
  color: var(--graphite-600);
  font-weight: 800;
}

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

.download-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: center;
  min-height: 86px;
  padding: 20px 24px;
  background: #f1f4f3;
  border: 1px solid #e6ece9;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.download-row:hover {
  transform: translateX(4px);
  border-color: rgba(7, 95, 63, 0.22);
  background: #eaf2ee;
}

.download-row span {
  color: var(--graphite-950);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.download-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  color: #fff;
  background: var(--green-900);
  border-radius: 6px;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.download-row:hover strong {
  background: var(--green-700);
}

.download-row[aria-disabled="true"] {
  cursor: default;
}

.download-row[aria-disabled="true"] strong {
  background: var(--graphite-600);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 12% 8%, rgba(58, 160, 111, 0.2), transparent 28%),
    linear-gradient(135deg, #03281f 0%, #041f1a 52%, #021611 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0b7a51, #75c69a, #0b7a51);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr;
  gap: 54px;
  padding: 58px 0 42px;
}

.footer-grid > div:first-child {
  padding-right: 28px;
}

.footer-brand {
  margin-bottom: 18px;
  color: #fff;
}

.footer-brand .brand-logo {
  height: 58px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.site-footer h2 {
  position: relative;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.site-footer h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: #75c69a;
}

.site-footer p,
.site-footer ul { margin: 0; }

.site-footer p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.site-footer li {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82);
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid rgba(117, 198, 154, 0.7);
}

.developer-credit {
  text-align: right;
}

.admin-page {
  min-height: 100vh;
  background: var(--soft);
}

.admin-shell {
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.admin-login .admin-card {
  max-width: 330px;
}

.admin-logo {
  width: 132px;
  max-width: 100%;
  margin-bottom: 14px;
}

.admin-card h1,
.admin-card h2 {
  margin-bottom: 12px;
}

.admin-card h1 {
  color: var(--green-900);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.admin-card h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.admin-card form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-card label {
  display: grid;
  gap: 6px;
  color: var(--graphite-800);
  font-weight: 800;
  font-size: 0.84rem;
}

.admin-card small {
  color: #9f2f2f;
  font-weight: 800;
}

.admin-panel {
  min-height: 100vh;
}

.admin-topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-topbar > div {
  display: flex;
  gap: 12px;
}

.admin-layout {
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.file-upload input[type="file"] {
  width: 100%;
  min-height: auto;
  padding: 12px;
  border: 1px dashed var(--green-700);
  border-radius: 12px;
  color: var(--graphite-600);
  background: var(--green-100);
  cursor: pointer;
}

.file-upload input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green-800);
  cursor: pointer;
  font-weight: 800;
}

.file-upload small {
  color: var(--graphite-600);
  font-weight: 700;
}

.admin-form > small {
  color: var(--green-800);
  font-weight: 800;
}

.admin-actions,
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-downloads {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.admin-download-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.admin-download-row strong {
  display: block;
  color: var(--green-900);
  line-height: 1.25;
}

.admin-download-row small {
  color: var(--graphite-600);
  word-break: break-word;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.admin-row-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-900);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.admin-row-actions button:hover {
  border-color: var(--green-700);
}

@media (max-width: 1040px) {
  .main-nav,
  .header-cta { display: none; }

  .menu-toggle { display: grid; }

  .main-nav.is-open {
    position: absolute;
    display: grid;
    left: 20px;
    right: 20px;
    top: calc(var(--header-height) + 8px);
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 11px 10px;
    border-bottom: 0;
    border-radius: 10px;
  }

  .main-nav.is-open a:hover,
  .main-nav.is-open a[aria-current="page"] { background: var(--green-100); }

  .intro-grid,
  .split-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .feature-grid.three,
  .feature-grid.four,
  .downloads-grid { grid-template-columns: repeat(2, 1fr); }

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

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

  .service-list article { grid-template-columns: 1fr; gap: 12px; }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 28px, 1120px);
    --header-height: 68px;
  }

  .brand { font-size: 1.05rem; }
  .brand-logo { height: 42px; }
  .footer-brand .brand-logo { height: 54px; }
  .brand-mark { width: 34px; height: 34px; }
  .section { padding: 58px 0; }

  .compact-hero {
    min-height: 520px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.06;
  }

  .hero-copy {
    max-width: 100%;
    padding: 34px 0;
  }

  .hero-actions,
  .hero-actions .btn,
  .contact-form .btn { width: 100%; }

  .page-hero { padding: 62px 0 52px; }

  .feature-grid.three,
  .feature-grid.four,
  .downloads-grid,
  .contact-form,
  .footer-grid { grid-template-columns: 1fr; }

  .footer-grid {
    gap: 36px;
    padding-top: 54px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .developer-credit {
    text-align: left;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 14px;
  }

  .admin-topbar > div,
  .admin-actions,
  .admin-list-head,
  .admin-download-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .admin-topbar .btn,
  .admin-actions .btn {
    width: 100%;
  }

  .footer-grid > div:first-child {
    padding-right: 0;
  }

  .contact-form .full { grid-column: auto; }
  .minimal-card,
  .contact-card,
  .download-card { padding: 22px; }

  .company-info {
    padding: 24px;
  }

  .map-preview {
    min-height: 180px;
  }

  .map-embed {
    min-height: 230px;
  }

  .download-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .download-row strong {
    width: 100%;
  }

  .quote-band { padding: 28px; }
  .image-card,
  .about-image { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-reveal .section,
  .has-reveal .page-hero,
  .has-reveal .hero-copy,
  .has-reveal .intro-grid,
  .has-reveal .split-grid,
  .has-reveal .video-grid,
  .has-reveal .company-card,
  .has-reveal .service-card,
  .has-reveal .contact-card,
  .has-reveal .footer-grid {
    opacity: 1;
    transform: none;
  }
}
