/* Proctoclínica Ribeirão Preto — identidade visual
   Paleta fornecida: #32344B #23CDB3 #96E6DA #C2CBE0 #D9D9D9 #343232 #1D1C1C #111111 #FFFFFF */
:root {
  --navy: #32344B;
  --navy-deep: #26283b;
  --teal: #23CDB3;
  --teal-dark: #128f7c;
  --mint: #96E6DA;
  --mint-soft: #e9faf7;
  --lavender: #C2CBE0;
  --lavender-soft: #f1f3f9;
  --gray: #D9D9D9;
  --ink: #1D1C1C;
  --text: #343232;
  --muted: #62647a;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(50, 52, 75, .10);
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[data-ico] { display: inline-flex; flex: none; font-style: normal; }
[data-ico] svg { width: 1.3em; height: 1.3em; }
[data-ico][style] svg { width: 100%; height: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: 84px 0; }
.section.alt { background: var(--lavender-soft); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--teal-dark); margin-bottom: 12px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.section-head { margin-bottom: 40px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--teal); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(35, 205, 179, .35); }
.btn-primary:hover { background: #3bdcc4; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Faixa superior + cabeçalho */
.topbar { background: var(--navy); color: var(--lavender); font-size: .88rem; }
.topbar .container { display: flex; gap: 24px; justify-content: space-between; padding: 8px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--teal); }
.topbar .group { display: flex; gap: 22px; flex-wrap: wrap; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #eceef4; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.link { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.link:hover { border-color: var(--teal); }
.nav-actions { display: flex; gap: 10px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 28px; height: 28px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 84px 0 96px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { color: var(--lavender); }
.hero .eyebrow { color: var(--mint); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: absolute; right: -120px; top: -80px; width: 720px; opacity: .22; pointer-events: none; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-badges div { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--lavender); }
.hero-badges svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

.quick { background: var(--white); color: var(--text); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.quick h2 { font-size: 1.25rem; margin-bottom: 16px; }
.quick-list { display: grid; gap: 10px; }
.quick-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--lavender-soft); text-decoration: none; transition: background .15s, transform .15s; }
.quick-item:hover { background: var(--mint-soft); transform: translateX(4px); }
.quick-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--teal); display: grid; place-items: center; flex: none; }
.quick-item .ico svg { width: 22px; height: 22px; }
.quick-item strong { display: block; font-family: var(--font-head); color: var(--navy); font-weight: 600; line-height: 1.2; }
.quick-item small { color: var(--muted); font-size: .86rem; }
.quick-item .arrow { margin-left: auto; color: var(--teal-dark); }

/* Cartões */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid #eef0f5; }
.card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--mint-soft); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 28px; height: 28px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.tag { display: inline-block; font-size: .76rem; font-weight: 600; font-family: var(--font-head); letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--teal-dark); margin-bottom: 12px; }
.tag.navy { background: var(--lavender-soft); color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--lavender); font-weight: 500; color: var(--navy); font-size: .96rem; }

/* Busca de procedimentos */
.search { display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--lavender); border-radius: 999px; padding: 6px 8px 6px 20px; max-width: 560px; margin-bottom: 18px; }
.search:focus-within { border-color: var(--teal); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; font: inherit; flex: 1; padding: 10px 0; background: transparent; min-width: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter { font: inherit; font-size: .92rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--lavender); background: var(--white); color: var(--navy); cursor: pointer; }
.filter.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty { display: none; padding: 30px; text-align: center; color: var(--muted); background: var(--lavender-soft); border-radius: var(--radius); }

/* Equipe */
.doctor { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #eef0f5; }
.doctor-photo { background: #111; position: relative; overflow: hidden; min-height: 380px; }
.doctor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.doctor + .doctor { margin-top: 22px; }
/* Corta a faixa inferior da foto (marca d'água / ícones de captura de tela) */
.doctor-photo.crop-bottom img { height: 122%; object-position: 58% 0; }
.doctor-photo.initials { background: var(--navy); display: grid; place-items: center; }
.doctor-photo.initials span { width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--teal); color: var(--teal); display: grid; place-items: center; font-family: var(--font-head); font-size: 3.2rem; font-weight: 500; letter-spacing: .04em; }
.doctor-body { padding: 34px; }
.doctor-body h3 { font-size: 1.6rem; margin-bottom: 4px; }
.doctor-body .reg { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.doctor-body ul { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.doctor-body li { background: var(--mint-soft); color: var(--teal-dark); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.doctor-add { margin-top: 22px; border: 2px dashed var(--lavender); border-radius: 24px; padding: 28px; display: flex; gap: 18px; align-items: center; color: var(--muted); background: var(--white); }
.doctor-add .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--lavender-soft); display: grid; place-items: center; color: var(--navy); flex: none; }

/* Passos */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: var(--navy-deep); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 16px; }

/* Agendamento */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.booking-info { background: var(--navy); color: var(--lavender); border-radius: 24px; padding: 36px; position: sticky; top: 100px; }
.booking-info h2, .booking-info h3 { color: var(--white); }
.booking-info .line { display: flex; gap: 14px; margin-top: 20px; align-items: flex-start; }
.booking-info .line svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 3px; }
.booking-info .line strong { color: var(--white); display: block; font-family: var(--font-head); font-weight: 600; }
.booking-info a { color: var(--mint); }
.form { background: var(--white); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); border: 1px solid #eef0f5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); font-family: var(--font-head); }
.field input, .field select, .field textarea { font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--gray); background: var(--white); color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(35,205,179,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--teal-dark); width: 18px; height: 18px; flex: none; }
.notice { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--mint-soft); color: #0d6b5d; border: 1px solid var(--mint); }
.notice.show { display: block; }
.hint { font-size: .86rem; color: var(--muted); margin-top: 14px; }

