﻿:root {
  --bg: #FBF6E9;
  --surface: #ffffff;
  --surface-soft: #f7fbe9;
  --accent-soft: #E3F0AF;
  --accent: #5DB996;
  --accent-strong: #118B50;
  --text: #1d2a22;
  --muted: #4f6a5a;
  --danger: #9e3f3f;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-a: 0 14px 34px rgba(17, 139, 80, 0.12);
  --shadow-b: 0 8px 18px rgba(17, 139, 80, 0.1);
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
  --font-main: "Comic Sans MS", "Trebuchet MS", "Segoe UI", sans-serif;
  --tr: 260ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, #f1f8cf, var(--bg) 32%);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.55;
  scroll-behavior: smooth;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

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

img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.top-header {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 233, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 139, 80, 0.16);
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.menu-btn {
  border: 0;
  background: var(--accent-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.44rem 0.7rem;
  cursor: pointer;
  font-size: 1.26rem;
  transition: transform var(--tr), background var(--tr);
}

.menu-btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.side-nav {
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow: auto;
  padding: var(--space-4);
  border-right: 1px dashed rgba(17, 139, 80, 0.25);
  background: linear-gradient(185deg, rgba(227, 240, 175, 0.55), rgba(251, 246, 233, 0.94));
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.side-nav a {
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.56rem 0.62rem;
  display: block;
  transition: transform var(--tr), background var(--tr);
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--accent-soft);
  transform: translateX(5px);
}

.content {
  padding: var(--space-5) var(--space-4) var(--space-6);
}

.hero-split {
  min-height: 74vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-a);
}

.hero-copy,
.hero-visual {
  padding: var(--space-5);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: var(--space-3);
}

.tag {
  background: var(--accent-soft);
  border-radius: 999px;
  width: fit-content;
  padding: 0.35rem 0.76rem;
  font-size: 0.88rem;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.hero-kpis div {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 0.55rem;
  text-align: center;
}

.hero-kpis strong {
  display: block;
  font-size: 1.05rem;
}

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.66rem 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--tr);
}

.btn-primary {
  color: #fff;
  background: var(--accent-strong);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0d7b45;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(17, 139, 80, 0.52);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.hero-actions,
.cookie-actions,
.tabs,
.footer-links,
.featured-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

section {
  margin-top: var(--space-6);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

p,
li {
  color: var(--muted);
}

.grid-2,
.grid-3,
.metric-grid {
  display: grid;
  gap: var(--space-4);
}

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

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

.card,
.panel,
.notice,
.accordion-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-a);
}

.card,
.panel,
.notice {
  padding: var(--space-4);
}

.card:hover,
.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-b);
}

.panel {
  background: linear-gradient(180deg, #f5fbe3, #fff);
}

.notice {
  border-left: 4px solid var(--accent-strong);
}

.timeline {
  display: grid;
  gap: var(--space-2);
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: var(--space-2);
}

.timeline-item span {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: inline-block;
  text-align: center;
  padding: 0.3rem;
}

.badge-list {
  display: grid;
  gap: var(--space-2);
}

.badge-list div {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.inline-map iframe {
  width: 100%;
  border: 0;
  min-height: 300px;
  border-radius: var(--radius-md);
}

form {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-a);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(17, 139, 80, 0.25);
  border-radius: var(--radius-sm);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  min-height: 1.1em;
  color: var(--danger);
  font-size: 0.86rem;
}

.input-invalid {
  border-color: #cc5151;
  background: #fff7f7;
}

.accordion-item {
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--space-3);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
  padding: 0 var(--space-3);
}

.accordion-item.open .accordion-content {
  max-height: 220px;
  padding-bottom: var(--space-3);
}

.tab-btn {
  border: 1px solid rgba(17, 139, 80, 0.35);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.43rem 0.88rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--accent-strong);
  color: #fff;
}

.tab-panel {
  display: none;
  margin-top: var(--space-3);
}

.tab-panel.active {
  display: block;
  animation: fadeIn 340ms ease;
}

.estimator {
  display: grid;
  gap: var(--space-2);
}

.range-value {
  font-weight: 700;
  color: var(--accent-strong);
}

.footer-cta {
  margin-top: var(--space-6);
  background: linear-gradient(150deg, #118B50, #5DB996);
  border-radius: var(--radius-xl);
  color: #f2fff5;
  padding: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-cta p,
.footer-cta a {
  color: #f0fff4;
}

.cookie-banner,
.cookie-modal {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-a);
  z-index: 90;
  display: none;
}

.cookie-banner {
  bottom: 18px;
  padding: var(--space-3);
}

.cookie-modal {
  top: 10%;
  padding: var(--space-4);
}

.cookie-banner.active,
.cookie-modal.active {
  display: block;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(17, 139, 80, 0.2);
  padding: 0.6rem 0;
}

.toggle-row:last-child {
  border-bottom: 0;
}

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

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

.float-in {
  animation: floatIn 700ms ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: fixed;
    left: -320px;
    width: 280px;
    z-index: 60;
    transition: left var(--tr);
    top: 66px;
  }

  .side-nav.open {
    left: 0;
  }

  .hero-split,
  .grid-2,
  .grid-3,
  .metric-grid,
  .contact-block,
  .hero-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 730px) {
  .content {
    padding: var(--space-4) var(--space-3) var(--space-6);
  }

  .top-header-inner {
    padding: var(--space-2) var(--space-3);
  }

  .hero-copy,
  .hero-visual,
  .card,
  .panel,
  .notice {
    padding: var(--space-3);
  }
}