:root {
  --bg: #F5E5E1;
  --accent: #F9B487;
  --primary: #427A76;
  --deep: #174143;
  --text: #17312f;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(23, 65, 67, 0.14);
  --space-xs: 0.5rem;
  --space-sm: 0.9rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --border: 1px solid rgba(23, 65, 67, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  background: radial-gradient(circle at 8% 10%, #fff6f1 0%, var(--bg) 34%, #f2e0db 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--deep);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar-inner {
  display: flex;
  gap: var(--space-md);
  justify-content: space-between;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.nav-layer {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 65, 67, 0.13);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.9rem 0;
}

.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;
  }
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.3rem;
  flex-wrap: wrap;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

nav a:hover,
nav a.active {
  background: var(--accent);
  color: var(--deep);
}

.section {
  padding: var(--space-xl) 0;
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-md);
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid rgba(23, 65, 67, 0.06);
}

.hero-card:hover,
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(23, 65, 67, 0.16);
  border-color: rgba(66, 122, 118, 0.24);
}

.hero-card.large {
  grid-row: span 2;
  background: linear-gradient(150deg, #fff 5%, #ffe9dc 90%);
}

.hero-card.visual,
.tile-media {
  padding: 0;
  overflow: hidden;
}

.hero-card img,
.tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(66, 122, 118, 0.14);
  color: var(--deep);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--deep);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--deep);
}

.btn.secondary {
  background: var(--deep);
}

.btn.tiny {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

.btn.ghost {
  background: transparent;
  color: var(--deep);
  border: 1px solid rgba(23, 65, 67, 0.3);
}

.tiles {
  display: grid;
  gap: var(--space-md);
}

.tiles.three {
  grid-template-columns: repeat(3, 1fr);
}

.tiles.four {
  grid-template-columns: repeat(4, 1fr);
}

.tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(23, 65, 67, 0.06);
}

.tile.small {
  text-align: center;
  padding: var(--space-md);
}

.tile.small i {
  font-size: 1.4rem;
  color: var(--primary);
}

.contrast {
  background: rgba(66, 122, 118, 0.09);
}

.soft {
  background: rgba(249, 180, 135, 0.2);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.steps li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
}

.steps span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--deep);
  font-weight: 700;
}

.cta-band {
  text-align: center;
  background: var(--white);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.insight-band {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  border: var(--border);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.kpi {
  background: linear-gradient(170deg, #fff 0%, #fff5ef 100%);
  border-radius: var(--radius);
  padding: 1rem;
  border: var(--border);
}

.kpi strong {
  display: block;
  font-size: 1.6rem;
  color: var(--deep);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #fbe9df;
  color: var(--deep);
  border: 1px solid rgba(23, 65, 67, 0.1);
}

.estimator {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: var(--border);
  box-shadow: var(--shadow);
}

.estimator-controls {
  display: grid;
  gap: 0.8rem;
}

.estimator output {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep);
}

.segment-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid rgba(23, 65, 67, 0.25);
  background: transparent;
  color: var(--deep);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.accordion {
  display: grid;
  gap: 0.7rem;
}

.accordion-item {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--deep);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1rem;
}

.accordion-item.open .accordion-panel {
  max-height: 260px;
  padding: 0 1rem 1rem;
}

.card-hover {
  position: relative;
  overflow: hidden;
}

.card-hover::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 130%;
  background: radial-gradient(circle, rgba(249, 180, 135, 0.36) 0%, transparent 72%);
  transform: translateY(40%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.card-hover:hover::after {
  transform: translateY(0);
}

.legal-highlight {
  background: #fff7f3;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.inner-main .section:first-child {
  padding-top: 2.4rem;
}

form {
  display: grid;
  gap: 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 65, 67, 0.22);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.error {
  min-height: 1.1rem;
  color: #a02b2b;
  font-size: 0.85rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.6rem 0 0.2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  height: 360px;
}

.legal-page .container {
  max-width: 860px;
}

.legal-page h2 {
  margin-top: 1.6rem;
}

footer {
  background: var(--deep);
  color: #dce9e7;
  padding: 2.4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-md);
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  z-index: 1000;
}

.cookie-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 65, 67, 0.45);
  display: none;
  place-items: center;
  z-index: 1001;
}

.cookie-modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  width: min(420px, 90%);
  display: grid;
  gap: 0.8rem;
}

.cookie-modal-card label {
  display: flex;
  gap: 0.5rem;
}

.center-card {
  max-width: 640px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-xl);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-filter-item] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-filter-item].hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  position: absolute;
}

@media (max-width: 980px) {

  .hero-grid,
  .split,
  .tiles.three,
  .tiles.four,
  .footer-grid,
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {

  .hero-grid,
  .split,
  .tiles.three,
  .tiles.four,
  .footer-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}