/**
 * Tandartspraktijk Alkmaar — front-end styles
 * Depends on assets/css/variables.css
 */

/* ==========================================================================
   Custom properties (layout)
   ========================================================================== */

:root {
  --tpa-header-height: 4rem;
  --tpa-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tpa-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --tpa-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --tpa-transition: 0.2s ease;
}

@media (min-width: 768px) {
  :root {
    --tpa-header-height: 5rem;
  }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.tpa-text-accent {
  color: hsl(var(--accent));
}

.tpa-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.tpa-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.tpa-lead:last-of-type {
  margin-bottom: 1.5rem;
}

.tpa-link-underline {
  font-weight: 600;
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--tpa-transition);
}

.tpa-link-underline:hover {
  color: hsl(var(--primary) / 0.8);
}

.tpa-link-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: hsl(var(--accent));
  transition: color var(--tpa-transition);
}

.tpa-link-primary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tpa-link-accent {
  color: hsl(var(--accent));
  font-weight: 500;
  transition: color var(--tpa-transition);
}

.tpa-link-accent:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.tpa-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .tpa-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.tpa-main {
  padding-top: var(--tpa-header-height);
}

.tpa-home [id],
.tpa-page [id] {
  scroll-margin-top: var(--tpa-header-height);
}

/* Elementor front page — native sections stay visible in editor */
.tpa-home--native .tpa-home__elementor-widgets:empty {
  display: none;
}

.tpa-home__native-sections {
  display: block;
}

.tpa-home__elementor-widgets {
  display: block;
}

.tpa-home--elementor .tpa-home__elementor-content {
  min-height: 50vh;
}

.tpa-elementor-native-notice {
  background-color: hsl(var(--primary) / 0.08);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem;
  text-align: center;
}

.tpa-elementor-native-notice p {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
  margin-inline: auto;
}

.elementor-editor-active .tpa-home--native .tpa-home__elementor-widgets:empty {
  display: block;
  border-top: 2px dashed hsl(var(--border));
  padding: 2rem 0;
  min-height: 8rem;
}

/* Keep native homepage sections visible inside Elementor editor iframe */
.elementor-editor-active .tpa-home--native,
.elementor-editor-active .tpa-home__native-sections,
.elementor-editor-active .tpa-home--native .tpa-section,
.elementor-editor-active .tpa-home--native .tpa-info-blocks,
.elementor-editor-active .tpa-home--native .tpa-hero {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.tpa-home > .tpa-hero:first-child {
  margin-top: calc(-1 * var(--tpa-header-height));
}

.tpa-template-seo-hero .tpa-hero-banner,
.tpa-template-kennisbank .tpa-hero-banner {
  margin-top: calc(-1 * var(--tpa-header-height));
}

/* ==========================================================================
   Sections
   ========================================================================== */

.tpa-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .tpa-section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.tpa-section--warm {
  background-color: hsl(var(--section-warm));
}

.tpa-section-header {
  margin-bottom: 3.5rem;
}

.tpa-section-header--center {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.tpa-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.25rem;
}

.tpa-section-header--center .tpa-section-title {
  margin-bottom: 1.25rem;
}

.tpa-section-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.tpa-section-intro a {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tpa-section-intro a:hover {
  color: hsl(var(--accent) / 0.85);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tpa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition:
    background-color var(--tpa-transition),
    color var(--tpa-transition),
    border-color var(--tpa-transition),
    box-shadow var(--tpa-transition),
    opacity var(--tpa-transition);
  white-space: nowrap;
  text-align: center;
}

.tpa-btn--accent {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.tpa-btn--accent:hover {
  background-color: hsl(var(--accent) / 0.9);
}

.tpa-btn--outline {
  background-color: transparent;
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.tpa-btn--outline:hover {
  background-color: hsl(var(--primary) / 0.05);
}

.tpa-btn--light {
  background-color: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
}

.tpa-btn--light:hover {
  background-color: hsl(var(--primary-foreground) / 0.9);
}

.tpa-btn--pill {
  border-radius: 9999px;
}

.tpa-btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tpa-btn--full {
  width: 100%;
}

.tpa-btn:disabled,
.tpa-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.tpa-header {
  position: relative;
  z-index: 50;
}

.tpa-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--card) / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}

.tpa-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tpa-header-height);
}

