/* ============================================================
   GLOBAL STYLES — Paul van der Hijden Fysiotherapie
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&family=Inter:wght@400;500&display=swap');

/* --- Variables --- */
:root {
  --teal-primary: #00A4AE;
  --teal-dark:    #007A82;
  --teal-light:   #E6F7F8;
  --teal-muted:   #B2E4E7;
  --white:        #FFFFFF;
  --off-white:    #F8FAFB;
  --text-dark:    #1A2B2C;
  --text-body:    #3D5254;
  --text-muted:   #6B8385;
  --border:       #D4EAEB;
  --shadow:       0 4px 24px rgba(0, 164, 174, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 164, 174, 0.16);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;

  --max-width: 1140px;
  --section-py: 80px;
  --section-py-mobile: 48px;
  --radius: 12px;
  --radius-sm: 6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p { line-height: 1.7; color: var(--text-body); }

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

/* --- Sections --- */
.section { padding: var(--section-py) 0; }
.section--off-white { background: var(--off-white); }
.section--teal { background: var(--teal-primary); }
.section--dark { background: var(--text-dark); }

.section-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-primary);
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 48px;
}

/* --- Sticky Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.header-logo img {
  width: auto;
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--teal-primary);
  background: var(--teal-light);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s;
}

.nav-overlay.open {
  display: flex;
  opacity: 1;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-dark);
  padding: 10px 24px;
  transition: color 0.2s;
}

.nav-overlay a:hover { color: var(--teal-primary); }

.nav-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 8px;
  line-height: 1;
}

/* --- Footer --- */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, auto) minmax(240px, 1fr);
  align-items: start;
  gap: 48px;
  padding: 56px 0 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand img {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.90);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  color: rgba(255,255,255,0.78);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 240px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--teal-muted); }

.footer-contact {
  text-align: right;
}

.footer-contact p {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-contact a { color: rgba(255,255,255,0.9); }
.footer-contact a:hover { color: var(--teal-muted); }


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span,
.footer-bottom a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* --- Fade-in-up animation for Intersection Observer --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: var(--off-white);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--teal-light);
  opacity: 0.6;
}

.page-hero .breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
}

.page-hero .breadcrumb a { color: var(--teal-primary); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 { position: relative; }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-mobile);
  }

  .header-nav { display: none; }
  .hamburger { display: flex; }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-brand { align-items: center; }
  .footer-contact { text-align: center; }
  .footer-avg { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}
