/* =========================================================================
   Chocolaterie Raets — chocolaterieraets.be
   Static rebuild of the original WordPress (Astra + Elementor) front-end.
   Every value below was read out of the original site's own stylesheet.
   Structure mirrors Elementor: section > container (.sec__inner) > .col > widget
   ========================================================================= */

/* ------------------------------- fonts --------------------------------- */
/* Self-hosted: no Google Fonts CDN call, so no visitor IP leaves the site
   and the CSP can forbid all third-party origins. */
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/old-standard-tt-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/old-standard-tt-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/old-standard-tt-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/old-standard-tt-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------- tokens -------------------------------- */
:root {
  --c-text:      #4B4F58;   /* Astra global color 3 — body copy */
  --c-heading:   #3a3a3a;   /* Astra global color 2 — headings   */
  --c-link:      #0170B9;   /* Astra global color 0              */
  --c-black:     #000;
  --c-white:     #fff;
  --c-hamburger: #273070;
  --c-arrow:     rgba(238, 238, 238, .9);
  --c-border:    #ccc;
  --c-req:       #d63638;
  --c-sublabel:  #666;

  --font-head: 'Old Standard TT', Sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Oxygen-Sans', Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

  --container:  1140px;
  --widget-gap: 20px;
  --col-pad:    10px;
}

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

html {
  font-size: 93.75%;              /* 15px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;                /* 15px */
  font-weight: 400;
  line-height: 1.65;              /* Astra body line-height */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { border: 0; }
a   { color: var(--c-link); line-height: 1.45; }

/* h1 en h3 krijgen exact dezelfde opmaak als h2: de koppenstructuur
   is nu semantisch correct (h1 > h2 > h3) zonder dat er iets verandert aan
   hoe de pagina eruitziet. */
h1, h2, h3 {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 2.1333333333333rem;  /* 32px */
  font-weight: 600;
  line-height: 1.3em;
  color: var(--c-heading);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--c-white);
  color: var(--c-black);
}
.skip-link:focus { left: 6px; top: 6px; }

.hide-desktop { display: none; }
.hide-mobile  { display: block; }

/* --------------------------- section / grid ---------------------------- */
.sec {
  position: relative;
  width: 100%;
}

.sec__inner {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 100%;
}

.sec--boxed > .sec__inner { max-width: var(--container); }

.col {
  position: relative;
  min-height: 1px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: var(--col-pad);
}
.col > * { width: 100%; }
.col > *:not(:last-child) { margin-bottom: var(--widget-gap); }

@media (min-width: 768px) {
  .row--2 > .col { width: 50%; }
  .row--3 > .col { width: 33.333%; }
}

.spacer { height: var(--spacer-size, 50px); }
.spacer--102 { --spacer-size: 102px; }
.spacer--140 { --spacer-size: 140px; }
.spacer--40  { --spacer-size: 40px; }

/* ------------------------------ widgets -------------------------------- */
.w-image { text-align: center; }
.w-image > a { display: inline-block; }
.w-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 0;
  box-shadow: none;
}

.w-text p { margin: 0 0 1.75em; }
.w-text p:last-child { margin-bottom: 0; }

.w-map__embed {
  overflow: hidden;
  line-height: 0;
}
.w-map iframe {
  display: block;
  width: 100%;
  height: 300px;               /* Elementor google_maps default */
  border: 0;
  max-width: 100%;
}

/* ------------------------------ buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
  background-color: #69727d;
  color: var(--c-white);
  fill: var(--c-white);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 24px;
  border: 0;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:visited { color: var(--c-white); }

/* Elementor button sizes */
.btn--md { font-size: 16px; padding: 15px 30px; border-radius: 4px; }
.btn--xl { font-size: 20px; padding: 25px 50px; border-radius: 6px; }

/* header "Bestel hier" — black pill */
.btn--pill { background-color: var(--c-black); border-radius: 37px; }
/* "Klik hier om een Bestelling te maken!" */
.btn--xl   { background-color: var(--c-black); }

.btn--grow { transition: transform .3s; }
.btn--grow:hover { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .btn--grow { transition: none; }
  .btn--grow:hover { transform: none; }
}

