:root {
  --ink: #15231d;
  --muted: #5d6a63;
  --paper: #f7f4ec;
  --white: #ffffff;
  --forest: #0f5f43;
  --forest-dark: #0a382a;
  --gold: #d9a441;
  --clay: #b65f38;
  --line: rgba(21, 35, 29, 0.14);
  --shadow: 0 18px 50px rgba(10, 56, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link,
.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:focus {
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--white);
  background: var(--forest-dark);
  z-index: 10;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 132px;
  height: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-fallback {
  display: none;
  color: var(--forest-dark);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand.logo-missing img {
  display: none;
}

.brand.logo-missing .brand-fallback {
  display: inline;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 1.4vw, 1.2rem);
  color: var(--forest-dark);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a {
  padding: 0.35rem 0;
}

.nav-action,
.button,
.bot-form button,
.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-action,
.button.primary,
.bot-form button {
  color: var(--white);
  background: var(--forest);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.button.ghost.dark {
  color: var(--forest-dark);
  border-color: var(--line);
  background: var(--white);
}

.button.compact {
  width: 100%;
  margin-top: auto;
  color: var(--forest-dark);
  border-color: var(--line);
  background: var(--white);
}

.button.compact.primary {
  color: var(--white);
  background: var(--forest);
}

.nav-action:hover,
.button:hover,
.bot-form button:hover,
.refresh-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/home-hero-estacion-zurqui.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86) 0%, rgba(5, 27, 21, 0.5) 48%, rgba(5, 27, 21, 0.14) 100%),
    linear-gradient(0deg, rgba(5, 27, 21, 0.58), transparent 45%);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 11rem 0 7rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.92;
}

h2 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  line-height: 1.15;
}

.hero-copy {
  max-width: 590px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-status {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 32px;
  width: min(340px, calc(100% - 32px));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-status span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
}

.section {
  padding: 6rem 0;
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-band {
  padding: 1.3rem 0;
  color: var(--white);
  background: var(--forest-dark);
}

.intro-grid,
.split,
.route-layout,
.location-grid {
  display: grid;
  gap: 2rem;
}

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

.intro-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 0.7rem 0;
}

.metric {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
}

.intro-grid p,
.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.split,
.route-layout,
.location-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
}

.section p {
  color: var(--muted);
}

.service-list,
.form-grid {
  display: grid;
  gap: 1rem;
}

.service-list {
  grid-template-columns: repeat(3, 1fr);
}

.service-list article,
.form-card,
.bot-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-list article {
  min-height: 360px;
  padding: 1.2rem;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--clay);
  font-weight: 900;
}

.route-section {
  color: var(--white);
  background: var(--forest-dark);
}

.route-section .section p {
  color: rgba(255, 255, 255, 0.76);
}

.route-section h2,
.route-section p {
  color: var(--white);
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.source-row a {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.bot-panel {
  padding: 1rem;
  color: var(--ink);
}

.bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.bot-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.bot-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-dark);
  background: #f3efe5;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.bot-close:hover {
  background: var(--white);
}

.bot-kicker {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.bot-head h3 {
  margin: 0.15rem 0 0;
}

.live-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #2ecc71;
  box-shadow: 0 0 0 7px rgba(46, 204, 113, 0.16);
}

.bot-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  max-height: 390px;
  overflow-y: auto;
  padding: 1rem 0.2rem;
}

.bot-log:empty {
  display: none;
}

.message {
  width: fit-content;
  max-width: 88%;
  padding: 0.78rem 0.9rem;
  border-radius: 8px;
  color: var(--ink);
  background: #eef4ef;
}

.message.user {
  align-self: flex-end;
  color: var(--white);
  background: var(--forest);
}

.message small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.bot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.bot-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.refresh-button {
  width: 100%;
  margin-top: 0.65rem;
  color: var(--forest-dark);
  border-color: var(--line);
  background: #f3efe5;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

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

.form-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 1.2rem;
}

.form-card.featured {
  color: var(--white);
  background: var(--forest);
}

.form-card.featured p,
.form-card.featured h3 {
  color: var(--white);
}

.location-section {
  background: #ece7dc;
}

.location-grid iframe {
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.4rem max(16px, calc((100% - 1180px) / 2));
  text-align: center;
  color: var(--white);
  background: #071c15;
}

.footer-brand {
  display: grid;
  gap: 0.25rem;
}

.footer-brand strong {
  font-size: 1.1rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.15);
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-credit {
  font-size: 0.92rem;
}

.footer-credit a {
  color: var(--gold);
  font-weight: 850;
}

.page-hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 9rem 0 4rem;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.42)),
    url("https://images.unsplash.com/photo-1516908205727-40afad9449a8?auto=format&fit=crop&w=1800&q=82") center/cover;
}

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

.services-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.36)),
    url("assets/home-hero-estacion-zurqui.jpg") center/cover;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.42)),
    url("assets/home-hero-estacion-zurqui.jpg") center/cover;
}

.employment-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.88), rgba(5, 27, 21, 0.44)),
    url("https://www.estacionzurqui.com/wp-content/uploads/formulario_empleo.webp") center/cover;
}

.route-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.88), rgba(5, 27, 21, 0.5)),
    url("assets/ruta-32-tunel-zurqui.jpg") center/cover;
}

