/* Clínica Sorriso: the fictional demo clinic. Its own look, not JL's, so it reads as a clinic site. */
:root {
  --ink: #12302e; --soft: #55716e; --teal: #0e5e5a; --teal-d: #0a4744; --mint: #e7f4f1; --mint-2: #d3ebe6;
  --coral: #ef7a57; --coral-d: #d9603d; --paper: #fbfaf7; --line: #e3e9e7; --white: #fff;
  --wa: #128c4b; --wa-bg: #efe7dd; --wa-out: #d9fdd3;
  --r: 18px; --shadow: 0 1px 2px rgba(18, 48, 46, .05), 0 18px 40px -18px rgba(18, 48, 46, .25);
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 12px; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--soft); }
.small { font-size: .86rem; }

/* demo ribbon: always says this is a fictional clinic */
.ribbon { background: var(--ink); color: #d5e6e3; font-size: .82rem; }
.ribbon .wrap { display: flex; align-items: center; gap: 14px; padding: 8px 0; flex-wrap: wrap; }
.ribbon b { color: #fff; }
.ribbon .tag { background: var(--coral); color: #fff; font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.ribbon a { color: #9fe0d4; font-weight: 700; margin-left: auto; text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 250, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo i { width: 38px; height: 38px; border-radius: 11px; background: var(--teal); display: grid; place-items: center; }
.logo i svg { width: 22px; height: 22px; }
.logo b { font-family: var(--serif); font-size: 1.15rem; display: block; line-height: 1.1; }
.logo small { color: var(--soft); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.nav a.on, .nav a:hover { background: var(--mint); color: var(--teal-d); }
.lang { display: inline-flex; background: var(--mint); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; font-weight: 800; font-size: .74rem; padding: 5px 9px; border-radius: 999px; color: var(--soft); }
.lang button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.menu-btn { display: none; border: 0; background: var(--mint); border-radius: 10px; width: 40px; height: 40px; font-size: 1.2rem; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .top .lang { margin-left: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; text-decoration: none; background: var(--teal); color: #fff; transition: background .15s, transform .15s; }
.btn:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn.coral { background: var(--coral); } .btn.coral:hover { background: var(--coral-d); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--teal); }
.btn.wa { background: var(--wa); }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* sections */
section { padding: clamp(44px, 7vw, 84px) 0; }
.eyebrow { font-weight: 800; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-d); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--soft); max-width: 640px; }
.white { background: #fff; } .mint { background: var(--mint); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.sample { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); background: var(--mint); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* hero */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--teal); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding: 0; list-style: none; color: var(--soft); font-size: .92rem; }
.facts li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.hero-card { background: linear-gradient(160deg, var(--teal), var(--teal-d)); color: #e2f3ef; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.hero-card h3 { color: #fff; }
.hero-card ol { margin: 14px 0 18px; padding-left: 20px; }
.hero-card li { margin-bottom: 6px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* tour: the five moments to try */
.tour { background: var(--ink); color: #cfe1de; }
.tour h2 { color: #fff; }
.tour .lead { color: #a9c4c0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 26px; }
.step { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.step b { color: #fff; font-family: var(--serif); font-size: 1.08rem; }
.step span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--coral); }
.step p { font-size: .9rem; margin: 0; flex: 1; }
.step button { border: 0; background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem; border-radius: 999px; padding: 9px 12px; }
.step button:hover { background: var(--mint-2); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* services and prices */
.svc { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc b { white-space: nowrap; color: var(--teal-d); }
.svc small { display: block; color: var(--soft); }
.team .av { width: 56px; height: 56px; border-radius: 50%; background: var(--mint-2); color: var(--teal-d); display: grid; place-items: center; font-weight: 800; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 12px; }
.hours div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* booking page */
.book { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; font-size: .88rem; }
.field select, .field input { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.field select:focus, .field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 94, 90, .12); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.days button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: .86rem; line-height: 1.25; }
.days button small { display: block; font-weight: 600; color: var(--soft); }
.days button.on { border-color: var(--teal); background: var(--mint); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 0; font-weight: 700; }
.slots button:disabled { color: #b8c6c4; background: #f4f6f5; text-decoration: line-through; cursor: not-allowed; }
.slots button.on { border-color: var(--teal); background: var(--teal); color: #fff; }
.done { text-align: center; padding: 34px 24px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.8rem; font-weight: 800; }

/* clinic view */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--teal-d); }
.kpi span { font-size: .82rem; color: var(--soft); }
.kpi.good b { color: #1c8a54; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.before-after > div { border-radius: var(--r); padding: 18px 20px; }
.before-after .b { background: #fdeee8; } .before-after .a { background: #e2f5ec; }
.before-after b { font-family: var(--serif); font-size: 1.7rem; display: block; }
@media (max-width: 600px) { .before-after { grid-template-columns: 1fr; } }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); background: #f7faf9; }
tr:last-child td { border-bottom: 0; }
tr.you td { background: #fffaf0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.pill.ok { background: #e2f5ec; color: #1c7a4b; } .pill.hand { background: #fdeee8; color: var(--coral-d); } .pill.n { background: var(--mint); color: var(--teal-d); }
.fast { color: #1c7a4b; font-weight: 800; } .slow { color: var(--coral-d); font-weight: 800; }

/* website chat widget */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; border: 0; border-radius: 999px; background: var(--teal); color: #fff; padding: 13px 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.fab svg { width: 20px; height: 20px; }
.chatbox { position: fixed; right: 18px; bottom: 18px; z-index: 41; width: min(380px, calc(100% - 24px)); height: min(560px, calc(100% - 90px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(18, 48, 46, .45); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chatbox.open { display: flex; }
.chat-head { background: var(--teal); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head b { display: block; } .chat-head small { color: #bfe6de; }
.chat-head button { margin-left: auto; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; }

/* shared message list (website chat and phone) */
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.m { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-line; }
.m.in { align-self: flex-end; background: var(--mint); border-bottom-right-radius: 4px; }
.m.out { align-self: flex-start; background: #f2f4f3; border-bottom-left-radius: 4px; }
.m.sys { align-self: center; background: transparent; color: var(--soft); font-size: .78rem; padding: 2px; }
.m.sys.ok { color: #1c7a4b; font-weight: 700; }
.m .rt { display: block; margin-top: 4px; font-size: .7rem; color: #1c7a4b; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chips button { border: 1.5px solid var(--teal); background: #fff; color: var(--teal-d); border-radius: 999px; padding: 5px 11px; font-size: .84rem; font-weight: 700; }
.chips button:hover { background: var(--mint); }
.chips button:disabled { opacity: .45; cursor: default; }
.typing { align-self: flex-start; background: #f2f4f3; border-radius: 14px; padding: 10px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9db3b0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.composer input { flex: 1; font: inherit; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; }
.composer input:focus { outline: none; border-color: var(--teal); }
.composer button { border: 0; background: var(--teal); color: #fff; border-radius: 999px; padding: 0 16px; font-weight: 700; }
.chat-note { font-size: .7rem; color: var(--soft); text-align: center; padding: 0 12px 8px; }

/* phone simulator (WhatsApp) */
.sim { position: fixed; inset: 0; z-index: 50; background: rgba(8, 24, 23, .82); display: none; align-items: center; justify-content: center; padding: 16px; }
.sim.open { display: flex; }
.sim-in { display: grid; grid-template-columns: 300px 340px; gap: 22px; align-items: center; max-height: 100%; }
.sim-side { color: #e7f4f1; background: var(--ink); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 24px; }
.sim-side h3 { color: #fff; }
.sim-side ol { padding-left: 18px; font-size: .92rem; }
.sim-side .clock { font-family: var(--serif); font-size: 2.6rem; color: #fff; line-height: 1; margin: 6px 0; }
.sim-side .clock.ok { color: #7fe3b0; }
.phone { width: 340px; height: min(640px, calc(100vh - 32px)); background: #111; border-radius: 40px; padding: 10px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); }
.phone-scr { background: var(--wa-bg); height: 100%; border-radius: 31px; display: flex; flex-direction: column; overflow: hidden; }
.wa-head { background: #075e54; color: #fff; padding: 14px 14px 10px; display: flex; align-items: center; gap: 10px; }
.wa-head .av { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; font-weight: 800; }
.wa-head small { display: block; color: #bde9dd; font-size: .74rem; }
.wa-head button { margin-left: auto; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 30px; height: 30px; border-radius: 50%; }
.phone .m.in { background: var(--wa-out); }
.phone .m.out { background: #fff; }
.phone .composer { background: #f0f0f0; }
@media (max-width: 760px) { .sim-in { grid-template-columns: 1fr; } .sim-side { display: none; } .phone { width: min(340px, 100%); } }

footer { background: var(--ink); color: #a9c4c0; padding: 34px 0; font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: #9fe0d4; }