.btn__icon { display: inline-flex; align-items: center; }
.btn__icon svg { width: 1em; height: 1em; fill: currentColor; }
.btn__text { display: inline-block; }

.w-button { text-align: left; }
.w-button--center { text-align: center; }

/* ------------------------------- header -------------------------------- */
/* Original: Sticky Header Effects — transparent over the hero, turns white
   as soon as the page scrolls (scroll_distance = 0). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: transparent;
  transition: background-color .4s ease-in-out;
}
.site-header.is-scrolled,
.site-header.is-solid { background-color: var(--c-white); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

@media (min-width: 768px) {
  .col--logo   { width: 25%; }
  .col--nav    { width: 43.481%; }
  .col--cta    { width: 19.995%; }
  .col--social { width: 11.497%; }
}

.w-image--logo { text-align: left; }
.w-image--logo img {
  width: 28%;
  transition: transform .3s;
}
.w-image--logo img:hover { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .w-image--logo img { transition: none; }
  .w-image--logo img:hover { transform: none; }
}

/* widget offsets from the original header */
.col--nav > .w-nav       { margin-top: 19px; }
.col--cta > .w-button    { margin-top: 19px; }
.col--social > .w-social { margin: 23px 0 0 -12px; }

/* ------------------------------- nav ----------------------------------- */
.nav { position: relative; z-index: 14; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* original menu is centred in its column */
  align-items: stretch;
  height: 60px;              /* .elementskit-menu-container height */
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { position: relative; }
.nav__item > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 21px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1px;
  text-transform: uppercase;
  color: var(--c-black);
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
}
.nav__item > a:hover,
.nav__item.is-current > a { color: var(--c-black); }

.nav__hamburger,
.nav__close,
.nav__panelHead { display: none; }

/* tablet + mobile: off-canvas panel (original responsive breakpoint 1024px) */
@media (max-width: 1024px) {
  .nav__hamburger {
    display: block;
    margin-left: auto;
    width: 45px;
    padding: 8px;
    border: 1px solid var(--c-hamburger);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
  }
  .nav__bar {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--c-hamburger);
    border-radius: 1px;
  }
  .nav__bar + .nav__bar { margin-top: 5px; }

  .nav__panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    max-width: 350px;
    background: var(--c-white);
    border-radius: 0;
    padding: 10px 0;
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    overflow-y: auto;
    z-index: 100;
  }
  .nav__panel.is-open { transform: translateX(0); }

  .nav__panelHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  .nav__panelLogo { display: block; margin: 5px 0; padding: 5px; }
  .nav__panelLogo img {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .nav__close {
    display: block;
    width: 45px;
    padding: 8px;
    margin: 12px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: rgba(51, 51, 51, 1);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .nav__list {
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
  }
  .nav__item > a { padding: 10px 15px; line-height: 1.7em; }

  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 99;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .nav__panel { transition: none; }
}

@media (max-width: 767px) {
  .nav__panelLogo img { max-width: 75px; max-height: 50px; }
}

/* ---------------------------- social icons ----------------------------- */
.social {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}
.social > li { display: inline-block; margin: 0 0 0 20px; }
.social > li > a {
  display: block;
  width: 40px;
  text-decoration: none;
  color: #222;
}
.social > li:last-child > a { color: #111; }
.social svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  vertical-align: middle;
}

/* -------------------------------- hero --------------------------------- */
.hero {
  margin-top: 0;
  margin-bottom: 8px;
  padding: 600px 0 300px;
  /* Eerst de jpg als terugval voor browsers die image-set() niet kennen; die
     negeren de tweede regel. De rest krijgt de webp, ±30% kleiner. */
  background-image: url('../images/hero.jpg?v=332338cb');
  background-image: image-set(url('../images/hero.webp?v=d0a43a49') type('image/webp'),
                              url('../images/hero.jpg?v=332338cb') type('image/jpeg'));
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--c-black);
  opacity: .6;
  pointer-events: none;
}
.hero > .sec__inner { z-index: 1; }
.hero > .sec__inner > .col { margin: 0; }
.hero__title {
  margin: 0;
  padding: 0;
  text-align: center;
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 121px;
  font-weight: 600;
  line-height: 1.3em;
  -webkit-text-stroke-color: var(--c-black);
  stroke: var(--c-black);
}
/* Ondertitel onder de hero-titel: zet meteen bovenaan de pagina waar de
   chocolaterie staat en waarvoor ze bekend is. */