.forms-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.4)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.4)),
    url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.suppliers-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.38)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.invoice-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.4)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.location-hero {
  background:
    linear-gradient(90deg, rgba(5, 27, 21, 0.86), rgba(5, 27, 21, 0.38)),
    url("assets/ruta-32-tunel-zurqui.jpg") center/cover;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.page-card {
  min-height: 290px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-image,
.service-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.page-card span {
  display: inline-flex;
  margin-bottom: 1.3rem;
  color: var(--clay);
  font-weight: 900;
}

.page-card h2,
.form-card h2,
.service-list h2,
.bot-head h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.form-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 1.5rem;
  align-items: start;
}

.info-panel,
.native-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-panel {
  padding: 1.2rem;
}

.info-panel p {
  color: var(--muted);
}

.panel-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.native-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.native-form label,
.native-form fieldset {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  color: var(--forest-dark);
  font-weight: 750;
}

.native-form input,
.native-form textarea,
.native-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
  font-weight: 500;
}

.native-form textarea {
  resize: vertical;
}

.native-form fieldset {
  padding: 0;
  border: 0;
}

.native-form legend {
  margin-bottom: 0.45rem;
  font-weight: 750;
}

.inline-choice {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem !important;
  margin-right: 1rem !important;
  font-weight: 650 !important;
}

.inline-choice input {
  width: auto;
  min-height: auto;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--forest);
  font-weight: 700;
}

.about-copy p {
  margin-top: 0;
}

.about-band {
  background: #ece7dc;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mission-grid article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-height: 260px;
  overflow: hidden;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 95, 67, 0.08), rgba(217, 164, 65, 0.08)),
    var(--white);
  box-shadow: var(--shadow);
}

.mission-grid article::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 1.25rem auto;
  width: 88px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
}

.mission-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest);
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(10, 56, 42, 0.18);
}

.mission-grid h2 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  line-height: 1.08;
}

.mission-grid p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.admin-page {
  font-size: 0.95rem;
}

.admin-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 1.6rem 0;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: minmax(250px, 0.46fr) minmax(360px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-intro {
  position: sticky;
  top: 1.5rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-shell h1,
.admin-dashboard h1 {
  color: var(--forest-dark);
  font-size: clamp(1.9rem, 2.35vw, 2.65rem);
  line-height: 1.06;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.admin-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.1;
}

.admin-card p {
  color: var(--muted);
}

.admin-session {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--forest-dark) !important;
  font-weight: 800;
}

.admin-code-form {
  margin-top: 1rem;
  background: #fbfaf6;
  box-shadow: none;
}

.admin-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-topbar.compact {
  align-items: center;
  margin-bottom: 1rem;
}

.admin-topbar p {
  margin: 0;
}

.admin-topbar h2,
.admin-table-wrap h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  line-height: 1.1;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.admin-tabs button,
.admin-list button {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-dark);
  background: #f3efe5;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-tabs button.is-active {
  color: var(--white);
  background: var(--forest);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-actions .button {
  flex: 1 1 180px;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-list article {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.admin-list span,
.admin-list small,
.admin-note {
  color: var(--muted);
}

.admin-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stats-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.stats-grid span,
.stats-grid small {
  display: block;
  color: var(--muted);
}

.stats-grid strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--forest-dark);
  font-size: 1.8rem;
  line-height: 1;
}

.admin-table-wrap {
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.admin-table th {
  color: var(--forest-dark);
  background: #fbfaf6;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.bot-prompts,
.bot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.bot-quick-actions {
  margin: 1rem 0 0.85rem;
}

.bot-prompts button,
.bot-quick-actions button {
  min-height: 40px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.bot-quick-actions button {
  flex: 1 1 calc(50% - 0.6rem);
  color: var(--forest-dark);
  border-color: var(--line);
  background: #f3efe5;
}

.message ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.route-map-card {
  width: 100%;
  margin: 0.85rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.route-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.route-map-head a {
  color: var(--forest);
  font-weight: 850;
}

.route-map-card iframe {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 0;
}

.route-map-card small {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
}

.route-map-feature {
  margin-top: 1.4rem;
  color: var(--ink);
}

.route-map-feature iframe {
  min-height: 330px;
}

.floating-bot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 64px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: width 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.floating-bot.is-open {
  width: min(380px, calc(100% - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-bot-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 64px;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(10, 56, 42, 0.28);
}

.floating-bot.is-open .floating-bot-toggle {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;
  border-radius: 0;
  box-shadow: none;
}

.bot-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-bot-label {
  display: none;
}

.floating-bot.is-open .floating-bot-label {
  display: inline;
}

.floating-bot-body {
  display: none;
  padding: 1rem;
}

.floating-bot.is-open .floating-bot-body {
  display: block;
}

.floating-bot .bot-log {
  min-height: 190px;
  max-height: 300px;
}

.floating-bot .message {
  max-width: 100%;
}

.floating-bot .route-map-card iframe {
  min-height: 175px;
}

a[aria-current="page"] {
  color: var(--clay);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .split,
  .route-layout,
  .location-grid,
  .service-list,
  .form-grid,
  .intro-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .page-card-grid,
  .form-page-grid,
  .admin-shell,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-intro {
    position: static;
  }

  .hero {
    min-height: 840px;
  }

  .hero-content {
    padding-bottom: 12rem;
  }

  .hero-status {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 10px;
  }

  .brand img {
    width: 108px;
  }

  .nav-action {
    min-height: 40px;
    padding: 0.65rem 0.72rem;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 3.4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .mission-grid article {
    grid-template-columns: 1fr;
  }

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

  .bot-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .floating-bot {
    right: 10px;
    bottom: 10px;
    width: 62px;
  }

  .floating-bot-toggle {
    width: 62px;
    min-height: 62px;
  }

  .floating-bot.is-open {
    width: calc(100% - 20px);
  }
}

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