/* =========================================================
   DESIGN TOKENS (CSS Custom Properties)
   Exact overgenomen van expatverzekering.nl (joho-1.0.94)
   ========================================================= */
:root {
  --color-yellow-grey: 230, 216, 172;
  --color-beige: 248, 244, 231;
  --color-beige-light: 253, 251, 247;
  --color-blue-primary: 0, 114, 218;
  --color-blue-light: 67, 148, 223;
  --color-blue-medium: 0, 86, 166;
  --color-blue-harmony: 14, 11, 230;
  --color-blue-dark: 0, 46, 89;
  --color-grey-dark: 227, 235, 238;
  --color-grey: 227, 235, 238;
  --color-grey-medium: 217, 221, 222;
  --color-grey-light: 242, 246, 247;
  --color-red: 217, 32, 22;
  --color-green: 0, 140, 53;
  --color-grey-placeholder: 190, 196, 198;
  --color-white: 255, 255, 255;
  --color-black: 0, 0, 0;
  --color-green-chat: 37, 211, 102;
}

/* =========================================================
   FONTS
   ========================================================= */
@font-face {
  font-family: Poppins;
  src: url("https://www.expatverzekering.nl/assets/joho-1.0.94/fonts/Poppins-Regular.woff2")
    format("woff2");
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("https://www.expatverzekering.nl/assets/joho-1.0.94/fonts/Poppins-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("https://www.expatverzekering.nl/assets/joho-1.0.94/fonts/Poppins-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("https://www.expatverzekering.nl/assets/joho-1.0.94/fonts/ZillaSlab-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("https://www.expatverzekering.nl/assets/joho-1.0.94/fonts/ZillaSlab-Bold.woff2")
    format("woff2");
  font-weight: bold;
  font-display: swap;
}

/* =========================================================
   BASE / RESET
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  font-family: Poppins, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: rgb(var(--color-black));
  background: rgb(var(--color-beige));
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: rgb(var(--color-blue-primary));
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.page-title {
  font-family: "Zilla Slab", sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  background-color: rgb(var(--color-blue-primary));
  border: 1px solid rgb(var(--color-blue-primary));
  border-radius: 30px;
  padding: 9px 30px 8px;
  line-height: 21px;
  cursor: pointer;
  box-shadow:
    0 4px 8px rgba(var(--color-blue-primary), 0.3),
    0 0 4px rgba(var(--color-blue-primary), 0.2);
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  box-shadow:
    0 1px 2px rgba(var(--color-blue-primary), 0.3),
    0 0 4px rgba(var(--color-blue-primary), 0.2);
  color: #fff;
}

.btn-primary-arrow {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  background-color: rgb(var(--color-blue-primary));
  border: 1px solid rgb(var(--color-blue-primary));
  border-radius: 30px;
  padding: 9px 30px 8px;
  cursor: pointer;
  box-shadow:
    0 4px 8px rgba(var(--color-blue-primary), 0.3),
    0 0 4px rgba(var(--color-blue-primary), 0.2);
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
  line-height: 21px;
}
.btn-primary-arrow:hover {
  box-shadow:
    0 1px 2px rgba(var(--color-blue-primary), 0.3),
    0 0 4px rgba(var(--color-blue-primary), 0.2);
  color: #fff;
}
/* Arrow removed — now matches real site .btn-primary style (no arrow on header CTA) */

.btn-secondary {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 30px;
  padding: 12px 30px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background-color: rgb(var(--color-blue-primary));
  border-color: rgb(var(--color-blue-primary));
  color: #fff;
}

.btn-text-arrow {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  background: transparent;
  border: none;
  padding: 0 20px 0 0;
  text-decoration: underline;
  cursor: pointer;
  position: relative;
  display: inline-block;
}
.btn-text-arrow::after {
  content: "\203A";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgb(var(--color-grey));
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

/* Top links bar */
.site-header__top {
  max-width: 1220px;
  margin: 0 auto;
  padding: 3px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 12px;
  overflow: hidden;
  max-height: 25px;
  border-bottom: 1px solid rgb(var(--color-grey));
  transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.site-header__top a {
  color: #000;
  text-decoration: none;
}
.site-header__top a:hover {
  text-decoration: underline;
}

/* Main bar: contains logo, site-name, nav, search, CTA */
.site-header__bar {
  max-width: 1220px;
  margin: 0 auto;
  padding: 29px 20px 36px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  transition: padding 0.2s ease-in-out;
}
.site-header__logo-link {
  transition: width 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.site-header__logo {
  height: 44px;
}
.site-header__site-name {
  font-family: "Zilla Slab", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  flex-grow: 1;
  text-align: center;
}
.site-header__site-name--accent {
  color: rgb(var(--color-blue-primary));
}

/* Search */
.site-header__search {
  position: relative;
  display: flex;
  align-items: center;
  transition: width 0.2s ease-in-out, min-width 0.2s ease-in-out;
}
.site-header__search-input {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  height: 40px;
  width: 140px;
  padding: 0px 40px 0px 20px;
  border: 1px solid rgb(var(--color-blue-primary));
  border-radius: 24px;
  background: #fff;
  color: #000;
  transition: width 0.2s ease-in-out, border-color 0.2s ease-in-out, padding 0.2s ease-in-out;
}
.site-header__search-input::placeholder {
  color: rgb(var(--color-grey-placeholder));
}
.site-header__search-input:focus {
  outline: none;
  border-color: rgb(var(--color-blue-primary));
}
.site-header__search-icon {
  position: absolute;
  right: 14px;
  color: rgb(var(--color-blue-primary));
  pointer-events: none;
}

/* CTA button in header */
.site-header__cta {
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Navigation — full state: black bar spanning full viewport width */
.site-header__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  padding: 0;
  display: flex;
  justify-content: center;
  transition: background-color 0.2s ease-in-out, position 0s;
}
.site-header__nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 14px;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, padding 0.2s ease-in-out;
}
.site-header__nav-link--dropdown {
  padding: 11px 35px 11px 20px;
}
.site-header__nav-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}
.site-header__nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-header__nav-link--active {
  background: rgba(255, 255, 255, 0.15);
}

/* ---- Minimized state (scroll > 120px) ---- */
.site-header--minimized .site-header__top {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.site-header--minimized .site-header__bar {
  padding: 0 20px;
  gap: 10px;
}
.site-header--minimized .site-header__logo-link {
  display: none;
}
.site-header--minimized .site-header__site-name {
  flex-grow: 0;
}

/* Nav becomes inline, transparent, black text */
.site-header--minimized .site-header__nav {
  position: static;
  width: auto;
  flex-grow: 1;
  background: transparent;
  justify-content: center;
}
.site-header--minimized .site-header__nav-link {
  color: #000;
  font-weight: 500;
  padding: 23px 10px;
  position: relative;
}
.site-header--minimized .site-header__nav-link--dropdown {
  padding: 23px 25px 23px 10px;
}
.site-header--minimized .site-header__nav-link svg {
  opacity: 0.4;
}
.site-header--minimized .site-header__nav-link:hover {
  background: transparent;
  color: rgb(var(--color-blue-primary));
}
.site-header--minimized .site-header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 4px;
  background: rgb(var(--color-blue-primary));
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.site-header--minimized .site-header__nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.site-header--minimized .site-header__nav-link--active {
  background: transparent;
  color: rgb(var(--color-blue-primary));
}

/* Search collapses to icon-only */
.site-header--minimized .site-header__search-input {
  width: 42px;
  padding-left: 10px;
  padding-right: 20px;
  border-color: transparent;
}

/* CTA becomes outline style */
.site-header--minimized .site-header__cta {
  color: rgb(var(--color-blue-primary));
  background-color: transparent;
  box-shadow: none;
  border-color: rgb(var(--color-blue-primary));
  padding: 9px 30px 8px;
  font-size: 14px;
  white-space: nowrap;
}
.site-header--minimized .site-header__cta::after {
  display: none;
}
.site-header--minimized .site-header__cta:hover {
  color: #fff;
  background-color: rgb(var(--color-blue-primary));
}
.site-header--minimized .site-header__cta:hover::after {
  display: none;
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
footer {
  margin-top: -7px;
  padding-top: 7px;
  overflow: hidden;
}
.site-footer__interaction {
  background: rgb(var(--color-blue-primary));
  padding: 10px 0 0;
  position: relative;
}
.site-footer__interaction::before {
  position: absolute;
  left: 0;
  top: -6px;
  display: block;
  content: "";
  border-bottom: 7px solid rgb(var(--color-blue-primary));
  border-right: 100vw solid transparent;
  width: 0;
  height: 0;
}
.site-footer__interaction-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 143px;
}
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.site-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
}
.site-footer__social-icon:hover {
  background: #fff;
  color: rgb(var(--color-blue-primary));
}
.site-footer__branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.site-footer__site-name {
  font-family: "Zilla Slab", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.site-footer__site-name--accent {
  color: rgba(255, 255, 255, 0.7);
}
.site-footer__logo {
  height: 44px;
  filter: brightness(0) invert(1);
}
.site-footer__overview {
  background: rgb(var(--color-blue-medium));
  padding: 24px 0;
  position: relative;
}
.site-footer__overview::before {
  position: absolute;
  left: 0;
  top: -12px;
  display: block;
  content: "";
  border-top: 7px solid transparent;
  border-bottom: 12px solid rgb(var(--color-blue-light));
  border-right: 100vw solid rgb(var(--color-blue-light));
  width: 0;
  height: 0;
}
.site-footer__overview-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 60px;
  color: #fff;
  font-size: 12px;
}
.site-footer__col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}
.site-footer__col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  line-height: 1.8;
}
.site-footer__col a:hover {
  color: #fff;
}
.site-footer__bottom {
  background: rgb(var(--color-blue-dark));
  padding: 14px 0;
  position: relative;
}
.site-footer__bottom::before {
  position: absolute;
  left: 0;
  top: -6px;
  display: block;
  content: "";
  border-bottom: 7px solid rgb(var(--color-blue-dark));
  border-right: 100vw solid transparent;
  width: 0;
  height: 0;
}
.site-footer__bottom-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-left: 20px;
}
.site-footer__bottom a:hover {
  color: #fff;
}
.site-footer__address {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  line-height: 1.8;
}
.site-footer__regulatory {
  background: rgb(var(--color-blue-medium));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
}
.site-footer__regulatory-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  text-align: center;
}
/* Floating go-to-top button */
.go-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.go-to-top:hover {
  background: rgb(var(--color-grey-light));
}
.go-to-top.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   CONTENT AREA
   ========================================================= */
.content-area {
  max-width: 1260px;
  margin: 0 auto;
  padding: 140px 20px 60px;
}

/* Alpine.js cloak — verberg elementen tot Alpine klaar is */
[x-cloak] {
  display: none !important;
}

/* =========================================================
   ALERTS
   ========================================================= */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.alert--error {
  background: rgba(var(--color-red), 0.08);
  color: rgb(var(--color-red));
  border: 1px solid rgba(var(--color-red), 0.2);
}
.alert--success {
  background: rgba(var(--color-green), 0.08);
  color: rgb(var(--color-green));
  border: 1px solid rgba(var(--color-green), 0.2);
}
.alert--info {
  background: rgba(var(--color-blue-primary), 0.08);
  color: rgb(var(--color-blue-primary));
  border: 1px solid rgba(var(--color-blue-primary), 0.2);
}

/* =========================================================
   LOADING STATES
   ========================================================= */
.skeleton {
  background: linear-gradient(
    90deg,
    rgb(var(--color-grey-light)) 25%,
    rgb(var(--color-grey)) 50%,
    rgb(var(--color-grey-light)) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 20px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgb(var(--color-grey));
  border-top-color: rgb(var(--color-blue-primary));
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
