/* ========================================
   DRA. HELENA ROCHA — DENTAL CLINIC TEMPLATE
   Direction: warm clinical luxury
   ======================================== */

:root {
  /* Colors */
  --color-cream: #FDF9F3;
  --color-cream-dark: #F5EFE6;
  --color-sage: #2D5A4A;
  --color-sage-light: #E8F0EC;
  --color-sage-dark: #1F3F33;
  --color-terracotta: #E07A5F;
  --color-terracotta-dark: #C5634B;
  --color-charcoal: #1A1A1A;
  --color-charcoal-soft: #4A4A4A;
  --color-white: #FFFFFF;
  --color-whats: #25D366;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1200px;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Motion */
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(253, 249, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 90, 74, 0.06);
  transition: var(--transition);
}

.nav.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(26, 26, 26, 0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-sage);
}

.logo__mark {
  color: var(--color-terracotta);
  font-size: 1rem;
}

.logo--light {
  color: var(--color-white);
}

.logo--light .logo__mark {
  color: var(--color-terracotta);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a {
  position: relative;
  color: var(--color-charcoal-soft);
  transition: var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: var(--transition);
}

.nav__links a:hover {
  color: var(--color-sage);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-sage);
  border: 1.5px solid rgba(45, 90, 74, 0.2);
  border-radius: 50%;
  transition: var(--transition);
}

.nav__social:hover {
  background: var(--color-sage);
  color: var(--color-white);
  border-color: var(--color-sage);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-sage);
  transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.btn svg {
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--color-sage);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(45, 90, 74, 0.25);
}

.btn--primary:hover {
  background: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 90, 74, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-sage);
  border: 1.5px solid var(--color-sage);
}

.btn--ghost:hover {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-sage);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1);
}

.btn--light:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-2xl) + 4rem) 0 var(--space-2xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.blob--1 {
  width: 500px;
  height: 500px;
  background: var(--color-sage-light);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.blob--2 {
  width: 350px;
  height: 350px;
  background: rgba(224, 122, 95, 0.15);
  bottom: 10%;
  left: -5%;
  animation-delay: -2s;
}

.blob--3 {
  width: 280px;
  height: 280px;
  background: rgba(45, 90, 74, 0.08);
  top: 40%;
  right: 20%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 760px;
}

.hero--small {
  min-height: auto;
  padding: calc(var(--space-2xl) + 3rem) 0 var(--space-xl);
  text-align: center;
}

.hero--small .hero__inner {
  display: block;
}

.hero--small .hero__content {
  max-width: 640px;
  margin: 0 auto;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-charcoal-soft);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-white);
  border: 1px solid rgba(45, 90, 74, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal-soft);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
}

.trust-pill__stars {
  color: #F4B400;
  letter-spacing: 0.05em;
}

.trust-pill__icon {
  color: var(--color-sage);
  font-weight: 700;
}

/* ========================================
   TRUST BAR
   ======================================== */

.trust-bar {
  background: var(--color-sage);
  color: var(--color-white);
  padding: var(--space-lg) 0;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-bar__item strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.trust-bar__item span {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: var(--space-2xl) 0;
}

.section--cream {
  background: var(--color-cream-dark);
}

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

.section__header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section__header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.section__eyebrow--light {
  color: rgba(255, 255, 255, 0.8);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.section__title--light {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-charcoal-soft);
}

/* ========================================
   SERVICES
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 90, 74, 0.08);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(45, 90, 74, 0.1);
  border-color: rgba(45, 90, 74, 0.15);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sage-light);
  color: var(--color-sage);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-charcoal-soft);
}

/* ========================================
   ABOUT
   ======================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-sage-light);
}

.about__frame--map {
  background: var(--color-sage-light);
}

.about__frame--map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
}

.about__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 90, 74, 0.15), transparent);
  z-index: 1;
}

.about__badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  max-width: 220px;
  box-shadow: 0 16px 40px rgba(224, 122, 95, 0.3);
  z-index: 2;
}

.about__slogan {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-terracotta);
  margin-top: var(--space-sm);
}

.about__badge__number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.about__badge__text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.about__content p {
  color: var(--color-charcoal-soft);
  margin-bottom: var(--space-sm);
}

.about__list {
  list-style: none;
  margin-top: var(--space-md);
  display: grid;
  gap: var(--space-xs);
}

.about__list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-charcoal);
  font-weight: 500;
}

.about__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-sage);
  font-weight: 700;
}

/* ========================================
   FEATURES
   ======================================== */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature__number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.feature p {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 90, 74, 0.08);
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.03);
}

.testimonial__stars {
  color: #F4B400;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.testimonial p {
  font-size: 1.05rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial strong {
  font-weight: 700;
  color: var(--color-sage);
}

.testimonial span {
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
}

/* ========================================
   FAQ
   ======================================== */

.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-sm);
}

.faq__item {
  background: var(--color-white);
  border: 1px solid rgba(45, 90, 74, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item:hover {
  border-color: rgba(45, 90, 74, 0.15);
}

.faq__item summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

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

.faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-terracotta);
  font-weight: 400;
  transition: transform var(--transition);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--color-charcoal-soft);
}

/* ========================================
   FINAL CTA
   ======================================== */

.cta-section {
  background: var(--color-sage);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

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

.cta-section__content {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-white);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}

/* ========================================
   LEGAL CONTENT
   ======================================== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-sage);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p,
.legal-content li {
  color: var(--color-charcoal-soft);
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.legal-content a {
  color: var(--color-sage);
  text-decoration: underline;
}

.legal-content .btn {
  margin-top: var(--space-md);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__brand p {
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.footer__contact p,
.footer__hours p,
.footer__social p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer__instagram:hover {
  color: var(--color-terracotta);
}

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

/* ========================================
   MAP SECTION
   ======================================== */

.map-section {
  background: var(--color-cream-dark);
  padding: var(--space-2xl) 0;
}

.map-section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.map-section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.map-section__header p {
  color: var(--color-charcoal-soft);
  font-size: 1.05rem;
}

.map-section__frame {
  width: 100%;
  height: 450px;
  line-height: 0;
}

.map-section__frame iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(20%) contrast(1.05);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   FLOATING WHATSAPP
   ======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--color-whats);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
  .services-grid,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-cream);
    padding: var(--space-md);
    gap: var(--space-md);
    border-bottom: 1px solid rgba(45, 90, 74, 0.1);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.05);
  }

  .nav__toggle {
    display: flex;
  }

  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-sm);
  }

  .services-grid,
  .testimonials,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn--large {
    width: 100%;
  }

  .about__badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 1rem auto 0;
    max-width: 240px;
    text-align: center;
  }

  .nav__social {
    display: none;
  }

  .map-section__frame {
    height: 320px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
