/* ===================================================================
   Padrão de site para clínicas — dados em api/clinic_config.php
   Design system: tons de cinza e branco, tipografia serif + sans
=================================================================== */

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

:root{
  --white:        #ffffff;
  --bg-page:      #eae6da;      /* canvas cru/creme sofisticado — mesmo tom do painel admin */
  --card-bg:      #fbf9f3;      /* superficie dos cards sobre o canvas creme */
  --tone-1:       #f6f1e4;      /* paleta de tons creme/dourado que se mesclam ao longo da pagina */
  --tone-2:       #eae6da;
  --tone-3:       #f2ede0;
  --tone-4:       #e9e0c8;
  --glow-gold:    rgba(182,147,95,.16);
  --glow-gold-soft: rgba(182,147,95,.09);
  --gray-50:      #f9f6ef;
  --gray-100:     #f2f2f1;
  --gray-200:     #e6e5e3;
  --gray-300:     #d3d1cd;
  --gray-400:     #aeaba5;
  --gray-500:     #8a877f;
  --gray-600:     #666359;
  --gray-700:     #45433c;
  --gray-800:     #2a2925;
  --gray-900:     #17160f;
  --ink:          #1c1b17;
  --accent:       #b6935f;      /* toque dourado sutil, discreto */
  --accent-soft:  #e8dcc4;
  --brand-green:      #565a42;  /* verde oliva da identidade da marca (posts/artes) */
  --brand-green-deep: #3d4030;  /* variante mais escura, pra gradientes e hover */
  --radius-sm:    6px;
  --radius-md:    14px;
  --radius-lg:    28px;
  --shadow-sm:    0 2px 10px rgba(23,22,15,.06);
  --shadow-md:    0 12px 40px rgba(23,22,15,.10);
  --shadow-lg:    0 24px 70px rgba(23,22,15,.16);
  --ease:         cubic-bezier(.22,1,.36,1);
  --ease-fall:    cubic-bezier(.22,.9,.32,1.18);
}

*, *::before, *::after{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  background:var(--bg-page);
  overscroll-behavior-y:none;
}
body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:var(--ink);
  background:var(--bg-page);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overscroll-behavior-y:none;
}
h1,h2,h3,h4{
  font-family:'Cormorant Garamond', serif;
  font-weight:600;
  line-height:1.1;
  margin:0;
  letter-spacing:.2px;
}
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:600;
  margin-bottom:14px;
}
.eyebrow::before{
  content:'';
  width:26px; height:1px;
  background:var(--accent);
  display:inline-block;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:15px 30px;
  border-radius:999px;
  font-size:.92rem;
  font-weight:600;
  border:1px solid transparent;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn-primary{
  background:var(--brand-green);
  color:var(--white);
  box-shadow:var(--shadow-sm);
}
.btn-primary:hover{
  background:var(--brand-green-deep);
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}
.btn-outline{
  background:transparent;
  color:var(--ink);
  border-color:var(--gray-300);
}
.btn-outline:hover{
  border-color:var(--ink);
  transform:translateY(-2px);
}
.btn-light{
  background:var(--white);
  color:var(--ink);
}
.btn-light:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; transform:none !important; }

