:root {
  --bg: #f6f4ef;
  --ink: #0b1f2a;
  --forest: #0f3d2e;
  --sage: #6fa48c;
  --solar: #f4b93b;
  --clay: #d9c2a3;
  --surface: #ffffff;
  --muted: #54626a;
  --line: #e1d7c8;
  --shadow: 0 20px 40px rgba(11, 31, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--forest);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
  margin-bottom: 0;
}

p + p {
  margin-top: 12px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: #efe9df;
  position: relative;
  overflow: hidden;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(15, 61, 46, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 185, 59, 0.08), transparent 55%),
    linear-gradient(90deg, rgba(15, 61, 46, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 61, 46, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  opacity: 0.5;
  pointer-events: none;
}

.section-alt > .container {
  position: relative;
  z-index: 1;
}

.section-dark {
  background: #0b1f2a;
  color: #f6f4ef;
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark .eyebrow {
  color: #f6f4ef;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 16px;
}

.eco-nav {
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 61, 46, 0.1);
  box-shadow: 0 10px 30px rgba(11, 31, 42, 0.06);
}

.navbar-brand img {
  height: 44px;
}

.navbar-nav {
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--forest);
  background: rgba(15, 61, 46, 0.08);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  top: 6px;
}

.nav-mobile-label {
  width: 100%;
  margin: 12px 12px 6px;
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eco-dropdown-menu {
  min-width: 250px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(11, 31, 42, 0.12);
}

.eco-dropdown-menu-right {
  left: auto;
  right: 0;
}

.eco-dropdown-menu .dropdown-item {
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 500;
  white-space: normal;
}

.eco-dropdown-menu .dropdown-item + .dropdown-item {
  margin-top: 4px;
}

.eco-dropdown-menu .dropdown-item:hover,
.eco-dropdown-menu .dropdown-item:focus {
  color: var(--forest);
  background: rgba(15, 61, 46, 0.08);
}

.eco-dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-toggle::after {
  transition: transform 0.2s ease;
}

.nav-cta {
  margin-left: 4px;
}

.nav-cta .btn-eco {
  white-space: nowrap;
}

.nav-link:focus-visible,
.dropdown-item:focus-visible,
.navbar-toggler:focus-visible {
  outline: 3px solid rgba(15, 61, 46, 0.35);
  outline-offset: 2px;
}

.btn-eco,
.btn-eco-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-eco {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 61, 46, 0.25);
  border: 1px solid transparent;
}

.btn-eco:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 61, 46, 0.28);
}

.btn-eco-outline {
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
}

.btn-eco-outline:hover {
  transform: translateY(-2px);
  background: rgba(15, 61, 46, 0.08);
}

.btn-eco:focus-visible,
.btn-eco-outline:focus-visible {
  outline: 3px solid rgba(15, 61, 46, 0.35);
  outline-offset: 2px;
}

.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(15, 61, 46, 0.08), rgba(11, 31, 42, 0.12)),
    linear-gradient(90deg, rgba(11, 31, 42, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 31, 42, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 140%;
  background: radial-gradient(circle at 20% 20%, rgba(244, 185, 59, 0.25), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(111, 164, 140, 0.3), transparent 60%);
  opacity: 0.9;
  animation: hero-drift 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-drift {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.6rem, 3vw, 3.4rem);
  margin-bottom: 24px;
  background: linear-gradient(120deg, var(--forest), #134c39 45%, #284a3a 70%, var(--solar));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.12);
  color: var(--forest);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-panel {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 32px;
}

.hero-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

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

.metric-tile {
  background: #fdfbf6;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 61, 46, 0.12);
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.proof-strip {
  padding: 20px 0;
  background: #e8e2d7;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  text-align: center;
}

.proof-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--forest);
}

.proof-item {
  font-size: 0.95rem;
  color: var(--muted);
}

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

.eco-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(11, 31, 42, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eco-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 61, 46, 0.12);
  color: var(--forest);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.eco-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--solar));
  opacity: 0.6;
}

.eco-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(11, 31, 42, 0.12);
  border-color: rgba(15, 61, 46, 0.25);
}
.eco-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.eco-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.eco-list li {
  margin-bottom: 8px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.eco-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--solar);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card strong {
  font-size: 1.6rem;
  color: var(--forest);
  display: block;
  margin-bottom: 8px;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(11, 31, 42, 0.12);
}

.consulting-callout {
  margin-top: 32px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(15, 61, 46, 0.14);
  background:
    radial-gradient(circle at top right, rgba(244, 185, 59, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(111, 164, 140, 0.14), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 239, 0.98));
  box-shadow: 0 24px 48px rgba(11, 31, 42, 0.08);
}

.consulting-callout-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, auto);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.consulting-callout h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.consulting-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.consulting-track-grid .metric-card {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 61, 46, 0.12);
}

