/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --rose-50: #fdf2f8;
  --rose-100: #fce7f3;
  --rose-200: #fbcfe8;
  --rose-300: #f9a8d4;
  --rose-400: #f472b6;
  --rose-500: #ec4899;
  --rose-600: #db2777;
  --rose-700: #be185d;
  --rose-800: #9d174d;
  --rose-900: #831843;

  --bg: #ffffff;
  --text: #212121;
  --muted: #6b6b6b;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}



/* ===== UTILITIES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid var(--rose-500);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--rose-500);
  color: white;
  border-color: var(--rose-500);
}

.btn-primary:hover {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-large {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--rose-500);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav__list {
  display: flex;
  gap: var(--spacing-lg);
}

.nav__link {
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--rose-500);
  background-color: var(--rose-50);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.nav__toggle:hover,
.nav__close:hover {
  background-color: var(--rose-50);
  color: var(--rose-500);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('assets/hero-bg.jpg'); /* sua imagem */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate; /* garante que o overlay fique corretamente por cima */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45); /* quanto maior o último valor (0.45), mais escura a imagem */
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__content {
  display: block;               /* agora aparece em desktop também */
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 10px 30px var(--shadow);
  max-width: 560px;
  width: 100%;
  margin-inline: auto;          /* garante centralização no desktop */
}
@media (max-width: 768px) {
  .hero__content { display: block; }
}

.hero__title {
  font-size: var(--font-size-3xl);
  color: var(--text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: var(--font-size-base);
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

/* No mobile mostramos o título e o botão */
@media (max-width: 768px) {
  .hero__content { display: block; }
}

/* Em telas maiores, mantemos o hero somente com a foto de fundo */
@media (min-width: 769px) {
  .hero { min-height: calc(100vh - var(--header-height)); }
}

/* ===== SWIPER CUSTOMIZATION ===== */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--rose-500);
  width: 30px;
  height: 30px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
}

.swiper-pagination-bullet {
  background-color: var(--rose-300);
}

.swiper-pagination-bullet-active {
  background-color: var(--rose-500);
}

/* ===== REELS CARDS ===== */
.reel-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
  height: 300px;
  display: flex;
  flex-direction: column;
}

.reel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.reel-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.reel-card__content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reel-card__caption {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.reel-card__link {
  color: var(--rose-500);
  font-weight: 500;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.reel-card__link:hover {
  color: var(--rose-600);
}

/* ===== CLINIC SECTION ===== */
.clinic {
  background-color: var(--bg);
}

.clinic__container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-3xl);
}

.clinic__text {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--muted);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.gallery__item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.gallery__item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px var(--shadow);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery__item:hover .gallery__image {
  transform: scale(1.1);
}

/* ===== TEAM SECTION ===== */
.team {
  background-color: var(--rose-50);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.team-card {
  background: white;
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px var(--shadow);
}

.team-card__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-lg);
  border: 4px solid var(--rose-200);
  transition: var(--transition);
}

.team-card:hover .team-card__photo {
  border-color: var(--rose-500);
}

.team-card__name {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.team-card__specialties {
  list-style: none;
}

.team-card__specialty {
  background-color: var(--rose-100);
  color: var(--rose-700);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  margin-right: var(--spacing-sm);
}

/* ===== VALUES SECTION ===== */
.values {
  background-color: var(--bg);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.value-card {
  text-align: center;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  background: white;
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.value-card__icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
  display: block;
}

.value-card__label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: var(--rose-50);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
}

.service-card {
  background: white;
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px var(--shadow);
}

.service-card__title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--rose-600);
}