/* ---------- Header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0;
  z-index:1000;
  padding:22px 0;
  transition:padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled{
  padding:14px 0;
  background:rgba(251,249,243,.86);
  backdrop-filter:blur(14px) saturate(160%);
  box-shadow:0 1px 0 rgba(23,22,15,.06);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{ width:44px; height:auto; flex:none; object-fit:contain; }
.brand-mark{
  width:42px; height:42px;
  border-radius:50%;
  border:1.5px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond',serif;
  font-size:1.05rem;
  font-weight:700;
  flex:none;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{ font-family:'Cormorant Garamond',serif; font-weight:700; font-size:1.15rem; letter-spacing:.03em; }
.brand-sub{ font-size:.62rem; letter-spacing:.18em; text-transform:uppercase; color:var(--gray-500); }

.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:.88rem; font-weight:500; color:var(--gray-700);
  position:relative; padding:4px 0;
  transition:color .25s;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0;
  width:0; height:1px; background:var(--ink);
  transition:width .3s var(--ease);
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a:hover::after{ width:100%; }
.nav-links a.active{ color:var(--ink); }
.nav-links a.active::after{ width:100%; }

.nav-actions{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid var(--gray-300);
  background:var(--white);
  align-items:center; justify-content:center;
  flex-direction:column; gap:5px;
}
.nav-toggle span{ width:18px; height:1.5px; background:var(--ink); display:block; transition:transform .3s, opacity .3s; }

@media (max-width:900px){
  .nav-links{
    position:fixed; inset:0 0 0 auto;
    width:min(78vw,340px);
    height:100vh;
    background:var(--white);
    flex-direction:column;
    justify-content:center;
    gap:30px;
    transform:translateX(100%);
    transition:transform .45s var(--ease);
    box-shadow:var(--shadow-lg);
    padding:40px;
  }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-toggle{ display:flex; }
  .nav-actions .btn-primary{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:190px 0 120px;
  background:
    radial-gradient(ellipse 640px 520px at 86% 6%, var(--glow-gold), transparent 60%),
    radial-gradient(ellipse 520px 480px at 2% 92%, var(--glow-gold-soft), transparent 60%),
    linear-gradient(165deg, var(--tone-1) 0%, var(--tone-2) 55%, var(--tone-3) 100%);
  overflow:hidden;
}
.hero-grid{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:60px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.6rem, 4.6vw, 4.1rem);
  color:var(--ink);
  max-width:640px;
}
.hero h1 em{
  font-style:italic;
  color:var(--accent);
}
.hero-desc{
  margin-top:24px;
  font-size:1.08rem;
  line-height:1.7;
  color:var(--gray-600);
  max-width:520px;
}
.hero-cta{ display:flex; gap:16px; margin-top:38px; flex-wrap:wrap; }

.hero-visual-wrap{ position:relative; }
.hero-visual{
  position:relative;
  aspect-ratio:1/1.05;
  border-radius:var(--radius-lg);
  background:var(--brand-green-deep);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.hero-visual::before{
  content:'';
  position:absolute; inset:18px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:calc(var(--radius-lg) - 10px);
  z-index:2;
  pointer-events:none;
}
.hero-visual-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.hero-visual::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(200deg, rgba(61,64,48,0) 45%, rgba(38,40,30,.82) 100%);
  z-index:1;
}
.hero-visual-tag{
  position:absolute; left:26px; bottom:26px; right:26px; z-index:2;
  color:rgba(255,255,255,.85);
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  display:flex; justify-content:space-between;
  border-top:1px solid rgba(255,255,255,.28);
  padding-top:14px;
}
.hero-badge{
  position:absolute; z-index:3; top:32px; left:-24px;
  background:var(--white);
  border-radius:999px;
  padding:12px 22px;
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; gap:10px;
  font-size:.82rem; font-weight:600;
  white-space:nowrap;
}
.hero-badge svg{ width:18px; height:18px; flex:none; color:var(--accent); }

@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual-wrap{ max-width:420px; margin:0 auto; }
  .hero-badge{ display:none; }
  .hero{ padding:150px 0 80px; }
}

/* ---------- Feature strip ---------- */
.feature-strip{
  position:relative;
  background:linear-gradient(180deg, var(--tone-3) 0%, var(--gray-50) 50%, var(--tone-3) 100%);
}
.feature-strip .container{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.feature-item{
  padding:34px 22px;
  display:flex; gap:16px; align-items:flex-start;
  border-left:1px solid var(--gray-200);
}
.feature-item:first-child{ border-left:none; }
.feature-item svg{ width:26px; height:26px; flex:none; color:var(--accent); margin-top:2px; }
.feature-item h4{ font-family:'Inter',sans-serif; font-weight:600; font-size:.92rem; margin-bottom:4px; }
.feature-item p{ font-size:.82rem; color:var(--gray-500); line-height:1.5; }

@media (max-width:900px){
  .feature-strip .container{ grid-template-columns:repeat(2,1fr); }
  .feature-item{ border-left:none; border-top:1px solid var(--gray-200); }
  .feature-item:nth-child(1),.feature-item:nth-child(2){ border-top:none; }
}

/* ---------- Section shell ---------- */
section{ padding:120px 0; }
.section-head{
  max-width:640px;
  margin-bottom:64px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(2rem,3.4vw,2.8rem); color:var(--ink); }
.section-head p{ margin-top:18px; color:var(--gray-600); font-size:1.02rem; line-height:1.7; }

/* ---------- Doctors / About ---------- */
.about{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 520px 420px at 92% 8%, var(--glow-gold-soft), transparent 62%),
    radial-gradient(ellipse 480px 400px at 4% 96%, var(--glow-gold-soft), transparent 60%),
    linear-gradient(180deg, var(--tone-3) 0%, var(--bg-page) 45%, var(--tone-4) 100%);
}
.about-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:32px;
}
.doctor-card{
  background:var(--card-bg);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:38px;
  box-shadow:var(--shadow-sm);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.doctor-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:var(--gray-200); }
