:root {
  --bg: #f4f1ea;
  --surface: #fbf8f2;
  --surface-soft: #edf2ee;
  --primary: #81a698;
  --primary-dark: #5f8476;
  --accent: #1e201e;
  --accent-dark: #101110;
  --text: #1e201e;
  --muted: #4d544d;
  --border: rgba(129, 166, 152, 0.28);
  --shadow: 0 18px 42px rgba(30, 32, 30, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

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

.container {
  width: min(1160px, calc(100vw - 32px));
  margin-inline: auto;
}

.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-bottom: 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.topbar-link {
  text-decoration: none;
  color: #f8f5ef;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand nav"
    "brand cta";
  align-items: center;
  gap: 0.7rem 1rem;
  padding: 0.85rem 0 0.9rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.logo {
  height: 86px;
  width: auto;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-copy strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: end;
  position: relative;
  z-index: 55;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 0.4rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
  z-index: 45;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(129, 166, 152, 0.12);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-toggle::after {
  content: none;
}

.nav-dropdown-toggle:hover {
  background: rgba(129, 166, 152, 0.2);
  border-color: rgba(129, 166, 152, 0.4);
  transform: translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem;
  background: rgba(251, 248, 242, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(30, 32, 30, 0.12);
  border-radius: 10px;
  z-index: 60;
}

.nav-dropdown-menu[hidden] {
  display: none !important;
}

.nav-dropdown-menu a {
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
}

.nav-dropdown-menu a:hover {
  background: rgba(129, 166, 152, 0.12);
}

.menu-bars {
  display: inline-flex;
  width: 18px;
  height: 14px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #9ab9ac 100%);
  color: var(--text);
  box-shadow: 0 12px 26px rgba(129, 166, 152, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn.is-success,
.btn.is-success:hover {
  background: linear-gradient(135deg, #7fb199 0%, #9bc7b2 100%);
  color: #10211b;
  border-color: rgba(129, 166, 152, 0.45);
  box-shadow: 0 14px 28px rgba(129, 166, 152, 0.28);
  transform: none;
}

.btn-dark {
  grid-area: cta;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #f8f5ef;
  border-color: rgba(129, 166, 152, 0.42);
  box-shadow: 0 12px 24px rgba(129, 166, 152, 0.18);
  justify-self: end;
  min-width: 240px;
  transform: none;
  position: relative;
  z-index: 1;
}

.btn-dark:hover {
  background: linear-gradient(135deg, #557568 0%, var(--primary-dark) 100%);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #f8f5ef;
  border-color: rgba(248, 245, 239, 0.72);
}

.btn-outline:hover {
  background: rgba(248, 245, 239, 0.12);
  border-color: #f8f5ef;
  color: #fff;
}

.btn-whatsapp {
  background: rgba(129, 166, 152, 0.16);
  color: #f8f5ef;
}

.btn-whatsapp:hover {
  background: rgba(129, 166, 152, 0.28);
}

.hero .btn-whatsapp {
  backdrop-filter: blur(4px);
}

.hero-actions .btn.is-attention {
  animation: ctaPulse 1.15s ease-in-out 2;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.45rem;
  display: inline-flex;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  padding: 5.8rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(30, 32, 30, 0.74) 0%, rgba(47, 62, 56, 0.58) 40%, rgba(129, 166, 152, 0.2) 100%),
    linear-gradient(180deg, rgba(129, 166, 152, 0.14), rgba(30, 32, 30, 0.28)),
    url("../media/projects/project-08.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(circle at 18% 32%, rgba(129, 166, 152, 0.22), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(236, 223, 204, 0.16), transparent 20%);
  opacity: 0.5;
}

.hero::after {
  inset: auto -8% -14% 44%;
  height: 280px;
  background: radial-gradient(circle, rgba(129, 166, 152, 0.2), transparent 65%);
  filter: blur(10px);
  opacity: 0.45;
}

body.is-intro-active .hero::before {
  animation: heroGlow 4.8s ease-in-out forwards;
}

body.is-intro-active .hero::after {
  animation: heroSweep 4.6s ease-in-out forwards;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 540px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 680px;
  padding: 2rem 2rem 2.15rem;
  background: rgba(26, 32, 29, 0.4);
  border: 1px solid rgba(129, 166, 152, 0.34);
  box-shadow: 0 24px 50px rgba(30, 32, 30, 0.16);
  backdrop-filter: blur(6px);
}

.hero-copy h1,
.about-copy h2,
.offerte-intro h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 10.6ch;
  font-size: clamp(2.65rem, 5vw, 4.4rem);
  color: #fff;
}

.hero-text {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.services-strip {
  padding: 0 0 2.2rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

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

.service-mini-card {
  padding: 1.45rem 1.2rem;
  background: rgba(251, 248, 242, 0.96);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: 0 12px 26px rgba(30, 32, 30, 0.06);
}

.service-mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.service-mini-card p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 2.8rem 0;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--muted);
}

.about-section {
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.92) 0%, rgba(237, 242, 238, 0.92) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.about-copy p {
  max-width: 44rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-self: stretch;
}

.about-point {
  padding: 1.05rem 1.1rem;
  background: linear-gradient(180deg, #fbf8f2 0%, #edf2ee 100%);
  border: 1px solid var(--border);
  font-weight: 700;
}

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

.tip-card {
  padding: 1.15rem 1.1rem;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.98) 0%, rgba(237, 242, 238, 0.92) 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: 0 12px 24px rgba(30, 32, 30, 0.05);
}

.tip-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.tip-card p {
  margin: 0;
  color: var(--muted);
}

.projects-section {
  background: transparent;
}

.gallery {
  margin-top: 1.6rem;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.88) 0%, rgba(237, 242, 238, 0.92) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-frame {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(30, 32, 30, 0.12);
  background: #dfe6e1;
}

.gallery-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(248, 245, 239, 0.24);
  background: rgba(95, 132, 118, 0.86);
  color: #f8f5ef;
  z-index: 2;
}

.gallery-control:hover {
  background: rgba(30, 32, 30, 0.88);
}

.gallery-control span {
  font-size: 2rem;
  line-height: 1;
}

.gallery-control-prev {
  left: 1rem;
}

.gallery-control-next {
  right: 1rem;
}

.gallery-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.gallery-caption {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.gallery-counter {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-thumb {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  min-height: 92px;
  box-shadow: 0 8px 20px rgba(30, 32, 30, 0.06);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}

.gallery-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(129, 166, 152, 0.2);
}

@keyframes heroGlow {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.03);
  }
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(28px) translateY(10px) scale(0.95);
    opacity: 0.18;
  }
  50% {
    transform: translateX(-18px) translateY(-8px) scale(1.05);
    opacity: 0.42;
  }
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.3;
  }
}

@keyframes ctaPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(129, 166, 152, 0);
  }
  40% {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 28px rgba(129, 166, 152, 0.28);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(129, 166, 152, 0);
  }
}

@keyframes contactHalo {
  0% {
    opacity: 0.12;
    transform: translate3d(14px, 8px, 0) scale(0.86);
  }
  45% {
    opacity: 0.82;
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  100% {
    opacity: 0.52;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes watermarkFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-8px, -4px, 0) scale(1.015);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes legalGlow {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.offerte-section {
  padding: 3.3rem 0 4.1rem;
  background:
    radial-gradient(circle at bottom right, rgba(129, 166, 152, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(251, 248, 242, 0.94) 0%, #f4f1ea 100%);
}

.offerte-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: start;
}

.offerte-intro,
.offerte-form {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.offerte-intro {
  background: linear-gradient(180deg, #28302c 0%, var(--accent) 100%);
  color: #f4f4f4;
  padding: 2rem;
  border-color: rgba(129, 166, 152, 0.24);
}

.offerte-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
}

.offerte-intro .eyebrow {
  color: var(--primary);
}

.offerte-intro a {
  color: #ffffff;
}

.contact-panel {
  position: relative;
  margin-top: 1.4rem;
  padding: 1.35rem 1.2rem 0.3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(129, 166, 152, 0.09));
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 32, 30, 0.02), rgba(30, 32, 30, 0.16)),
    url("../media/watermarks/contact-panel-verhuislift.png") right -1.4rem center / auto 240px no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: -20% auto -24% 50%;
  width: 290px;
  background: radial-gradient(circle, rgba(129, 166, 152, 0.4), rgba(129, 166, 152, 0.08) 38%, transparent 72%);
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(14px, 8px, 0) scale(0.88);
  transition: opacity 0.75s ease, transform 0.9s ease;
  pointer-events: none;
}

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

.contact-panel p {
  margin: 0 0 0.75rem;
  color: #f4f4f4;
}

.contact-panel.is-spotlight-active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 42px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(129, 166, 152, 0.2);
}

.contact-panel.is-spotlight-active::before {
  animation: watermarkFloat 5.2s ease-in-out infinite;
}

.contact-panel.is-spotlight-active::after {
  opacity: 0.78;
  transform: translate3d(0, 0, 0) scale(1);
  animation: contactHalo 3.2s ease-in-out 2;
}

.offerte-form {
  background: #ffffff;
  padding: 2rem;
}

.honey-field {
  display: none !important;
}

.form-success {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(129, 166, 152, 0.45);
  background: rgba(129, 166, 152, 0.14);
  color: #33574a;
  border-radius: 6px;
  font-weight: 600;
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(60, 61, 55, 0.22);
  background: rgba(244, 241, 234, 0.96);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 600;
}

.form-success:empty,
.form-error:empty {
  display: none !important;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.9rem 0.95rem;
  border-radius: 6px;
  font: inherit;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(129, 166, 152, 0.26);
  border-color: var(--primary);
}

.form-note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.consent-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.7rem !important;
  padding: 0.1rem 0 0.15rem;
  font-weight: 500 !important;
  color: var(--muted);
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--primary-dark);
}

.consent-row span {
  line-height: 1.5;
}

.consent-row a {
  color: var(--accent);
  font-weight: 700;
}

.footer {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 0;
  background: linear-gradient(180deg, #232825 0%, var(--accent) 100%);
  color: #f4f1ea;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 32, 30, 0.88), rgba(44, 57, 52, 0.78)),
    url("../media/branding/Logo.png") right 2rem center / auto 220px no-repeat;
  opacity: 1;
  pointer-events: none;
}

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

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.2rem;
  align-items: center;
}

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

.footer-brand p {
  margin: 0;
  font-weight: 700;
}

.footer-contact {
  display: grid;
  gap: 0.35rem;
}

.footer-contact a,
.footer-contact span {
  color: rgba(236, 223, 204, 0.82);
  text-decoration: none;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.footer-links a {
  color: rgba(236, 223, 204, 0.9);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: #ffffff;
}

.legal-page {
  background: linear-gradient(180deg, rgba(236, 223, 204, 0.48) 0%, rgba(244, 241, 234, 1) 100%);
}

.legal-main {
  padding-bottom: 4rem;
}

.legal-hero {
  padding: 4rem 0 2rem;
}

.legal-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.2rem;
  align-items: end;
}

.legal-hero-copy {
  position: relative;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.96) 0%, rgba(237, 242, 238, 0.98) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legal-hero-copy::after {
  content: "";
  position: absolute;
  inset: -30% 42% auto -18%;
  height: 220px;
  background: radial-gradient(circle, rgba(129, 166, 152, 0.24), transparent 70%);
  opacity: 0;
  transform: translateY(16px) scale(0.88);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.legal-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-lead {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--muted);
}

.legal-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-actions {
  display: grid;
  gap: 0.8rem;
  align-content: end;
}

.legal-outline {
  color: var(--accent);
  border-color: rgba(30, 32, 30, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.legal-outline:hover {
  background: rgba(129, 166, 152, 0.12);
  color: var(--accent);
}

.legal-shell {
  padding: 0 0 4rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.legal-card {
  background: rgba(251, 248, 242, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.legal-meta,
.legal-content {
  padding: 1.7rem;
}

.legal-hero-copy,
.legal-actions,
.legal-meta,
.legal-section,
.about-point,
.tip-card {
  transition:
    transform 0.5s ease,
    box-shadow 0.45s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
  will-change: transform, box-shadow;
}

.legal-meta {
  position: sticky;
  top: 110px;
}

.legal-meta h2,
.legal-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legal-meta p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.legal-meta a {
  text-decoration: none;
  font-weight: 600;
}

.legal-section + .legal-section {
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.legal-page .legal-hero-copy.is-story-active::after {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: legalGlow 1.2s ease;
}

.legal-page .legal-actions.is-story-active .btn {
  box-shadow: 0 16px 34px rgba(129, 166, 152, 0.22);
}

.legal-page .legal-meta.is-story-active,
.legal-page .legal-section.is-story-active,
.legal-page .about-point.is-story-active,
.legal-page .tip-card.is-story-active {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 32, 30, 0.08);
  border-color: rgba(129, 166, 152, 0.38);
}

.legal-page .legal-section.is-story-active,
.legal-page .tip-card.is-story-active {
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.98) 0%, rgba(237, 242, 238, 0.94) 100%);
}

.legal-page .about-point:hover,
.legal-page .tip-card:hover,
.legal-page .legal-section:hover,
.legal-page .legal-meta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(30, 32, 30, 0.1);
}

.legal-section p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.legal-list {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 0.45rem;
}

.privacy-details {
  min-width: 180px;
}

.privacy-details summary {
  cursor: pointer;
  font-weight: 700;
}

.privacy-details p {
  margin: 0.75rem 0 0;
  max-width: 320px;
  color: rgba(236, 223, 204, 0.8);
  font-size: 0.94rem;
}

@media (max-width: 960px) {
  .topbar-inner,
  .about-grid,
  .offerte-shell,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "brand cta";
    align-items: center;
  }

  .main-nav {
    gap: 0.85rem;
    flex-wrap: nowrap;
  }

  .legal-hero-inner,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-meta {
    position: static;
  }

  .services-strip-grid,
  .about-points,
  .tips-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }


  .span-2,
  .span-3 {
    grid-column: auto;
  }

  .hero {
    padding: 4.8rem 0 4.1rem;
    background-position: 68% center;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-copy {
    padding: 1.6rem;
  }

  .hero-copy h1 {
    max-width: 11.5ch;
  }

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

  .gallery {
    padding: 1rem;
  }

  .gallery-control {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .gallery-control-prev {
    left: 0.65rem;
  }

  .gallery-control-next {
    right: 0.65rem;
  }

  .gallery-meta {
    align-items: start;
    flex-direction: column;
  }

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

  .gallery-thumb,
  .gallery-thumb img {
    min-height: 82px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 24px, 100%);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo {
    height: 72px;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy small {
    font-size: 0.74rem;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "cta cta";
    gap: 0.75rem;
    align-items: center;
  }

  .brand {
    gap: 0.65rem;
  }

  .logo {
    height: 64px;
  }

  .main-nav {
    width: auto;
    margin-left: auto;
    align-items: center;
  }

  .nav-home-link,
  .nav-dropdown {
    width: auto;
  }

  .nav-home-link {
    display: inline-flex;
    padding: 0 0.25rem;
    font-size: 0.98rem;
  }

  .nav-dropdown-toggle {
    width: 46px;
    min-width: 46px;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: auto;
    margin-top: 0.55rem;
    width: min(220px, calc(100vw - 24px));
    min-width: 0;
    z-index: 20;
  }

  .btn-dark {
    grid-area: cta;
    width: 100%;
    transform: none;
    min-width: 0;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn-dark,
  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .footer::before {
    background:
      linear-gradient(180deg, rgba(30, 32, 30, 0.92), rgba(30, 32, 30, 0.84)),
      url("../media/branding/Logo.png") center bottom 1rem / auto 156px no-repeat;
  }

  .offerte-intro,
  .offerte-form {
    padding: 1.35rem;
  }

  .legal-hero-copy,
  .legal-meta,
  .legal-content {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero::before,
  .hero::after,
  .hero-actions .btn.is-attention {
    animation: none !important;
  }
}
