/* ==========================================================================
   wat-is-een-bv.nl — Amsterdam Lawyers
   Shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #101A4D;
  --navy-light: #1F2A6B;
  --navy-soft: #F0F2F8;
  --red: #E60012;
  --red-dark: #B8000F;
  --white: #FFFFFF;
  --off-white: #FAFAF7;
  --grey-100: #F5F5F2;
  --grey-200: #E8E8E3;
  --grey-400: #9A9A95;
  --grey-700: #4A4A47;
  --ink: #1A1F36;

  --serif: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  --max-narrow: 720px;
  --max-wide: 1180px;

  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2em; }
h3 { font-size: 1.3rem; margin-top: 1.8em; }

p { margin: 0 0 1.2em 0; }

a { color: var(--red); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
a:hover { border-bottom-color: var(--red); }

/* Source link (bron Belastingdienst) — small, italic, external */
.source-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--grey-700);
  border-bottom: 1px dotted var(--grey-400);
}
.source-link::after {
  content: ' ↗';
  font-style: normal;
  font-size: 0.85rem;
  color: var(--red);
}
.source-link:hover {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* Source feedback link — fallback if Belastingdienst link breaks */
.source-feedback {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--grey-400);
  border-bottom: none;
}
.source-feedback:hover {
  color: var(--red);
  border-bottom: none;
}

strong { font-weight: 600; color: var(--navy); }

/* Red accent line under H1 */
.hero h1::after,
article > h1::after,
.lede h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin-top: 0.6em;
}

/* Eyebrow above H1 */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ===== Layout ===== */
.container { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-200);
  padding: 14px 0;
  font-size: 0.88rem;
}
.breadcrumbs .narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumbs a {
  color: var(--grey-700);
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.breadcrumbs .sep {
  color: var(--grey-400);
  margin: 0 4px;
}
.breadcrumbs span:last-child {
  color: var(--navy);
  font-weight: 500;
}

/* ===== Topic grid (homepage) ===== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 32px 0 40px 0;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
}
.topic-col h3 {
  font-size: 1.05rem;
  margin: 0 0 12px 0;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 600;
}
.topic-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.topic-col li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.topic-col a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.topic-col a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

@media (max-width: 820px) {
  .topic-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; border: none; }
.logo:hover { border: none; }
.logo img { height: 38px; width: auto; display: block; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--red); }

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
         flex-direction: column; gap: 0; background: white;
         border-bottom: 1px solid var(--grey-200); padding: 16px 24px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--grey-100); }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--grey-200);
}
.hero .narrow { text-align: left; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--grey-700);
  line-height: 1.5;
  margin: 24px 0 0 0;
  max-width: 580px;
}

/* ===== Article ===== */
.article {
  padding: 60px 0 80px;
}
.article p { font-size: 1.06rem; line-height: 1.7; }
.article h2 {
  margin-top: 2.2em;
  position: relative;
  padding-top: 1em;
}
.article h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--red);
}
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 0.5em; }
.article blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
}

/* ===== Highlight box ===== */
.highlight {
  background: var(--navy-soft);
  border-left: 4px solid var(--navy);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.highlight p:last-child { margin-bottom: 0; }
.highlight strong { color: var(--navy); }

/* ===== Tables ===== */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.97rem;
}
.article th, .article td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--grey-200);
}
.article th {
  background: var(--navy-soft);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}

/* ===== CTA Section (3 product CTAs) ===== */
.cta-section {
  background: var(--off-white);
  padding: 70px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.cta-section h2 {
  text-align: center;
  margin: 0 0 50px 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.cta-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--red);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(16, 26, 77, 0.12);
}
.cta-card .label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.cta-card h3 {
  font-size: 1.4rem;
  margin: 0 0 14px 0;
  line-height: 1.2;
}
.cta-card .when {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.cta-card p {
  color: var(--grey-700);
  font-size: 0.97rem;
  flex-grow: 1;
  margin-bottom: 22px;
}
.cta-card .btn { align-self: flex-start; }

@media (max-width: 820px) {
  .cta-grid { grid-template-columns: 1fr; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  border-bottom-color: var(--navy-light);
}
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Search Block ("waar bent u naar op zoek?") ===== */
.search-block {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0;
}
.search-block h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.search-block h2::before { display: none; }
.search-block .sub {
  text-align: center;
  color: var(--grey-200);
  margin: 0 auto 40px auto;
  max-width: 540px;
  font-style: italic;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.search-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 26px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
  display: block;
}
.search-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--red);
  border-bottom-color: var(--red);
  transform: translateY(-2px);
}
.search-card .question {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}
.search-card .destination {
  font-size: 0.83rem;
  color: var(--grey-400);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-card .destination::before {
  content: '→';
  color: var(--red);
  font-weight: 600;
}

@media (max-width: 820px) {
  .search-grid { grid-template-columns: 1fr; }
}

/* ===== Inschrijfformulier (Tally embed) ===== */
.signup-block {
  padding: 70px 0;
  background: var(--off-white);
}
.signup-block .narrow { text-align: center; }
.signup-block h2 { margin-bottom: 12px; }
.signup-block .sub { color: var(--grey-700); margin-bottom: 30px; font-style: italic; }
.signup-form {
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 36px;
  border-radius: var(--radius);
  text-align: left;
  margin-top: 30px;
}

/* Tally iframe responsive */
.tally-embed iframe {
  width: 100%;
  border: none;
  min-height: 320px;
}

/* ===== Inline contact-CTA (mailto) ===== */
.contact-cta {
  background: var(--navy-soft);
  border-left: 4px solid var(--red);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-cta .text {
  flex: 1;
  min-width: 240px;
}
.contact-cta .text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 500;
}
.contact-cta .text span {
  color: var(--grey-700);
  font-size: 0.97rem;
}
.contact-cta .cta-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.contact-cta .btn { flex-shrink: 0; }
.contact-cta .desktop-only { display: inline-flex; }

@media (max-width: 820px) {
  .contact-cta { flex-direction: column; align-items: flex-start; }
  .contact-cta .desktop-only { display: none; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: var(--grey-200);
  padding: 60px 0 30px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px 0;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--grey-200); border: none; }
.footer-grid a:hover { color: var(--white); border: none; }

.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--grey-200); margin: 0; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey-400);
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ===== Decorative serif accents ===== */
.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red);
}

/* Smooth fade-in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede { opacity: 0; animation: rise 0.7s ease forwards; }
  .hero .lede { animation-delay: 0.12s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
