@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette (Extracted and curated from logo.png - same clinic brand identity) */
  --primary-color: #8C1935;       /* Deep Burgundy/Wine */
  --primary-dark: #660E22;        /* Dark Wine */
  --primary-light: #B23250;       /* Lighter Wine for highlights */
  --accent-color: #B48D7C;        /* Champagne/Bronze Accent */
  --accent-hover: #9A7261;        /* Darker Bronze */
  --bg-color: #FCFAF8;            /* Warm Off-White/Ivory background */
  --bg-white: #FFFFFF;
  --bg-alt: #F3EFEA;              /* Subtle beige divider background */
  --bg-dark: #2B060F;             /* Rich dark wine black for dark section */
  --text-dark: #1E2220;           /* Elegant Charcoal */
  --text-muted: #555E59;          /* Softer text */
  --text-light: #FCFAF8;
  --whatsapp-color: #25D366;      /* Official WhatsApp Green */
  --whatsapp-hover: #20BA5A;

  /* Font Families */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout Variables */
  --container-width: 1200px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  /* Premium Box Shadows */
  --shadow-sm: 0 4px 12px rgba(140, 25, 53, 0.03);
  --shadow-md: 0 10px 30px rgba(12, 24, 18, 0.05);
  --shadow-lg: 0 20px 45px rgba(12, 24, 18, 0.08);
  --shadow-premium-hover: 0 22px 50px rgba(140, 25, 53, 0.12);
}

/* Base Styles & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-white {
  background-color: var(--bg-white);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent-color);
}

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

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-radius: 50px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--primary-color);
}

.section-dark .badge {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.section-dark .section-title {
  color: var(--text-light);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-dark .section-subtitle {
  color: rgba(252, 250, 248, 0.7);
}

/* Button & CTA Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(140, 25, 53, 0.2);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(180, 141, 124, 0.25);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: var(--bg-white);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Pulse animation for key CTAs */
.pulse-animation {
  animation: pulse-effect 2.5s infinite;
}

@keyframes pulse-effect {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp-color);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  animation: floating-pulse 2s infinite;
}

.whatsapp-floating svg {
  width: 32px;
  height: 32px;
}

.whatsapp-floating:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes floating-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(252, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 141, 124, 0.15);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-cta .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

/* HERO Section with Fading Slide Support */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
  background-color: var(--bg-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
  padding: 6rem 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(43, 6, 15, 0.75) 0%, rgba(43, 6, 15, 0.55) 45%, rgba(12, 24, 18, 0.15) 100%);
  z-index: 1;
}

/* Slide backgrounds */
.hero-slide-1 {
  background-image: url('../img/secao-hero-ronco.jpg');
}

.hero-slide-2 {
  background-image: url('../img/secao-hero-implante.jpg');
}

@media (min-width: 1400px) {
  .hero-slide {
    background-position: center right 15%;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
}

.hero-content .badge {
  background-color: var(--primary-color) !important;
  color: var(--bg-white) !important;
  border-color: var(--primary-color) !important;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.hero .sub-headline {
  font-size: 1.1rem;
  color: rgba(252, 250, 248, 0.85);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

/* Slider Controls */
.slider-dots {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(252, 250, 248, 0.35);
  border: 1px solid rgba(180, 141, 124, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot:hover {
  background-color: rgba(252, 250, 248, 0.7);
  transform: scale(1.1);
}

.slider-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.3);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(180, 141, 124, 0.4);
}

/* "Você Sofre Com..." Grid & Sticky Column */
.varizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.varizes-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.varizes-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.problems-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.problem-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.problem-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(140, 25, 53, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.problem-text strong {
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.15rem;
}

.problem-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.varizes-image-wrapper {
  position: sticky;
  top: 110px;
  z-index: 5;
}

.varizes-img-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(180, 141, 124, 0.15);
}

.varizes-image-mobile {
  display: none;
}

/* Timeline, FAQ & Forms */
.faq-container {
  max-width: 800px;
  margin: 2.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(180, 141, 124, 0.15);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(180, 141, 124, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  border-color: rgba(140, 25, 53, 0.25);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 1.5rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  user-select: none;
  transition: var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(180, 141, 124, 0.1);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon-indicator {
  transform: rotate(180deg);
  background-color: rgba(140, 25, 53, 0.08);
  color: var(--primary-color);
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(180, 141, 124, 0.12);
}

.faq-answer {
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  background-color: rgba(252, 250, 248, 0.5);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Conheça o Médico */
.medico-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

.medico-image-wrapper {
  position: relative;
}

.medico-img-container {
  border-radius: 0;
  overflow: visible;
  background-color: transparent;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.medico-img-container img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 15px 30px rgba(43, 6, 15, 0.12));
  transition: var(--transition-smooth);
}

.medico-img-container img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 20px 40px rgba(43, 6, 15, 0.18));
}

.medico-info-box {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bg-white);
  padding: 1.2rem 1.8rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--primary-color);
  border-top: 1px solid rgba(180, 141, 124, 0.15);
  border-right: 1px solid rgba(180, 141, 124, 0.15);
  border-bottom: 1px solid rgba(180, 141, 124, 0.15);
}

.medico-info-box .crm-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.medico-content h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.medico-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: 2.2rem;
}

