/* =========================================
   ODONTO CLEAN — PERSONAL DENTAL SITE
   ========================================= */

:root {
  --rose:      #c9788a;
  --rose-dark: #a85a6e;
  --rose-light:#f7e8ec;
  --gold:      #c9a84c;
  --gold-light:#fdf6e3;
  --dark:      #1e1b1e;
  --mid:       #3d3540;
  --muted:     #8e849a;
  --white:     #ffffff;
  --off-white: #fdf8f9;
  --border:    #ede5e8;
}

/* BASE */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--mid);
  background: var(--white);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
}

a { text-decoration: none; }

img { max-width: 100%; }

.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-heading em {
  font-style: italic;
  color: var(--rose);
}

.section-lead {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
}

/* BUTTONS */
.btn-rose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-rose:hover {
  background: var(--rose-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(168,90,110,0.35);
}

.btn-outline-rose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--rose);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--rose);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline-rose:hover {
  background: var(--rose);
  color: white;
  transform: translateY(-2px);
}

/* =========================================
   TOP BAR
   ========================================= */
#topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 9px 0;
}

#topbar a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

#topbar a:hover { color: var(--rose); }

/* =========================================
   NAVBAR
   ========================================= */
#navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: box-shadow 0.3s;
}

#navbar.shadow-on {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-logo .brand-dra {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
}

.brand-logo .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}

.brand-logo .brand-cro {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 1px;
}

.nav-link-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link-item:hover {
  color: var(--rose);
  background: var(--rose-light);
}

.navbar-toggler {
  border: none;
  background: none;
  padding: 4px 8px;
  color: var(--dark);
  font-size: 1.5rem;
}

/* =========================================
   HERO — SPLIT LAYOUT
   ========================================= */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-left {
  background: var(--off-white);
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
}

.hero-left::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--rose-light);
  bottom: -100px;
  left: -80px;
  z-index: 0;
}

.hero-left-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--rose);
}

.hero-title .script-word {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mid);
}

.chip i { color: var(--rose); font-size: 0.85rem; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
  background: linear-gradient(160deg, var(--rose-dark) 0%, #6d2038 100%);
  overflow: hidden;
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-photo-frame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo-placeholder {
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 30px;
  gap: 10px;
}

.hero-photo-placeholder i {
  font-size: 16rem;
  color: rgba(255,255,255,0.15);
}

.hero-photo-placeholder span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}

/* Floating credential card */
.cred-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  animation: floatY 4s ease-in-out infinite;
}

.cred-card.cc-1 {
  bottom: 40px;
  left: 16px;
  animation-delay: 0s;
}

.cred-card.cc-2 {
  top: 80px;
  right: 16px;
  animation-delay: 2s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cred-card .cc-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
}

.cred-card .cc-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* =========================================
   ABOUT — DENTIST PERSONAL
   ========================================= */
#sobre {
  background: var(--white);
  /* slight padding adjustment for after-topbar layout */
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  border-radius: 28px 28px 80px 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--rose-light), var(--rose));
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(255,255,255,0.25);
  font-size: 10rem;
}

.about-photo span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  font-family: 'DM Sans', sans-serif;
}

.about-ribbon {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--gold);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
  white-space: nowrap;
}

.about-formation {
  margin-top: 28px;
}

.formation-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.formation-item:last-child { border-bottom: none; }

.formation-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 1px;
  min-width: 50px;
  padding-top: 2px;
}

.formation-item h6 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 2px;
}

.formation-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* =========================================
   SERVICES — ELEGANT CARDS
   ========================================= */
#servicos {
  background: var(--off-white);
}

.service-pill {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-pill:hover {
  border-color: var(--rose);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(201,120,138,0.14);
}

.service-pill::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.service-pill:hover::after { transform: scaleX(1); }

.sp-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--rose-light);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.service-pill:hover .sp-number { color: var(--rose); }

.service-pill h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.service-pill p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* =========================================
   RESULTS / GALLERY BANNER
   ========================================= */
