 :root {
      --bg: #f7f4ef;
      --bg-soft: #6b6c6c;
      --card: rgba(255,255,255,0.52);
      --text: #6b6c6c;
      --muted: #6a5f57;
      --gold: #c79a3b;
      --gold-dark: #9e7321;
      --shadow: 0 20px 60px rgba(37, 24, 8, 0.14);
      --radius: 28px;
      --max: 1200px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Georgia", "Times New Roman", serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(200,100,200,0.12), transparent 28%),
        linear-gradient(180deg, #f9f4e2 0%, #f6efe6 100%);
      overflow-x: hidden;
    }

    body.modal-open {
      overflow: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 20% 15%, rgba(199,154,59,0.08), transparent 18%),
        radial-gradient(circle at 80% 30%, rgba(199,154,59,0.07), transparent 22%),
        radial-gradient(circle at 50% 85%, rgba(199,154,59,0.06), transparent 20%);
      z-index: -2;
    }

    .header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 20px 0;
      z-index: 999;
      pointer-events: none;
      transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .header.hide-logo {
      opacity: 0;
      transform: translateY(-20px);
    }

.logo {
    transition: transform 0.25s ease;
    width: 55%;
    height: 100%;
    top: 0px !important;
    left: 35%;
    z-index: 999999999999999999;
    position: relative;
    pointer-events: auto;
}

    .logo:hover {
      transform: scale(1.06);
    }

    .hero {
      min-height: 100vh;
      position: relative;
      display: flex;
      align-items: left;
      justify-content: center;
      padding: 0px;
      overflow: hidden;
      padding-bottom: 20px;
    }

    .hero-glow,
    .hero-ring,
    .hero-ring-2 {
      position: absolute;
      border-radius: 999px;
      pointer-events: none;
      transition: transform 0.12s linear;
      will-change: transform;
    }

    .hero-glow {
      width: 520px;
      height: 520px;
      right: -60px;
      top: -40px;
      background: radial-gradient(circle, rgba(199,154,59,0.22) 0%, rgba(199,154,59,0.08) 38%, transparent 72%);
      filter: blur(10px);
      z-index: 0;
    }

    .hero-ring {
      width: 560px;
      height: 560px;
      right: -120px;
      top: 40px;
      border: 1px solid rgba(199,154,59,0.26);
      z-index: 0;
    }

    .hero-ring-2 {
      width: 340px;
      height: 340px;
      left: -120px;
      bottom: 40px;
      border: 1px solid rgba(199,154,59,0.20);
      z-index: 0;
    }

    .hero-inner {
      width: 100%;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 48px;
      left: 5%;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .copy {
      position: relative;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: Arial, Helvetica, sans-serif;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      font-size: 0.78rem;
      color: var(--gold-dark);
      margin-bottom: 18px;
    }

    .eyebrow::before {
      content: "";
      width: 36px;
      height: 1px;
      background: linear-gradient(90deg, var(--gold), transparent);
    }

    h1 {
      font-size: clamp(2.4rem, 5vw, 4.2rem);
      line-height: 0.95;
      font-weight: 400;
      letter-spacing: -0.04em;
      max-width: 10ch;
      margin-bottom: 22px;
      font-weight: bold;
    }

    .lead {
      font-family: Arial, Helvetica, sans-serif;
      font-size: clamp(1rem, 1.55vw, 1.15rem);
      line-height: 1.3;
      color: var(--muted);
              width:70% !important;
    }

    .lead p + p {
      margin-top: 16px;
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 30px;
    }

    .btn {
      appearance: none;
      border: 0;
      text-decoration: none;
      cursor: pointer;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.96rem;
      padding: 15px 24px;
      border-radius: 999px;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 190px;
    }

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

    .btn-primary {
      color: white;
      background: #d3af37;
    }

    .btn-secondary {
      color: var(--text);
      background: rgba(255,255,255,0.6);
      border: 1px solid rgba(199,154,59,0.24);
      box-shadow: var(--shadow);
      backdrop-filter: blur(14px);
    }

    .gallery-btn {
      margin-top: 22px;
      background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.72) 100%);
      color: var(--text);
      border: 1px solid rgba(199,154,59,0.22);
      box-shadow: 0 18px 40px rgba(37, 24, 8, 0.12);
      min-width: 230px;
      gap: 10px;
    }

    .gallery-btn svg {
      flex: 0 0 18px;
    }

    .visual {
      position: relative;
      min-height: 700px;
      display: flex;
      align-items: center;
      justify-content: center;
      isolation: isolate;
    }

    .layer {
      position: absolute;
      will-change: transform;
    }

    .card {
      background: var(--card);
      border: 1px solid rgba(255,255,255,0.72);
      backdrop-filter: blur(18px);
      box-shadow: var(--shadow);
      border-radius: var(--radius);
      overflow: visible;
    }

    .portrait-wrap {
      width: 100%;
      aspect-ratio: 0.82;
      right: 90px;
      top: 50%;
      z-index: 5;
      padding: 18px;
      pointer-events: none;
    }

    .portrait {
      width: 130%;
      height: 130%;
      top: 0%;
      right: 20%;
      background: url('../imagens/drapamela.png') center/cover no-repeat;
      position: relative;
      pointer-events: none;
    }

    .portrait-badge {
      position: absolute;
      left: 18px;
      bottom: 18px;
      z-index: 2;
      background: rgba(255,255,255,0.76);
      color: #990099;
      padding: 14px 18px;
      border-radius: 18px;
      box-shadow: 0 10px 24px rgba(0,0,0,0.1);
      backdrop-filter: blur(14px);
      font-family: Arial, Helvetica, sans-serif;
    }

    .portrait-badge strong {
      display: block;
      font-size: 1rem;
      margin-bottom: 4px;
    }

    .portrait-badge span {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .clinic-a,
    .clinic-b,.clinic-c {
      width: 270px;
      aspect-ratio: 1.08;
      padding: 10px;
      z-index: 2;
      cursor: pointer;
      transition:
        box-shadow 0.4s ease,
        filter 0.4s ease;
    }

 .clinic-a {
  left: -50px;
  top: 5px;
}

    .clinic-b {
      left: -245px;
      top: 60%;
    }

    .clinic-c {
      left: 390px;
      top: 30%;
    }


    .clinic-a:hover,
    .clinic-b:hover, .clinic-c:hover {
      z-index: 30 !important;

    }

    .clinic-image {
      width: 100%;
      height: 100%;
      border-radius: 22px;
      background-size: cover;
      background-position: center;
      transition: filter 0.4s ease;
    }

    .clinic-a:hover .clinic-image,
    .clinic-b:hover .clinic-image,.clinic-b:hover .clinic-image  {
      filter: brightness(1.05) saturate(1.04);
    }

    .clinic-a .clinic-image {
      background-image: url('../imagens/foto2.jpg');
    }

    .clinic-b .clinic-image {
      background-image: url('../imagens/foto3.jpg');
    }

    .clinic-c .clinic-image {
      background-image: url('../imagens/foto4.jpg');
    }

    .gold-stroke {
      width: 190px;
      height: 190px;
      right: 14px;
      bottom: 18px;
      z-index: 1;
      border-radius: 42% 58% 60% 40% / 38% 38% 62% 62%;
      border: 1px solid rgba(199,154,59,0.35);
    }

    .section {
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto 90px;
    }

    .about-card {
      padding: 34px;
      display: grid;
      grid-template-columns: 0.95fr 1.05fr;
      gap: 28px;
      align-items: center;
    }

    .about-photo {
      min-height: 360px;
      border-radius: 24px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.08)),
        url('../imagens/foto1.jpg') center/cover no-repeat;
    }

    .about-text h2 {
      font-size: clamp(1.8rem, 3vw, 3.2rem);
      font-weight: 400;
      line-height: 1;
    
      margin-bottom: 20px;
    }

    .about-text p {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 1rem;
      line-height: 1.85;
        float: left;
      color: var(--muted);
    }

    .about-text p + p {
      margin-top: 14px;
    }

    .floating-chip {
      display: inline-flex;
      margin-top: 22px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(199,154,59,0.12);
      color: var(--gold-dark);
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.92rem;
      border: 1px solid rgba(199,154,59,0.16);
    }

    .footer-cta {
      text-align: center;
      padding: 36px 20px 90px;
    }

    .footer-cta h3 {
      font-size: clamp(1.8rem, 3vw, 3rem);
      font-weight: 400;
      margin-bottom: 12px;
    }

    .footer-cta p {
      font-family: Arial, Helvetica, sans-serif;
      color: var(--muted);
      margin-bottom: 24px;
      font-size: 1rem;
    }

    .whatsapp-float {
      position: fixed;
      right: 22px;
      bottom: 26px;
      z-index: 1200;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-radius: 999px;
      background: linear-gradient(135deg, #25D366 0%, #1ebe5b 100%);
      color: #fff;
      text-decoration: none;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      box-shadow: 0 18px 45px rgba(37, 211, 102, 0.32);
      transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    }

    .whatsapp-float:hover {
      transform: translateY(-4px) scale(1.03);
      box-shadow: 0 24px 60px rgba(37, 211, 102, 0.4);
      filter: brightness(1.03);
    }

    .whatsapp-float:active {
      transform: translateY(-1px) scale(0.99);
    }

    .whatsapp-float__icon {
      width: 24px;
      height: 24px;
      flex: 0 0 24px;
      display: block;
    }

    .whatsapp-float__text {
      display: flex;
      flex-direction: column;
      line-height: 1.05;
    }

    .whatsapp-float__text small {
      font-size: 0.72rem;
      font-weight: 600;
      opacity: 0.92;
      letter-spacing: 0.02em;
    }

    .whatsapp-float__text strong {
      font-size: 0.96rem;
      font-weight: 700;
    }

    .gallery-modal {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 30px 18px;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .gallery-modal.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .gallery-modal__backdrop {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at top, rgba(199,154,59,0.14), transparent 35%),
        rgba(20, 9, 15, 0.62);
      backdrop-filter: blur(10px);
    }

    .gallery-modal__dialog {
      position: relative;
      width: min(1120px, 100%);
      max-height: min(88vh, 920px);
      overflow: auto;
      border-radius: 32px;
      background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(249,244,238,0.95) 100%);
      border: 1px solid rgba(255,255,255,0.82);
      box-shadow: 0 35px 120px rgba(17, 9, 5, 0.25);
      padding: 30px;
      z-index: 1;
    }

    .gallery-modal__top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 24px;
    }

    .gallery-modal__intro {
      max-width: 760px;
    }

    .gallery-modal__intro h3 {
      font-size: clamp(1.8rem, 3vw, 3.1rem);
      line-height: 1;
      font-weight: 400;
      margin-bottom: 12px;
      color: var(--text);
    }

    .gallery-modal__intro p {
      font-family: Arial, Helvetica, sans-serif;
      color: var(--muted);
      line-height: 1.8;
      font-size: 1rem;
    }

    .gallery-close {
      appearance: none;
      border: 0;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      cursor: pointer;
      background: rgba(255,255,255,0.76);
      color: var(--text);
      box-shadow: 0 18px 30px rgba(37,24,8,0.12);
      font-size: 1.6rem;
      line-height: 1;
      flex: 0 0 52px;
      transition: transform 0.25s ease, background 0.25s ease;
    }

    .gallery-close:hover {
      transform: rotate(90deg) scale(1.04);
      background: rgba(255,255,255,0.94);
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 18px;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 26px;
      min-height: 240px;
      box-shadow: 0 20px 60px rgba(37,24,8,0.12);
      isolation: isolate;
      transform: translateY(0);
      transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .gallery-item:hover {
      transform: translateY(-6px);
      box-shadow: 0 28px 80px rgba(37,24,8,0.18);
    }

    .gallery-item::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(31,14,20,0.28) 100%);
      z-index: 1;
    }

    .gallery-item__image {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      transition: transform 0.6s ease;
    }

    .gallery-item:hover .gallery-item__image {
      transform: scale(1.06);
    }

    .gallery-item__caption {
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 18px;
      z-index: 2;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255,255,255,0.72);
      backdrop-filter: blur(12px);
      box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }

    .gallery-item__caption strong {
      display: block;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.95rem;
      color: var(--text);
      margin-bottom: 4px;
    }

    .gallery-item__caption span {
      display: block;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.86rem;
      line-height: 1.5;
      color: var(--muted);
    }

    .gallery-item--wide {
      grid-column: span 7;
      min-height: 320px;
    }

    .gallery-item--tall {
      grid-column: span 5;
      min-height: 320px;
    }

    .gallery-item--half {
      grid-column: span 4;
      min-height: 240px;
    }

    @media (max-width: 1024px) {
      .hero-inner,
      .about-card {
        grid-template-columns: 1fr;
      }

      .hero {
        padding-top: 32px;
        padding-bottom: 60px;
      }

      .visual {
        min-height: 760px;
      }

      .portrait-wrap {
        left: 50%;
        right: auto;
        top: 40px;
      }

      .clinic-a {
        left: 8%;
        top: 440px;
      }

      .clinic-b {
        left: auto;
        right: 8%;
        bottom: 40px;
      }

      .gold-stroke {
        right: 10%;
        bottom: 10px;
      }

      .gallery-item--wide,
      .gallery-item--tall,
      .gallery-item--half {
        grid-column: span 6;
      }
    }

    @media (max-width: 640px) {
      .hero {
        min-height: auto;
      }

      h1 {
        max-width: 12ch;
      }

      .visual {
        min-height: 620px;
      }

      .portrait-wrap {
        width: min(360px, 92vw);
      }

      .clinic-a,
      .clinic-b, .clinic-c {
        width: 180px;
      }

      .clinic-a {
        left: 0;
        top: 360px;
      }

      .clinic-b {
        right: 0;
        bottom: 10px;
      }

     .clinic-b {
        right: 100px;
        bottom: 10px;
      }


      .about-card {
        padding: 20px;
      }

      .about-photo {
        min-height: 260px;
      }

      .btn {
        width: 100%;
      }

      .whatsapp-float {
        right: 14px;
        bottom: 18px;
        padding: 13px 15px;
        gap: 10px;
      }

      .whatsapp-float__text small {
        display: none;
      }

      .whatsapp-float__text strong {
        font-size: 0.9rem;
      }

      .gallery-modal {
        padding: 16px;
      }

      .gallery-modal__dialog {
        padding: 20px;
        border-radius: 24px;
      }

      .gallery-modal__top {
        align-items: center;
      }

      .gallery-item--wide,
      .gallery-item--tall,
      .gallery-item--half {
        grid-column: span 12;
        min-height: 220px;
      }

      .gallery-close {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
      }
    }
    .social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #6b6c6c;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform .35s ease,
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    opacity .35s ease;
  opacity: .96;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
  opacity: 1;
}