.doctor-avatar{
  width:78px; height:78px;
  border-radius:50%;
  background:linear-gradient(155deg,var(--brand-green),var(--brand-green-deep));
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond',serif;
  font-size:1.7rem;
  margin-bottom:22px;
}
.doctor-card h3{ font-size:1.5rem; color:var(--ink); }
.doctor-role{ font-size:.82rem; color:var(--accent); font-weight:600; letter-spacing:.03em; margin:6px 0 16px; text-transform:uppercase; }
.doctor-card p.bio{ color:var(--gray-600); font-size:.92rem; line-height:1.7; }
.doctor-cro{
  margin-top:20px; padding-top:18px;
  border-top:1px solid var(--gray-200);
  font-size:.78rem; color:var(--gray-500); letter-spacing:.05em;
}

@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; } }

/* ---------- Services ---------- */
.services{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 560px 460px at 88% 88%, var(--glow-gold-soft), transparent 62%),
    linear-gradient(180deg, var(--tone-4) 0%, var(--gray-50) 50%, var(--tone-3) 100%);
}
.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
.service-card{
  background:var(--card-bg);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:32px 26px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
  display:flex; flex-direction:column;
}
.service-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-md); }
.service-icon{
  width:52px; height:52px;
  border-radius:50%;
  background:var(--brand-green);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}
.service-icon svg{ width:24px; height:24px; }
.service-card h3{ font-size:1.28rem; margin-bottom:10px; color:var(--ink); }
.service-card p{ font-size:.86rem; color:var(--gray-600); line-height:1.65; flex:1; }
.service-link{
  margin-top:18px;
  font-size:.8rem; font-weight:600;
  display:inline-flex; align-items:center; gap:6px;
  color:var(--ink);
}
.service-link svg{ width:14px; height:14px; transition:transform .3s var(--ease); }
.service-card:hover .service-link svg{ transform:translateX(4px); }

