/* ==========================================================================
   Lischer & Milani Advocaten — Demo door Faro Digital
   Vanilla CSS — design tokens + components
   ========================================================================== */

:root {
  /* Colors */
  --color-brand: #C8282A;
  --color-brand-dark: #A31F21;
  --color-brand-light: rgba(200, 40, 42, 0.08);
  --color-text: #1C1C1C;
  --color-text-muted: #5A5A5A;
  --color-text-light: #909090;
  --color-surface: #FFFFFF;
  --color-surface-warm: #F8F5F1;
  --color-surface-dark: #1E1E1E;
  --color-border: #E5DED7;
  --color-border-light: #F0EBE5;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-hero: clamp(2.75rem, 5vw, 4.5rem);

  --leading-tight: 1.15;
  --leading-body: 1.7;
  --leading-loose: 1.85;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  --section-pad: clamp(3.5rem, 7vw, 7rem) 1.5rem;
  --max-w: 1100px;
  --content-w: 700px;

  /* Other */
  --radius-sm: 3px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.11);
  --transition: 0.2s ease;

  --header-h: 76px;
  --header-h-mobile: 64px;
  --topbar-h: 36px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  font-weight: 600;
  margin: 0 0 var(--sp-4);
  color: var(--color-text);
}
h1 { font-size: var(--text-hero); font-weight: 600; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; cursor: pointer; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--section-pad); }
.section-narrow { max-width: var(--content-w); margin: 0 auto; }
.section-head { max-width: var(--content-w); margin: 0 0 var(--sp-10); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--sp-3);
  display: block;
}
.text-muted { color: var(--color-text-muted); }
.bg-warm { background: var(--color-surface-warm); }

/* Body offset for mobile sticky bar */
body { padding-bottom: 0; }
@media (max-width: 768px) {
  body { padding-bottom: 56px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-base);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  min-height: 44px;
}
.btn-primary {
  background: var(--color-brand);
  color: #fff;
}
.btn-primary:hover { background: var(--color-brand-dark); }
.btn-secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-secondary:hover { background: var(--color-brand-light); }
.btn-dark {
  background: var(--color-surface-dark);
  color: #fff;
}
.btn-on-brand {
  background: #fff;
  color: var(--color-brand);
}
.btn-on-brand:hover { background: rgba(255,255,255,0.88); }
.btn:active { transform: scale(0.98); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--color-brand);
  color: #fff;
  font-size: var(--text-sm);
  height: var(--topbar-h);
  display: none;
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a { transition: opacity var(--transition); }
.topbar a:hover { opacity: 0.85; }

@media (min-width: 769px) {
  .topbar { display: block; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-mobile);
}
@media (min-width: 769px) {
  .header-inner { height: var(--header-h); }
}

.logo-link { display: inline-flex; align-items: center; }
.logo-img {
  max-height: 38px;
  width: auto;
  /* Logo artwork is near-white; darken it for visibility on the white header */
  filter: brightness(0);
}
@media (min-width: 769px) {
  .logo-img { max-height: 52px; }
}

.main-nav { display: none; }
@media (min-width: 769px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
  }
  .main-nav a {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--color-text);
    padding: var(--sp-2) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
  }
  .main-nav a:hover,
  .main-nav a.active { color: var(--color-brand); border-color: var(--color-brand); }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-4); }
.header-cta { display: none; }
@media (min-width: 769px) {
  .header-cta { display: inline-flex; }
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
}
@media (min-width: 769px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.mobile-nav.nav-open { display: block; }
.mobile-nav ul { padding: var(--sp-4) 1.5rem; }
.mobile-nav li + li { border-top: 1px solid var(--color-border-light); }
.mobile-nav a {
  display: block;
  padding: var(--sp-4) 0;
  font-weight: 600;
  font-size: var(--text-md);
}
.mobile-nav .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: var(--sp-4) 0 var(--sp-2);
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

body.nav-open-lock { overflow: hidden; }

/* ---------- Mobile sticky bottom bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 200;
  background: var(--color-brand);
  color: #fff;
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .mobile-bar { display: grid; }
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--text-sm);
  border-right: 1px solid rgba(255,255,255,0.25);
}
.mobile-bar a:last-child { border-right: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-surface);
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem clamp(3rem, 6vw, 5rem);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 55fr 45fr; gap: var(--sp-16); }
}
.hero h1 { margin-bottom: var(--sp-6); }
.hero-sub {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--sp-8);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.hero-trust {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-4);
}
.hero-media {
  position: relative;
  border-left: 3px solid var(--color-brand);
  padding-left: var(--sp-6);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-surface-warm);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-6) 1.5rem;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-10);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ---------- Practice cards ---------- */
.cards-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--color-surface);
  border-top: 3px solid var(--color-brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--color-text-muted); flex-grow: 1; }
