/* ===== Clínica Ondina (demonstração Bilros Web) ===== */

@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  --petroleo: #0F5257;
  --petroleo-2: #17696F;
  --agua: #3E9C93;
  --agua-clara: #9AD3CB;
  --nevoa: #E7F3F1;
  --areia: #F4C9A8;
  --areia-clara: #FBF4EC;
  --coral: #E4774F;
  --branco: #FFFFFF;
  --texto: #1D3436;
  --texto-suave: #557073;
  --linha: #D8E7E4;

  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raio: 18px;
  --sombra: 0 1px 2px rgba(15,82,87,.06), 0 14px 34px -14px rgba(15,82,87,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--texto); background: var(--branco); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--petroleo-2); }
h1, h2, h3 { color: var(--petroleo); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 850; }
h1 em { font-style: normal; color: var(--coral); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.estreito { width: min(780px, 100% - 2.5rem); }

/* aviso */
.aviso-demo { background: var(--areia-clara); border-bottom: 1px solid #EEDCC9; font-size: .88rem; text-align: center; padding: .5rem 1rem; }
.aviso-demo p { margin: 0; }
.aviso-demo a { color: var(--petroleo); font-weight: 700; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 800; text-decoration: none; color: var(--branco); background: var(--petroleo); border: 2px solid var(--petroleo); border-radius: 999px; padding: .85rem 1.5rem; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--petroleo-2); transform: translateY(-1px); box-shadow: var(--sombra); }
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.btn--linha { background: transparent; color: var(--petroleo); }
.btn--linha:hover { background: var(--nevoa); }
.btn--peq { padding: .55rem 1.1rem; font-size: .95rem; }
.btn--total { width: 100%; }

/* topo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topo.rolado { border-color: var(--linha); box-shadow: 0 6px 20px -16px rgba(15,82,87,.5); }
.topo__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--petroleo); }
.marca__ico { width: 40px; height: 40px; }
.marca__txt { font-size: 1.25rem; font-weight: 600; }
.marca__txt b { font-weight: 900; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.btn) { color: var(--texto); text-decoration: none; font-weight: 700; font-size: .98rem; }
.menu a:not(.btn):hover { color: var(--agua); }
.menu-btn { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2.5px; background: var(--petroleo); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* hero */
.hero { background: linear-gradient(180deg, var(--branco) 0%, var(--nevoa) 100%); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.selo { display: inline-flex; align-items: center; gap: .5rem; background: var(--branco); border: 1px solid var(--linha); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 700; color: var(--petroleo); }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 0 rgba(59,178,115,.6); animation: pulsar 2s infinite; }
@keyframes pulsar { 70% { box-shadow: 0 0 0 9px rgba(59,178,115,0); } 100% { box-shadow: 0 0 0 0 rgba(59,178,115,0); } }
.lead { font-size: 1.2rem; color: var(--texto-suave); max-width: 34em; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2.2rem; }
.hero__factos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2rem; }
.hero__factos li { display: flex; flex-direction: column; }
.hero__factos b { font-size: 1.8rem; font-weight: 900; color: var(--petroleo); line-height: 1; }
.hero__factos span { font-size: .9rem; color: var(--texto-suave); }
.hero__arte { position: relative; }
.ilustra { width: 100%; height: auto; }
.cartao-flutua { position: absolute; left: 0; bottom: 12%; display: flex; gap: .7rem; align-items: center; background: var(--branco); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--sombra); animation: flutuar 5s ease-in-out infinite; }
.cartao-flutua__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #DDF3E6; color: #23855A; font-weight: 900; }
.cartao-flutua b { display: block; font-size: .95rem; color: var(--petroleo); }
.cartao-flutua small { color: var(--texto-suave); }
@keyframes flutuar { 50% { transform: translateY(-8px); } }

/* faixa */
.faixa { background: var(--petroleo); color: var(--branco); }
.faixa__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding: 1.1rem 0; }
.faixa p { margin: 0; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.faixa p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--areia); }