.tpa-nav__brand {
  flex-shrink: 0;
}

.tpa-nav__brand-text {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1.2;
}

.tpa-nav__desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.tpa-nav__menu-wrap {
  display: none;
}

.tpa-nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.tpa-nav__menu > li,
.tpa-nav__item {
  position: relative;
}

.tpa-nav__link,
.tpa-nav__menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  transition: color var(--tpa-transition);
}

.tpa-nav__link:hover,
.tpa-nav__menu > li > a:hover {
  color: hsl(var(--accent));
}

.tpa-nav__chevron {
  display: inline-flex;
  transition: transform var(--tpa-transition);
}

.tpa-nav__chevron svg {
  width: 0.875rem;
  height: 0.875rem;
}

.tpa-nav__chevron.is-open {
  transform: rotate(180deg);
}

.tpa-nav__dropdown,
.tpa-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 13.75rem;
  padding: 0.5rem 0;
  margin: 0;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: var(--tpa-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.25rem);
  transition:
    opacity var(--tpa-transition),
    visibility var(--tpa-transition),
    transform var(--tpa-transition);
  list-style: none;
}

.tpa-nav__item.is-open > .tpa-nav__dropdown,
.tpa-nav__item.has-dropdown:hover > .tpa-nav__dropdown,
.tpa-nav__menu > li:hover > .sub-menu,
.tpa-nav__menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tpa-nav__dropdown-link,
.tpa-nav__menu .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.7);
  transition:
    color var(--tpa-transition),
    background-color var(--tpa-transition);
}

.tpa-nav__dropdown-link:hover,
.tpa-nav__menu .sub-menu a:hover {
  color: hsl(var(--accent));
  background-color: hsl(var(--accent) / 0.05);
}

.tpa-nav__cta--desktop {
  display: none;
}

.tpa-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: hsl(var(--foreground));
}

.tpa-nav__toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.tpa-nav__mobile {
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: 1.5rem;
}

.tpa-nav__mobile .tpa-container {
  padding-top: 0.5rem;
}

.tpa-nav__mobile-group + .tpa-nav__mobile-group {
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.tpa-nav__mobile-link,
.tpa-nav__mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0;
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.8);
  text-align: left;
  transition: color var(--tpa-transition);
}

.tpa-nav__mobile-link:hover,
.tpa-nav__mobile-trigger:hover {
  color: hsl(var(--accent));
}

.tpa-nav__mobile-submenu {
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.tpa-nav__mobile-sublink {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--tpa-transition);
}

.tpa-nav__mobile-sublink:hover {
  color: hsl(var(--accent));
}

.tpa-nav__cta--mobile {
  width: 100%;
  margin-top: 0.75rem;
}

@media (min-width: 1024px) {
  .tpa-nav__desktop,
  .tpa-nav__menu-wrap {
    display: flex;
  }

  .tpa-nav__cta--desktop {
    display: inline-flex;
  }

  .tpa-nav__toggle {
    display: none;
  }

  .tpa-nav__mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tpa-footer {
  background-color: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  padding: 3rem 0;
}

.tpa-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .tpa-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tpa-footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.tpa-footer__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tpa-footer__heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tpa-footer__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--primary-foreground) / 0.6);
}

.tpa-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tpa-footer__links a {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
  transition: color var(--tpa-transition);
}

.tpa-footer__links a:hover {
  color: hsl(var(--accent));
}

.tpa-footer__links li {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
}

.tpa-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
  text-align: center;
}

.tpa-footer__bottom p {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
}

.tpa-footer__widget .textwidget,
.tpa-footer__widget p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--primary-foreground) / 0.6);
}

.tpa-footer__widget a {
  color: hsl(var(--primary-foreground) / 0.6);
  transition: color var(--tpa-transition);
}

.tpa-footer__widget a:hover {
  color: hsl(var(--accent));
}

.tpa-nav__menu > li > a {
  text-decoration: none;
}

.tpa-nav__menu .sub-menu li {
  list-style: none;
}

/* ==========================================================================
   Homepage hero
   ========================================================================== */

.tpa-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90vh;
  overflow: hidden;
}

.tpa-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tpa-hero__img,
.tpa-hero__bg .tpa-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpa-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(var(--primary) / 0.5);
}

.tpa-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: calc(var(--tpa-header-height) + 2rem);
  padding-bottom: 5rem;
}

