/* ============================================================
   Section
   ============================================================ */
.section {
  position: relative;
  width: 100%;
  padding: 1rem;

  display: flex;
  align-items: center;
  justify-content: center;
}

.section > *:first-child {
  width: 100%;
  max-width: var(--spacing-content-max-width);
}

.section--full {
  min-height: 90vh;
}

@media only screen and (min-width: 48rem) {
  .section {
    padding: 4rem 2rem;
  }
}

/* Section heading block (centered intro for a section) */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-head p {
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--coral-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ============================================================
   Side by side
   ============================================================ */
.side-by-side {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  gap: 2rem;
}

@media only screen and (min-width: 48rem) {
  .side-by-side {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }

  .side-by-side > *:first-child {
    grid-column: span 6;
  }

  .side-by-side > *:last-child {
    grid-column: span 6;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  all: unset;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  width: fit-content;
  cursor: pointer;

  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;

  transition: transform 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--sage-light);
  color: var(--secondary-foreground);
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: var(--secondary);
}

.btn .chevron {
  font-size: 1.25rem;
  line-height: 1;
}

/* ============================================================
   Generic card
   ============================================================ */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-top: 4rem;
}

.hero h1 {
  max-width: 16ch;
}

.hero .hero-tagline {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-size: var(--fs-lg);
  color: var(--primary);
}

.hero .hero-lead {
  max-width: 46rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Decorative soft blobs behind the hero */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
}

.hero-blob--1 {
  width: 18rem;
  height: 18rem;
  background-color: var(--coral-light);
  top: 12%;
  left: -4rem;
}

.hero-blob--2 {
  width: 14rem;
  height: 14rem;
  background-color: var(--sage-light);
  bottom: 8%;
  right: -3rem;
}

.hero-blob--3 {
  width: 10rem;
  height: 10rem;
  background-color: var(--sunshine-light);
  top: 18%;
  right: 12%;
}

/* ============================================================
   About / profiles
   ============================================================ */
.profiles {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

/* Divider + extra spacing between introductions */
.profiles > article + article {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.profile-avatar {
  width: clamp(8rem, 30vw, 12rem);
  height: clamp(8rem, 30vw, 12rem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.profile-avatar--coral {
  background: linear-gradient(135deg, var(--coral), var(--primary-hover));
}

/* Photo avatars: fill the circle, keep the coloured ring */
.profile-avatar--photo {
  padding: 4px;
  overflow: hidden;
}

.profile-avatar--photo picture {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-avatar--sage {
  background: linear-gradient(135deg, var(--sage), var(--secondary-hover));
}

@media only screen and (min-width: 48rem) {
  .profile-avatar {
    width: clamp(12rem, 18vw, 16rem);
    height: clamp(12rem, 18vw, 16rem);
  }
}

/* Avatar + name + titles grouped in one centered column */
.profile-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.profile-intro h3 {
  margin-bottom: 0.25rem;
}

.profile-intro .profile-role {
  margin-bottom: 0;
}

.profile-role {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  color: var(--secondary-foreground);
  margin-bottom: 1rem;
}

.profile-body p {
  margin-bottom: 1rem;
}

.help-title {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: var(--foreground);
  margin: 1.25rem 0 0.75rem;
}

/* "Miben tudok segíteni?" lists */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--secondary-foreground);
  background-color: var(--sage-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* Center the introductions on mobile, photo always on top */
@media only screen and (max-width: 47.99rem) {
  .profile-body {
    text-align: center;
  }

  .profile-body .tag-list {
    justify-content: center;
  }

  .side-by-side > .profile-intro {
    order: -1;
  }
}

/* ============================================================
   Service grid (Vizsgálatok / Terápiák)
   ============================================================ */
.service-block + .service-block {
  margin-top: var(--spacing-content-section);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media only screen and (min-width: 36rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 60rem) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.service-card .badge {
  align-self: flex-start;
}

.badge {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  color: var(--accent-foreground);
  background-color: var(--sunshine-light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--spacing-heading-content);
}

@media only screen and (min-width: 44rem) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.price-card--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-amount .price-value {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--primary);
}

.price-amount .price-unit {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.price-features li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-foreground);
  background-color: var(--sage-light);
  border-radius: 50%;
}

.price-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  background-color: var(--muted);
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
}

.price-note-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  color: var(--primary);
}

.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Examination accordion (Árlista → Vizsgálatok)
   Uses native <details>: all content stays in the DOM for crawlers,
   toggling is handled by the browser, styling/animation is pure CSS. */
.exam-accordion {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.exam-item {
  border-bottom: 1px solid var(--border);
}

.exam-item:last-child {
  border-bottom: none;
}

.exam-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

/* Hide the default disclosure triangle */
.exam-summary::-webkit-details-marker {
  display: none;
}

.exam-summary:hover {
  background-color: var(--muted);
}

.exam-name {
  flex: 1;
  font-weight: 600;
  color: var(--foreground);
}

.exam-price {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.exam-chevron {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted-foreground);
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.exam-item[open] .exam-chevron {
  transform: rotate(-90deg);
}

.exam-desc {
  padding: 0 1.25rem 1.25rem;
}

.exam-desc p {
  color: var(--muted-foreground);
}

/* ============================================================
   Contact band (closing CTA)
   ============================================================ */
.contact-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--coral-light), var(--sunshine-light));
  border-radius: var(--radius);
}

.contact-band .contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
}