/* secções */
.secao { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.secao--suave { background: var(--areia-clara); }
.secao--escura { background: var(--petroleo); color: #E3F1EF; }
.cabeca { max-width: 700px; margin-bottom: 2.6rem; }
.cabeca p:not(.eyebrow) { color: var(--texto-suave); font-size: 1.1rem; }
.cabeca--clara h2 { color: var(--branco); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 900; color: var(--agua); margin-bottom: .6rem; }
.cabeca--clara .eyebrow { color: var(--agua-clara); }
.nota-demo { margin-top: 1.6rem; font-size: .85rem; color: var(--texto-suave); font-style: italic; }
.nota-demo--clara { color: var(--agua-clara); }

/* serviços */
.grelha-servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.servico { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.servico:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--agua-clara); }
.servico p { color: var(--texto-suave); margin: 0; }
.servico__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--nevoa); display: grid; place-items: center; margin-bottom: 1rem; }
.servico__ico svg { width: 26px; height: 26px; fill: none; stroke: var(--petroleo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* passos */
.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: p; }
.passos li { position: relative; background: var(--branco); border-radius: var(--raio); padding: 1.6rem; box-shadow: var(--sombra); }
.passos span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: var(--branco); font-weight: 900; margin-bottom: 1rem; }
.passos p { color: var(--texto-suave); margin: 0; }