.card-link {
  margin-top: var(--sp-4);
  font-weight: 600;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.card-link:hover { text-decoration: underline; }

/* ---------- Urgency list ---------- */
.urgency-list {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-10);
  counter-reset: urgency;
}
@media (min-width: 700px) {
  .urgency-list { grid-template-columns: 1fr 1fr; }
}
.urgency-list li {
  counter-increment: urgency;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
}
.urgency-list li::before {
  content: counter(urgency);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
}
.urgency-cta { text-align: center; }
.urgency-cta p { font-size: var(--text-lg); font-family: var(--font-heading); margin-bottom: var(--sp-6); }

/* ---------- Team / advocate cards ---------- */
.team-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.portrait-placeholder {
  height: 180px;
  background: var(--color-surface-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}
.team-card-body { padding: var(--sp-8); }
.team-card-body h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
.team-role {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--sp-4);
}
.team-card-body p { color: var(--color-text-muted); }
.team-card-body .card-link { margin-top: var(--sp-4); }

/* ---------- Kosten preview ---------- */
.kosten-preview {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .kosten-preview { grid-template-columns: 1.1fr 0.9fr; }
}
.kosten-box {
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-10);
  text-align: center;
}
.kosten-box .big-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.kosten-box h3 { color: #fff; margin-bottom: var(--sp-3); }
.kosten-box p { color: rgba(255,255,255,0.9); }
.kosten-box .card-link { color: #fff; margin-top: var(--sp-6); }
.kosten-box .card-link:hover { text-decoration: underline; }

/* ---------- Contact block ---------- */
.contact-grid {
  display: grid;
  gap: var(--sp-12);
  grid-template-columns: 1fr;
}
@media (min-width: 850px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.contact-info-list li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.contact-info-list li:first-child { padding-top: 0; }
.contact-info-list strong { display: block; margin-bottom: var(--sp-1); }
.info-accent {
  border-left: 3px solid var(--color-brand);
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.info-accent:last-child { margin-bottom: 0; }
.info-accent h3 { font-size: var(--text-md); margin-bottom: var(--sp-2); }

/* Form */
.form-group { margin-bottom: var(--sp-6); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
}
.form-group .required { color: var(--color-brand); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-brand-light);
}
.form-privacy {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: var(--sp-4);
}
.form-success {
  display: none;
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand);
  color: var(--color-brand-dark);
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-6);
  font-weight: 600;
}
.form-success.show { display: block; }
form.form-submitted .contact-form-fields { display: none; }

/* ---------- Map card ---------- */
.map-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-warm);
}
.map-card iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-card-link {
  display: block;
  padding: var(--sp-4);
  text-align: center;
  font-weight: 600;
  color: var(--color-brand);
  border-top: 1px solid var(--color-border);
}
.map-card-link:hover { text-decoration: underline; }

/* Opening hours placeholder */
.hours-placeholder {
  background: var(--color-surface-warm);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  color: var(--color-text-light);
  font-size: var(--text-sm);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--sp-16) 1.5rem var(--sp-8);
}
.footer-grid {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-logo { max-height: 40px; margin-bottom: var(--sp-4); }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.footer-col ul li { margin-bottom: var(--sp-3); }
.footer-col a { transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-6);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

/* ---------- Inner-page sections ---------- */
.page-hero {
  background: var(--color-surface-warm);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero p { max-width: var(--content-w); margin: 0 auto; color: var(--color-text-muted); font-size: var(--text-md); }

.credential-list {
  border-left: 3px solid var(--color-brand);
  padding-left: var(--sp-6);
  margin: var(--sp-6) 0;
}
.credential-list li {
  padding: var(--sp-2) 0;
  color: var(--color-text-muted);
}

.advocate-full {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.advocate-full:last-child { border-bottom: none; }
@media (min-width: 800px) {
  .advocate-full { grid-template-columns: 280px 1fr; }
}
.advocate-full .portrait-placeholder { height: 280px; border-radius: var(--radius-md); border-bottom: none; }
.advocate-full h2 { margin-bottom: var(--sp-1); }

.practice-section {
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.practice-section:last-of-type { border-bottom: none; }
.practice-section ul { margin: var(--sp-4) 0 var(--sp-4); }
.practice-section ul li {
  position: relative;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  color: var(--color-text-muted);
}
.practice-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
}
.practice-note {
  background: var(--color-surface-warm);
  border-left: 3px solid var(--color-brand);
  padding: var(--sp-4) var(--sp-6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  margin-top: var(--sp-4);
}

.kosten-section { padding: var(--sp-10) 0; border-bottom: 1px solid var(--color-border-light); }
.kosten-section:last-of-type { border-bottom: none; }
.kosten-highlight {
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-10);
  text-align: center;
  margin: var(--sp-6) 0;
}
.kosten-highlight .big-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.kosten-highlight p { color: rgba(255,255,255,0.9); max-width: 46ch; margin: 0 auto; }

.cta-band {
  background: var(--color-surface-warm);
  text-align: center;
  padding: var(--section-pad);
  border-top: 1px solid var(--color-border);
}
.cta-band h2 { margin-bottom: var(--sp-6); }
.cta-band-lead { margin-bottom: var(--sp-6); }

.legal-content h2 { font-size: var(--text-lg); margin-top: var(--sp-10); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-text-muted); }

.demo-notice {
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-10);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
