/* =========================================================
   Advocatenkantoor Leenders – stijl
   ========================================================= */

:root {
  --navy: #1a2744;
  --navy-deep: #0f1829;
  --navy-mid: #243556;
  --gold: #c4a35a;
  --gold-light: #dcc48a;
  --cream: #f7f4ef;
  --cream-dark: #ebe5da;
  --text: #1e2430;
  --text-muted: #5a6270;
  --white: #ffffff;
  --danger: #8b2e2e;
  --danger-bg: #f8eaea;
  --shadow: 0 12px 40px rgba(15, 24, 41, 0.12);
  --radius: 12px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

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

/* ---------- Banner sluiting ---------- */
.sluiting-banner {
  background: var(--danger);
  color: var(--white);
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.sluiting-banner strong {
  margin-right: 0.35rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.07);
}

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

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.logo {
  width: clamp(148px, 22vw, 196px);
  height: auto;
  display: block;
  background: transparent;
  /* Logo is donkere inkt op transparant; past op cream header */
  mix-blend-mode: multiply;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.main-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border-bottom: none;
}

.main-nav .nav-cta:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-bottom: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26, 39, 68, 0.15);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(196, 163, 90, 0.18), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.05), transparent 35%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
}

.hero-eyebrow,
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero h1 span {
  display: block;
  color: var(--gold-light);
}

.hero-slogan {
  font-size: 1.2rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-facts .fact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.hero-facts a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.hero-facts a:hover {
  color: var(--gold-light);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.section-header h2,
.about-text h2,
.hours-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.section-header.light h2,
.section-header.light .section-lead {
  color: var(--white);
}

.section-header.light .section-eyebrow {
  color: var(--gold-light);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* About */
.section-about {
  background: var(--white);
}

.about-text {
  max-width: 48rem;
}

.about-text p {
  color: var(--text-muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.pillar {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
}

.pillar-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Team */
.section-team {
  background: var(--cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 39, 68, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 24, 41, 0.16);
}

.team-photo-wrap {
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy-deep));
  overflow: hidden;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  padding: 1.2rem 1.25rem 1.4rem;
  text-align: center;
}

.team-info h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.team-info .titel {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* Hours */
.section-hours {
  background: var(--white);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.hours-intro p {
  color: var(--text-muted);
}

.hours-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.5rem 0.25rem;
  box-shadow: var(--shadow);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table th,
.hours-table td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  vertical-align: middle;
}

.hours-table th {
  font-weight: 700;
  color: var(--navy);
  width: 38%;
}

.hours-table td {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hours-table tr.is-closed td {
  color: #9a6b6b;
  font-style: italic;
}

.sluiting-box {
  margin-top: 1.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--danger-bg);
  border-left: 4px solid var(--danger);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sluiting-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--danger);
}

.sluiting-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.sluiting-box li + li {
  margin-top: 0.35rem;
}

/* Contact */
.section-contact {
  background:
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-primary {
  display: grid;
  gap: 1rem;
}

.contact-phone-card,
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

a.contact-phone-card:hover,
a.contact-mail-card:hover {
  background: rgba(196, 163, 90, 0.16);
  border-color: rgba(196, 163, 90, 0.5);
  color: inherit;
  transform: translateY(-2px);
}

.contact-mail-card strong {
  font-size: 1.02rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-phone-card strong {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-hint {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contact-card strong {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  word-break: break-word;
}

.map-link {
  margin-top: 0.65rem;
  align-self: flex-start;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.92rem;
}

.map-link:hover {
  color: var(--white);
}

/* Contactformulier */
.contact-form {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--navy);
}

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

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0.7rem 0 0.3rem;
  color: var(--navy);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(196, 163, 90, 0.55);
  border-color: var(--gold);
}

.check-privacy {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500 !important;
  margin-top: 1rem !important;
  color: var(--text-muted) !important;
}

.check-privacy input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.check-privacy a {
  color: var(--navy);
  font-weight: 600;
}

.btn-submit {
  margin-top: 1.1rem;
  width: 100%;
  border: none;
  cursor: pointer;
}

.form-status {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.is-ok {
  background: #e6f4ea;
  color: #1f6b3a;
}

.form-status.is-error {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Honeypot – uit beeld, niet display:none (sommige bots negeren die) */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  position: relative;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem;
  pointer-events: none;
}

.cookie-inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 24, 41, 0.2);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.cookie-inner a {
  font-weight: 600;
}

.cookie-actions {
  flex-shrink: 0;
}

/* Legal pages */
.page-legal {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.page-legal .legal-content {
  max-width: 42rem;
}

.page-legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.page-legal h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}

.page-legal p,
.page-legal li {
  color: var(--text-muted);
}

.page-legal .updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 2rem;
}

.footer-logo {
  width: 130px;
  margin-bottom: 0.6rem;
  /* Donker logo → wit op footer */
  filter: brightness(0) invert(1);
  opacity: 0.92;
  mix-blend-mode: normal;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-mail {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.footer-mail:hover {
  color: var(--gold-light);
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .hours-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(26, 39, 68, 0.1);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(15, 24, 41, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(26, 39, 68, 0.06);
  }

  .main-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: none;
  }

  .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);
  }

  .hero-content {
    padding: 3.25rem 0 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .logo {
    width: 160px;
  }
}

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

  .team-card,
  .btn,
  .contact-card {
    transition: none;
  }
}