.tpa-hero__card {
  max-width: 42rem;
  width: 100%;
  padding: 2rem;
  background-color: hsl(var(--primary) / 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .tpa-hero__card {
    padding: 3rem;
  }
}

.tpa-hero__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
}

.tpa-hero__text {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: hsl(var(--primary-foreground) / 0.9);
  margin-bottom: 1.5rem;
}

.tpa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tpa-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  color: hsl(var(--primary-foreground) / 0.8);
  transition: color var(--tpa-transition);
  animation: tpa-bounce 2s ease-in-out infinite;
}

.tpa-hero__scroll:hover {
  color: hsl(var(--primary-foreground));
}

.tpa-hero__scroll svg {
  width: 2.5rem;
  height: 2.5rem;
}

@keyframes tpa-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(0.5rem);
  }
}

/* ==========================================================================
   Info blocks
   ========================================================================== */

.tpa-info-blocks__primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.tpa-info-blocks__primary .tpa-info-blocks__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.tpa-info-blocks__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tpa-info-blocks__label svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.tpa-info-blocks__label span {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tpa-info-blocks__hours {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.tpa-info-blocks__hours span {
  color: hsl(var(--primary-foreground) / 0.8);
}

.tpa-info-blocks__hours strong {
  font-weight: 700;
}

.tpa-info-blocks__secondary {
  background-color: hsl(var(--section-warm));
  border-bottom: 1px solid hsl(var(--border));
}

.tpa-info-blocks__row--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.875rem;
}

.tpa-info-blocks__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--foreground));
}

.tpa-info-blocks__badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.tpa-info-blocks__badge strong {
  font-weight: 600;
}

@media (min-width: 640px) {
  .tpa-info-blocks__primary .tpa-info-blocks__row {
    flex-direction: row;
  }

  .tpa-info-blocks__hours {
    flex-direction: row;
    gap: 2.5rem;
  }

  .tpa-info-blocks__row--center {
    flex-direction: row;
    gap: 2.5rem;
  }
}

@media (min-width: 768px) {
  .tpa-info-blocks__hours,
  .tpa-info-blocks__row--center {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Why choose us
   ========================================================================== */

.tpa-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .tpa-why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .tpa-why__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tpa-why__item {
  text-align: center;
  padding: 0 1rem;
}

.tpa-why__icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.tpa-why__icon svg {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.tpa-why__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.tpa-why__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Welcome, implant & practice (two-column)
   ========================================================================== */

.tpa-welcome__grid,
.tpa-implant__grid,
.tpa-practice__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .tpa-welcome__grid,
  .tpa-implant__grid,
  .tpa-practice__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .tpa-implant__media {
    order: 2;
  }

  .tpa-implant__content {
    order: 1;
  }
}

.tpa-welcome__img,
.tpa-implant__img,
.tpa-practice__img,
.tpa-welcome__media .tpa-image-fallback,
.tpa-implant__media .tpa-image-fallback,
.tpa-practice__media .tpa-image-fallback {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--tpa-shadow-md);
}

.tpa-welcome__content .tpa-section-title,
.tpa-implant__content .tpa-section-title,
.tpa-practice__content .tpa-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Treatments grid
   ========================================================================== */

.tpa-treatments__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tpa-treatments__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tpa-treatments__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tpa-treatment-card {
  display: block;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--tpa-shadow-sm);
  transition:
    box-shadow var(--tpa-transition),
    transform var(--tpa-transition);
}

.tpa-treatment-card:hover {
  box-shadow: var(--tpa-shadow-md);
  transform: translateY(-2px);
}

.tpa-treatment-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  transition: background-color var(--tpa-transition);
}

.tpa-treatment-card:hover .tpa-treatment-card__icon {
  background-color: hsl(var(--accent) / 0.2);
}

.tpa-treatment-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.tpa-treatment-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.tpa-treatment-card__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.tpa-treatment-card__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--accent));
  transition: text-decoration var(--tpa-transition);
}

.tpa-treatment-card:hover .tpa-treatment-card__link {
  text-decoration: underline;
}

/* ==========================================================================
   Reviews marquee
   ========================================================================== */

.tpa-reviews {
  overflow: hidden;
  padding-bottom: 5rem;
}

.tpa-reviews__header {
  margin-bottom: 3rem;
}

.tpa-reviews__track-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.25rem 0;
}