.hero__tagline {
  margin: 10px 0 0;
  text-align: center;
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
}

/* ------------------------------ carousel ------------------------------- */
.carousel {
  position: relative;
  padding: 0 40px;                /* arrows positioned outside */
}
.carousel__viewport { overflow: hidden; width: 100%; }
.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}
.carousel__slide { flex: 0 0 auto; min-width: 0; }
.carousel__slide figure { margin: 0; line-height: 0; }
.carousel__slide img { display: block; width: 100%; height: auto; }

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-arrow);
  cursor: pointer;
}
.carousel__arrow svg { width: 22px; height: 22px; fill: currentColor; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__arrow:focus-visible { outline: 2px solid var(--c-link); }

/* ----------------------------- contactform ----------------------------- */
.formwrap { width: 100%; }
.cform { max-width: 100%; }
.cform__field { padding: 10px 0; }

.cform__label {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
.cform__req { color: var(--c-req); font-weight: 400; }

.cform__row { display: block; }
.cform__row--split { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.cform__sub { flex: 1 1 50%; max-width: 50%; padding: 0 10px; }
.cform__sublabel {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-sublabel);
}

.cform input[type="text"],
.cform input[type="email"],
.cform input[type="tel"],
.cform textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--c-text);
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 2px;
}
.cform textarea { min-height: 150px; resize: vertical; }
.cform input:focus,
.cform textarea:focus { outline: 0; border-color: var(--c-black); }
.cform input[aria-invalid="true"],
.cform textarea[aria-invalid="true"] { border-color: var(--c-req); }

.cform__submit { padding: 10px 0 0; }
.cform__btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-white);
  background-color: var(--c-black);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.cform__btn:disabled { opacity: .6; cursor: default; }

.cform__noscript {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--c-req);
  background: #faf7f2;
}

.form-status { margin: 12px 0 0; min-height: 1.5em; font-size: 1rem; }
.form-status.is-error   { color: var(--c-req); }
.form-status.is-success { color: #1e7b34; }

/* ------------------------------- footer -------------------------------- */
.site-footer { padding: 0; }

/* NAP-blok: naam, adres, telefoon en openingsuren op elke pagina */
.site-footer__nap {
  padding: 34px 0 40px;
  border-top: 1px solid #e6e6e6;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
}
.site-footer__nap p { margin: 0 0 14px; }
.site-footer__nap p:last-child { margin-bottom: 0; }

/* ============================ breakpoints ============================== */
@media (max-width: 1024px) {
  .sec--boxed > .sec__inner { max-width: 1024px; }
}

@media (max-width: 921px) {
  html { font-size: 85.5%; }
  h1, h2, h3 { font-size: 1.7rem; }
}

@media (max-width: 767px) {
  .sec--boxed > .sec__inner { max-width: 767px; }

  .hide-desktop { display: block; }
  .hide-mobile  { display: none; }

  /* the original keeps both outer columns in flow (their widgets are hidden
     on mobile), so they still contribute their 10px column padding */
  .col--logo > .w-image--logo,
  .col--social > .w-social { display: none; }

  .col--nav { width: 25%; }
  .col--cta { width: 70%; }
  .col--cta > .w-button { margin-top: 11px; }
  .w-button--mobile-right { text-align: right; }

  .hero { padding: 90px 0 150px; }
  .hero__title { font-size: 39px; }
  .hero__tagline { font-size: 17px; margin-top: 6px; }

  .carousel { padding: 0 30px; }
  .carousel__arrow { width: 30px; }

  .cform__row--split { margin: 0; }
  .cform__sub { flex: 1 1 100%; max-width: 100%; }
  .cform__sub + .cform__sub { margin-top: 10px; }
}

@media (max-width: 544px) {
  html { font-size: 85.5%; }
  h1, h2, h3 { font-size: 25px; }
}