/* ---------- chamada "sob avaliação" (chamativa, foge do tom neutro do resto do card) ---------- */
.service-price{
  margin:16px 0 4px;
  padding:14px 16px;
  border-radius:var(--radius-sm);
  display:flex; align-items:center; flex-wrap:wrap; gap:10px 12px;
}
.price-badge{
  color:var(--white);
  font-size:.7rem; font-weight:800; letter-spacing:.02em;
  padding:4px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.service-price-quote{
  background:linear-gradient(155deg, rgba(182,147,95,.14) 0%, rgba(182,147,95,.05) 100%);
  border:1px dashed rgba(182,147,95,.45);
}
.price-badge-quote{
  background:var(--accent);
  box-shadow:0 3px 10px rgba(182,147,95,.4);
  display:inline-flex; align-items:center; gap:5px;
  text-transform:uppercase;
}
.price-badge-quote svg{ width:12px; height:12px; }
.price-quote-text{ flex:1; min-width:170px; font-size:.84rem; color:var(--gray-700); line-height:1.55; }
.price-quote-text strong{ color:var(--ink); font-weight:700; }

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

/* ---------- Galeria ---------- */
.gallery{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 480px 420px at 6% 40%, var(--glow-gold-soft), transparent 60%),
    linear-gradient(180deg, var(--tone-3) 0%, var(--bg-page) 55%, var(--tone-2) 100%);
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.gallery-item{
  position:relative;
  border-radius:var(--radius-md);
  overflow:hidden;
  background:var(--gray-100);
  height:380px;
}
.gallery-item:nth-child(2n){ margin-top:36px; }
.gallery-item img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition:transform .6s var(--ease);
}
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-item::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(61,64,48,0) 55%, rgba(38,40,30,.6) 100%);
  pointer-events:none;
}
.gallery-item-tag{
  position:absolute; left:18px; bottom:16px; z-index:2;
  color:var(--white);
  font-size:.74rem; letter-spacing:.1em; text-transform:uppercase; font-weight:600;
}

@media (max-width:900px){
  .gallery-grid{ grid-template-columns:1fr 1fr; }
  .gallery-item{ height:300px; }
  .gallery-item:nth-child(2n){ margin-top:0; }
  .gallery-item:nth-child(2){ margin-top:36px; }
}
@media (max-width:560px){
  .gallery-grid{ grid-template-columns:1fr; }
  .gallery-item{ height:280px; margin-top:0 !important; }
}

/* ---------- CTA banner ---------- */
.cta-section{
  position:relative;
  background:
    radial-gradient(ellipse 700px 500px at 50% 45%, var(--glow-gold), transparent 60%),
    linear-gradient(180deg, var(--tone-2) 0%, var(--tone-3) 100%);
}
.cta-banner{
  background:linear-gradient(155deg,var(--brand-green-deep) 0%, var(--brand-green) 100%);
  border-radius:var(--radius-lg);
  padding:70px 60px;
  display:flex; align-items:center; justify-content:space-between;
  gap:40px;
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.cta-banner::before{
  content:'';
  position:absolute; right:-80px; top:-80px;
  width:280px; height:280px; border-radius:50%;
  border:1px solid rgba(255,255,255,.14);
}
.cta-banner h2{ color:var(--white); font-size:clamp(1.8rem,3vw,2.5rem); max-width:480px; position:relative; z-index:1; }
.cta-banner p{ color:rgba(255,255,255,.65); margin-top:14px; font-size:.95rem; position:relative; z-index:1; }
.cta-banner .btn{ position:relative; z-index:1; flex:none; }

@media (max-width:800px){
  .cta-banner{ flex-direction:column; align-items:flex-start; padding:48px 30px; }
}

/* ---------- Contact / Footer ---------- */
.site-footer{
  background:var(--brand-green-deep);
  color:rgba(255,255,255,.72);
  padding:90px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:50px;
  padding-bottom:60px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-mark{ border-color:rgba(255,255,255,.5); color:var(--white); }
.footer-brand .brand-name{ color:var(--white); }
.footer-brand p{ margin-top:18px; font-size:.88rem; line-height:1.7; color:rgba(255,255,255,.55); max-width:320px; }
.footer-social{ display:flex; gap:12px; margin-top:22px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  transition:background .3s, border-color .3s;
}
.footer-social a:hover{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.4); }
.footer-social svg{ width:16px; height:16px; }

.footer-col h4{ font-family:'Inter',sans-serif; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.85); margin-bottom:20px; font-weight:600; }
.footer-col ul li{ margin-bottom:12px; font-size:.88rem; color:rgba(255,255,255,.6); }
.footer-col ul li a:hover{ color:var(--white); }
.footer-col ul li.strong{ color:rgba(255,255,255,.85); }