.tpa-reviews__track-wrap::before,
.tpa-reviews__track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 1;
  pointer-events: none;
}

.tpa-reviews__track-wrap::before {
  left: 0;
  background: linear-gradient(to right, hsl(var(--background)), transparent);
}

.tpa-reviews__track-wrap::after {
  right: 0;
  background: linear-gradient(to left, hsl(var(--background)), transparent);
}

.tpa-reviews__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.tpa-reviews__track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.tpa-review-card {
  flex-shrink: 0;
  width: 20rem;
  max-width: 20rem;
  margin: 0;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--tpa-shadow-sm);
}

.tpa-review-card__name {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.tpa-review-card__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--accent));
}

.tpa-review-card__stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.tpa-review-card__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.tpa-faq__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.tpa-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tpa-accordion__item {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
}

.tpa-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: hsl(var(--foreground));
  transition: color var(--tpa-transition);
}

.tpa-accordion__trigger:hover,
.tpa-accordion__trigger.is-open {
  color: hsl(var(--accent));
}

.tpa-accordion__icon {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform var(--tpa-transition);
}

.tpa-accordion__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tpa-accordion__trigger.is-open .tpa-accordion__icon {
  transform: rotate(180deg);
}

.tpa-accordion__panel {
  border-top: 1px solid transparent;
}

.tpa-accordion__trigger.is-open + .tpa-accordion__panel {
  border-top-color: hsl(var(--border));
}

.tpa-accordion__content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Contact section
   ========================================================================== */

.tpa-contact {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.tpa-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .tpa-contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.tpa-contact__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.tpa-contact__intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: hsl(var(--primary-foreground) / 0.8);
  margin-bottom: 2rem;
}

.tpa-contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tpa-contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tpa-contact__icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: hsl(var(--accent));
}

.tpa-contact__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tpa-contact__list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.tpa-contact__list p {
  font-size: 0.9375rem;
  color: hsl(var(--primary-foreground) / 0.7);
}

.tpa-contact__form-wrap {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--tpa-shadow-lg);
}

.tpa-contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.tpa-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tpa-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tpa-form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tpa-form__field label,
.tpa-form__fieldset legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.375rem;
}

.tpa-form__field input,
.tpa-form__field select,
.tpa-form__field textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  transition:
    border-color var(--tpa-transition),
    box-shadow var(--tpa-transition);
}

.tpa-form__field input:focus,
.tpa-form__field select:focus,
.tpa-form__field textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.15);
}

.tpa-form__fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.tpa-form__fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.tpa-form__fieldset input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: hsl(var(--accent));
}

.tpa-form__note {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 0.5rem;
}

.tpa-contact__plugin-form input,
.tpa-contact__plugin-form select,
.tpa-contact__plugin-form textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  font: inherit;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.tpa-contact__plugin-form .wpcf7-form p {
  margin: 0 0 1rem;
}

.tpa-contact__plugin-form .tpa-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tpa-contact__plugin-form .tpa-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.tpa-contact__plugin-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--tpa-transition);
}

.tpa-contact__plugin-form .wpcf7-submit:hover {
  opacity: 0.9;
}

.tpa-contact__plugin-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.tpa-contact__plugin-form .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: hsl(var(--destructive, 0 84% 60%));
  margin-top: 0.25rem;
}

/* ==========================================================================
   Praktijkovername banner
   ========================================================================== */

.tpa-banner {
  background-color: hsl(var(--primary));
  padding: 2.5rem 0;
}

.tpa-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .tpa-banner__inner {
    flex-direction: row;
    text-align: left;
  }
}

.tpa-banner__eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground) / 0.7);
  margin-bottom: 0.25rem;
}

.tpa-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}

.tpa-banner .tpa-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ==========================================================================
   SEO hero banner
   ========================================================================== */

.tpa-hero-banner {
  position: relative;
}

.tpa-hero-banner__media {
  position: relative;
  height: 18.75rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tpa-hero-banner__media {
    height: 25rem;
  }
}

.tpa-hero-banner__img,
.tpa-hero-banner__media .tpa-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpa-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(var(--primary) / 0.6);
}

.tpa-hero-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.tpa-hero-banner__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  max-width: 48rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.tpa-breadcrumbs {
  background-color: hsl(var(--section-warm));
  border-bottom: 1px solid hsl(var(--border));
}

