:root {
  --primary: #a8488f;
  --primary-deep: #5f285b;
  --mint: #90b59d;
  --sky: #cde3e8;
  --cream: #fff8f1;
  --ink: #25323a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.glass-nav,
.glass-panel,
.hero-card,
.service-card,
.map-shell,
.mobile-menu,
.modal-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 24px 80px rgba(37, 50, 58, 0.14);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.glass-nav {
  border-radius: 8px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.logo-mark::after {
  content: "♥";
  margin-left: 3px;
  color: #f7d9ea;
  font-size: 1rem;
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--primary);
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--primary-deep);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.whatsapp-btn,
.cta-primary,
.cta-secondary,
.mobile-whatsapp,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-btn,
.cta-primary,
.mobile-whatsapp,
.contact-actions a:first-child {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  box-shadow: 0 18px 36px rgba(168, 72, 143, 0.28);
}

.whatsapp-btn {
  min-height: 44px;
  padding: 0 18px;
}

.cta-primary,
.cta-secondary {
  min-height: 56px;
  padding: 0 24px;
}

.cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.whatsapp-btn:hover,
.cta-primary:hover,
.cta-secondary:hover,
.mobile-whatsapp:hover,
.contact-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(37, 50, 58, 0.2);
}

.mobile-trigger {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.mobile-trigger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-trigger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-trigger.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-trigger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  border-radius: 8px;
  padding: 14px;
}

.mobile-menu a {
  display: flex;
  min-height: 46px;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
  color: var(--ink);
}

.mobile-whatsapp {
  margin-top: 8px;
  color: white !important;
}

.header-hidden {
  transform: translateY(-120%);
}

.hero-section {
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  filter: blur(0.2px);
  animation: floaty 7s ease-in-out infinite;
}

.hero-orbit-one {
  right: 8%;
  top: 18%;
  width: 160px;
  height: 160px;
}

.hero-orbit-two {
  bottom: 12%;
  left: 7%;
  width: 96px;
  height: 96px;
  animation-delay: -2s;
}

.eyebrow {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  padding: 0.55rem 0.85rem;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card {
  overflow: hidden;
  border-radius: 8px;
  animation: cardFloat 6.5s ease-in-out infinite;
}

.hero-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero-card-media img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-card:hover img,
.gallery-item:hover img {
  transform: scale(1.05);
}

.hero-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-card span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.section-wrap {
  padding: 96px 0;
}

.section-title {
  margin: 0 auto 44px;
  max-width: 760px;
}

.section-title span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(168, 72, 143, 0.1);
  padding: 0.45rem 0.7rem;
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title h2 {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
}

.section-title p {
  margin-top: 16px;
  color: rgba(37, 50, 58, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.glass-panel {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.feature-pill {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(168, 72, 143, 0.09);
  color: var(--primary-deep);
  font-weight: 900;
  text-align: center;
}

.service-band {
  background:
    linear-gradient(135deg, rgba(205, 227, 232, 0.84), rgba(144, 181, 157, 0.35)),
    var(--cream);
}

.service-card {
  min-height: 330px;
  border-radius: 8px;
  padding: 34px 28px;
  text-align: center;
}

.service-card h3 {
  color: var(--primary-deep);
  font-size: 1.35rem;
  font-weight: 900;
}

.service-card p {
  margin-top: 15px;
  color: rgba(37, 50, 58, 0.72);
  line-height: 1.8;
}

.text-primary-DEFAULT,
.text-primary {
  color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  box-shadow: 0 22px 54px rgba(37, 50, 58, 0.12);
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 50, 58, 0.65), transparent 52%);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: white;
  font-weight: 900;
}

.contact-band {
  background:
    linear-gradient(160deg, rgba(95, 40, 91, 0.92), rgba(37, 50, 58, 0.9)),
    var(--primary-deep);
}

.contact-band .section-title h2,
.contact-band .section-title p {
  color: white;
}

.contact-band .section-title span {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.contact-info {
  padding: 24px;
}

.clinic-highlight {
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.clinic-highlight span,
.clinic-highlight small {
  display: block;
  color: rgba(37, 50, 58, 0.66);
  font-weight: 800;
}

.clinic-highlight strong {
  display: block;
  margin: 6px 0;
  color: var(--primary-deep);
  font-size: 1.1rem;
  line-height: 1.4;
}

.contact-info dl {
  display: grid;
  gap: 10px;
}

.contact-info dl div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  padding: 12px 14px;
}

.contact-info dt {
  color: var(--primary-deep);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-info dd {
  margin-top: 3px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-actions a {
  min-height: 48px;
  padding: 0 16px;
  text-align: center;
}

.contact-actions a:last-child {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-deep);
}

.hours {
  margin-top: 16px;
  color: white;
  font-weight: 800;
  line-height: 1.6;
}

.map-shell {
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
}

.map-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

.footer-section {
  background: var(--ink);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  line-height: 1.6;
}

.footer-section button {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(37, 50, 58, 0.72);
  padding: 18px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 32px;
}

.modal-card h2 {
  margin-bottom: 20px;
  color: var(--primary-deep);
  font-size: 1.9rem;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: rgba(168, 72, 143, 0.1);
  color: var(--primary-deep);
  font-size: 1.7rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-22px);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }
}

@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-tall {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .section-wrap {
    padding: 72px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .hero-orbit {
    display: none;
  }

  .modal-card {
    padding: 28px 20px;
  }
}
