/* ================================================================
   HOOGLAND ONDERWIJSADVIES – style.css
   Premium one-page website · Mobile first
   ================================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Kleuren – pastel thema */
  --clr-primary:     #6b9dd6;    /* pastel blauw */
  --clr-primary-l:   #8db8e8;    /* lichter pastel blauw */
  --clr-accent:      #f2a7be;    /* pastel roze */
  --clr-accent-hover:#e8919f;
  --clr-bg:          #fffcfd;
  --clr-bg-alt:      #eef6ee;    /* licht pastel groen */
  --clr-bg-dark:     #3a4d5e;
  --clr-text:        #3a3a4a;
  --clr-text-light:  #6a6a82;
  --clr-text-inv:    #ffffff;
  --clr-border:      #d5e5d5;    /* zachte groene rand */
  --clr-success:     #5dba68;
  --clr-error:       #e07070;

  /* Typografie */
  --ff-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-body:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-base:    1rem;       /* 16px */
  --fs-sm:      0.875rem;
  --fs-lg:      1.125rem;
  --fs-xl:      1.5rem;
  --fs-2xl:     2rem;
  --fs-3xl:     2.75rem;
  --fs-4xl:     3.5rem;
  --lh-body:    1.7;
  --lh-heading: 1.15;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 8rem;

  /* Overig */
  --radius: 8px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-h:  72px;
}

/* ─── Reset / Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clr-primary-l);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--clr-accent); }

ul { list-style: none; }

/* ─── Utility ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  line-height: var(--lh-heading);
  color: var(--clr-primary);
  font-weight: 700;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl);  }

.section-label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
}

.section-heading {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-sm);
}

.section-intro {
  font-size: var(--fs-lg);
  color: var(--clr-text-light);
  max-width: 640px;
  margin-bottom: var(--sp-lg);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-bg);
  border-color: var(--clr-accent);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  color: var(--clr-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-text);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--clr-text);
  color: var(--clr-bg);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn--outline-dark:hover,
.btn--outline-dark:focus-visible {
  background: var(--clr-primary);
  color: var(--clr-text-inv);
  transform: translateY(-2px);
}

/* ─── Header / Navigation ───────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header--transparent {
  background: transparent;
}

.site-header--solid {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

/* Wanneer header solid is, moeten links donker zijn */
.site-header--solid .nav__link {
  color: var(--clr-text);
}
.site-header--solid .nav__link:hover,
.site-header--solid .nav__link.active {
  color: var(--clr-accent);
}
.site-header--solid .header__logo {
  color: var(--clr-primary);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-text);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__list {
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
  position: relative;
  padding: 0.25em 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-accent);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.site-header--solid .nav__toggle-bar {
  background: var(--clr-primary);
}

/* Hamburger open state */
.nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #b8d4f0 0%, #f7cdd7 50%, #c8e6c8 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(242,167,190,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(107,157,214,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: var(--sp-3xl) 0 var(--sp-2xl);
}

.hero__label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary-l);
  margin-bottom: var(--sp-md);
}

.hero__heading {
  font-size: var(--fs-3xl);
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
  line-height: var(--lh-heading);
}

.hero__sub {
  font-size: var(--fs-lg);
  color: var(--clr-text-light);
  margin-bottom: var(--sp-lg);
  line-height: var(--lh-body);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* Decoratieve shapes */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}
.hero__shape--1 {
  width: 500px;
  height: 500px;
  background: var(--clr-accent);
  top: -100px;
  right: -150px;
}
.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: var(--clr-text-inv);
  bottom: -80px;
  left: -80px;
}

/* ─── Section Base ──────────────────────────────────────── */
section {
  padding: var(--sp-2xl) 0;  overflow-x: hidden;}

.section--alt {
  background: var(--clr-bg-alt);
}

.section--dark {
  background: #dce8f5;
  color: var(--clr-text);
}
.section--dark h2,
.section--dark h3 {
  color: var(--clr-primary);
}
.section--dark .section-label {
  color: var(--clr-accent);
}

/* ─── About Section ─────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--clr-bg-alt);
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-badge {
  position: absolute;
  bottom: var(--sp-md);
  right: var(--sp-md);
  background: var(--clr-accent);
  color: var(--clr-bg);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-lg);
  box-shadow: var(--shadow-md);
}

.about__text p {
  color: var(--clr-text-light);
  margin-bottom: var(--sp-sm);
}

.about__text p:last-of-type {
  margin-bottom: var(--sp-lg);
}

/* ─── Services Section ──────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.service-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-sm);
  display: block;
}

.service-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-xs);
}

.service-card__desc {
  color: var(--clr-text-light);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

/* ─── CV / Timeline Section ─────────────────────────────── */
.cv__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.timeline {
  position: relative;
  padding-left: var(--sp-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-lg);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--sp-lg) + 2px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 2px solid var(--clr-bg);
  box-shadow: 0 0 0 2px var(--clr-accent);
}