.service-card__description {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

/* ===== MAP SECTION ===== */
.map {
  background-color: var(--bg);
}

.map__wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

/* ===== REVIEWS SECTION ===== */
/* Container / layout */
.reviews .reviews__container { padding-top: 1rem; background-color: #fff1f2;  }
.reviews-swiper { overflow: hidden; padding: 0.5rem 0 2.5rem; }
.swiper-slide { height: auto; }

/* Card */
.review-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  height: 100%;
  display: grid;
  gap: .6rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.review-card__author {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}
.review-card__text {
  margin: 0;
  color: #333;
  line-height: 1.55;
  font-size: .95rem;
}
.review-card__foot {
  display: flex; align-items: center; justify-content: space-between;
}
.review-card__date {
  font-size: .85rem;
  color: #777;
}

/* Estrelas bonitas (SVG via mask) */
.review-card__stars {
  --size: 18px;           /* tamanho da estrela */
  --gap: 4px;             /* espaço entre estrelas */
  --stars: 5;             /* total de estrelas */
  --fill: #ffb703;        /* cor cheia */
  --empty: #e7e7e9;       /* cor vazia */

  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  gap: var(--gap);
}
.review-card__stars::before,
.review-card__stars::after {
  content: "";
  height: var(--size);
  width: calc(var(--size) * var(--stars) + var(--gap) * (var(--stars) - 1));
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="88" height="16" viewBox="0 0 88 16"><defs><symbol id="s"><path d="M8 0l2.1 4.8 5.2.4-3.9 3.4 1.2 5.1L8 11.5 3.4 13.7l1.2-5.1L.7 5.2l5.2-.4L8 0z"/></symbol></defs><use href="%23s" x="0"/><use href="%23s" x="18"/><use href="%23s" x="36"/><use href="%23s" x="54"/><use href="%23s" x="72"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="88" height="16" viewBox="0 0 88 16"><defs><symbol id="s"><path d="M8 0l2.1 4.8 5.2.4-3.9 3.4 1.2 5.1L8 11.5 3.4 13.7l1.2-5.1L.7 5.2l5.2-.4L8 0z"/></symbol></defs><use href="%23s" x="0"/><use href="%23s" x="18"/><use href="%23s" x="36"/><use href="%23s" x="54"/><use href="%23s" x="72"/></svg>') center / contain no-repeat;
  display: block;
  background: var(--empty);
  border-radius: 2px;
}
.review-card__stars::after {
  background: var(--fill);
  width: calc((attr(data-rating number, 0) / 5) * (var(--size) * var(--stars) + var(--gap) * (var(--stars) - 1)));
  overflow: hidden;
}

/* Botões e paginação do Swiper */
.reviews .swiper-pagination { bottom: .4rem !important; }
.reviews .swiper-pagination-bullet { opacity: .5; }
.reviews .swiper-pagination-bullet-active { opacity: 1; }

.reviews .swiper-button-prev,
.reviews .swiper-button-next {
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.reviews .swiper-button-prev::after,
.reviews .swiper-button-next::after {
  font-size: 18px; color: #333;
}
.reviews .swiper-button-prev:hover,
.reviews .swiper-button-next:hover {
  transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
  .review-card { padding: .9rem 1rem; }
  .review-card__author { font-size: .95rem; }
}


/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-3xl);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.contact__icon {
  background-color: var(--rose-100);
  color: var(--rose-600);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.contact__details h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.contact__details p,
.contact__details a {
  color: var(--muted);
  transition: var(--transition-fast);
}

.contact__details a:hover {
  color: var(--rose-500);
}

.contact__social h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--text);
}

.social__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.social__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--rose-100);
  color: var(--rose-600);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
}

.social__link:hover {
  background-color: var(--rose-500);
  color: white;
  transform: translateX(5px);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer__brand h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--rose-300);
}

.footer__brand p {
  color: #9ca3af;
  line-height: 1.6;
}

.footer__links h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__links a {
  color: #9ca3af;
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--rose-300);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .clinic__container {
    grid-template-columns: 1fr;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .nav__link {
    font-size: var(--font-size-lg);
  }
  
  .nav__toggle,
  .nav__close {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-2xl);
  }
  
  .team__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .values__grid {
    grid-template-columns: 1fr;
  }
  
  .hero__title {
    font-size: var(--font-size-4xl);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-lg);
  }
  
  .btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
  }
  
  .team-card,
  .service-card {
    padding: var(--spacing-lg);
  }
  
  .hero__reels {
    padding: var(--spacing-lg);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--rose-500);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--rose-500);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: rgba(0, 0, 0, 0.3);
  }
  
  .btn-primary {
    border: 2px solid var(--text);
  }
  
  .nav__link:hover,
  .nav__link:focus {
    border: 1px solid var(--rose-500);
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1); /* deixa o ícone branco */
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Animação pulsante suave */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(37,211,102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}
.whatsapp-float {
  animation: pulse 2.5s infinite;
}

/* Em telas menores (mobile) */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }
}