.consulting-track-grid .metric-card strong {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.case-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.case-card p {
  color: rgba(255, 255, 255, 0.8);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 185, 59, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.case-meta {
  margin-top: 16px;
  font-weight: 600;
  color: #f4b93b;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(11, 31, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid rgba(15, 61, 46, 0.15);
}

.team-role {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 12px;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(11, 31, 42, 0.14);
  border-color: rgba(15, 61, 46, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.contact-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(244, 185, 59, 0.14), transparent 36%),
    radial-gradient(circle at bottom left, rgba(111, 164, 140, 0.12), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(11, 31, 42, 0.14);
  border-color: rgba(15, 61, 46, 0.18);
}

.contact-card h3 {
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  margin: 18px 0 14px;
}

.contact-card-detail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 239, 0.98));
}

.contact-card-detail::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 61, 46, 0.12), transparent 70%);
  pointer-events: none;
}

.contact-detail-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-detail {
  display: grid;
  gap: 4px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 61, 46, 0.12);
  box-shadow: 0 12px 24px rgba(11, 31, 42, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11, 31, 42, 0.1);
  border-color: rgba(15, 61, 46, 0.18);
}

.contact-detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}

.contact-detail strong,
.contact-detail strong a {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.contact-detail small {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-actions {
  margin-top: 24px;
  margin-bottom: 0;
}

.contact-actions .btn-eco,
.contact-actions .btn-eco-outline {
  justify-content: center;
}

.booking-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 242, 0.96) 52%, rgba(255, 250, 238, 0.98));
  border-color: rgba(15, 61, 46, 0.16);
  box-shadow: 0 28px 56px rgba(11, 31, 42, 0.14);
}

.booking-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--solar));
  opacity: 0.9;
  pointer-events: none;
}

.booking-card .badge-row .tag,
.contact-card-detail .badge-row .tag {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px);
}

.booking-metrics {
  margin-top: 24px;
}

.booking-metrics .metric-tile {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 61, 46, 0.12);
  box-shadow: 0 14px 28px rgba(11, 31, 42, 0.06);
  backdrop-filter: blur(8px);
}

.booking-metrics .metric-value {
  font-size: 1.3rem;
}

.booking-flow {
  margin-top: 24px;
  counter-reset: booking-step;
}

.booking-flow .flow-step {
  position: relative;
  padding: 56px 22px 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 61, 46, 0.12);
  box-shadow: 0 12px 24px rgba(11, 31, 42, 0.05);
  backdrop-filter: blur(8px);
}

.booking-flow .flow-step::before {
  counter-increment: booking-step;
  content: "0" counter(booking-step);
  position: absolute;
  top: 18px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest);
  background: rgba(15, 61, 46, 0.1);
  border: 1px solid rgba(15, 61, 46, 0.12);
}

.booking-flow .flow-step h4 {
  margin-bottom: 10px;
}

.booking-card .notice,
.contact-card-detail .notice {
  max-width: 54ch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 14px;
  color: var(--muted);
}

.contact-list span {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.form-group {
  margin-bottom: 18px;
}

.form-control {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fbfaf6;
}

.form-control:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.15);
}

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

#contact-success:target,
#contact-error:target {
  display: block;
}

.form-message.success {
  background: rgba(15, 61, 46, 0.1);
  color: var(--forest);
}

.form-message.error {
  background: rgba(148, 20, 20, 0.12);
  color: #7a1f1f;
}

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer small {
  color: var(--muted);
}

.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, rgba(15, 61, 46, 0.12), rgba(244, 185, 59, 0.12));
}

.page-hero .hero-title {
  margin-bottom: 16px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.flow-step {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
}

.tag {
  border: 1px solid rgba(15, 61, 46, 0.15);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--forest);
  background: rgba(15, 61, 46, 0.08);
}

.dropdown-item.is-active,
.dropdown-item[aria-current="page"] {
  color: var(--forest);
  background: rgba(15, 61, 46, 0.08);
  font-weight: 600;
}

.nav-link.is-active {
  position: relative;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--forest), var(--solar));
  border-radius: 999px;
  opacity: 0.65;
}

/* Progressive enhancement: elements are visible by default.
   JS adds `.js-reveal` on <html> to enable animations for `.reveal` blocks. */
.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform;
}

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

.eco-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

.metric-card.reveal.is-visible:hover,
.team-card.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.case-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

.btn-eco-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

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

.calculator-output {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.output-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fdfbf6;
  border: 1px solid rgba(15, 61, 46, 0.12);
}

.output-line span {
  font-weight: 600;
  color: var(--muted);
}