.timeline__period {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 0.25em;
}

.timeline__title {
  font-size: var(--fs-lg);
  color: var(--clr-primary);
  margin-bottom: 0.15em;
}

.timeline__org {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  font-style: italic;
  margin-bottom: 0.5em;
}

.timeline__desc {
  color: var(--clr-text-light);
  font-size: var(--fs-base);
}

/* ─── Testimonials Section ──────────────────────────────── */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  position: relative;
}

.testimonial-card__quote {
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: var(--lh-body);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--sp-md);
  position: relative;
  padding-left: var(--sp-md);
}

.testimonial-card__quote::before {
  content: '\201C';
  position: absolute;
  left: -0.1em;
  top: -0.2em;
  font-size: 3rem;
  color: var(--clr-accent);
  font-style: normal;
  line-height: 1;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--clr-text-inv);
}

.testimonial-card__role {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
}

/* ─── Contact Section ───────────────────────────────────── */
#contact {
  overflow: visible;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  max-width: 600px;
  margin: 0 auto;
}

.contact__grid > * {
  min-width: 0;
  overflow: hidden;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.contact__info-item > div:last-child {
  min-width: 0;
  flex: 1;
}

.contact__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--clr-bg-alt);
  font-size: 1.25rem;
}

.contact__info-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  margin-bottom: 0.15em;
}

.contact__info-value {
  font-weight: 600;
  color: var(--clr-primary);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.form__group {
  display: flex;
  flex-direction: column;
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 0.4em;
}

.form__input,
.form__textarea {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-size: max(16px, var(--fs-base));
  padding: 0.85em 1em;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(200,162,78,0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

/* Honeypot */
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  /* tabindex is an HTML attribute, not CSS */
}

/* Form messages */
.form__message {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: var(--fs-sm);
  display: none;
}

.form__message--success {
  display: block;
  background: #e8f5e9;
  color: var(--clr-success);
  border: 1px solid #c8e6c9;
}

.form__message--error {
  display: block;
  background: #ffebee;
  color: var(--clr-error);
  border: 1px solid #ffcdd2;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: #f0dde5;
  color: var(--clr-text-light);
  padding: var(--sp-lg) 0;
  text-align: center;
  font-size: var(--fs-sm);
}

.site-footer a {
  color: var(--clr-primary);
}
.site-footer a:hover {
  color: var(--clr-accent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

/* ─── Back to Top ───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: var(--clr-bg);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 900;
}

.back-to-top:hover {
  background: var(--clr-accent-hover);
  transform: translateY(0) scale(1.05);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── Scroll Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--left {
  transform: translateX(-32px);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .service-card:hover,
  .btn--primary:hover,
  .btn--outline:hover,
  .btn--outline-dark:hover {
    transform: none;
  }
}

/* ─── Contact reveal fix ────────────────────────────────── */
#contact .reveal--left,
#contact .reveal--right {
  transform: translateY(32px);
}
#contact .reveal--left.is-visible,
#contact .reveal--right.is-visible {
  transform: translate(0, 0);
}

/* ─── Responsive: Tablet (≥640px) ───────────────────────── */
@media (min-width: 640px) {
  :root {
    --fs-3xl: 3rem;
    --fs-2xl: 2.25rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

/* ─── Responsive: Desktop (≥960px) ──────────────────────── */
@media (min-width: 960px) {
  :root {
    --fs-3xl: 3.5rem;
    --fs-2xl: 2.5rem;
    --sp-2xl: 8rem;
  }

  .hero__heading {
    font-size: var(--fs-4xl);
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Mobile Nav (< 960px) ──────────────────────────────── */
@media (max-width: 959px) {
  .nav__toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-bg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav.is-open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: var(--sp-md);
    text-align: center;
  }

  .nav__link {
    color: var(--clr-text);
    font-size: var(--fs-lg);
  }
  .nav__link:hover,
  .nav__link.active {
    color: var(--clr-accent);
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

/* ─── Placeholder Image Styling ─────────────────────────── */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--clr-bg-alt) 0%, var(--clr-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-light);
  font-size: var(--fs-sm);
}
