/* =========================================================================
   Constandse Belastingadviseurs
   Alle waarden zijn overgenomen uit de oorspronkelijke Webflow-site.
   Volgorde: fonts, tokens, reset, basis, componenten, breekpunten.
   ========================================================================= */

/* --- Fonts ------------------------------------------------------------- */

@font-face {
  font-family: "PT Serif";
  src: url(/assets/fonts/pt-serif-400.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url(/assets/fonts/open-sans-400.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url(/assets/fonts/open-sans-700.woff2) format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Varela";
  src: url(/assets/fonts/varela-400.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --- Tokens ------------------------------------------------------------ */

:root {
  --blue-deep:   #313d6e;   /* hero-blok, primaire knop */
  --ink:         #1f2022;   /* koppen */
  --text:        #333;      /* broodtekst */
  --grey-bg:     #fafafa;   /* grijze secties */
  --green-note:  #bddfbf;   /* aankondigingsbalk */
  --white:       #fff;
  --rule:        #eaeaea;   /* lijn onder Contact */
  --footer-text: #1f202280;
  --nav-link:    #1a1b1f;

  --font-head:  "PT Serif", Georgia, "Times New Roman", serif;
  --font-body:  "Open Sans", system-ui, -apple-system, sans-serif;
  --font-label: "Varela", system-ui, -apple-system, sans-serif;
  --font-ui:    Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-brand: Georgia, Times, "Times New Roman", serif;

  --max-width: 1280px;
  --shadow-photo: 0 60px 60px -15px #1f20221a;
}

/* --- Reset ------------------------------------------------------------- */

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

body, h1, h2, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }

img, picture, source { max-width: 100%; }

/* height: auto zorgt dat de width/height-attributen alleen de
   beeldverhouding vastleggen en niet de werkelijke hoogte. */
img { display: block; border: 0; height: auto; }

a { color: inherit; }

button {
  font: inherit; color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- Basis ------------------------------------------------------------- */

body {
  margin: 0;
  color: var(--text);
  background-color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Doelsecties krijgen wat lucht bovenaan wanneer je er via een anker heen
   springt. De balk is niet sticky, dus dit is puur ademruimte. */
[id] { scroll-margin-top: 16px; }

.skip-link {
  position: absolute; left: -9999px;
  padding: 12px 20px;
  background: var(--blue-deep); color: var(--white);
  font-family: var(--font-label); font-size: 13px;
  letter-spacing: 1.3px; text-transform: uppercase; text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Gedeelde tekststijlen ------------------------------------------------- */

.label {
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.label--light { color: var(--white); margin-bottom: 8px; }

.heading {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 400;
  line-height: 120%;
  margin: 0 0 36px;
}

.prose {
  max-width: 820px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 165%;
  margin: 0 auto 36px;
}
.prose a { color: inherit; }

/* Voorkomt dat een telefoonnummer midden in het nummer afbreekt op een smal
   scherm. Doen we in CSS en niet met &nbsp;, zodat de tekst zelf ongemoeid
   blijft. */
a[href^="tel:"] { white-space: nowrap; }

/* Knoppen --------------------------------------------------------------- */

.button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.button--primary {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--blue-deep);
  border-radius: 2px;
  padding: 12px 25px;
  margin-left: 24px;
  transition: background-color .2s, color .2s;
}
.button--primary:hover { color: var(--white); background-color: #32343a; }
.button--primary:active { background-color: #43464d; }

.button--light {
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 140%;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ink);
  background-color: var(--white);
  border-radius: 0;
  padding: 22px 36px;
  transition: background-color .2s, color .2s;
}
.button--light:hover { background-color: var(--ink); color: var(--white); }

/* --- Navigatie --------------------------------------------------------- */

.nav {
  position: relative;          /* containing block voor het uitklapmenu */
  background-color: var(--white);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* De balkinhoud versmalt mee met het venster; het uitklapmenu niet. */
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 0 0;
}

.nav__brand {
  color: var(--text);
  background-color: var(--white);
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 400;
  line-height: 44px;
  margin: 20px 0 10px;
  text-decoration: none;
}

.nav__menu ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.nav__link {
  display: inline-block;
  color: var(--nav-link);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: .25px;
  margin: 0 5px;
  padding: 5px 10px;
  text-decoration: none;
}
.nav__link:hover { color: #1a1b1fbf; }
.nav__link:focus-visible {
  color: #0050bd;
  outline: 2px solid #0050bd;
  outline-offset: 0;
  border-radius: 4px;
}

/* Scheidingslijn tussen de items — alleen zichtbaar in het mobiele menu */
.nav__divider {
  display: none;
  background-color: #e4ebf3;
  width: 200px;
  max-width: 100%;
  height: 1px;
  margin: 10px auto;
}

/* 48x48 — gelijk aan het origineel, en meteen een prettige raakhoogte. */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  padding: 12px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
}
.nav__toggle[aria-expanded="true"] { background-color: #a6b1bf; }
.nav__toggle[aria-expanded="true"] span { background-color: var(--white); }

/* --- Aankondigingsbalk ------------------------------------------------- */

.notice {
  display: block;
  background-color: var(--green-note);
  border-radius: 2px;
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 16px;
}

.notice__link {
  display: grid;
  grid-template-columns: 1fr .25fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-decoration: none;
}

.notice__text {
  color: #000;
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: underline;
}

.notice__chevron { justify-self: end; }

/* --- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-width);
  min-height: 600px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50%;
}

.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 44%;
  margin-top: 110px;
  padding: 40px 60px;
  background-color: var(--blue-deep);
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;
}

.hero__title {
  max-width: 740px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 400;
  line-height: 50px;
  margin: 0 0 24px;
}

/* --- Secties ----------------------------------------------------------- */

.section { display: block; }
.section--grey  { background-color: var(--grey-bg); padding: 80px 0; }
.section--white { padding: 100px 0; }
.section--contact { border-bottom: 1px solid var(--rule); }

.section__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__text--right { padding-left: 10%; }
.section__text--left  { padding-right: 15%; }

/* Tweekoloms raster: beeld links, tekst rechts — of omgekeerd */
.media-pair-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  column-gap: 0;
  row-gap: 26px;
  align-items: center;
}
/* Bij een omgekeerd raster staat de tekst links. Die cellen krimpen mee met
   hun inhoud in plaats van de kolom te vullen — vandaar justify-items. */
.media-pair-layout--reverse {
  grid-template-columns: 1.2fr 1fr;
  justify-items: start;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: 0;
  row-gap: 26px;
  align-items: center;
  justify-items: start;
}

/* --- Fotopaar ---------------------------------------------------------- */

.media-pair {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* display:contents haalt de <picture> uit de layout, zodat de <img> zelf het
   flex-item is. Dat is nodig omdat de breedte van de foto volgt uit de
   beeldverhouding zodra min-height de hoogte oprekt — met een wrapper ertussen
   pakt de browser de intrinsieke breedte en valt de foto smaller uit. */
.media-pair__main,
.media-pair__overlay { display: contents; }

.media-pair__main img {
  object-fit: cover;
  border-radius: 30px;
  min-height: 500px;
  box-shadow: var(--shadow-photo);
}

.media-pair__overlay img {
  position: absolute;
  z-index: 50;
  max-width: 56%;
  inset: auto auto -6% -12%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow-photo);
}
.media-pair--right .media-pair__overlay img { left: auto; right: -12%; }

/* --- Vinkjeslijst ------------------------------------------------------ */

.checklist li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 24px;
}
.checklist--contact li:first-child { margin-top: 0; }
.checklist img {
  flex: none;
  width: 20px;
  height: 20px;
  margin-right: 12px;
}
.checklist span {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 140%;
}

/* Ook het laatste item houdt zijn ondermarge — de lijst wordt verticaal
   gecentreerd, dus dat verschuift het geheel 12px. Zo staat het origineel. */
.checklist--contact a { color: inherit; }

/* --- Footer ------------------------------------------------------------ */

.footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 40px;
}

.footer__text,
.footer__link {
  color: var(--footer-text);
  font-family: var(--font-label);
  font-size: 11px;
  line-height: 140%;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none;
}
.footer__link { transition: color .2s; }
.footer__link:hover { color: var(--ink); }

.footer__logo img { width: 110px; margin: 0 30px; }

/* =========================================================================
   Breekpunten — exact zoals de oorspronkelijke site ze hanteert
   ========================================================================= */

/* --- tot 991px: menu klapt in --------------------------------------- */
@media screen and (max-width: 991px) {

  .nav__inner { max-width: 728px; }

  .nav__toggle { display: flex; }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    margin-top: 10px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 50px;
    box-shadow: 0 8px 50px #0000000d;
    text-align: center;
  }
  .nav__menu.is-open { display: block; }

  .nav__menu ul {
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
  }

  /* Ruimere raakvlakken op een touchscherm: 44px in plaats van 30px. */
  .nav__link { padding: 12px 5px; min-height: 44px; }

  .button--primary { padding: 14px 25px; min-height: 44px; }

  .hero { min-height: 590px; }
  .hero__panel { width: 56%; padding: 45px; }
  .hero__title { font-size: 38px; }

  .heading { font-size: 38px; }

  .media-pair-layout,
  .contact-layout { column-gap: 16px; row-gap: 16px; }
}

/* --- tot 767px: één kolom -------------------------------------------- */
@media screen and (max-width: 767px) {

  .nav__menu { border-radius: 20px; padding-bottom: 30px; }
  .nav__menu ul { flex-direction: column; }
  .nav__divider { display: block; }
  .nav__menu li:last-child { margin-top: 10px; }

  .hero__panel { width: 100%; }
  .hero__title { font-size: 34px; }

  .heading { max-width: 540px; font-size: 34px; }

  .media-pair-layout,
  .media-pair-layout--reverse,
  .contact-layout {
    grid-template-columns: 1fr;
    row-gap: 60px;
  }

  .section__text--left,
  .section__text--right { padding-left: 5%; padding-right: 5%; }

  .media-pair__overlay img { left: -2%; }
  .media-pair--right .media-pair__overlay img { left: auto; right: -2%; }

  .footer__inner { flex-direction: column; row-gap: 20px; }
  .footer__logo img { margin: 0; }
}

/* --- tot 479px: telefoon ---------------------------------------------- */
@media screen and (max-width: 479px) {

  body { font-family: var(--font-body); }

  .nav__inner { max-width: none; padding-top: 0; }
  .nav__brand {
    margin-top: 10px;
    padding-left: 16px; padding-right: 16px;
    font-size: 20px;
    line-height: 26px;
  }
  .nav__menu { border-radius: 0; margin-top: 0; }
  .button--primary { margin-left: 0; }

  /* Alleen boven- en zijmarge wijzigen; de ondermarge blijft 24px. */
  .notice { margin: 8px 10px 24px; padding: 8px 16px; }
  .notice__text { text-decoration: none; }

  .hero { min-height: 400px; }
  .hero__panel { padding: 20px; }
  .hero__title { font-size: 29px; line-height: 32px; }
  .label--light { margin-bottom: 16px; }
  .button--light { padding: 16px 24px; border-radius: 0; }

  .section--grey, .section--white { padding-top: 50px; padding-bottom: 50px; }

  /* Alleen de sectielabels verdwijnen; het label in de hero blijft staan. */
  .label:not(.label--light) { display: none; }
  .heading { margin-bottom: 16px; font-size: 29px; }
  .prose { margin-bottom: 0; font-size: 16px; line-height: 140%; }

  .media-pair-layout, .contact-layout { row-gap: 40px; }

  /* Alleen op telefoonformaat schuift de tekst van Over ons onder het beeld;
     op tabletformaat staat hij er nog boven, net als in het origineel. */
  .media-pair-layout--reverse .section__text--left { order: 9999; }

  .media-pair { padding-left: 5%; padding-right: 5%; }
  .media-pair__main img {
    object-fit: fill;
    border-radius: 8px;
    min-height: 0;
    max-height: 340px;
  }
  .media-pair__overlay img { display: none; }

  .checklist li { margin-top: 24px; margin-bottom: 0; }
  .checklist span { font-size: 16px; }

  .checklist--contact { padding-left: 16px; }
}