.contact-band p,
.contact-band .contact-methods span {
  font-weight: 700;
}

.contact-band .contact-methods a {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  color: var(--foreground);
}

.contact-band .contact-methods a:hover {
  color: var(--primary);
}

/* ============================================================
   Navigation
   ============================================================ */
.brand-wordmark {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
}

@media only screen and (max-width: 47.99rem) {
  body.ap-open {
    overflow: hidden;
  }

  #ap-navigation {
    position: fixed;
    width: 100%;
    background-color: transparent;
    padding: 0.5rem 1rem;
    z-index: 1000;
    transition: box-shadow 0.4s ease-in-out, backdrop-filter 0.4s ease-in-out;
  }

  #ap-navigation.withBackground {
    background-color: hsl(30 50% 97% / 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
  }

  #ap-navigation.ap-active .ap-list-wrapper {
    opacity: 1;
    transform: scaleY(1);
    transition-delay: 0.1s;
    width: 100%;
  }

  #ap-navigation.ap-active .ap-list-item {
    opacity: 1;
    transform: translateY(0);
  }

  #ap-navigation .ap-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #ap-navigation .ap-logo {
    z-index: 10;
  }

  #ap-navigation .ap-toggle {
    width: clamp(2.75rem, 6vw, 3rem);
    height: clamp(2.75rem, 6vw, 3rem);
    background-color: transparent;
    border: none;
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
  }

  #ap-navigation.ap-active .ap-line.ap-line-1 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(225deg);
  }

  #ap-navigation.ap-active .ap-line.ap-line-2 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-225deg);
  }

  #ap-navigation.ap-active .ap-line.ap-line-3 {
    opacity: 0;
  }

  #ap-navigation .ap-box {
    width: clamp(1.5rem, 2vw, 1.75rem);
    height: clamp(0.875rem, 1.5vw, 1rem);
    position: relative;
    cursor: pointer;
  }

  #ap-navigation .ap-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #ap-navigation .ap-line-1 {
    top: 0;
    transition: transform 0.4s, top 0.3s;
    transform-origin: center;
  }

  #ap-navigation .ap-line-2 {
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s, opacity 0.3s;
  }

  #ap-navigation .ap-line-3 {
    top: 100%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
  }

  #ap-navigation .ap-list-wrapper {
    width: 100%;
    padding-bottom: 2rem;
    background-color: var(--card);
    box-shadow: var(--shadow-md);
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    overflow: hidden;
    transform: scaleY(0);
    transition: transform 0.35s, opacity 0.3s;
    transform-origin: top;
  }

  #ap-navigation .ap-list {
    width: 80%;
    max-height: 65vh;
    margin: auto;
    padding: 2.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  #ap-navigation .ap-list-item {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-2rem);
    transition: transform 0.5s, opacity 0.7s;
  }

  #ap-navigation .ap-list-item:nth-of-type(1) {
    transition-delay: 0.05s;
  }
  #ap-navigation .ap-list-item:nth-of-type(2) {
    transition-delay: 0.1s;
  }
  #ap-navigation .ap-list-item:nth-of-type(3) {
    transition-delay: 0.15s;
  }
  #ap-navigation .ap-list-item:nth-of-type(4) {
    transition-delay: 0.2s;
  }

  #ap-navigation .ap-link p {
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    color: var(--foreground);
  }
}

/* Desktop Navigation */
@media only screen and (min-width: 48rem) {
  #ap-navigation {
    position: fixed;
    width: 100%;
    padding: 0.5rem 2rem;
    z-index: 1000;
    transition: box-shadow 0.4s ease-in-out, backdrop-filter 0.4s ease-in-out;
  }

  #ap-navigation.withBackground {
    background-color: hsl(30 50% 97% / 0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
  }

  #ap-navigation .ap-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  #ap-navigation .ap-toggle {
    display: none;
  }

  #ap-navigation .ap-logo,
  #ap-navigation .ap-nav,
  #ap-navigation .ap-list-wrapper {
    display: flex;
    align-items: center;
  }

  #ap-navigation .ap-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
  }

  #ap-navigation .ap-list-item {
    display: flex;
    align-items: center;
    padding: 0;
  }

  #ap-navigation .ap-link {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    position: relative;
  }

  #ap-navigation .ap-link p {
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    line-height: 1;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
  }

  #ap-navigation .ap-link:hover p {
    color: var(--primary);
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: auto;
  background-color: var(--sage-light);
  padding: 4rem 1.5rem 2rem;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 80rem;
  margin: auto;
}

.footer-col {
  grid-column: span 12;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col a,
.footer-col p {
  overflow-wrap: break-word;
  word-break: break-word;
  font-weight: 700;
}

.footer-col h3 {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--foreground);
}

.footer-col a {
  color: var(--muted-foreground);
  font-weight: 700;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-tagline {
  color: var(--secondary-foreground);
}

.footer-bottom {
  width: 100%;
  max-width: 80rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(140 30% 60% / 0.35);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-sm);
  color: var(--secondary-foreground);
  font-weight: 700;
}

@media only screen and (min-width: 48rem) {
  .footer-col {
    grid-column: span 4;
  }

  .footer-col--brand {
    grid-column: span 12;
  }
}

@media only screen and (min-width: 64rem) {
  .footer-col {
    grid-column: span 3;
  }

  .footer-col--brand {
    grid-column: span 3;
  }
}
