/* ==========================================================================
   Camila Almeida - Cirurgiã-Dentista
   ========================================================================== */

:root {
  --bg-cream: #f3ede7;
  --bg-cream-2: #e9ded4;
  --rose: #cba587;
  --rose-dark: #b98d6e;
  --brown: #5c4433;
  --brown-dark: #3e2f26;
  --text-main: #3e2f26;
  --text-soft: #6b5a4b;
  --white: #fffdfb;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Poppins", "Segoe UI", sans-serif;

  --radius: 18px;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-cream);
  line-height: 1.65;
  font-size: 16px;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

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

.eyebrow {
  font-family: var(--font-sans);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--rose-dark);
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--brown-dark);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 10px; }

p { color: var(--text-soft); }

.lead {
  font-size: 19px;
  max-width: 620px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(92, 68, 51, 0.35);
}

.btn-outline {
  border-color: var(--brown);
  color: var(--brown);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 237, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92, 68, 51, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: inline-block;
  line-height: 1;
  text-align: center;
}

.nav-brand .nav-brand-name-wrap {
  position: relative;
  display: inline-block;
}

.nav-brand .nav-brand-mono {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: "Mea Culpa", cursive;
  font-size: 34px;
  color: var(--brown-dark);
  opacity: 0.18;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.nav-brand .nav-brand-name {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 23px;
  color: var(--brown-dark);
  letter-spacing: 0.5px;
  z-index: 1;
}

.nav-brand .nav-brand-role {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--brown-dark);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--rose-dark);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--rose-dark);
}

.nav-cta {
  background: var(--brown);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--brown-dark);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-2) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lead {
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-monogram {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 120px;
  color: rgba(255, 253, 251, 0.9);
}

.hero-photo-frame {
  width: 260px;
  aspect-ratio: 0.582;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(62, 47, 38, 0.3);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- Stat / Trust strip ---------- */

.trust-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 36px 0;
  border-top: 1px solid rgba(92, 68, 51, 0.12);
  border-bottom: 1px solid rgba(92, 68, 51, 0.12);
}

.trust-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.trust-item strong {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--brown);
  display: block;
}

.trust-item span {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.grid-4 .card {
  padding: 26px 22px;
}

.grid-4 .card h3 {
  font-size: 19px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 10px 30px rgba(92, 68, 51, 0.08);
  height: 100%;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.card .icon.icon-img {
  background: none;
  overflow: hidden;
}

.card .icon.icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.service-list {
  margin-top: 14px;
}

.service-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(92, 68, 51, 0.15);
  color: var(--text-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "•";
  color: var(--rose-dark);
  font-weight: 700;
}

/* ---------- About split ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.split-img {
  aspect-ratio: 0.582;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--bg-cream-2), var(--rose));
  position: relative;
  overflow: hidden;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.brand-mark {
  position: relative;
  display: inline-block;
  text-align: center;
  margin-bottom: 6px;
}

.brand-mark .brand-monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-family: "Mea Culpa", cursive;
  font-size: 80px;
  color: var(--brown-dark);
  opacity: 0.18;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}

.brand-mark .brand-name {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 44px;
  color: var(--brown-dark);
  z-index: 1;
}

.split-img::after {
  content: "Ca";
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: "Mea Culpa", cursive;
  font-size: 52px;
  line-height: 1;
  color: var(--white);
  opacity: 0.9;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius);
  padding: 60px;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 253, 251, 0.8);
  margin: 0 auto 26px;
  max-width: 520px;
}

/* ---------- Benefit banner ---------- */

.benefit-banner {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  align-items: center;
  background: var(--rose);
  border-radius: var(--radius);
  padding: 50px;
  color: var(--brown-dark);
}

.benefit-banner h3 {
  color: var(--brown-dark);
  font-size: 26px;
}

.benefit-banner p {
  color: var(--brown-dark);
  opacity: 0.85;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-list .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-info-list strong {
  display: block;
  color: var(--brown-dark);
  margin-bottom: 2px;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.contact-form input,
form.contact-form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(92, 68, 51, 0.2);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-main);
}

form.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

form.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: -10px;
}

.form-note {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

.placeholder-text {
  color: var(--rose-dark);
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brown-dark);
  color: rgba(255, 253, 251, 0.75);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 253, 251, 0.75);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 251, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: #3e2f26;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ---------- Page hero (secondary pages) ---------- */

.page-hero {
  padding: 60px 0 50px;
  background: var(--bg-cream-2);
  text-align: center;
}

.page-hero .eyebrow {
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-grid,
  .benefit-banner {
    grid-template-columns: 1fr;
  }

  .split-img {
    order: -1;
    aspect-ratio: unset;
    height: 380px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }

  .section {
    padding: 60px 0;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(92, 68, 51, 0.1);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .cta-banner,
  .benefit-banner {
    padding: 36px 24px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}

/* ---------- Single page ---------- */

section[id] {
  scroll-margin-top: 76px;
}

.contact-grid h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 6px;
}

/* Page appears only after photos and fonts are ready (no late pop-in) */
body {
  transition: opacity 0.35s ease;
}

.is-loading body {
  opacity: 0;
}

/* ---------- Reviews ---------- */

.stars {
  color: #f4b400;
  letter-spacing: 3px;
  font-size: 20px;
  line-height: 1;
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 40px;
}

.rating-score {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--brown-dark);
}

.rating-summary .stars {
  font-size: 24px;
}

.rating-count {
  font-size: 14px;
}

.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.review figcaption {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  font-size: 13px;
}

.review figcaption strong {
  font-size: 15px;
  color: var(--brown-dark);
}

/* ---------- Carousel (ambiente) ---------- */

.carousel {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--bg-cream-2);
  box-shadow: 0 20px 40px rgba(62, 47, 38, 0.18);
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.92);
  color: var(--brown-dark);
  font-size: 30px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(62, 47, 38, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: var(--white);
  transform: scale(1.06);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(92, 68, 51, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--rose-dark);
  transform: scale(1.25);
}

/* ---------- Results gallery ---------- */

.result-card {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(62, 47, 38, 0.12);
}

.result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}