.footer-bottom{
  padding-top:26px;
  display:flex; justify-content:space-between; align-items:center;
  font-size:.78rem; color:rgba(255,255,255,.4);
  flex-wrap:wrap; gap:10px;
}

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr; gap:36px; }
}

/* ===================================================================
   Página de Agendamento
=================================================================== */
.page-hero{
  padding:170px 0 60px;
  background:
    radial-gradient(ellipse 560px 420px at 90% 0%, var(--glow-gold-soft), transparent 50%),
    linear-gradient(180deg, var(--tone-1) 0%, var(--bg-page) 100%);
}
.page-hero .eyebrow{ justify-content:center; }
.page-hero .container{ text-align:center; }
.page-hero h1{ font-size:clamp(2.2rem,4vw,3.2rem); }
.page-hero p{ margin-top:16px; color:var(--gray-600); max-width:560px; margin-left:auto; margin-right:auto; }

.tabs-nav{
  display:flex; justify-content:center; gap:6px;
  margin-top:36px;
  border:1px solid var(--gray-200);
  border-radius:999px;
  padding:6px;
  width:fit-content;
  margin-left:auto; margin-right:auto;
  background:var(--card-bg);
}
.tab-btn{
  padding:11px 26px;
  border-radius:999px;
  border:none;
  background:transparent;
  font-size:.86rem; font-weight:600;
  color:var(--gray-500);
  transition:background .3s, color .3s;
}
.tab-btn.active{ background:var(--brand-green); color:var(--white); }

.booking-section{ padding:70px 0 130px; }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fadeUp .5s var(--ease); }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

.booking-layout{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:start;
}
.card{
  background:var(--card-bg);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:38px;
}
.card h3{ font-size:1.4rem; margin-bottom:24px; color:var(--ink); }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:20px; }
.form-group label{
  display:block; font-size:.78rem; font-weight:600;
  letter-spacing:.03em; color:var(--gray-700); margin-bottom:8px;
}
.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding:13px 16px;
  border:1px solid var(--gray-300);
  border-radius:var(--radius-sm);
  font-family:'Inter',sans-serif;
  font-size:.92rem;
  color:var(--ink);
  background:var(--white);
  transition:border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;
  border-color:var(--ink);
  box-shadow:0 0 0 3px rgba(23,22,15,.06);
}
.form-group textarea{ resize:vertical; min-height:90px; }
.field-hint{ font-size:.74rem; color:var(--gray-500); margin-top:6px; }

.date-alert{
  display:none;
  align-items:flex-start;
  gap:12px;
  margin-top:12px;
  padding:14px 16px;
  border-radius:var(--radius-sm);
  background:var(--accent-soft);
  border:1px solid #ddc9a3;
  animation:fadeUp .35s var(--ease);
}
.date-alert.show{ display:flex; }
.date-alert-icon{
  flex:none; width:30px; height:30px; border-radius:50%;
  background:var(--white);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent);
}
.date-alert-icon svg{ width:16px; height:16px; }
.date-alert-body{ flex:1; }
.date-alert-title{ font-size:.86rem; font-weight:700; color:#6b5320; margin-bottom:2px; }
.date-alert-reason{ font-size:.82rem; color:#8a6d1f; line-height:1.5; }

.consent-box{ margin-bottom:22px; }
.consent-check{
  display:flex; align-items:flex-start; gap:10px;
  font-size:.84rem; color:var(--gray-600); line-height:1.6; cursor:pointer;
}
.consent-check input{ width:16px; height:16px; margin-top:2px; flex:none; accent-color:var(--ink); }
.consent-link{
  color:var(--ink); font-weight:600; text-decoration:underline;
  display:inline; padding:0;
}
.consent-terms{
  display:none;
  margin-top:10px; padding:14px 16px;
  background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius-sm);
  font-size:.78rem; color:var(--gray-600); line-height:1.6;
}
.consent-terms.show{ display:block; }
.consent-terms p{ margin-bottom:8px; }
.consent-terms p:last-child{ margin-bottom:0; }

.slots-label{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.slots-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(78px,1fr));
  gap:8px;
  max-height:220px;
  overflow-y:auto;
  padding:4px 2px;
}
.slot-btn{
  padding:10px 6px;
  border-radius:var(--radius-sm);
  border:1px solid var(--gray-300);
  background:var(--white);
  font-size:.82rem; font-weight:500;
  color:var(--gray-700);
  transition:all .2s;
}
.slot-btn:hover:not(:disabled){ border-color:var(--ink); }
.slot-btn.selected{ background:var(--brand-green); color:var(--white); border-color:var(--brand-green); }
.slot-btn:disabled{ opacity:.35; text-decoration:line-through; cursor:not-allowed; }
.slots-empty{ font-size:.86rem; color:var(--gray-500); padding:14px 0; }

