/* Shared refinements; the original visual system remains in style.css. */
:root { --gray: #686166; }
html { scroll-padding-top: 112px; }
body { overflow-wrap: break-word; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 11000; padding: 12px 20px; border-radius: 12px; background: white; color: var(--primary); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.header-wrapper { width: calc(100% - 48px); max-width: 1440px; }
.navbar, .navbar.scrolled { padding: 10px 22px; gap: 18px; background: rgba(255,255,255,.93); border-color: rgba(124,42,102,.12); }
.logo { white-space: nowrap; flex-shrink: 0; }
.nav-menu { gap: 2px; min-width: 0; }
.nav-link { padding: 10px 9px; font-size: .8rem; white-space: nowrap; opacity: 1; color: #5d545b; }
.nav-actions { flex-shrink: 0; }
.lang-btn, .mobile-toggle { min-height: 44px; }
.lang-dropdown { min-width: 142px; }
.lang-dropdown a { min-height: 44px; display: flex; align-items: center; }
.lang-dropdown a.active { pointer-events: auto; color: var(--primary); background: var(--light-grey); }
.btn { min-height: 48px; gap: 12px; text-align: center; line-height: 1.45; }
.hero-floating-card { background: rgba(255,255,255,.3); backdrop-filter: blur(35px) saturate(130%); -webkit-backdrop-filter: blur(35px) saturate(130%); border: 1px solid rgba(255,255,255,.45); max-width: 480px; padding: 36px 36px; border-radius: 28px; box-shadow: 0 20px 45px rgba(124,42,102,.07); }
.hero-floating-card:hover { background: rgba(255,255,255,.38); border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 25px 50px rgba(124,42,102,.1); }
.hero-card-title { font-size: clamp(2rem,3.2vw,2.75rem); color: var(--primary); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 12px; }
.hero-card-desc { color: var(--dark); font-size: 1.05rem; line-height: 1.55; margin-bottom: 24px; }
.hero { min-height: 820px; }
.intro-text { font-size: clamp(1.2rem,2.8vw,1.8rem) !important; }
.intro-block { overflow: hidden; }
.about-grid > *, .lifestyle-grid > *, .contact-grid > *, .contact-left-grid > *, .specialties-row-top > *, .reviews-grid > * { min-width: 0; }
.about-text p, .lifestyle-bio-col p { line-height: 1.8; }
.specialty-detail-link { display: inline-flex; gap: 12px; align-items: center; color: var(--primary); font-size: .9rem; font-weight: 600; margin-top: 18px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.specialty-item-title { line-height: 1.3; }
.specialty-item-icon-box { flex-shrink: 0; }
.glass-card-tab { appearance: none; border: 0; background: none; color: var(--dark); min-height: 44px; cursor: pointer; }
.glass-card-tabs { flex-wrap: wrap; }
.glass-card-actions { flex-wrap: wrap; }
.glass-btn-link { min-width: 110px; }
.footer-nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.footer-top { gap: 30px; }
.footer-link, .footer-legal-link { display: inline-flex; align-items: center; min-height: 32px; }
.footer-legal-links { justify-content: inherit; }
.clinic-details a { overflow-wrap: anywhere; }
.cookie-banner { max-height: min(70vh, 480px); overflow-y: auto; z-index: 2000; }
.cookie-buttons { flex-wrap: wrap; }
.cookie-btn { min-height: 44px; }
.reveal { opacity: 1; transform: none; }
/* Content is always readable if scripts, observers, or animations are unavailable. */
.reveal.active { opacity: 1; transform: none; }
.vision-panel { cursor: default; }
.vision-panel:focus-within { flex: 2.2 !important; }
.vision-panel:focus-within .vision-panel-desc { opacity: 1 !important; max-height: none !important; margin-top: 15px !important; }
.vision-glass-card { background: rgba(255,255,255,.92); }
.vision-panel-desc { line-height: 1.65; }
.legal-content-pane { overflow-wrap: anywhere; min-width: 0; }
.instagram-video-grid > * { min-width: 0; }
.btn-instagram-follow { max-width: 100%; overflow-wrap: anywhere; }
.instagram-point-item > span { min-width: 0; }
.tab-content { display: block; }
.js .tab-content:not(.active) { display: none; }

@media (max-width: 1279px) {
  .mobile-toggle { display: block; width: 44px; }
  .nav-menu { position: absolute; top: calc(100% + 12px); left: 0; width: 100%; transform: translateY(-10px); flex-direction: column; align-items: stretch; gap: 3px; padding: 14px; border: 1px solid var(--gray-light); border-radius: 24px; background: white; box-shadow: 0 16px 45px rgba(45,38,42,.1); opacity: 0; visibility: hidden; pointer-events: none; max-height: calc(100dvh - 120px); overflow-y: auto; }
  .nav-menu.active { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-link { width: 100%; min-height: 44px; text-align: left; padding: 10px 18px; font-size: .95rem; }
  .navbar, .navbar.scrolled { padding: 8px 18px; }
}
@media (min-width: 992px) {
  /* The medical philosophy remains fully readable without hover or a mouse. */
  .vision-accordion { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
  .vision-panel { height: auto; min-height: 630px; display: flex; align-items: flex-end; }
  .vision-glass-card { position: relative; inset: auto; margin: 220px 16px 16px; width: calc(100% - 32px); padding: 24px; }
  .vision-panel .vision-panel-desc, .vision-accordion:hover .vision-panel:first-child .vision-panel-desc, .vision-panel:hover .vision-panel-desc { max-height: none !important; opacity: 1 !important; margin-top: 15px !important; }
}
@media (max-width: 991px) {
  .section { padding: 72px 0; }
  .footer-top { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
  .vision-panel { min-height: 320px; display: flex; align-items: flex-end; }
  .vision-glass-card { margin: 160px 18px 18px; width: calc(100% - 36px); background: rgba(255,255,255,.93); }
}
@media (max-width: 768px) {
  .header-wrapper { top: 12px; width: calc(100% - 24px); }
  .navbar, .navbar.scrolled { padding: 6px 12px; gap: 8px; }
  .container { width: 100%; padding-inline: 24px; }
  .logo { font-size: 1.15rem; }
  .lang-btn { padding-inline: 10px; }
  .nav-actions { gap: 4px; }
  .hero { height: 88svh; min-height: 620px; max-height: 920px; background-position: 58% center; }
  .hero-floating-card { display: block !important; position: absolute; top: auto; bottom: 110px; left: 20px; right: 20px; width: auto; max-width: none; padding: 22px 20px; border-radius: 22px; background: rgba(255,255,255,.45); backdrop-filter: blur(30px) saturate(130%); -webkit-backdrop-filter: blur(30px) saturate(130%); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 16px 40px rgba(124,42,102,.1); z-index: 10; }
  .hero-card-title { font-size: clamp(1.6rem,6.2vw,2.15rem); margin-bottom: 8px; }
  .hero-card-desc { font-size: .92rem; margin-bottom: 16px; line-height: 1.45; }
  .hero-floating-card .btn { width: 100%; min-height: 44px; }
  .hero-ticker { bottom: 25px; }
  .ticker-track span { font-size: 3.5rem; }
  .section-header { margin-bottom: 36px; }
  .section-title, .about-text .section-title { font-size: clamp(1.8rem,6.8vw,2.5rem) !important; }
  .about-img { max-height: 520px; width: 100%; object-fit: cover; }
  .about-features { grid-template-columns: 1fr; }
  .lifestyle-card { max-width: 100%; width: 100%; }
  .lifestyle-cards-stack { align-items: stretch; }
  .contact-title-main { font-size: 2.35rem; }
  .contact-card-title { font-size: 2.4rem; }
  .footer-top, .footer-bottom { align-items: flex-start; text-align: left; }
  .footer-nav { flex-direction: row; align-items: flex-start; justify-content: flex-start; }
  .footer-bottom { gap: 24px; }
  .legal-content-pane { padding: 28px 22px; }
  .cookie-banner { width: calc(100% - 24px); bottom: max(12px,env(safe-area-inset-bottom)); padding: 20px; }
}
@media (max-width: 380px) {
  .hero-floating-card { bottom: 95px; padding: 18px 16px; border-radius: 18px; }
  .hero-card-title { font-size: 1.45rem; margin-bottom: 6px; }
  .hero-card-desc { font-size: .85rem; margin-bottom: 14px; }
  .container { padding-inline: 20px; }
  .navbar .logo { font-size: 1rem; }
  .lang-btn { padding-inline: 7px; }
  .specialty-item-card { flex-direction: column; }
  .review-card { padding: 22px; }
  .review-card-top { flex-wrap: wrap; gap: 12px; }
  .contact-card-right { padding: 26px; }
  .btn-instagram-follow { font-size: .85rem; padding: 14px 18px; gap: 8px; }
  .video-phone-header { padding-inline: 4px; gap: 8px; font-size: .75rem; }
}

.review-card.featured {
  background: linear-gradient(135deg, rgba(124,42,102,.04) 0%, rgba(255,255,255,.98) 100%);
  border-color: rgba(124,42,102,.22);
  box-shadow: 0 10px 30px rgba(124,42,102,.05);
}
@media (min-width: 992px) {
  .review-card.featured {
    grid-column: 1 / -1;
    padding: 34px 40px;
  }
  .review-card.featured .review-body-text {
    font-size: 1.05rem;
    line-height: 1.75;
  }
}
@media (min-width: 681px) and (max-width: 991px) {
  .review-card.featured {
    grid-column: 1 / -1;
    padding: 30px;
  }
}
@media (max-height: 600px) and (min-width: 769px) {
  .hero { min-height: 780px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { transform: none; }
}