.social-btn:active {
  transform: translateY(-1px) scale(.99);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 768px) {
  .social-row {
    gap: 10px;
    margin-top: 18px;
  }

  .social-btn {
    padding: 11px 16px;
    font-size: 14px;
  }
}

.reveal-shell {
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(70px) scale(0.96);
  animation: revealUpBlur 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity, filter;
}

.revel-logo {
  animation-delay: 1.2s;
  transition: transform 0.25s ease;
  width: 20%;
  height: 100%;
  top: -80px !important;
  left: 32%;
  z-index: 999999999999999999;
  position: relative;
  pointer-events: auto;
}
.reveal-portrait { animation-delay: 0.9s; }
.reveal-a { animation-delay: 0.2s; }
.reveal-c { animation-delay: 0.4s; }
.reveal-b { animation-delay: 0.6s; }
.reveal-stroke { animation-delay: 2.8s; }

@keyframes revealUpBlur {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(70px) scale(0.96);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.clinic-a .reveal-shell,
.clinic-b .reveal-shell,
.clinic-c .reveal-shell {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.portrait-wrap .reveal-shell {
  width: 100%;
  height: 100%;
}


.map-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
}

.map-copy {
  display: flex;
  flex-direction: column;
padding:40px !important;
}

.map-copy h2 {
  margin: 0 0 18px;
}

.map-address-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(153, 0, 153, 0.10);
  box-shadow: 0 18px 40px rgba(67, 23, 67, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
padding:40px !important;
}

.map-pin {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(153, 0, 153, 0.12) 0%, rgba(214, 163, 74, 0.18) 100%);
  color: #8a2d7c;
  box-shadow: inset 0 0 0 1px rgba(153, 0, 153, 0.08);
}

.map-pin svg {
  width: 20px;
  height: 20px;
}

.map-address-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #271726;
}

.map-address-text p {
  margin: 0;
  color: #5b5560;
  line-height: 1.7;
  font-size: 0.98rem;
}

.map-actions {
  margin-top: 0px;
}

.map-visual {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(249,241,248,0.88) 100%);
  border: 1px solid rgba(153, 0, 153, 0.10);
  box-shadow: 0 22px 60px rgba(72, 30, 67, 0.12);
}

#leafletMap {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(42, 20, 40, 0.16);
}

.leaflet-popup-content {
  margin: 14px 16px;
  font-family: inherit;
  color: #2f2431;
}

@media (max-width: 980px) {
  .map-card {
    grid-template-columns: 1fr;
  }

  .map-visual,
  #leafletMap {
    min-height: 340px;
  }
}



