/* ============================================================
   Niya Care – Hoofdstylesheet
   ============================================================ */

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

:root {
  --color-primary:       #2a7a6e;
  --color-primary-dark:  #1f5f55;
  --color-primary-light: #e6f4f2;
  --color-accent:        #f0a500;
  --color-text:          #1a1a2e;
  --color-text-muted:    #5a5a72;
  --color-bg:            #ffffff;
  --color-bg-alt:        #f7fbfa;
  --color-border:        #d4e8e5;

  --font-sans:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;

  --radius:   0.5rem;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.12);

  --max-w:    1200px;
  --spacing:  1.5rem;
}

/* --- Base -------------------------------------------------- */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Utilities --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--spacing);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* --- Navbar ------------------------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.navbar__logo-img {
  height: 3rem;
  width: auto;
  display: block;
}
.navbar__logo-text {
  line-height: 1;
}
.navbar__menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.navbar__item a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--color-text);
  border-radius: var(--radius);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.navbar__item a:hover,
.navbar__item--active a {
  color: var(--color-primary);
  background: var(--color-primary-light);
  text-decoration: none;
}
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* --- Hero -------------------------------------------------- */
.hero {
  background: var(--color-primary-light);
  padding: 5rem 0;
}
.hero--image {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 122, 110, 0.65);
}
.hero--image .hero__inner { position: relative; }
.hero--image .hero__content { color: #fff; }
.hero__content {
  max-width: 640px;
}
.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero__content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* --- Sections ---------------------------------------------- */
.section {
  padding: 4rem 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.section__cta-inner h2 { margin-bottom: 0.75rem; font-size: 1.75rem; }
.section__cta-inner p  { margin-bottom: 1.75rem; opacity: 0.9; }
.section__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--color-primary);
}
.section__cta { text-align: center; margin-top: 2.5rem; }

/* --- Cards ------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card__image { width: 100%; height: 200px; object-fit: cover; }
.card__icon  { font-size: 2.5rem; padding: 1.5rem 1.5rem 0; text-align: center; }
.card__body  { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__date  { font-size: 0.8rem; color: var(--color-text-muted); display: block; margin-bottom: 0.5rem; }
.card__title { font-size: 1.125rem; margin-bottom: 0.75rem; }
.card__title a { color: var(--color-text); }
.card__title a:hover { color: var(--color-primary); text-decoration: none; }
.card__excerpt { color: var(--color-text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.card__body { font-size: 0.9375rem; }
.card__body h2, .card__body h3 { font-size: 1rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.35rem; }
.card__body ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.card__body p { margin-bottom: 0.75rem; }
.card__link { font-weight: 600; color: var(--color-primary); }
/* When card has no separate .card__body */
.card > .card__icon ~ .card__title,
.card > .card__icon ~ .card__excerpt,
.card > .card__icon ~ .card__link,
.card > h3,
.card > p,
.card > a.card__link { padding-inline: 1.5rem; text-align: left; }
.card > h3 { padding-top: 0.75rem; }
.card > a.card__link { padding-bottom: 1.5rem; margin-top: auto; }

/* --- Page header ------------------------------------------- */
.page-header {
  background: var(--color-primary-light);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-header__sub { color: var(--color-text-muted); font-size: 1.125rem; }

/* --- Breadcrumb -------------------------------------------- */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-primary); }

/* --- Prose ------------------------------------------------- */
.prose { max-width: 72ch; }
.prose--intro { max-width: 72ch; margin-bottom: 3rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--color-primary); }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.25rem; }
.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}

/* --- Contact ----------------------------------------------- */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-details__block { min-width: 220px; }
.contact-details__block h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--color-primary); }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
.contact-list dt { font-weight: 600; color: var(--color-text-muted); }
.contact-list + h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }

/* --- Footer ------------------------------------------------ */
.footer { background: var(--color-text); color: #e8e8f0; padding: 3rem 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h3, .footer h4 { color: #fff; margin-bottom: 0.75rem; }
.footer a { color: #b0c8c5; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer__bottom {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  display: flex;
}
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer__bottom a { color: rgba(255,255,255,0.5); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
  .navbar__menu {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__toggle { display: flex; }

  .hero { padding: 3rem 0; }

  .contact-layout,
  .team-single { grid-template-columns: 1fr; }
  .team-single__photo { width: 100%; height: 260px; }

  .footer__bottom .container { flex-direction: column; }
}
