/* Lumi Dental Clinic — public site. Values follow the design handoff verbatim. */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: 'Nunito Sans', sans-serif; color: #1E3D52; background: #FAFCFD; -webkit-font-smoothing: antialiased; }
a { color: #2E5C7E; }
a:hover { color: #24455C; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
@media (max-width: 700px) { [data-hide-mobile] { display: none !important; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,252,253,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #E1ECF1; }
.nav-inner { max-width: 1020px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 34px; object-fit: contain; }
.wordmark { font-weight: 800; font-size: 14px; letter-spacing: 2.5px; color: #2E5C7E; }
.wordmark span { color: #4796A1; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 14.5px; font-weight: 600; }
.nav-links a { text-decoration: none; color: #41627A; }
.nav-links a:hover { color: #1E3D52; }
.nav-phone { text-decoration: none; color: #2E5C7E; font-weight: 800; font-size: 14.5px; }
/* nowrap + no shrink: below ~394px the pill otherwise breaks to "Book" over
   "now" and the nav grows 20px taller. The wordmark is deliberately left free
   to wrap — forcing it onto one line overflows the viewport at 320px. */
.btn-nav { margin-left: auto; background: #2E5C7E; color: #fff; border: none; border-radius: 999px; padding: 11px 22px; font-size: 14.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.btn-nav:hover { background: #24455C; }

/* Hero */
.hero-inner { max-width: 1020px; margin: 0 auto; padding: clamp(36px,7vw,68px) 24px clamp(44px,8vw,76px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px,100%), 1fr)); gap: 48px; align-items: center; }
h1 { font-weight: 800; font-size: clamp(32px,7vw,46px); line-height: 1.12; margin: 0 0 18px; color: #1E3D52; text-wrap: pretty; }
.hero-sub { font-size: 17.5px; line-height: 1.6; color: #5B7A8C; margin: 0 0 30px; max-width: 48ch; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary { background: #2E5C7E; color: #fff; border: none; border-radius: 999px; padding: 15px 30px; font-size: 16px; font-weight: 700; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #24455C; color: #fff; }
.btn-outline { text-decoration: none; border: 1.5px solid #BBD4DF; color: #2E5C7E; border-radius: 999px; padding: 13.5px 26px; font-size: 16px; font-weight: 700; background: #fff; display: inline-block; }
.btn-outline:hover { background: #EFF6F9; color: #2E5C7E; }
.hero-status { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 14px; font-weight: 700; color: #33546A; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4CAF7D; display: inline-block; flex-shrink: 0; }
.dot.closed { background: #A5B8C2; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; }

/* Services */
.services { background: #F1F7FA; }
.section-inner { max-width: 1020px; margin: 0 auto; padding: clamp(44px,8vw,72px) 24px; }
h2 { font-weight: 800; font-size: clamp(26px,6vw,32px); margin: 0 0 32px; color: #1E3D52; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px,100%), 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid #DCE8EE; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-weight: 800; font-size: 18px; margin: 0; color: #1E3D52; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #5B7A8C; }

/* Visit */
.visit-inner { max-width: 1020px; margin: 0 auto; padding: clamp(44px,8vw,72px) 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%), 1fr)); gap: 48px; align-items: start; }
.visit h2 { margin: 0 0 20px; }
.address { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: #5B7A8C; }
.address a { font-weight: 800; }
.hours { border-top: 1px solid #E1ECF1; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E1ECF1; font-size: 15px; }
.hours b { font-weight: 700; }
.hours span { color: #5B7A8C; text-align: right; }
.cta-card { background: #2E5C7E; border-radius: 24px; padding: 44px 36px; position: relative; overflow: hidden; }
.cta-card .watermark { position: absolute; right: -24px; bottom: -36px; width: 180px; opacity: .14; pointer-events: none; }
.cta-card h3 { font-weight: 800; font-size: 26px; color: #fff; margin: 0 0 10px; text-wrap: pretty; }
.cta-card p { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: #D9E7F3; position: relative; }
.btn-white { background: #fff; color: #2E5C7E; border: none; border-radius: 999px; padding: 14px 30px; font-size: 15.5px; font-weight: 800; position: relative; }
.btn-white:hover { background: #EAF3F7; }

/* Footer */
.footer { background: #24455C; color: #CBE2E5; }
.footer-inner { max-width: 1020px; margin: 0 auto; padding: 32px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 28px; object-fit: contain; }
.footer-wordmark { font-weight: 800; font-size: 12.5px; letter-spacing: 2.5px; color: #fff; }
.footer-meta { font-size: 13.5px; }
.footer-meta a { color: #CBE2E5; text-decoration: none; }
.footer-meta a:hover { color: #fff; }

/* Booking modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,45,60,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 12px; }
.modal { background: #fff; border-radius: 20px; width: 620px; max-width: 100%; max-height: min(760px, 92vh); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(10,30,45,.35); }
.modal-head { padding: 20px 26px 16px; border-bottom: 1px solid #E7F0F4; display: flex; align-items: flex-start; gap: 16px; }
.modal-head-text { flex: 1; }
.modal-title { font-weight: 800; font-size: 19px; }
.modal-step { font-size: 13.5px; color: #5B7A8C; margin-top: 3px; }
.modal-close { background: #F1F7FA; border: none; border-radius: 999px; width: 34px; height: 34px; font-size: 15px; color: #41627A; flex-shrink: 0; }
.modal-close:hover { background: #E1ECF1; }
.progress { display: flex; gap: 6px; padding: 14px 26px 0; }
.seg { flex: 1; height: 4px; border-radius: 2px; background: #E3EDF2; }
.seg.on { background: #2E5C7E; }
.modal-body { padding: 20px 26px; overflow: auto; flex: 1; }
/* Panels take programmatic focus only (tabindex="-1") when a step changes, so
   no sighted keyboard user is ever stranded without a visible ring. */
.panel:focus { outline: none; }

.svc-list { display: grid; gap: 10px; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 14px; background: #fff; border: 1px solid #DCE8EE; text-align: left; width: 100%; }
.svc.sel { background: #EFF4F9; border: 2px solid #2E5C7E; padding: 14px 17px; }
.svc-t { display: block; font-size: 15.5px; font-weight: 800; color: #1E3D52; }
.svc-d { display: block; font-size: 13px; color: #5B7A8C; margin-top: 2px; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C3D6DF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; }
.sel .radio { border-color: #2E5C7E; }
.radio i { width: 10px; height: 10px; border-radius: 50%; background: #2E5C7E; display: none; }
.sel .radio i { display: block; }

.field-label { display: block; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #5B7A8C; margin-bottom: 10px; }
.day-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border-radius: 12px; padding: 10px 14px; border: 1px solid #DCE8EE; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; box-sizing: border-box; }
.chip.sel { border: 2px solid #2E5C7E; background: #EFF4F9; padding: 9px 13px; }
.chip .dow { font-size: 11.5px; font-weight: 700; color: #5B7A8C; }
.chip .num { font-weight: 800; font-size: 17px; color: #1E3D52; }
.chip .mon { font-size: 11px; color: #8AA3B2; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
/* 12-hour labels ("10:30 AM") do not fit the 4-up grid on a phone: they wrap
   and the AM row grows taller than the PM rows. Three columns keeps every
   slot on one line and the rows even. */
@media (max-width: 470px) { .time-grid { grid-template-columns: repeat(3, 1fr); } }
.slot { border-radius: 10px; padding: 11px 6px; font-size: 14px; font-weight: 700; border: 1px solid #DCE8EE; background: #fff; color: #33546A; white-space: nowrap; }
.slot.sel { border: 2px solid #2E5C7E; background: #EFF4F9; color: #2E5C7E; padding: 10px 5px; }
.hint { font-size: 12.5px; color: #8AA3B2; margin-top: 12px; }

.summary-strip { background: #F1F7FA; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: 20px; }
.fields { display: grid; gap: 16px; }
.field { display: block; }
.field .field-label { margin-bottom: 7px; }
.field input { width: 100%; border: 1.5px solid #CFDEE6; border-radius: 10px; padding: 12px 14px; font-size: 15px; color: #1E3D52; outline: none; }
.field input:focus { border-color: #2E5C7E; }

.done { text-align: center; padding: 12px 0 8px; }
.done-check { width: 64px; height: 64px; border-radius: 50%; background: #2E5C7E; color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.done-title { font-weight: 800; font-size: 23px; margin-bottom: 8px; }
.done-sub { margin: 0 0 22px; font-size: 14.5px; color: #5B7A8C; }
.summary-card { background: #F1F7FA; border-radius: 14px; padding: 18px 22px; text-align: left; display: grid; gap: 10px; font-size: 14.5px; }
.summary-card div { display: flex; justify-content: space-between; gap: 16px; }
.summary-card span { color: #5B7A8C; }
.summary-card .right { text-align: right; }
.msg-preview { margin-top: 16px; text-align: left; font-size: 14px; line-height: 1.55; color: #33546A; background: #fff; border: 1.5px dashed #CFDEE6; border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; }
.copy-row { margin-top: 12px; font-size: 13px; color: #8AA3B2; line-height: 1.6; }
.copy-row a { font-weight: 800; }
.btn-link { background: none; border: none; color: #2E5C7E; font-weight: 800; font-size: 13px; padding: 0; text-decoration: underline; }

.modal-foot { padding: 16px 26px; border-top: 1px solid #E7F0F4; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn-back { background: none; border: none; color: #41627A; font-size: 14.5px; font-weight: 800; padding: 10px 4px; visibility: hidden; }
.btn-back.show { visibility: visible; }
.btn-back:hover { color: #1E3D52; }
.btn-next { background: #2E5C7E; color: #fff; border: none; border-radius: 999px; padding: 13px 30px; font-size: 15px; font-weight: 700; text-decoration: none; display: inline-block; }
.btn-next:hover { background: #24455C; color: #fff; }
.btn-next:disabled { opacity: .45; cursor: not-allowed; }
.btn-next:disabled:hover { background: #2E5C7E; }