.tpa-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.tpa-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tpa-breadcrumbs__sep {
  color: hsl(var(--muted-foreground) / 0.6);
}

.tpa-breadcrumbs__link {
  transition: color var(--tpa-transition);
}

.tpa-breadcrumbs__link:hover {
  color: hsl(var(--accent));
}

.tpa-breadcrumbs__current {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* ==========================================================================
   Page content & CTA band
   ========================================================================== */

.tpa-page-content {
  padding: 3rem 0 5rem;
}

@media (min-width: 768px) {
  .tpa-page-content {
    padding: 5rem 0;
  }
}

.tpa-cta-band {
  background-color: hsl(var(--accent) / 0.1);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .tpa-cta-band {
    padding: 4rem 0;
  }
}

.tpa-cta-band__inner {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.tpa-cta-band__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.tpa-cta-band__text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.tpa-cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tpa-cta-band__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==========================================================================
   Image fallbacks
   ========================================================================== */

.tpa-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  background: linear-gradient(
    135deg,
    hsl(var(--muted)) 0%,
    hsl(var(--secondary)) 50%,
    hsl(var(--muted)) 100%
  );
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.tpa-image-fallback__text {
  font-size: 0.75rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: hsl(var(--muted-foreground));
  text-align: center;
  padding: 1rem;
  word-break: break-all;
}

.tpa-image-fallback--hero {
  min-height: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.tpa-hero__bg .tpa-image-fallback,
.tpa-hero-banner__media .tpa-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

/* ==========================================================================
   404 page
   ========================================================================== */

.tpa-page--404 {
  min-height: calc(100vh - var(--tpa-header-height) - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.tpa-404 {
  text-align: center;
}

.tpa-404__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1;
  margin-bottom: 1rem;
}

.tpa-404__message {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* ==========================================================================
   Entry content (WordPress blocks)
   ========================================================================== */

.tpa-entry-content {
  font-family: var(--font-sans);
  color: hsl(var(--foreground));
  line-height: 1.7;
  font-size: 1rem;
}

.tpa-entry-content > * + * {
  margin-top: 1.25rem;
}

.tpa-entry-content h1,
.tpa-entry-content h2,
.tpa-entry-content h3,
.tpa-entry-content h4 {
  font-family: var(--font-serif);
  color: hsl(var(--foreground));
  line-height: 1.25;
  font-weight: 700;
}

.tpa-entry-content h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.tpa-entry-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-top: 2rem;
}

.tpa-entry-content h3 {
  font-size: 1.25rem;
}

.tpa-entry-content h4 {
  font-size: 1.125rem;
}

.tpa-entry-content p,
.tpa-entry-content li {
  color: hsl(var(--muted-foreground));
}

.tpa-entry-content a {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tpa-entry-content a:hover {
  color: hsl(var(--accent) / 0.85);
}

.tpa-entry-content ul,
.tpa-entry-content ol {
  padding-left: 1.25rem;
  list-style: revert;
}

.tpa-entry-content ul {
  list-style-type: disc;
}

.tpa-entry-content ol {
  list-style-type: decimal;
}

.tpa-entry-content img {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
}

.tpa-entry-content .wp-block-image img {
  box-shadow: var(--tpa-shadow-sm);
}

.tpa-entry-content .alignwide {
  max-width: min(100%, 75rem);
  margin-left: auto;
  margin-right: auto;
}

.tpa-entry-content .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.tpa-entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid hsl(var(--accent));
  background-color: hsl(var(--section-warm));
  font-style: italic;
  color: hsl(var(--foreground));
}

.tpa-entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
}

.tpa-entry-content th,
.tpa-entry-content td {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
}

.tpa-entry-content th {
  background-color: hsl(var(--muted));
  font-weight: 600;
  color: hsl(var(--foreground));
}

.tpa-entry-content .tpa-callout,
.tpa-entry-content .wp-block-group.tpa-callout {
  background: hsl(var(--section-warm));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tpa-article--seo .tpa-entry-content,
.tpa-article--kennisbank .tpa-entry-content {
  max-width: 56rem;
  margin: 0 auto;
}

.tpa-kennisbank-body {
  max-width: 56rem;
  margin: 0 auto;
}

.tpa-kennisbank-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tpa-reviews__track {
    animation: none;
  }
}