#resultados {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#resultados::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(201,120,138,0.08);
  top: -200px;
  right: -150px;
}

.result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

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

.result-card .rc-big {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
}

.result-card .rc-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}

.before-after-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.ba-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-panel {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 4rem;
}

.ba-panel.before {
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ba-panel.after {
  background: rgba(201,120,138,0.15);
}

.ba-panel span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.ba-panel.after span { color: var(--rose); }

.ba-bottom {
  padding: 16px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =========================================
   DEPOIMENTOS
   ========================================= */
#depoimentos {
  background: var(--off-white);
}

.review-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  height: 100%;
}

.review-card:hover {
  box-shadow: 0 12px 32px rgba(201,120,138,0.12);
  border-color: var(--rose);
  transform: translateY(-4px);
}

.review-stars { color: #f4a340; font-size: 0.85rem; margin-bottom: 14px; }

.review-text {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--rose);
  flex-shrink: 0;
}

.review-author h6 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.review-author span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* =========================================
   INSTAGRAM GRID
   ========================================= */
#instagram {
  background: var(--off-white);
}

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

.insta-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  display: block;
  background: var(--border);
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.insta-item:hover img {
  transform: scale(1.07);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(168,90,110,.9) 0%, rgba(168,90,110,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s ease;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

.insta-overlay p {
  color: #fff;
  font-size: .82rem;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insta-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  align-self: flex-end;
  margin-top: auto;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* =========================================
   AGENDAMENTO
   ========================================= */
#agendamento {
  background: var(--white);
}

.schedule-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.schedule-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.field-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field-input:focus {
  border-color: var(--rose);
  background: white;
  box-shadow: 0 0 0 4px rgba(201,120,138,0.12);
}

.field-input::placeholder { color: #bbb; }

.schedule-info {
  background: var(--rose-dark);
  border-radius: 28px;
  padding: 40px 36px;
  color: white;
  position: sticky;
  top: 100px;
}

.schedule-info h4 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 28px;
}

.si-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.si-item:last-of-type { margin-bottom: 0; }

.si-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.si-item h6 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin: 0 0 3px;
}

.si-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}

.si-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 24px 0;
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px 20px;
  border-radius: 14px;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
}

.whatsapp-cta:hover {
  background: #1fba58;
  color: white;
  transform: translateY(-2px);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.hour-item {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.hour-item strong {
  display: block;
  color: white;
  font-size: 0.82rem;
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: var(--dark);
  padding: 40px 0 24px;
}

#footer .foot-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 8px;
}

#footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

#footer .foot-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-right: 16px;
  transition: color 0.2s;
}

#footer .foot-link:hover { color: var(--rose); }

.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-right: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.foot-social a:hover {
  background: var(--rose);
  color: white;
}

/* =========================================
   FLOATING BUTTONS
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  animation: none;
}

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

#backToTop {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 9998;
  width: 42px;
  height: 42px;
  background: var(--rose);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(201,120,138,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.3s;
}

#backToTop.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#backToTop:hover { background: var(--rose-dark); color: white; }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right.active { opacity: 1; transform: translateX(0); }

.d-100 { transition-delay: .1s; }
.d-200 { transition-delay: .2s; }
.d-300 { transition-delay: .3s; }
.d-400 { transition-delay: .4s; }
.d-500 { transition-delay: .5s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991.98px) {
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 100px 24px 60px;
    order: 2;
  }

  .hero-right {
    height: 360px;
    order: 1;
  }

  .hero-photo-placeholder { height: 340px; }
  .hero-photo-placeholder i { font-size: 10rem; }
  .cred-card { display: none; }

  .schedule-split { grid-template-columns: 1fr; }
  .schedule-info { position: static; }
}

@media (max-width: 767.98px) {
  .hero-left { padding: 80px 20px 50px; }
  .about-photo { height: 340px; font-size: 7rem; }
  .about-ribbon { right: 0; top: 16px; }

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