.form-msg{
  margin-top:16px; padding:14px 18px;
  border-radius:var(--radius-sm);
  font-size:.86rem; font-weight:500;
  display:none;
}
.form-msg.show{ display:block; animation:fadeUp .4s var(--ease); }
.form-msg.success{ background:#eef4ec; color:#3d6b3a; border:1px solid #cfe3ca; }
.form-msg.error{ background:#f7ece9; color:#9c3b2c; border:1px solid #f0d3cb; }

/* summary side card */
.summary-card{ position:sticky; top:110px; }
.summary-row{
  display:flex; justify-content:space-between;
  padding:12px 0; border-bottom:1px solid var(--gray-100);
  font-size:.88rem;
}
.summary-row span:first-child{ color:var(--gray-500); }
.summary-row span:last-child{ font-weight:600; color:var(--ink); text-align:right; }
.summary-note{ margin-top:20px; font-size:.8rem; color:var(--gray-500); line-height:1.6; }
.clinic-hours{ margin-top:26px; padding-top:22px; border-top:1px solid var(--gray-100); }
.clinic-hours h4{ font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-500); margin-bottom:12px; font-weight:600; }
.clinic-hours .hrow{ display:flex; justify-content:space-between; font-size:.85rem; padding:6px 0; color:var(--gray-700); }

@media (max-width:980px){
  .booking-layout{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .summary-card{ position:static; }
}

/* ---------- Agenda (organização) ---------- */
.agenda-toolbar{
  display:flex; justify-content:space-between; align-items:flex-end;
  flex-wrap:wrap; gap:16px;
  margin-bottom:28px;
}
.agenda-toolbar .form-group{ margin:0; min-width:200px; }
.agenda-stats{ display:flex; gap:14px; }
.stat-pill{
  border:1px solid var(--gray-200); border-radius:999px;
  padding:9px 18px; font-size:.8rem; color:var(--gray-600);
}
.stat-pill strong{ color:var(--ink); font-weight:700; }

.agenda-day{ margin-bottom:34px; }
.agenda-day-title{
  font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--gray-500); margin-bottom:14px;
  display:flex; align-items:center; gap:10px;
}
.agenda-day-title::after{ content:''; flex:1; height:1px; background:var(--gray-200); }

.appt-card{
  display:grid;
  grid-template-columns:90px 1fr auto auto;
  align-items:center;
  gap:20px;
  padding:18px 22px;
  border:1px solid var(--gray-200);
  border-radius:var(--radius-sm);
  margin-bottom:10px;
  background:var(--white);
  transition:box-shadow .3s;
}
.appt-card:hover{ box-shadow:var(--shadow-sm); }
.appt-time{ font-family:'Cormorant Garamond',serif; font-size:1.3rem; font-weight:700; color:var(--ink); }
.appt-info strong{ font-size:.94rem; color:var(--ink); display:block; }
.appt-info span{ font-size:.78rem; color:var(--gray-500); }
.appt-status{
  font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:6px 12px; border-radius:999px; white-space:nowrap;
}
.appt-status.confirmado{ background:#eef4ec; color:#3d6b3a; }
.appt-status.concluido{ background:var(--gray-100); color:var(--gray-500); }
.appt-actions{ display:flex; gap:8px; }
.icon-btn{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--gray-300); background:var(--white);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s, background .2s;
}
.icon-btn:hover{ border-color:var(--ink); background:var(--gray-50); }
.icon-btn svg{ width:15px; height:15px; }
.icon-btn.danger:hover{ border-color:#9c3b2c; }
.icon-btn.danger:hover svg{ color:#9c3b2c; }

.agenda-empty{
  text-align:center; padding:70px 20px;
  color:var(--gray-500);
}
.agenda-empty svg{ width:44px; height:44px; margin:0 auto 16px; color:var(--gray-300); }

@media (max-width:700px){
  .appt-card{ grid-template-columns:1fr; text-align:left; gap:10px; }
  .appt-actions{ justify-content:flex-start; }
}

/* ---------- reveal on scroll (cai na tela, como se caisse de cima) ---------- */
.reveal{ opacity:0; transform:translateY(-34px); transition:opacity .7s var(--ease), transform .75s var(--ease-fall); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* cascata: itens de uma mesma grade entram em sequência, não todos de uma vez */
.feature-strip .feature-item:nth-child(1){ transition-delay:.04s; }
.feature-strip .feature-item:nth-child(2){ transition-delay:.14s; }
.feature-strip .feature-item:nth-child(3){ transition-delay:.24s; }
.feature-strip .feature-item:nth-child(4){ transition-delay:.34s; }
.feature-strip .feature-item:nth-child(n+5){ transition-delay:.4s; }

.about-grid .doctor-card:nth-child(1){ transition-delay:.04s; }
.about-grid .doctor-card:nth-child(2){ transition-delay:.16s; }
.about-grid .doctor-card:nth-child(n+3){ transition-delay:.26s; }

.services-grid .service-card:nth-child(1){ transition-delay:.04s; }
.services-grid .service-card:nth-child(2){ transition-delay:.13s; }
.services-grid .service-card:nth-child(3){ transition-delay:.22s; }
.services-grid .service-card:nth-child(4){ transition-delay:.31s; }
.services-grid .service-card:nth-child(5){ transition-delay:.4s; }
.services-grid .service-card:nth-child(6){ transition-delay:.49s; }
.services-grid .service-card:nth-child(n+7){ transition-delay:.58s; }

.gallery-grid .gallery-item:nth-child(1){ transition-delay:.04s; }
.gallery-grid .gallery-item:nth-child(2){ transition-delay:.14s; }
.gallery-grid .gallery-item:nth-child(3){ transition-delay:.24s; }
.gallery-grid .gallery-item:nth-child(4){ transition-delay:.34s; }
.gallery-grid .gallery-item:nth-child(n+5){ transition-delay:.4s; }

/* ---------- entrada do hero ao carregar a página (cai de cima) ---------- */
@keyframes heroFallIn{
  from{ opacity:0; transform:translateY(-30px); }
  to{ opacity:1; transform:translateY(0); }
}
.hero .eyebrow{ animation:heroFallIn .75s var(--ease-fall) both; }
.hero h1{ animation:heroFallIn .75s var(--ease-fall) .1s both; }
.hero .hero-desc{ animation:heroFallIn .75s var(--ease-fall) .22s both; }
.hero .hero-cta{ animation:heroFallIn .75s var(--ease-fall) .34s both; }
.hero-visual-wrap{ animation:heroFallIn .85s var(--ease-fall) .28s both; }
.hero-badge{ animation:heroFallIn .75s var(--ease-fall) .62s both; }

@media (prefers-reduced-motion: reduce){
  .hero .eyebrow, .hero h1, .hero .hero-desc, .hero .hero-cta, .hero-visual-wrap, .hero-badge{
    animation:none; opacity:1; transform:none;
  }
  .reveal{ transition:none; opacity:1; transform:none; }
}

/* ---------- misc ---------- */
::selection{ background:var(--brand-green); color:var(--white); }

/* ===================================================================
   Date picker (calendário customizado)
=================================================================== */
.dp-wrap{ position:relative; }
.dp-trigger{
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:13px 16px;
  border:1px solid var(--gray-300);
  border-radius:var(--radius-sm);
  background:var(--white);
  font-family:'Inter',sans-serif;
  font-size:.92rem;
  color:var(--gray-400);
  text-align:left;
  transition:border-color .25s, box-shadow .25s;
}
.dp-trigger.has-value{ color:var(--ink); }
.dp-trigger:hover{ border-color:var(--gray-400); }
.dp-trigger.open{ border-color:var(--ink); box-shadow:0 0 0 3px rgba(23,22,15,.06); }
.dp-trigger svg{ width:17px; height:17px; flex:none; color:var(--accent); }
.dp-trigger-text{ flex:1; }
.dp-trigger-clear{
  flex:none; width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--gray-400);
}
.dp-trigger-clear:hover{ background:var(--gray-100); color:var(--ink); }
.dp-trigger-clear svg{ width:12px; height:12px; color:inherit; }

.dp-panel{
  position:absolute; z-index:60; top:calc(100% + 8px); left:0;
  width:308px;
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  padding:18px 18px 14px;
  opacity:0; transform:translateY(-6px) scale(.98);
  pointer-events:none;
  transition:opacity .18s var(--ease), transform .18s var(--ease);
}
.dp-panel.open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }

.dp-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.dp-month-label{
  font-family:'Cormorant Garamond',serif;
  font-size:1.15rem; font-weight:700; color:var(--ink);
  text-transform:capitalize;
}
.dp-nav{ display:flex; gap:6px; }
.dp-nav-btn{
  width:30px; height:30px; border-radius:50%;
  border:1px solid var(--gray-200);
  display:flex; align-items:center; justify-content:center;
  color:var(--gray-600);
  transition:border-color .2s, background .2s, color .2s;
}
.dp-nav-btn:hover{ border-color:var(--ink); color:var(--ink); background:var(--gray-50); }
.dp-nav-btn svg{ width:14px; height:14px; }
.dp-nav-btn:disabled{ opacity:.3; pointer-events:none; }

.dp-weekdays{ display:grid; grid-template-columns:repeat(7,1fr); margin-bottom:4px; }
.dp-weekdays span{
  text-align:center; font-size:.68rem; font-weight:700; letter-spacing:.04em;
  color:var(--gray-400); padding:6px 0;
}

.dp-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.dp-day{
  aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  font-size:.84rem; color:var(--gray-700);
  border:1px solid transparent;
  transition:background .15s, color .15s, border-color .15s;
}
.dp-day:hover:not(:disabled):not(.dp-day-muted){ background:var(--gray-100); }
.dp-day.dp-day-today{ border-color:var(--accent); font-weight:700; color:var(--ink); }
.dp-day.dp-day-selected{ background:var(--brand-green); color:var(--white); font-weight:700; }
.dp-day.dp-day-selected:hover{ background:var(--brand-green); }
.dp-day:disabled{ color:var(--gray-300); cursor:not-allowed; }
.dp-day.dp-day-muted{ color:var(--gray-300); text-decoration:line-through; cursor:not-allowed; }
.dp-day-empty{ visibility:hidden; }

.dp-footer{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:14px; padding-top:12px; border-top:1px solid var(--gray-100);
}
.dp-footer button{
  font-size:.8rem; font-weight:600; color:var(--gray-600);
  padding:4px 6px; border-radius:4px;
}
.dp-footer button:hover{ color:var(--ink); background:var(--gray-50); }
.dp-footer-hint{ font-size:.7rem; color:var(--gray-400); }
