/**
 * JG Ongediertebeheer — Public site styles
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.75rem;
  }
}

.section {
  padding-block: var(--space-section);
}

.section-sm {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

/* Typography */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}
h3 {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 0.75rem;
}

html.dark .eyebrow {
  color: var(--color-accent-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: var(--tracking-tight);
  flex-shrink: 0;
  line-height: 0;
}

/* Official logo from ongediertebeheer.com (light + dark wordmark) */
.logo-img {
  height: 2.45rem;
  width: auto;
  max-width: min(200px, 48vw);
  display: block;
  object-fit: contain;
}

@media (min-width: 960px) {
  .logo-img {
    height: 2.65rem;
    max-width: 220px;
  }
}

/* Light theme header: dark wordmark; dark theme: original white wordmark */
html:not(.dark) .logo-img--on-dark {
  display: none;
}

html.dark .logo-img--on-light {
  display: none;
}

/* Footer is always dark navy — force white wordmark logo */
.site-footer .logo-img--on-light {
  display: none !important;
}

.site-footer .logo-img--on-dark {
  display: block !important;
  height: 2.85rem;
  max-width: 240px;
}

.logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--color-navy-900), #1B4332);
  color: var(--color-accent-muted);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

html.dark .logo-mark {
  background: linear-gradient(145deg, #1A3328, #0A1410);
  border: 1px solid var(--border);
  color: var(--color-accent-muted);
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-muted);
}

.menu-toggle {
  display: inline-grid;
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 48;
  background: var(--bg-elevated);
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  animation: slideDown var(--duration-slow) var(--ease);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #22C55E 0%, var(--color-accent) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.3), 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-inverse {
  background: var(--color-white);
  color: var(--color-navy-900);
}

.btn-inverse:hover {
  background: var(--color-gray-100);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: var(--text-xs);
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--color-accent) 30%, var(--border));
}

.card-body {
  padding: 1.35rem;
}

@media (min-width: 768px) {
  .card-body {
    padding: 1.6rem;
  }
}

/* Hero — nature wash */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(22, 163, 74, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(132, 169, 140, 0.18), transparent 50%),
    linear-gradient(180deg, #EAF5E8 0%, var(--bg) 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/nature-leaves.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.09;
  pointer-events: none;
  mix-blend-mode: multiply;
}

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

html.dark .hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(34, 197, 94, 0.05), transparent 50%),
    var(--bg);
}

html.dark .hero::before {
  opacity: 0.06;
  mix-blend-mode: soft-light;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-meta-item i,
.hero-meta-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--color-navy-900);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-panel {
  background: linear-gradient(160deg, var(--color-navy-900) 0%, var(--color-navy-800) 55%, #1B4332 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.12);
}

/* Hero: photo + floating panel */
.hero-visual.has-photo .hero-panel {
  margin-top: -2.5rem;
  margin-inline: 1rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero-visual.has-photo .hero-panel {
    margin-top: -3rem;
    margin-inline: 1.25rem;
  }
}

/* Media cards */
.media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card.portrait {
  aspect-ratio: 3 / 4;
  max-height: 28rem;
}

.media-card.landscape {
  aspect-ratio: 16 / 10;
}

.media-card.square {
  aspect-ratio: 1;
}

.media-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.media-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.page-hero.has-media {
  position: relative;
  overflow: hidden;
  border-bottom: none;
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.page-hero.has-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.72) 100%),
    var(--page-hero-img, none) center / cover no-repeat;
  z-index: 0;
}

.page-hero.has-media .container {
  position: relative;
  z-index: 1;
}

.page-hero.has-media h1,
.page-hero.has-media .eyebrow {
  color: #fff;
}

.page-hero.has-media .lead {
  color: #cbd5e1;
}

html.dark .page-hero.has-media::before {
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.45) 0%, rgba(11, 18, 32, 0.85) 100%),
    var(--page-hero-img, none) center / cover no-repeat;
}

.feature-split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  max-height: 11rem;
}

.feature-split-img img {
  width: 100%;
  height: 100%;
  max-height: 11rem;
  object-fit: cover;
  display: block;
}

.icon-img {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.services-preview-media {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.15rem;
  max-width: 40rem;
}

@media (min-width: 720px) {
  .services-preview-media {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.services-preview-media .feature-split-img:last-child img {
  max-height: 9rem;
  width: auto;
  max-width: 9rem;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.25), transparent 50%);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
}

.hero-panel h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-panel p {
  color: #94A3B8;
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.85rem 0.6rem;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--color-accent-muted);
  margin-bottom: 0.15rem;
}

.hero-stat span {
  font-size: 0.7rem;
  color: #94A3B8;
  line-height: 1.3;
}

/* USP grid */
.usp-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .usp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.usp-card {
  padding: 1.35rem;
  height: 100%;
}

.usp-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

html.dark .usp-icon {
  color: var(--color-accent-muted);
}

.usp-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.usp-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Service cards */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem;
}

.service-card.service-card-media {
  padding: 0;
  overflow: hidden;
}

.service-card .svc-media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 7.5rem;
  overflow: hidden;
  background: var(--bg-muted);
}