/* Área do paciente (chamada) */
.portal-cta { background: linear-gradient(120deg, var(--navy) 0%, #3d4060 100%); border-radius: 28px; padding: 52px; color: var(--lavender); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.portal-cta h2 { color: var(--white); }
.portal-cta .eyebrow { color: var(--mint); }
.portal-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.portal-feat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; color: var(--white); font-family: var(--font-head); font-weight: 500; display: flex; flex-direction: column; gap: 10px; }
.portal-feat svg { width: 26px; height: 26px; color: var(--teal); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); border-radius: 16px; border: 1px solid #e6e9f1; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal-dark); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: 16px; padding: 20px; border: 1px solid #e6e9f1; text-decoration: none; }
.contact-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--teal); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card strong { font-family: var(--font-head); color: var(--navy); display: block; }
.contact-card span { color: var(--muted); font-size: .96rem; }
.map { border-radius: 24px; overflow: hidden; background: var(--mint-soft); min-height: 380px; position: relative; display: grid; place-items: center; border: 1px solid var(--mint); }
.map svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: relative; text-align: center; background: var(--white); padding: 22px 26px; border-radius: 18px; box-shadow: var(--shadow); max-width: 80%; }

/* Rodapé */
.footer { background: var(--ink); color: #b9bccb; padding: 56px 0 28px; font-size: .94rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer a { text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: var(--teal); }
.footer .wordmark { font-family: var(--font-head); color: var(--white); font-size: 1.4rem; letter-spacing: .08em; }
.footer .wordmark b { display: block; color: var(--teal); font-size: .95rem; letter-spacing: .02em; }
.footer .legal { border-top: 1px solid #343232; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

.whats-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--teal); color: var(--navy-deep); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(35,205,179,.5); }
.whats-float svg { width: 30px; height: 30px; }

/* ===== Área do paciente ===== */
.portal-body { background: var(--lavender-soft); min-height: 100vh; }
.login-wrap { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1fr 1fr; }
.login-side { background: var(--navy); color: var(--lavender); padding: 64px 8%; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-side h1 { color: var(--white); font-size: clamp(2rem, 3.6vw, 2.8rem); }
.login-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.login-side li { display: flex; gap: 12px; align-items: center; }
.login-side li svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.login-main { display: grid; place-items: center; padding: 48px 6%; }
.login-card { background: var(--white); border-radius: 24px; padding: 40px; width: min(440px, 100%); box-shadow: var(--shadow); }
.login-card .field { margin-bottom: 16px; }
.divider { text-align: center; color: var(--muted); font-size: .86rem; margin: 18px 0; }

.dash { display: none; }
.dash.show { display: block; }
.login-wrap.hide { display: none; }
.dash-head { background: var(--navy); color: var(--white); padding: 36px 0 84px; }
.dash-head h1 { color: var(--white); font-size: 2rem; margin: 0; }
.dash-head p { color: var(--lavender); margin: 6px 0 0; }
.dash-head .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-main { margin-top: -56px; padding-bottom: 72px; }
.demo-banner { background: #fff7e0; border: 1px solid #f1d98a; color: #6b5200; padding: 10px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 18px; }
.tabs { display: flex; gap: 6px; background: var(--white); padding: 6px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 22px; overflow-x: auto; }
.tab { font: inherit; font-family: var(--font-head); font-weight: 600; border: 0; background: transparent; padding: 12px 20px; border-radius: 12px; cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.panel { display: none; }
.panel.show { display: block; }
.next-card { background: var(--teal); color: var(--navy-deep); border-radius: 20px; padding: 26px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.next-card h3 { color: var(--navy-deep); margin: 0 0 4px; font-size: 1.3rem; }
.date-box { background: var(--navy); color: var(--white); border-radius: 16px; padding: 12px 18px; text-align: center; font-family: var(--font-head); flex: none; }
.date-box b { display: block; font-size: 1.9rem; line-height: 1; }
.date-box span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.rows { display: grid; gap: 12px; }
.row { background: var(--white); border-radius: 16px; padding: 18px 20px; border: 1px solid #e6e9f1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 200px; }
.row strong { font-family: var(--font-head); color: var(--navy); display: block; }
.row small { color: var(--muted); }
.status { font-size: .78rem; font-weight: 700; font-family: var(--font-head); padding: 5px 12px; border-radius: 999px; }
.status.ok { background: var(--mint-soft); color: var(--teal-dark); }
.status.wait { background: #fff3d6; color: #8a6300; }
.status.done { background: var(--lavender-soft); color: var(--muted); }

/* Responsivo */
@media (max-width: 980px) {
  .hero .container, .booking, .portal-cta, .contact, .login-wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .doctor { grid-template-columns: 240px 1fr; }
  .booking-info { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 18px 4%; gap: 6px; border-bottom: 1px solid #eceef4; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a.link { padding: 12px 0; border-bottom: 1px solid #f1f3f9; }
  .nav-actions { flex-direction: column; margin-top: 10px; }
  .login-side { padding: 40px 6%; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .form-grid, .portal-feats, .footer .cols { grid-template-columns: 1fr; }
  .topbar .group.hide-sm { display: none; }
  .doctor { grid-template-columns: 1fr; }
  .doctor-photo { min-height: 0; height: 110vw; }
  .doctor-photo.initials { height: 240px; }
  .doctor-body { padding: 24px; }
  .portal-cta, .form, .booking-info, .login-card { padding: 26px; }
  .brand img { height: 42px; }
  .hero .container { padding: 56px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