/* equipa */
.grelha-equipa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pessoa { text-align: center; padding: 1rem; }
.pessoa__foto { width: 150px; height: 150px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; color: var(--branco); }
.pessoa__foto--a { background: linear-gradient(135deg, var(--agua), var(--petroleo)); }
.pessoa__foto--b { background: linear-gradient(135deg, var(--coral), #C25A37); }
.pessoa__foto--c { background: linear-gradient(135deg, #E8B48C, #C98C5E); }
.pessoa__cargo { font-weight: 800; color: var(--agua); font-size: .95rem; margin-bottom: .6rem; }
.pessoa p:last-child { color: var(--texto-suave); }

/* preços */
.grelha-precos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; align-items: stretch; }
.preco { position: relative; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.8rem 1.5rem; text-align: center; }
.preco--destaque { border: 2px solid var(--petroleo); box-shadow: var(--sombra); }
.preco__fita { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); background: var(--coral); color: var(--branco); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; }
.preco__valor { font-size: 2.6rem; font-weight: 900; color: var(--petroleo); margin: .2rem 0 .4rem; line-height: 1; }
.preco__valor small { font-size: 1rem; font-weight: 700; color: var(--texto-suave); }
.preco__det { color: var(--texto-suave); font-size: .95rem; margin: 0; }

/* marcar */
.marcar { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.marcar__txt p:not(.eyebrow) { color: var(--texto-suave); font-size: 1.1rem; }
.lista-check { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.lista-check li { padding-left: 2rem; position: relative; margin-bottom: .7rem; font-weight: 700; }
.lista-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #DDF3E6; color: #23855A; display: grid; place-items: center; font-size: .85rem; }
.form { background: var(--branco); border: 1px solid var(--linha); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--sombra); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.form legend { font-weight: 900; color: var(--petroleo); margin-bottom: .6rem; }
.form label { display: block; font-weight: 700; font-size: .93rem; margin: .5rem 0 .3rem; }
.form select, .form input { width: 100%; font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--branco); color: var(--texto); }
.form select:focus, .form input:focus { border-color: var(--agua); }
.dias { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.dia { flex: 0 0 auto; min-width: 64px; font: inherit; border: 1.5px solid var(--linha); background: var(--branco); border-radius: 14px; padding: .55rem .4rem; cursor: pointer; text-align: center; color: var(--texto); }
.dia small { display: block; font-size: .75rem; text-transform: uppercase; color: var(--texto-suave); font-weight: 800; }
.dia b { font-size: 1.25rem; }
.dia[aria-checked="true"] { background: var(--petroleo); border-color: var(--petroleo); color: var(--branco); }
.dia[aria-checked="true"] small { color: var(--agua-clara); }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.hora { font: inherit; font-weight: 700; border: 1.5px solid var(--linha); background: var(--branco); border-radius: 10px; padding: .55rem 0; cursor: pointer; color: var(--texto); }
.hora:disabled { color: #A9BBBD; text-decoration: line-through; cursor: not-allowed; background: #F5F8F8; }
.hora[aria-checked="true"] { background: var(--coral); border-color: var(--coral); color: var(--branco); }
.horas__vazio { grid-column: 1 / -1; color: var(--texto-suave); margin: 0; font-size: .95rem; }
.form__erro { color: #B5402A; font-weight: 700; min-height: 1.2em; margin: 0 0 .6rem; font-size: .95rem; }
.form__nota { font-size: .85rem; color: var(--texto-suave); text-align: center; margin: .8rem 0 0; }

/* testemunhos */
.grelha-testemunhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.testemunho { margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--raio); padding: 1.6rem; }
.testemunho::before { content: "★★★★★"; color: var(--areia); letter-spacing: .15em; display: block; margin-bottom: .8rem; }
.testemunho blockquote { margin: 0 0 1rem; font-size: 1.08rem; color: var(--branco); }
.testemunho figcaption { color: var(--agua-clara); font-weight: 800; font-size: .92rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 800; font-size: 1.1rem; color: var(--petroleo); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--texto-suave); padding-bottom: 1rem; }

/* contactos */
.contactos { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.info { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.info li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #EEDCC9; }
.info b { color: var(--petroleo); }
.info small { color: var(--texto-suave); font-size: .78rem; }
.horario { border-collapse: collapse; width: 100%; max-width: 380px; }
.horario caption { text-align: left; font-weight: 900; color: var(--petroleo); margin-bottom: .4rem; }
.horario th { text-align: left; font-weight: 600; padding: .3rem 0; }
.horario td { text-align: right; font-weight: 800; }
.aberto { margin-top: 1rem; font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; }
.aberto::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.aberto--sim { color: #23855A; }
.aberto--nao { color: #B5402A; }
.mapa { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); }
.mapa svg { width: 100%; height: auto; }
.mapa__btn { position: absolute; right: 1rem; bottom: 1rem; background: var(--branco); }

/* rodapé */
.rodape { background: #0B3D41; color: #BFDCD8; padding: 2rem 0 5.5rem; font-size: .95rem; }
.rodape__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.rodape p { margin: 0; }
.rodape b { color: var(--branco); }
.rodape a { color: var(--areia); }

/* botão flutuante */
.whats { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: .5rem; background: var(--coral); color: var(--branco); text-decoration: none; font-weight: 900; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(228,119,79,.7); transition: transform .2s, opacity .2s; }
.whats svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.whats.escondido { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(11,61,65,.55); display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__caixa { background: var(--branco); border-radius: 22px; padding: 2rem; max-width: 420px; width: 100%; text-align: center; animation: entrar .25s ease-out; }
.modal__ok { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #DDF3E6; color: #23855A; font-size: 2rem; font-weight: 900; display: grid; place-items: center; }
.modal__caixa .btn { margin-top: 1.2rem; }
@keyframes entrar { from { transform: scale(.94); opacity: 0; } }

/* aparecer ao rolar */
.revela { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.revela.visivel { opacity: 1; transform: none; }

/* ===== responsivo ===== */
@media (max-width: 980px) {
  .grelha-precos { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .grelha-servicos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--branco); border-bottom: 1px solid var(--linha); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 20px 30px -20px rgba(15,82,87,.4); display: none; }
  .menu.aberto { display: flex; }
  .menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--linha); }
  .menu .btn { margin-top: 1rem; }
  .hero__in, .marcar, .contactos { grid-template-columns: 1fr; }
  .hero__arte { max-width: 440px; margin: 0 auto; width: 100%; }
  .grelha-equipa, .grelha-testemunhos { grid-template-columns: 1fr; }
  .grelha-equipa { gap: .5rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .grelha-servicos, .passos { grid-template-columns: 1fr; }
  .grelha-precos { grid-template-columns: 1fr; }
  .hero__acoes .btn { flex: 1 1 100%; }
  .hero__factos { gap: 1.2rem; }
  .hero__factos b { font-size: 1.5rem; }
  .faixa__in { flex-direction: column; }
  .info li { grid-template-columns: 1fr; gap: .1rem; }
  .pessoa__foto { width: 120px; height: 120px; font-size: 2rem; }
  .cartao-flutua { bottom: 6%; padding: .6rem .8rem; }
}
@media (max-width: 560px) { .aviso-demo { font-size: .8rem; padding: .4rem .8rem; } .hero { padding-top: 1.8rem; } }
.marcar > *, .hero__in > *, .contactos > * { min-width: 0; }