.medico-bio {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Premium Milestone Card Layout for Dra. Camila */
.milestones-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.milestone-card {
  background: var(--bg-white);
  border: 1px solid rgba(180, 141, 124, 0.15);
  border-radius: var(--border-radius-md);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.milestone-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-white);
}

.milestone-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milestone-year-badge {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  background-color: rgba(140, 25, 53, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.milestone-card:hover .milestone-year-badge {
  color: var(--bg-white);
  background-color: var(--primary-color);
}

.milestone-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(180, 141, 124, 0.1);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.milestone-card:hover .milestone-icon {
  background-color: rgba(140, 25, 53, 0.08);
  color: var(--primary-color);
  transform: scale(1.08);
}

.milestone-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.milestone-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Responsive timeline cards */
@media (max-width: 600px) {
  .milestones-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Contato & Footer */
.contato-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: stretch;
}

.contato-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contato-heading h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contato-heading p {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 3.5rem;
}

.contact-channel-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(180, 141, 124, 0.12);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.whatsapp-c {
  background-color: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp-color);
}

.channel-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.channel-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.channel-text a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

.channel-text a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.channel-btn-route {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.channel-btn-route:hover {
  color: var(--primary-color);
}

.map-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(180, 141, 124, 0.18);
  height: 100%;
  min-height: 420px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background-color: var(--primary-dark);
  color: rgba(252, 250, 248, 0.8);
  padding: 3rem 0;
  border-top: 1px solid rgba(180, 141, 124, 0.15);
  font-size: 0.85rem;
}

.footer-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(252, 250, 248, 0.1);
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright p {
  line-height: 1.6;
}

/* Media Queries (Responsive Design) */
@media (max-width: 1024px) {
  .hero-grid,
  .varizes-grid,
  .medico-grid,
  .contato-grid {
    gap: 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .varizes-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --border-radius-lg: 16px;
  }

  html {
    scroll-padding-top: 20px;
  }

  .header {
    position: relative !important;
    top: auto !important;
  }

  .nav-cta {
    display: none !important;
  }

  .section {
    padding: 4.5rem 0;
  }

  .navbar {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo img {
    height: 80px;
  }

  .hero {
    padding: 4.5rem 0 !important;
    min-height: 650px !important;
  }

  .hero-slide {
    padding: 4.5rem 0 !important;
  }


  .hero-slide::before {
    background: linear-gradient(180deg, rgba(43, 6, 15, 0.55) 0%, rgba(43, 6, 15, 0.75) 100%) !important;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero .sub-headline {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .varizes-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .varizes-image-wrapper {
    display: none !important;
  }

  .varizes-image-mobile {
    display: block;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .medico-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .medico-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .medico-info-box {
    right: 1rem;
    bottom: -1rem;
    padding: 0.8rem 1.2rem;
  }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .map-wrapper {
    min-height: 320px;
  }

  .footer-navbar {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-copyright {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
  }

  .whatsapp-floating {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-floating svg {
    width: 28px;
    height: 28px;
  }
}