.output-line strong {
  font-size: 1.1rem;
  color: var(--forest);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.demo-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.demo-step:last-child {
  margin-bottom: 0;
}

.demo-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.demo-status {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 61, 46, 0.2);
  background: rgba(15, 61, 46, 0.08);
  color: var(--forest);
  white-space: nowrap;
}

.demo-step.is-running .demo-status {
  background: rgba(244, 185, 59, 0.16);
  border-color: rgba(244, 185, 59, 0.45);
  color: #7a5400;
}

.demo-step.is-done .demo-status {
  background: rgba(111, 164, 140, 0.18);
  border-color: rgba(111, 164, 140, 0.55);
  color: var(--forest);
}

.demo-log {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.demo-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-log-body {
  min-height: 240px;
  max-height: 320px;
  overflow: auto;
  margin: 0;
  background: #0b1f2a;
  color: #f6f4ef;
  padding: 14px;
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.tf-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.tf-chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(15, 61, 46, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 50px rgba(11, 31, 42, 0.18);
  backdrop-filter: blur(18px);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.tf-chatbot-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(11, 31, 42, 0.22);
  border-color: rgba(15, 61, 46, 0.24);
}

.tf-chatbot-launcher:focus-visible,
.tf-chatbot-close:focus-visible,
.tf-chatbot-book:focus-visible,
.tf-chatbot-chip:focus-visible,
.tf-chatbot-send:focus-visible,
.tf-chatbot-action:focus-visible,
.tf-chatbot-input:focus-visible {
  outline: 3px solid rgba(15, 61, 46, 0.3);
  outline-offset: 2px;
}

.tf-chatbot-launcher-brand {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 61, 46, 0.98), #1f5b46 55%, #2b7560);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 10px 20px rgba(15, 61, 46, 0.24);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tf-chatbot-launcher-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(11, 31, 42, 0.18));
}

.tf-chatbot-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tf-chatbot-header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tf-chatbot-launcher-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.tf-chatbot-launcher-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tf-chatbot-launcher-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.tf-chatbot-panel {
  width: min(420px, calc(100vw - 24px));
  max-height: min(76vh, 700px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(15, 61, 46, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 70px rgba(11, 31, 42, 0.22);
  backdrop-filter: blur(20px);
}

.tf-chatbot-header {
  position: relative;
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at top right, rgba(244, 185, 59, 0.18), transparent 30%),
    radial-gradient(circle at left center, rgba(111, 164, 140, 0.16), transparent 36%),
    linear-gradient(140deg, rgba(15, 61, 46, 0.96), rgba(17, 54, 84, 0.94));
  color: #f6f4ef;
}

.tf-chatbot-header::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.tf-chatbot-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(246, 244, 239, 0.78);
  margin-bottom: 12px;
}

.tf-chatbot-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tf-chatbot-header-copy h2 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.tf-chatbot-header-copy p {
  color: rgba(246, 244, 239, 0.84);
  font-size: 0.95rem;
}

.tf-chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tf-chatbot-book,
.tf-chatbot-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tf-chatbot-book:hover,
.tf-chatbot-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.tf-chatbot-close {
  cursor: pointer;
}

.tf-chatbot-log {
  min-height: 220px;
  overflow-y: auto;
  padding: 16px 18px 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.92), rgba(255, 255, 255, 0.92)),
    linear-gradient(90deg, rgba(15, 61, 46, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 61, 46, 0.04) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.tf-chatbot-message {
  display: flex;
}

.tf-chatbot-message-user {
  justify-content: flex-end;
}

.tf-chatbot-message-assistant {
  justify-content: flex-start;
}

.tf-chatbot-bubble {
  max-width: min(92%, 340px);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(15, 61, 46, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(11, 31, 42, 0.08);
}

.tf-chatbot-message-user .tf-chatbot-bubble {
  background: linear-gradient(135deg, var(--forest), #194c3a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(15, 61, 46, 0.22);
}

.tf-chatbot-message-user .tf-chatbot-title,
.tf-chatbot-message-user .tf-chatbot-text,
.tf-chatbot-message-user .tf-chatbot-list li {
  color: #fff;
}

.tf-chatbot-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 61, 46, 0.1);
  background: rgba(15, 61, 46, 0.06);
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
}

.tf-chatbot-title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.tf-chatbot-text {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--muted);
}

.tf-chatbot-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.tf-chatbot-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.91rem;
}

.tf-chatbot-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--solar);
}

.tf-chatbot-actions,
.tf-chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tf-chatbot-action,
.tf-chatbot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 61, 46, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-chatbot-action:hover,
.tf-chatbot-chip:hover {
  color: var(--forest);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 61, 46, 0.2);
  box-shadow: 0 12px 24px rgba(11, 31, 42, 0.08);
}

.tf-chatbot-action-primary {
  background: var(--forest);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 61, 46, 0.18);
}

