/* Lopez Dental Center
   Palette taken from the office itself: teal business card and powder-blue walls. */
:root {
  --ink: #12302f;
  --ink-soft: #4a6463;
  --teal: #0f6b6d;
  --teal-deep: #0a3f42;
  --aqua: #cfeeea;
  --mist: #eef7f5;
  --paper: #fbfaf6;
  --coral: #ef7f86;
  --coral-deep: #c9515b;
  --gold: #e9a52b;
  --line: #d9e6e3;
  --white: #fff;
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 40px -22px rgba(10, 63, 66, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: clip; margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1360px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.center { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; }
.link { font-weight: 600; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: var(--white); font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }

/* Stars */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { width: 17px; height: 17px; background: #cfd8d6; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: var(--gold); }

/* Status pill */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #9aa; }
.status.is-open i { background: #4fd18b; box-shadow: 0 0 0 4px rgba(79, 209, 139, .25); }
.status.is-closed i { background: var(--coral); }
.status--lg { font-size: 1.1rem; margin-bottom: 22px; }

/* Top bar + header */
.topbar { background: var(--white); color: var(--ink-soft); font-size: .88rem; }
.topbar__in { display: flex; gap: 20px; align-items: center; padding: 8px 0; }
.topbar__addr { margin-right: auto; }
.topbar a { color: var(--teal); font-weight: 600; text-decoration: none; }

.header { position: sticky; top: 0; z-index: 50; background: linear-gradient(135deg, var(--teal-deep), var(--teal)); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.25rem; color: var(--white); text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.logo b { color: var(--aqua); }
.nav { flex: 1; display: flex; align-items: center; gap: 26px; }
.nav__links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 30px; }
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav a.nav__login { font-weight: 600; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--aqua); }
.header .btn { background: var(--white); border-color: var(--white); color: var(--teal-deep); }
.header .btn:hover { background: var(--aqua); border-color: var(--aqua); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { display: block; width: 24px; height: 2px; background: var(--white); margin: auto; position: relative; content: ""; }
.nav-toggle span:first-child::before { position: absolute; top: -7px; }
.nav-toggle span:first-child::after { position: absolute; top: 7px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--mist), var(--paper)); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 0 88px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--teal); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.rating-chip { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.rating-chip strong { font: 600 1.7rem var(--display); }
.rating-chip > span { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.rating-chip small { color: var(--ink-soft); font-size: .82rem; }
.hero__media { position: relative; padding: 0 0 48px 40px; }
.hero__main { border-radius: 160px 160px var(--radius) var(--radius); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero__inset { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: var(--shadow); }

/* Facts strip */
.facts { background: var(--teal); color: var(--white); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__in div { padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .18); }
.facts__in div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 600 2.1rem var(--display); }
.facts span { font-size: .92rem; opacity: .85; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--mist); }
.section--dark { background: var(--teal-deep); color: #e3f1ef; }
.section--dark h2 { color: var(--white); }
.section--dark .eyebrow { color: var(--aqua); }
.section--dark :focus-visible, .footer :focus-visible, .header :focus-visible { outline-color: var(--aqua); }
.section--dark a:not(.btn) { color: var(--white); }
.section__head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section__head p:last-child { color: var(--ink-soft); margin: 0; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about__media img { border-radius: var(--radius) var(--radius) 160px var(--radius); aspect-ratio: 3 / 3.6; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about h2 { font-style: italic; font-weight: 400; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b6d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Services */
.services { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.services li { counter-increment: s; background: var(--white); padding: 34px 30px; transition: background .2s; }
.services li:hover { background: #f6fcfb; }
.services li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 .95rem var(--display); color: var(--teal); margin-bottom: 18px; }
.services p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Rating summary */
.rating { display: grid; grid-template-columns: auto 1fr 1.1fr; gap: 48px; align-items: center; padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.rating__score { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rating__score strong { font: 600 4.6rem/1 var(--display); color: var(--teal-deep); }
.rating__score span:not(.stars) { color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px; }
.bar { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; font-size: .9rem; margin: 7px 0; }
.bar__track { height: 9px; border-radius: 9px; background: var(--mist); overflow: hidden; }
.bar__fill { height: 100%; background: var(--gold); border-radius: 9px; min-width: 0; }
.bar__n { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rating__tags h3 { font: 700 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.rating__tags ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .chip { font: 500 .9rem var(--body); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.tag b { color: var(--teal); margin-left: 4px; }

.tag.is-active, .chip.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.tag.is-active b { color: var(--aqua); }

.marquee { overflow: hidden; margin: 40px 0 8px; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee figure { flex: none; width: 340px; margin: 0 22px 0 0; padding: 28px; background: var(--teal-deep); color: #e6f3f1; border-radius: var(--radius); display: flex; flex-direction: column; }
.marquee figure:nth-child(3n+2) { background: var(--aqua); color: var(--ink); }
.marquee figure:nth-child(3n) { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.marquee figcaption, .quote-grid figcaption { margin-top: auto; padding-top: 18px; font: 600 .92rem var(--body); }
.marquee figcaption::before, .quote-grid figcaption::before { content: "- "; }
.marquee blockquote { margin: 14px 0 0; font: 400 1.08rem/1.45 var(--display); }
@keyframes marquee { to { transform: translateX(-50%); } }

.rv-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search input { font: 1rem var(--body); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); width: min(300px, 100%); }
.rv-count { color: var(--ink-soft); font-size: .92rem; margin: 14px 0 22px; }
.rv-grid { columns: 3 300px; column-gap: 22px; }
.rv { break-inside: avoid; margin: 0 0 22px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.rv[hidden] { display: none; }
.rv header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.rv h3 { font: 600 1rem var(--body); margin: 0; }
.rv header p { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--white); background: hsl(var(--h) 42% 42%); }
.rv__text { margin: 12px 0 0; font-size: .97rem; overflow-wrap: anywhere; }
.rv__text--empty { color: var(--ink-soft); font-style: italic; }
.rv__src { display: inline-block; margin-top: 12px; font-size: .84rem; font-weight: 600; }
.rv-empty { text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* Gallery */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 28, 30, .94); display: grid; place-items: center; padding: 24px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* Instagram */
.ig-head { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.ig-head img { border-radius: 50%; }
.ig-head div { margin-right: auto; }
.ig-head h2 { font-size: 1.7rem; margin: 0; }
.ig-head p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ig__post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.ig__post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ig__post img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.ig__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ig__body p { font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ig__body span { margin-top: auto; font-size: .82rem; color: var(--ink-soft); }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--white); }
.hours th span { margin-left: 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--aqua); color: var(--teal-deep); padding: 2px 8px; border-radius: 999px; }
.note { font-size: .86rem; opacity: .7; margin-top: 12px; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.contact-list dt { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); margin-bottom: 6px; }
.contact-list dd { margin: 0; }
.contact-list small { opacity: .7; }
.section--dark .btn { background: var(--white); border-color: var(--white); color: var(--teal-deep); }
.section--dark .btn:hover { background: var(--aqua); border-color: var(--aqua); color: var(--teal-deep); }
.visit__map { display: grid; gap: 14px; }
.visit__map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.visit__map img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__copy img { border-radius: var(--radius); margin-top: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.big-phone a { font: 600 2.1rem var(--display); color: var(--teal-deep); text-decoration: none; }
.form { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; max-width: 580px; margin-left: auto; }
.hp { position: absolute; left: -9999px; }
.form__msg { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form__msg.is-ok { background: #e2f6ea; color: #17643a; }
.form__msg.is-err { background: #fde8e9; color: #8f2630; }

/* Each field is a soft tinted tile: icon on the left, small label on top, value below */
.field { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 18px 12px 58px; background: #edf4f2; border: 1.5px solid transparent; border-radius: 16px; transition: background .2s, border-color .2s, box-shadow .2s; }
.field::before { content: ""; position: absolute; left: 19px; top: 21px; width: 22px; height: 22px; background: var(--teal); opacity: .75; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; transition: opacity .2s; }
.field--name { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.field--phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.field--email { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.field--date { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); }
.field--reason { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3Cpath d='M9 14l2 2 4-4'/%3E%3C/svg%3E"); }
.field--message { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.8 7L4 20l1.2-4.5A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.field:hover { background: #e6f0ee; }
.field:focus-within { background: var(--white); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 107, 109, .12); }
.field:focus-within::before { opacity: 1; }
.field label, .field__label { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); transition: color .2s; }
.field label b, .field__label b { color: var(--teal); }
.field label span, .field__label span { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.field:focus-within label, .field:focus-within .field__label { color: var(--teal); }
.field input, .field textarea { width: 100%; padding: 2px 0 0; border: 0; border-radius: 0; background: transparent; font: 500 1.05rem var(--body); color: var(--ink); outline: 0; }
.field textarea { resize: vertical; min-height: 52px; }
.field input::placeholder, .field textarea::placeholder { color: #93aaa7; font-weight: 400; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #edf4f2 inset; transition: background-color 600000s 0s; }
.field.has-err { background: #fdf3f3; border-color: var(--coral-deep); }
.field.has-err::before { background: var(--coral-deep); opacity: 1; }
.field.has-err label { color: var(--coral-deep); }
.field__err { margin-top: 4px; color: var(--coral-deep); font-size: .84rem; }
.field__err:empty { display: none; }

/* Multi-select inside the reason tile */
.multi summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; cursor: pointer; padding: 2px 0 0; font: 500 1.05rem var(--body); outline: 0; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.multi[open] summary::after { transform: translateY(1px) rotate(225deg); }
.multi__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi__text.is-placeholder { color: #93aaa7; font-weight: 400; }
.multi__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin: 12px 0 2px -40px; padding-top: 12px; border-top: 1px solid var(--line); }
.field .multi__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font: 500 .98rem var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.field .multi__opt span { font-size: inherit; font-weight: inherit; color: inherit; }
.field .multi__opt:hover { background: rgba(255, 255, 255, .7); }
.field .multi__opt input { flex: none; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--teal); cursor: pointer; }
.field .multi__opt input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.multi__opt:has(input:checked) { background: var(--white); color: var(--teal-deep); font-weight: 600; }
.multi__done { grid-column: 1 / -1; margin-top: 8px; padding: 11px; border: 0; border-radius: 12px; background: var(--aqua); color: var(--teal-deep); font: 600 .95rem var(--body); cursor: pointer; transition: background .2s, color .2s; }
.multi__done:hover { background: var(--teal); color: var(--white); }

.form__submit { margin-top: 8px; gap: 12px; padding: 16px 26px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--teal-deep), var(--teal)); font-size: 1.06rem; letter-spacing: .01em; }
.form__submit:hover { background: linear-gradient(135deg, var(--teal-deep), var(--teal-deep)); }
.form__submit::after { content: "\2192"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .2s, background .2s; }
.form__submit:hover::after { transform: translateX(5px); background: rgba(255, 255, 255, .28); }
.form__submit:disabled { opacity: .7; cursor: progress; }
.form__note { text-align: center; margin: 2px 0 0; font-size: .82rem; color: var(--ink-soft); }
.form__note::before { content: ""; display: inline-block; vertical-align: -2px; margin-right: 7px; width: 15px; height: 15px; background: var(--teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Inner pages */
.page-head { background: linear-gradient(180deg, var(--mist), var(--paper)); padding: 72px 0 56px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18em; margin-inline: auto; }
.page-head .lead { margin: 0 auto; }
.section--flush { padding-top: 24px; }
.h-sm { font-size: 1.4rem; margin-bottom: 16px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 36px; }
.info-list dt { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.info-list dd { margin: 0; }
.info-list small, .contact__copy .note { color: var(--ink-soft); }
.hours--light th, .hours--light td { border-bottom-color: var(--line); }
.hours--light .is-today th, .hours--light .is-today td { color: var(--teal-deep); }
.map-wide { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--radius); }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--teal); }
.steps li::before { content: "Step " counter(step); display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.steps p, .detail-grid p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.detail-grid article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.detail-grid article p + p { margin-top: 14px; }
.aside { margin: 32px 0 0; padding: 20px 24px; border-left: 4px solid var(--teal); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; max-width: 780px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-grid figure { display: flex; flex-direction: column; margin: 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.quote-grid blockquote { margin: 14px 0 0; font: 400 1.08rem/1.45 var(--display); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.facts-list { margin: 0 0 20px; }
.facts-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font-weight: 700; margin-bottom: 2px; }
.facts-list dd { margin: 0; color: var(--ink-soft); }
.cta-band { background: var(--teal); color: #e3f1ef; padding: 56px 0; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: var(--white); font-weight: 600; }
.cta-band .btn { background: var(--white); border-color: var(--white); color: var(--teal-deep); }
.cta-band .btn:hover { background: var(--aqua); border-color: var(--aqua); }
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }
.toc h2 { font: 700 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 4px; }
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
.legal .faq__group { margin: 48px 0 0; font-size: 1.6rem; }
.legal .faq__group:first-child { margin-top: 0; }
.faq-layout .faq { margin-top: 16px; }
.legal__related { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* Patient area: My Appointments */
.portal__in { max-width: 860px; margin-inline: auto; display: grid; gap: 20px; }
.portal__empty { padding: 48px 28px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.portal__empty p { color: var(--ink-soft); }
.pcard { padding: 26px 28px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); }
.pcard--confirmed, .pcard--completed { border-left-color: #2f9e62; }
.pcard--scheduled { border-left-color: #2a5aa8; }
.pcard--cancelled { border-left-color: var(--coral-deep); }
.pcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pcard__top h2 { font-size: 1.5rem; margin: 0 0 2px; }
.pcard__time { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--teal); }
.pcard--pending .pcard__time, .pcard--cancelled .pcard__time { font-weight: 400; font-size: 1rem; color: var(--ink-soft); }
.pbadge { flex: none; padding: 5px 14px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: #fff3d6; color: #8a5a0a; }
.pbadge--confirmed, .pbadge--completed { background: #e2f6ea; color: #17643a; }
.pbadge--scheduled { background: #e3ecfb; color: #1f4788; }
.pbadge--cancelled { background: #fde8e9; color: #8f2630; }
.pcard__info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 0; }
.pcard__info dt { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.pcard__info dd { margin: 0; overflow-wrap: anywhere; }
.pcard__wide { grid-column: 1 / -1; }
.pcard__wide dd { padding: 12px 16px; background: var(--mist); border-radius: 12px; }
.pcard__history, .portal__pw { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pcard__history summary, .portal__pw summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.ptimeline { list-style: none; margin: 18px 0 0; padding: 0; }
.ptimeline li { position: relative; padding: 0 0 18px 28px; }
.ptimeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); }
.ptimeline li::after { content: ""; position: absolute; left: 8px; top: 25px; bottom: 2px; width: 2px; background: var(--line); }
.ptimeline li:last-child { padding-bottom: 0; }
.ptimeline li:last-child::after { display: none; }
.ptimeline li.is-confirmed::before, .ptimeline li.is-completed::before { border-color: #2f9e62; }
.ptimeline li.is-rescheduled::before { border-color: #2a5aa8; }
.ptimeline li.is-cancelled::before { border-color: var(--coral-deep); }
.ptimeline strong { display: block; }
.ptimeline span { display: block; font-size: .88rem; color: var(--ink-soft); }
.ptimeline p { margin: 6px 0 0; padding: 8px 12px; background: var(--mist); border-radius: 10px; font-size: .95rem; }
.portal__foot { padding: 4px 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.portal__pw { margin-top: 0; border-top: 0; }
.portal__pw form { display: grid; gap: 14px; max-width: 380px; margin-top: 16px; }
.portal__pw label { display: flex; flex-direction: column; gap: 4px; }
.portal__pw label span { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }
.portal__pw input { font: 1rem var(--body); padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.portal__pw input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 107, 109, .12); }
.portal__pw .btn { justify-self: start; }
.portal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.portal__help { margin: 0; text-align: center; color: var(--ink-soft); }

/* Footer */
.footer { background: #072c2e; color: #b7d3d0; padding: 48px 0 18px; font-size: .94rem; }
.footer .footer__copy { margin: 0; }
.footer__in { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 32px 48px; }
.footer p { margin: 0 0 4px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--aqua); text-decoration: underline; }
.footer__name { font: 600 1.3rem var(--display); color: var(--white); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h2 { font: 600 1.25rem var(--display); color: var(--white); margin: 0 0 8px; }

/* Legal pages */
.legal__in { max-width: 780px; margin-inline: auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal__date { color: var(--ink-soft); font-size: .92rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal .btn { margin-top: 24px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 600 1.12rem var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--teal); font: 600 1.1rem var(--body); }
.faq details[open] summary::after { content: "-"; }
.faq summary:hover { color: var(--teal); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }
.footer__copy { grid-column: 1 / -1; text-align: center; opacity: .6; font-size: .84rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }

.callbar { display: none; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1140px) {
  .header__in { gap: 16px; }
  .nav { gap: 16px; }
  .nav__links { gap: 18px; }
  .nav__actions { gap: 14px; }
  .logo { font-size: 1.1rem; }
  .header .btn--sm { padding: 9px 14px; }
}

@media (max-width: 960px) {
  .form { max-width: none; margin-left: 0; }
  .steps, .detail-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .toc h2 { width: 100%; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .hero__in, .about, .visit, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero__in { padding: 48px 0 64px; }
  .hero__media { max-width: 520px; }
  .about__media { max-width: 420px; }
  .services, .ig { grid-template-columns: 1fr 1fr; }
  .rating { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rating__tags { grid-column: 1 / -1; }
  .facts__in { grid-template-columns: 1fr 1fr; }
  .facts__in div { padding: 22px 16px; }
  .facts__in div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts__in div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
  .section { padding: 68px 0; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--teal-deep); padding: 8px 20px 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .nav__links, .nav__actions { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .btn { margin-top: 16px; }
}

@media (max-width: 620px) {
  .steps, .detail-grid, .quote-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .topbar__addr { display: none; }
  .topbar__in { justify-content: space-between; }
  .services, .ig, .rating, .contact-list, .info-list, .photo-row, .pcard__info { grid-template-columns: 1fr; }
  .pcard__top { flex-direction: column; }
  .marquee figure { width: 280px; padding: 22px; }
  .rating { padding: 24px; }
  .multi__list { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; }
  .lightbox { padding: 16px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer { padding-bottom: 84px; }
  .callbar { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; text-align: center; padding: 14px; border-radius: 999px; background: var(--teal); color: var(--white); font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee figure[aria-hidden] { display: none; }
}
