/* Medicoevo homepage prototypes: shared tokens and components.
   Each concept may override the custom properties in its own <style>. */
:root {
  --navy: #0B2B4B; --navy-2: #10496F; --navy-deep: #072138;
  --orange: #F07023; --orange-ink: #C4520F; --orange-hover: #D65E14;
  --mint: #7FE3B1; --green: #1A8F4C; --wa: #25D366;
  --ink: #12304D; --ink-2: #3A5570; --muted: #5E7590;
  --line: #DCE5EE; --bg: #FFFFFF; --bg-2: #F5F8FB; --tint: #EAF3FB;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(11, 43, 75, .09);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font);
  --focus: 0 0 0 3px #fff, 0 0 0 5px #0B6BB5;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
img.img-failed { background: linear-gradient(135deg, var(--navy-2), var(--navy)); min-height: 120px; color: transparent; font-size: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: var(--navy); padding: 10px 14px; z-index: 200; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { flex: none; vertical-align: middle; }
.ico.flip { transform: scaleX(-1); }
[dir=rtl] .ico[data-dir], [dir=rtl] .btn .ico { transform: scaleX(-1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s; white-space: nowrap; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-hover); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--wa { background: var(--wa); color: #06361A; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--navy); }
.brand--light { color: #fff; }
.brand__mark { border-radius: 10px; }

/* Chips and badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.chip[aria-pressed=true], .chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pending { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A5A00; background: #FFF4D6; border: 1px dashed #E2B54A; padding: 2px 8px; border-radius: 999px; }
.sample { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Prototype ribbon */
.proto-ribbon { position: relative; z-index: 120; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 7px var(--gutter); background: #1B1F24; color: #D9E1E8; font: 600 12.5px/1.4 system-ui, sans-serif; }
.proto-ribbon a { color: #fff; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.proto-ribbon a:hover { text-decoration: underline; }
.proto-ribbon__note { margin-inline-start: auto; color: #FFD27A; }
@media (max-width: 560px) { .proto-ribbon__note { margin-inline-start: 0; } }

/* Enquiry form */
.enq { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.enq__title { font-size: 20px; margin-bottom: 4px; color: var(--navy); }
.enq__sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.enq__demo { color: #8A5A00; font-weight: 600; }
.enq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.enq[data-variant=compact] .enq__grid, .enq--stack .enq__grid { grid-template-columns: 1fr; }
@media (max-width: 520px) { .enq__grid { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld--wide { grid-column: 1 / -1; }
.fld label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.fld .opt { font-weight: 500; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; }
.fld textarea { resize: vertical; min-height: 80px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: #0B6BB5; outline: none; box-shadow: 0 0 0 3px rgba(11, 107, 181, .18); }
.fld__err { display: none; color: #B42318; font-size: 13px; font-weight: 600; }
.fld.is-invalid input, .fld.is-invalid select { border-color: #B42318; }
.fld.is-invalid .fld__err { display: block; }
.enq__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 14px 0 6px; }
.enq__consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--navy); }
.enq__err { color: #B42318; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.enq form .btn { margin-top: 8px; }
.enq__fine { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.enq__dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 18px; font-size: 15px; }
.enq__dl dt { color: var(--muted); font-weight: 600; } .enq__dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.enq__row { display: flex; gap: 10px; flex-wrap: wrap; }
.enq__ok { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #E5F7EC; color: var(--green); margin-bottom: 12px; }
.enq__review:focus, .enq__done:focus { outline: none; }

/* Autocomplete */
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; text-align: start; }
.ac li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.ac li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ac li:hover, .ac li.is-active { background: var(--tint); }
.ac .ac__empty { color: var(--muted); cursor: default; }

/* FAQ (details/summary) */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 17px; }
[dir=rtl] .faq summary { padding: 18px 0 18px 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 14px; font-size: 24px; font-weight: 500; color: var(--orange); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* Footer */
.ft { background: var(--navy-deep); color: #A9BDD0; padding: 56px 0 28px; font-size: 14.5px; }
.ft__wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .ft__wrap { grid-template-columns: 1fr 1fr; } .ft__brand { grid-column: 1 / -1; } }
.ft h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ft a { color: #A9BDD0; text-decoration: none; } .ft a:hover { color: #fff; text-decoration: underline; }
.ft__brand p { margin-top: 12px; max-width: 360px; }
.ft__contact { display: block; line-height: 2; }
.ft__legal { max-width: var(--wrap); margin: 36px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: #8199AF; }

/* Floating WhatsApp */
.fab-wa { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #06361A; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); text-decoration: none; }

/* Reveal */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* Mobile nav helper */
.navtoggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }
