/* =========================================================
   Juliana Jarces Odontologia — Identidade Visual
   Paleta: verde-petróleo (confiança/clínico) + dourado (calor/premium)
   Tipografia: Fraunces (display) + Inter (texto/UI)
   ========================================================= */

:root{
  --teal-900:#0F3D3E;
  --teal-800:#154B4C;
  --teal-700:#1C5B5A;
  --teal-500:#3E8481;
  --mint-200:#CFE8E1;
  --mint-100:#E7F3EF;
  --sand-50:#FBF7F1;
  --cream:#F4EDE1;
  --gold-500:#C89A5B;
  --gold-600:#B4854A;
  --ink-900:#1E2626;
  --ink-600:#4B5B5A;
  --white:#FFFFFF;
  --whatsapp:#25D366;
  --whatsapp-dark:#1EBE5A;

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;

  --sidebar-w:272px;
  --radius-lg:20px;
  --radius-md:14px;
  --shadow-soft:0 12px 30px -14px rgba(15,61,62,.25);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--sand-50);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{font-family:var(--font-display);color:var(--teal-900);margin:0 0 .5em;line-height:1.15;}
p{line-height:1.7;color:var(--ink-600);margin:0 0 1em;}
ul{margin:0;padding:0;list-style:none;}

.tag{
  display:inline-block;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-600);
  margin-bottom:.75rem;
}
.center{text-align:center;}
.section-sub{max-width:560px;margin:0 auto 2.5rem;}

/* ---------- Botões ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 1.5rem;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-whatsapp{
  background:var(--whatsapp);
  color:#fff;
  box-shadow:0 10px 24px -10px rgba(37,211,102,.55);
}
.btn-whatsapp:hover{background:var(--whatsapp-dark);}
.btn-ghost{
  background:transparent;
  border-color:rgba(15,61,62,.25);
  color:var(--teal-900);
}
.btn-ghost:hover{border-color:var(--teal-900);background:var(--mint-100);}
.btn-lg{padding:1.05rem 1.9rem;font-size:1.02rem;}
.btn-block{width:100%;justify-content:center;}
.ico-wpp{width:20px;height:20px;fill:currentColor;flex:none;}

/* =========================================================
   SIDEBAR (menu à esquerda)
   ========================================================= */
.sidebar{
  position:fixed;
  top:0;left:0;bottom:0;
  width:var(--sidebar-w);
  background:linear-gradient(180deg,var(--teal-900),var(--teal-800));
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:2rem 1.5rem;
  z-index:100;
}
.sidebar-top{margin-bottom:1.5rem;}
.brand{display:flex;align-items:center;gap:.7rem;}
.brand-icon{width:34px;height:34px;flex:none;}
.brand-text{display:flex;flex-direction:column;line-height:1.25;}
.brand-text strong{font-family:var(--font-display);font-size:1.08rem;color:#fff;}
.brand-text small{font-size:.62rem;letter-spacing:.16em;color:var(--mint-200);}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:.25rem;
  flex:1;
  margin-top:1rem;
}
.nav-link{
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.65rem .75rem;
  border-radius:10px;
  font-size:.92rem;
  color:rgba(255,255,255,.75);
  transition:background .15s ease, color .15s ease;
}
.nav-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.35);flex:none;transition:background .15s ease, transform .15s ease;}
.nav-link:hover{background:rgba(255,255,255,.08);color:#fff;}
.nav-link.active{background:rgba(255,255,255,.12);color:#fff;}
.nav-link.active .nav-dot{background:var(--gold-500);transform:scale(1.3);}

.sidebar-bottom{margin-top:1.5rem;}
.sidebar-bottom p{color:rgba(255,255,255,.7);font-size:.85rem;margin-bottom:.6rem;}

/* mobile controls (hidden on desktop) */
.menu-toggle{display:none;}
.overlay{display:none;}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */
.page{margin-left:var(--sidebar-w);}

.section{padding:6rem 2.5rem;max-width:1180px;margin:0 auto;}
h2{font-size:clamp(1.6rem,4.2vw,2.35rem);}
.section-alt{background:var(--mint-100);max-width:none;padding-left:2.5rem;padding-right:2.5rem;}
.section-alt > *{max-width:1180px;margin-left:auto;margin-right:auto;}
.section-alt .cards-grid,.section-alt .testimonials-grid{max-width:1180px;margin-left:auto;margin-right:auto;}

.section-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3.5rem;
  align-items:center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  min-height:92vh;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:3rem;
  padding:4rem 2.5rem;
  max-width:1180px;
  margin:0 auto;
}
.eyebrow{
  color:var(--gold-600);
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-size:.8rem;
  margin-bottom:1rem;
}
.hero h1{
  font-size:clamp(2.1rem,4vw,3.2rem);
  font-weight:600;
  max-width:14ch;
}
.hero h1 span{color:var(--gold-500);font-style:italic;}
.hero-sub{font-size:1.08rem;max-width:46ch;margin-bottom:2rem;}
.hero-cta{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:3rem;}
.hero-stats{display:flex;gap:2.5rem;flex-wrap:wrap;}
.hero-stats strong{display:block;font-family:var(--font-display);font-size:1.6rem;color:var(--teal-900);}
.hero-stats span{font-size:.82rem;color:var(--ink-600);}

.hero-visual{display:flex;justify-content:center;align-items:center;}
.hero-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:2.5rem 2rem;
  box-shadow:var(--shadow-soft);
  max-width:320px;
  text-align:center;
  border:1px solid var(--mint-200);
}
.hero-card-icon{width:76px;height:76px;margin:0 auto 1.25rem;}
.hero-card p{font-family:var(--font-display);font-size:1.15rem;color:var(--teal-900);font-style:italic;margin-bottom:.75rem;}
.hero-card span{font-size:.8rem;color:var(--ink-600);}

/* =========================================================
   SOBRE
   ========================================================= */
.about-photo{display:flex;justify-content:center;}
.photo-frame{
  width:100%;
  max-width:360px;
  aspect-ratio:4/5;
  border-radius:var(--radius-lg);
  background:linear-gradient(160deg,var(--mint-200),var(--cream));
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--mint-200);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.photo-icon{width:88px;height:88px;opacity:.85;}
.photo-real{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.about-text .lead{font-size:1.15rem;color:var(--ink-900);}
.about-list{margin:1.25rem 0 1.75rem;display:flex;flex-direction:column;gap:.65rem;}
.about-list li{
  position:relative;
  padding-left:1.6rem;
  color:var(--ink-900);
  font-size:.95rem;
}
.about-list li::before{
  content:"";
  position:absolute;left:0;top:.45em;
  width:9px;height:9px;border-radius:50%;
  background:var(--gold-500);
}

/* =========================================================
   SERVIÇOS
   ========================================================= */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}
.card{
  background:#fff;
  border-radius:var(--radius-md);
  padding:2rem 1.6rem;
  border:1px solid var(--mint-200);
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-soft);}
.card-icon{
  width:52px;height:52px;
  display:flex;align-items:center;justify-content:center;
  border-radius:14px;
  background:var(--mint-100);
  font-size:1.5rem;
  margin-bottom:1.1rem;
}
.card h3{font-size:1.1rem;margin-bottom:.5rem;}
.card p{font-size:.92rem;margin-bottom:1.25rem;}
.card-link{
  font-weight:600;
  font-size:.88rem;
  color:var(--teal-700);
  cursor:pointer;
}
.card-link:hover{color:var(--gold-600);}

/* =========================================================
   DIFERENCIAIS
   ========================================================= */
.features-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.75rem;
}
.feature{text-align:center;padding:1rem;}
.feature-icon{
  width:64px;height:64px;
  border-radius:50%;
  background:var(--mint-100);
  display:flex;align-items:center;justify-content:center;
  font-size:1.6rem;
  margin:0 auto 1rem;
}
.feature h3{font-size:1.02rem;margin-bottom:.4rem;}
.feature p{font-size:.88rem;}

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}
.testimonial{
  margin:0;
  background:#fff;
  border-radius:var(--radius-md);
  padding:1.75rem;
  border:1px solid var(--mint-200);
}
.testimonial p{
  font-family:var(--font-display);
  font-style:italic;
  color:var(--teal-900);
  font-size:1.02rem;
}
.testimonial cite{font-size:.85rem;font-weight:600;color:var(--gold-600);font-style:normal;}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:.75rem;}
.faq-item{
  background:#fff;
  border:1px solid var(--mint-200);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.faq-question{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1.1rem 1.4rem;
  background:none;
  border:none;
  text-align:left;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.98rem;
  color:var(--teal-900);
  cursor:pointer;
}
.faq-plus{font-size:1.3rem;color:var(--gold-500);transition:transform .2s ease;flex:none;margin-left:1rem;}
.faq-item.open .faq-plus{transform:rotate(45deg);}
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
  padding:0 1.4rem;
}
.faq-item.open .faq-answer{max-height:400px;padding-bottom:1.2rem;}
.faq-answer p{margin:0;font-size:.92rem;}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final{
  background:linear-gradient(135deg,var(--teal-900),var(--teal-700));
  color:#fff;
  text-align:center;
  padding:5rem 2rem;
}
.cta-final h2{color:#fff;font-size:clamp(1.7rem,3vw,2.4rem);}
.cta-final p{color:var(--mint-200);max-width:520px;margin:0 auto 2rem;}

/* =========================================================
   CONTATO
   ========================================================= */
.contact-list{margin:1.5rem 0 2rem;display:flex;flex-direction:column;gap:1rem;}
.contact-list li{display:flex;flex-direction:column;gap:.15rem;}
.contact-list strong{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--gold-600);}
.contact-list span{color:var(--ink-900);font-size:.98rem;}
.map-placeholder{
  height:100%;
  min-height:280px;
  border-radius:var(--radius-lg);
  background:var(--mint-100);
  border:1px dashed var(--mint-200);
  display:flex;align-items:center;justify-content:center;
  color:var(--teal-700);
  font-weight:600;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:var(--teal-900);
  color:rgba(255,255,255,.85);
  padding:3.5rem 2.5rem 0;
}
.footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:2.5rem;
  padding-bottom:2.5rem;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand{display:flex;gap:.75rem;}
