﻿:root {
  --bg: #f1efec;
  --surface: #d4c9be;
  --surface-deep: #c7b8aa;
  --primary: #123458;
  --ink: #030303;
  --muted: #20384f;
  --line: #1234582a;
  --maxw: 1140px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 24px rgba(18, 52, 88, 0.1);
  --shadow-hover: 0 14px 32px rgba(18, 52, 88, 0.18);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 3.5rem;
  --space-6: 5rem;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  --fs-h1: clamp(2.1rem, 1.6rem + 1.9vw, 3.2rem);
  --fs-h2: clamp(1.35rem, 1.15rem + 0.9vw, 2rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.22s ease;
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0.01em;
  margin-top: 0;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
}

h2 {
  font-size: var(--fs-h2);
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
}

.site-header {
  background: rgba(241, 239, 236, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: 0.95rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  position: relative;
  font-size: 0.98rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}

.hero-copy,
.hero-visual {
  padding: var(--space-6) clamp(1rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual {
  background: linear-gradient(160deg, #d4c9be 0%, #ede7e0 100%);
}

.hero-note {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.83rem;
  color: var(--muted);
}

.section-wrap {
  padding: var(--space-6) 0 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-2);
}

.tile {
  background: #fff;
  border: 1px solid #0000000a;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #1234583d;
}

.tile.large {
  grid-column: span 5;
}

.tile.medium {
  grid-column: span 4;
}

.tile.small {
  grid-column: span 3;
}

.kpi {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 52, 88, 0.2);
}

.btn-soft {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.story-grid,
.contact-map-layout,
.quote-grid,
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: stretch;
}

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

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline .step {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--primary);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.planner {
  margin-top: var(--space-3);
  background: linear-gradient(180deg, #ffffff 0%, #f7f4f1 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.planner-controls {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.pill.active {
  background: var(--primary);
  color: #fff;
}

.planner-result {
  min-height: 76px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid #00000010;
  padding: 0.9rem;
}

.faq {
  margin-top: var(--space-3);
}

.faq-item {
  border-bottom: 1px solid #00000015;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  padding: 0.95rem 0;
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-content {
  max-height: 160px;
}

.page-main {
  padding: var(--space-5) 0;
}

.page-intro {
  margin-bottom: 1.2rem;
}

.callout {
  border-left: 4px solid var(--primary);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1rem 1rem 1.1rem;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid #00000010;
  padding: var(--space-3);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-top: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #00000034;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 52, 88, 0.12);
  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
}

.error {
  color: #9f2222;
  min-height: 1rem;
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f6f3ef;
  padding: 1rem 0;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-line .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(96vw, 430px);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  padding: var(--space-2);
  z-index: 40;
}

.cookie-actions,
.cookie-settings {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.cookie-settings label {
  width: 100%;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.float-in {
  animation: floatIn 0.9s ease both;
}

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

.legal h2 {
  margin-top: 1.4rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.centered {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
}

@media (max-width: 980px) {
  .hero-split,
  .story-grid,
  .contact-map-layout,
  .quote-grid,
  .dual-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tile.large,
  .tile.medium,
  .tile.small {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .cookie-panel {
    left: 0.6rem;
    right: 0.6rem;
    width: auto;
  }
}