.tf-chatbot-action-primary:hover {
  color: #fff;
  background: #14513d;
}

.tf-chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(15, 61, 46, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.tf-chatbot-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 61, 46, 0.12);
  background: #fbfaf6;
  color: var(--ink);
  font-size: 0.95rem;
}

.tf-chatbot-input::placeholder {
  color: #6f7a80;
}

.tf-chatbot-send {
  min-width: 78px;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--forest), #1d654e);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(15, 61, 46, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-chatbot-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(15, 61, 46, 0.22);
}

.tf-chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
}

.tf-chatbot-typing-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(15, 61, 46, 0.35);
  animation: tf-chatbot-pulse 1s ease-in-out infinite;
}

.tf-chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.12s;
}

.tf-chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes tf-chatbot-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

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

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

  .contact-card {
    padding: 24px;
  }

  .booking-flow {
    grid-template-columns: 1fr;
  }

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

  .consulting-callout-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .navbar-collapse {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .navbar-nav {
    gap: 0;
    align-items: stretch !important;
  }

  .nav-mobile-label {
    margin: 12px 0 6px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
  }

  .eco-dropdown-menu,
  .eco-dropdown-menu-right {
    position: static;
    float: none;
    left: auto;
    right: auto;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
    padding: 8px 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none !important;
  }

  .eco-dropdown-menu .dropdown-item {
    padding: 10px 12px;
    border-left: 1px solid var(--line);
    border-radius: 0 12px 12px 0;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    margin: 16px 0 0;
  }

  .nav-cta .btn-eco {
    width: 100%;
    justify-content: center;
  }

  .tf-chatbot {
    right: 16px;
    bottom: 16px;
  }

  .tf-chatbot-panel {
    width: min(420px, calc(100vw - 20px));
    max-height: min(78vh, 680px);
  }

  .tf-chatbot-header-row {
    flex-direction: column;
  }

  .tf-chatbot-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 140px;
  }

  .page-hero {
    padding: 128px 0 64px;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 8vw, 2.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-eco,
  .hero-actions .btn-eco-outline,
  .hero-actions .btn-eco-small {
    width: 100%;
    justify-content: center;
  }

  .hero-tags,
  .badge-row {
    gap: 8px;
  }

  .hero-panel,
  .eco-card,
  .metric-card,
  .consulting-callout,
  .case-card,
  .team-card,
  .contact-card,
  .flow-step,
  .demo-step,
  .demo-log {
    padding: 20px;
  }

  .proof-grid,
  .card-grid,
  .metrics-grid,
  .case-grid,
  .team-grid,
  .flow-grid,
  .footer-grid {
    gap: 16px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn-eco,
  .contact-actions .btn-eco-outline {
    width: 100%;
  }

  .booking-metrics {
    grid-template-columns: 1fr;
  }

  .contact-detail {
    padding: 16px;
  }

  .booking-flow .flow-step {
    padding: 52px 18px 18px;
  }

  .booking-flow .flow-step::before {
    left: 18px;
  }

  .demo-step-head,
  .demo-log-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-status {
    align-self: flex-start;
  }

  .tf-chatbot {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
  }

  .tf-chatbot-launcher {
    align-self: flex-end;
  }

  .tf-chatbot-launcher-copy small {
    display: none;
  }

  .tf-chatbot-panel {
    width: 100%;
    max-height: min(82vh, 720px);
    border-radius: 24px;
  }

  .tf-chatbot-log {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .tf-chatbot-send {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 124px 0 72px;
  }

  .page-hero {
    padding: 116px 0 56px;
  }

  .navbar-collapse {
    padding: 12px;
  }

  .nav-link {
    padding: 10px;
  }

  .hero-panel,
  .eco-card,
  .metric-card,
  .consulting-callout,
  .case-card,
  .team-card,
  .contact-card,
  .flow-step,
  .demo-step,
  .demo-log,
  .output-line {
    padding: 18px;
  }

  .proof-item {
    text-align: left;
  }

  .contact-card h3,
  .hero-panel h3,
  .eco-card h3,
  .case-card h3,
  .flow-step h3 {
    line-height: 1.2;
  }

  .booking-flow .flow-step {
    padding: 50px 16px 16px;
  }

  .booking-flow .flow-step::before {
    left: 16px;
  }

  .output-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .tf-chatbot-launcher {
    max-width: calc(100vw - 24px);
  }

  .tf-chatbot-header,
  .tf-chatbot-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tf-chatbot-log {
    padding: 14px 12px 16px;
  }

  .tf-chatbot-bubble {
    max-width: 100%;
    padding: 14px;
  }
}

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

  .eco-card:hover,
  .metric-card:hover,
  .case-card:hover,
  .team-card:hover {
    transform: none;
    box-shadow: none;
  }
}