.footer-brand .brand-icon{width:30px;height:30px;}
.footer-brand strong{display:block;color:#fff;font-family:var(--font-display);margin-bottom:.4rem;}
.footer-brand p{font-size:.88rem;color:rgba(255,255,255,.65);margin:0;}
.footer-links{display:flex;flex-direction:column;gap:.6rem;}
.footer-links h4{color:#fff;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;margin:0 0 .4rem;}
.footer-links a{font-size:.9rem;color:rgba(255,255,255,.7);}
.footer-links a:hover{color:var(--gold-500);}

.footer-bottom{
  max-width:1180px;
  margin:0 auto;
  padding:1.5rem 0;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.5rem;
  font-size:.85rem;
  font-weight:500;
  color:rgba(255,255,255,.85);
}

/* =========================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================= */
.whatsapp-float{
  position:fixed;
  right:1.5rem;
  bottom:calc(1.5rem + env(safe-area-inset-bottom));
  width:58px;height:58px;
  border-radius:50%;
  background:var(--whatsapp);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 28px -10px rgba(37,211,102,.6);
  z-index:120;
  transition:transform .18s ease;
}
.whatsapp-float svg{width:28px;height:28px;fill:#fff;}
.whatsapp-float:hover{transform:scale(1.08);}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width:1024px){
  .cards-grid{grid-template-columns:repeat(2,1fr);}
  .features-grid{grid-template-columns:repeat(2,1fr);}
  .testimonials-grid{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr 1fr;}
}

@media (max-width:900px){
  :root{--sidebar-w:260px;}
  .hero{grid-template-columns:1fr;text-align:left;min-height:auto;}
  .hero-visual{display:none;}
}

@media (max-width:768px){
  .menu-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    position:fixed;
    top:1rem;left:1rem;
    width:46px;height:46px;
    border-radius:12px;
    background:var(--teal-900);
    border:none;
    z-index:200;
    cursor:pointer;
    box-shadow:0 8px 18px -6px rgba(15,61,62,.45);
  }
  .menu-toggle span{
    width:20px;height:2px;background:#fff;margin:0 auto;
    transition:transform .2s ease, opacity .2s ease;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
  .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .sidebar{
    transform:translateX(-100%);
    transition:transform .25s ease;
    width:min(80vw,300px);
    box-shadow:0 0 40px rgba(0,0,0,.3);
    padding-top:calc(2rem + env(safe-area-inset-top));
    padding-bottom:calc(2rem + env(safe-area-inset-bottom));
  }
  .sidebar.open{transform:translateX(0);}

  .overlay{
    display:block;
    position:fixed;inset:0;
    background:rgba(15,61,62,.45);
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
    z-index:99;
  }
  .overlay.show{opacity:1;pointer-events:auto;}

  .page{margin-left:0;}

  .hero{
    padding:5.5rem 1.5rem 3rem;
    gap:2.25rem;
  }
  .hero h1{max-width:none;font-size:clamp(1.85rem,7vw,2.6rem);}
  .hero-sub{font-size:1rem;max-width:none;}
  .hero-cta{flex-direction:column;align-items:stretch;margin-bottom:2.25rem;}
  .hero-cta .btn{width:100%;justify-content:center;white-space:normal;text-align:center;}
  .hero-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:.5rem;
    text-align:center;
    padding-top:1.5rem;
    border-top:1px solid var(--mint-200);
  }
  .hero-stats strong{font-size:1.3rem;}
  .hero-stats span{font-size:.72rem;line-height:1.3;}

  .section-grid,.contact-grid{grid-template-columns:1fr;gap:2.25rem;}
  .about-photo{order:-1;}
  .photo-frame{max-width:280px;}

  .cards-grid{grid-template-columns:1fr;}
  .card{padding:1.75rem 1.5rem;}
  .features-grid{grid-template-columns:1fr 1fr;gap:1.25rem 1rem;}

  .section{padding:3.5rem 1.5rem;}
  .section-alt{padding-left:1.5rem;padding-right:1.5rem;}
  .section-sub{margin-bottom:2rem;}

  .cta-final{padding:3.5rem 1.5rem;}
  .cta-final .btn{width:100%;justify-content:center;white-space:normal;}

  .footer-brand{flex-direction:column;align-items:center;text-align:center;}
  .footer-links{align-items:center;text-align:center;}
  .footer-inner{grid-template-columns:1fr;padding-bottom:2rem;gap:2rem;}
  .footer-bottom{flex-direction:column;text-align:center;}

  .whatsapp-float{width:52px;height:52px;right:1.1rem;}
  .whatsapp-float svg{width:25px;height:25px;}
}

@media (max-width:480px){
  .features-grid{grid-template-columns:1fr;}
  .hero-stats{gap:.4rem;}
  .hero-stats strong{font-size:1.15rem;}
}