.service-card .svc-media img {
  width: 100%;
  height: 100%;
  max-height: 7.5rem;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.card-hover:hover .svc-media img,
.service-card:hover .svc-media img {
  transform: scale(1.04);
}

.service-card .svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 31, 24, 0.18) 100%);
  pointer-events: none;
  opacity: 0.7;
}

.service-card .svc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1.05rem;
}

@media (min-width: 900px) {
  .service-card .svc-media {
    max-height: 8rem;
  }
  .service-card .svc-media img {
    max-height: 8rem;
  }
}

.service-card .svc-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--color-navy-700);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

html.dark .service-card .svc-icon {
  color: var(--color-accent-muted);
}

.service-card h3 {
  margin-bottom: 0.4rem;
}

.service-card p {
  margin: 0;
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.service-card .svc-link {
  margin-top: 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-hover);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

html.dark .service-card .svc-link {
  color: var(--color-accent-muted);
}

/* Kennis teaser with image — compact */
.kennis-teaser-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 800px) {
  .kennis-teaser-grid {
    grid-template-columns: minmax(0, 16rem) 1fr;
    gap: 1.75rem;
  }
}

.kennis-teaser-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  max-height: 11rem;
  max-width: 16rem;
  background: var(--bg-elevated);
}

.kennis-teaser-media img {
  width: 100%;
  height: 100%;
  max-height: 11rem;
  object-fit: cover;
  display: block;
}

/* Cert badges */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.cert-badge svg {
  color: var(--color-accent);
}

/* Section headings */
.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy-900) 0%, #1B4332 55%, #2D6A4F 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/nature-leaves.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

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

@media (min-width: 720px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  color: #94A3B8;
  max-width: 28rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

/* Forms */
.form-card {
  max-width: 40rem;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.field .hint {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field.full {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
}

.checkbox-row input {
  margin-top: 0.2rem;
  accent-color: var(--color-accent);
}

/* Public spoed CTA (contact page) */
.spoed-public-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-danger) 35%, var(--border));
  background: color-mix(in srgb, var(--color-danger) 8%, var(--bg-elevated));
}

.spoed-public-banner strong {
  color: var(--color-danger);
  display: block;
  margin-bottom: 0.2rem;
}

.spoed-public-banner-active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-danger) 25%, transparent);
}

.spoed-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Danger button */
.btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.25), 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

/* WhatsApp brand button */
.btn-whatsapp {
  background: linear-gradient(180deg, #2fe072 0%, #25d366 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(37, 211, 102, 0.28), 0 4px 12px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp:hover {
  background: linear-gradient(180deg, #25d366 0%, #1ebe57 100%);
  color: #fff;
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.mobile-nav-ctas .btn {
  margin-top: 0;
}

/* —— Single floating WhatsApp (bottom-right) —— */
.wa-float {
  position: fixed;
  z-index: 55;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #2fe072 0%, #25d366 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(15, 23, 42, 0.12);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.wa-float:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(15, 23, 42, 0.14);
}

.wa-float[hidden] {
  display: none !important;
}

.wa-float svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 900px) {
  .wa-float {
    right: 1.35rem;
    bottom: 1.35rem;
    width: 3.75rem;
    height: 3.75rem;
  }
}

/* Multi-CTA row helper */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.cta-row.cta-row-lg {
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success .check {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(22, 163, 74, 0.14), transparent 50%),
    linear-gradient(180deg, #E8F5E4 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .lead {
  margin-top: 0.85rem;
}

/* Content blocks */
.prose-block {
  max-width: 42rem;
}

.prose-block p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.content-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .content-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.list-check li svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Map / area */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tag {
  padding: 0.4rem 0.85rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Nature band */
.nature-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-muted);
}

.nature-band-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(1.05);
}

html.dark .nature-band-bg {
  opacity: 0.14;
}

.nature-band .container {
  position: relative;
  z-index: 1;
}

.nature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

html.dark .nature-pill {
  color: var(--color-accent-muted);
}

.nature-band.section-sm {
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}

.nature-band .section-head {
  margin-bottom: 1rem !important;
}

.nature-band .section-head h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

.nature-strip {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .nature-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nature-strip-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  min-height: 0;
}

@media (min-width: 700px) {
  .nature-strip-card {
    flex-direction: column;
  }
}

.nature-strip-card img {
  width: 5.5rem;
  min-width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

@media (min-width: 700px) {
  .nature-strip-card img {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 21 / 9;
    max-height: 5.5rem;
  }
}

.nature-strip-card p {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nature-strip-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--color-navy-900) 0%, #0A1410 100%);
  color: #94A3B8;
  padding-block: 3rem 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.footer-brand p {
  font-size: var(--text-sm);
  margin: 0;
  max-width: 16rem;
  line-height: 1.55;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--text-sm);
  margin-bottom: 0.85rem;
  letter-spacing: 0;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  padding: 0.3rem 0;
  color: #94A3B8;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
}

.footer-bottom a {
  color: #94A3B8;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Toast */
.toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--color-navy-900);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastIn var(--duration-slow) var(--ease);
  max-width: 22rem;
}

.toast.success {
  border-left: 3px solid var(--color-accent);
}
.toast.error {
  border-left: 3px solid var(--color-danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Animations */
.fade-up {
  animation: fadeUp 0.55s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

html.dark .badge-accent {
  color: var(--color-accent-muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Print helpers for quotes */
@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
