/* =========================================================
   Shree Jee Clinic & Dental Care Centre — public site styles
   Brand: maroon (from letterhead) + charcoal + warm white
   ========================================================= */
:root {
  --brand: #9b2335;
  --brand-d: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-l: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-ll: color-mix(in srgb, var(--brand) 5%, #fff);
  --ink: #1d2027;
  --ink-2: #4a505c;
  --muted: #747b88;
  --line: #e8e3e1;
  --bg: #ffffff;
  --tint: #faf6f5;
  --dark: #22252b;
  --ok: #1f8a5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 10, 10, .04), 0 8px 24px rgba(20, 10, 10, .06);
  --shadow-lg: 0 20px 50px rgba(60, 10, 20, .14);
  --font: 'Plus Jakarta Sans', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hi: 'Mukta', 'Plus Jakarta Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
body.lang-hi { font-family: var(--font-hi); font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lang-hi h1, .lang-hi h2, .lang-hi h3 { letter-spacing: 0; line-height: 1.35; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.muted { color: var(--muted); }
.pad { padding: 1.25rem; }
.hide-sm {}
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 0; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: var(--brand-d); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost:hover { background: var(--brand-l); color: var(--brand-d); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #fff5f5; color: var(--brand-d); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb457; color: #fff; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; }
.link-more .ic { transition: transform .2s; }
a:hover .link-more .ic, .link-more:hover .ic { transform: translateX(3px); }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; background: var(--brand-l); color: var(--brand-d); font-size: .78rem; font-weight: 700; }
.chip-red { background: var(--brand); color: #fff; }

/* ---------- top bar & header ---------- */
.admin-preview-bar { background: #f59e0b; color: #1d2027; text-align: center; padding: .45rem 1rem; font-size: .88rem; font-weight: 600; }
.admin-preview-bar a { color: #1d2027; text-decoration: underline; }
.topbar { background: var(--dark); color: #d5d8de; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar-info, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar a { color: #d5d8de; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.lang-toggle { background: var(--brand); color: #fff !important; padding: .3rem .85rem; border-radius: 999px; font-weight: 700; font-family: var(--font-hi); }
.lang-toggle:hover { background: var(--brand-d); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: .25s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--brand); width: 44px; height: 44px; display: grid; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.18rem; font-weight: 800; }
.brand-text small { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav > a, .nav-drop > button { padding: .55rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .94rem; background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: .3rem; }
.nav > a:hover, .nav-drop > button:hover { color: var(--brand); background: var(--brand-ll); }
.nav > a.active, .nav-drop > button.active { color: var(--brand); }
.nav > a, .nav-drop > button { white-space: nowrap; }
.nav > a.nav-cta { color: #fff; background: var(--brand); margin-left: .5rem; padding: .7rem 1.2rem; border-radius: 999px; }
.nav > a.nav-cta:hover { color: #fff; background: var(--brand-d); }
.nav-drop { position: relative; }
.nav-drop .rot { transform: rotate(90deg); width: .9em; }
.nav-drop-menu { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .4rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.nav-drop-menu a:hover { background: var(--brand-ll); color: var(--brand); }
.nav-toggle { display: none; background: var(--brand-l); color: var(--brand); border: 0; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.nav-toggle .ic { width: 24px; height: 24px; }

/* ---------- ticker ---------- */
.ticker { background: var(--brand-l); border-bottom: 1px solid color-mix(in srgb, var(--brand) 15%, transparent); }
.ticker-in { display: flex; align-items: center; gap: 1rem; min-height: 44px; overflow: hidden; }
.ticker-label { flex-shrink: 0; background: var(--brand); color: #fff; padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 3rem; white-space: nowrap; animation: tick 40s linear infinite; padding-left: 1rem; }
.ticker-move a { color: var(--brand-d); font-weight: 600; font-size: .92rem; }
.ticker-move a::before { content: '◆'; margin-right: .6rem; font-size: .6rem; vertical-align: .15em; opacity: .5; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--dark); }
.hero-slides { position: relative; min-height: clamp(520px, 78vh, 720px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(25,8,12,.88) 0%, rgba(25,8,12,.6) 45%, rgba(25,8,12,.15) 100%); }
.hero-bg-pattern { background:
  radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--brand) 70%, transparent) 0, transparent 45%),
  radial-gradient(circle at 95% 90%, color-mix(in srgb, var(--brand) 45%, transparent) 0, transparent 35%),
  linear-gradient(135deg, #2a1418 0%, var(--brand-d) 100%); }
.hero-bg-pattern::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M26 18h8v8h8v8h-8v8h-8v-8h-8v-8h8z' fill='%23fff'/%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 2; padding-block: 5rem 6rem; max-width: 1200px; }
.hero-content h1 { color: #fff; max-width: 15ch; margin-bottom: .4em; }
.lang-hi .hero-content h1 { max-width: 18ch; }
.hero-content p { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.85); max-width: 54ch; margin-bottom: 2rem; }
.hero-slide.is-active .hero-content > * { animation: rise .8s both; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: 1.2rem; backdrop-filter: blur(4px); }
.eyebrow-dark { display: inline-block; color: var(--brand); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.lang-hi .eyebrow-dark { letter-spacing: .02em; font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-dots { position: absolute; z-index: 3; bottom: 6.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; padding: 0; }
.hero-dots button.is-active { width: 30px; background: #fff; }

/* ---------- quick info ---------- */
.quick { position: relative; z-index: 4; margin-top: -4rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-card { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1.3rem 1.25rem; box-shadow: var(--shadow-lg); color: var(--ink); border: 1px solid var(--line); transition: .2s; }
a.quick-card:hover { transform: translateY(-3px); color: var(--ink); }
.quick-card h3 { font-size: 1rem; margin: 0 0 .1rem; }
.quick-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.q-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); flex-shrink: 0; }
.q-icon .ic { width: 26px; height: 26px; }
.q-red { background: var(--brand); border-color: var(--brand); }
.q-red h3, .q-red p { color: #fff !important; }
.q-red .q-icon { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(135deg, #24161a, #1d2027); color: #e9e4e5; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; text-align: left; max-width: none; gap: 1rem; flex-wrap: wrap; }
.section-head.row.left { margin-bottom: 1.6rem; align-items: center; }
.section-head.light h2 { color: #fff; }
.sub-title { font-size: 1.4rem; margin-bottom: 1.2rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-doctors { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-events { grid-template-columns: repeat(2, 1fr); }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.empty .ic { width: 48px; height: 48px; opacity: .4; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; color: var(--ink); overflow: hidden; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 25%, transparent); color: var(--ink); }

/* speciality */
.sp-card { padding: 1.8rem; display: flex; flex-direction: column; }
.sp-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.sp-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; margin-bottom: 1.1rem; transition: .25s; flex-shrink: 0; }
.sp-icon .ic { width: 30px; height: 30px; }
a.sp-card:hover .sp-icon { background: var(--brand); color: #fff; transform: rotate(-6deg); }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media > img { border-radius: 24px; width: 100%; aspect-ratio: 4/3.4; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-illus { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem; border-radius: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-d)); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; }
.illus-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; font-weight: 700; padding: 1rem; }
.illus-card .ic { width: 46px; height: 46px; }
.about-badge { position: absolute; right: -1rem; bottom: -1.5rem; background: #fff; border-radius: 18px; padding: 1rem 1.4rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); }
.about-badge b { font-size: 2rem; color: var(--brand); line-height: 1; }
.about-badge span { color: var(--muted); font-weight: 700; font-size: .85rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.8rem 0 2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; border-left: 4px solid var(--brand); }
.stat b { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.mv { padding: 2rem; }
.mv p { color: var(--ink-2); margin: 0; }

/* doctors */
.doc-card { display: grid; grid-template-columns: 140px 1fr; }
.doc-photo { background: linear-gradient(160deg, var(--brand-l), #f3e9e9); display: grid; place-items: center; overflow: hidden; min-height: 100%; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-photo.lg { aspect-ratio: 1; border-radius: 20px; margin-bottom: 1.4rem; }
.avatar-fallback { width: 86px; height: 86px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent); }
.doc-photo.lg .avatar-fallback { width: 150px; height: 150px; font-size: 3rem; }
.avatar-fallback.sm { width: 70px; height: 70px; font-size: 1.3rem; }
.doc-body { padding: 1.4rem 1.4rem 1.3rem; }
.doc-body h3 { margin-bottom: .15rem; font-size: 1.2rem; }
.doc-body h3 a { color: var(--ink); }
.doc-qual { color: var(--brand); font-weight: 700; margin: 0; font-size: .92rem; }
.doc-desig { color: var(--ink-2); margin: 0 0 .7rem; font-size: .93rem; }
.doc-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.doc-meta li { display: flex; gap: .45rem; align-items: center; }
.doc-meta .ic { color: var(--brand); }
.doc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.doctor-profile { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.doc-side { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; box-shadow: var(--shadow); }
.info-list { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.info-list span { color: var(--muted); }
.info-list b { text-align: right; }

/* doctor message */
.message { margin: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 2rem; position: relative; }
.message .quote-mark { color: var(--brand); opacity: .9; }
.message .quote-mark .ic { width: 38px; height: 38px; fill: color-mix(in srgb, var(--brand) 80%, #fff); stroke: none; }
.message blockquote { margin: 1rem 0 1.5rem; font-size: 1.12rem; line-height: 1.75; color: #f1ecec; font-style: italic; }
.lang-hi .message blockquote { font-style: normal; }
.message figcaption { display: flex; align-items: center; gap: .9rem; }
.message figcaption b { display: block; color: #fff; }
.message figcaption small { color: #b7b0b2; }
.message.light { background: var(--brand-ll); border-color: color-mix(in srgb, var(--brand) 15%, transparent); margin-top: 2rem; }
.message.light blockquote { color: var(--ink); }
.message.light figcaption b { color: var(--ink); }
.message.light figcaption small { color: var(--muted); }
.msg-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-avatar.sm { width: 44px; height: 44px; font-size: .9rem; }

/* facilities */
.facility { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); transition: .2s; }
.section-tint .facility { background: #fff; }
.facility:hover { border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.facility h4 { margin: 0 0 .2rem; font-size: 1.02rem; }
.facility p { margin: 0; color: var(--muted); font-size: .9rem; }
.facility-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.facility-icon .ic { width: 24px; height: 24px; }

/* members */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; }
.member { text-align: center; }
.member-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; background: var(--brand-l); display: grid; place-items: center; border: 4px solid #fff; box-shadow: var(--shadow); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h4 { margin: 0; }
.member p { margin: 0; color: var(--muted); font-size: .9rem; }

/* cases */
.case-media { aspect-ratio: 16/10; background: var(--brand-l); display: grid; place-items: center; overflow: hidden; }
.case-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .case-media img { transform: scale(1.05); }
.case-media.split { grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.case-media figure { margin: 0; position: relative; height: 100%; overflow: hidden; }
.case-media figure img { width: 100%; height: 100%; object-fit: cover; }
.case-media figcaption, .ba figcaption { position: absolute; left: .6rem; bottom: .6rem; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 99px; }
.case-body { padding: 1.3rem 1.4rem 1.5rem; }
.case-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.case-body .chip { margin-bottom: .6rem; }
.media-fallback { color: var(--brand); opacity: .4; }
.media-fallback .ic { width: 54px; height: 54px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.ba figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; }
.ba img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* events & notices */
.updates-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.event-media { position: relative; aspect-ratio: 16/10; background: var(--brand-l); display: grid; place-items: center; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.date-badge { position: absolute; top: .9rem; left: .9rem; background: #fff; border-radius: 12px; padding: .35rem .7rem; text-align: center; font-size: .75rem; font-weight: 700; color: var(--brand); text-transform: uppercase; box-shadow: var(--shadow); line-height: 1.1; }
.date-badge b { display: block; font-size: 1.35rem; color: var(--ink); }
.event-body { padding: 1.2rem 1.3rem 1.4rem; }
.event-body h3 { margin-bottom: .5rem; }
.meta-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .86rem; }
.meta-row li { display: inline-flex; align-items: center; gap: .35rem; }
.meta-row .ic { color: var(--brand); }
.meta-row.big { font-size: 1rem; margin-bottom: 1.5rem; }
.notice-board { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.notice-board.flat { box-shadow: none; }
.notice-head { background: var(--brand); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; }
.notice-head h3 { color: #fff; margin: 0; display: flex; align-items: center; gap: .5rem; }
.notice-head a { color: #fff; font-weight: 700; font-size: .85rem; opacity: .9; }
.notice-list { max-height: 440px; overflow-y: auto; }
.notice-board.flat .notice-list { max-height: none; }
.notice-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { background: var(--brand-ll); color: var(--ink); }
.notice-date { font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--brand-l); padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; }
.notice-title { font-weight: 600; font-size: .95rem; }
.notice-att, .notice-arrow { color: var(--muted); }

/* gallery */
.gallery-grid { columns: 4 240px; column-gap: 1rem; }
.g-item { display: block; margin-bottom: 1rem; border-radius: 14px; overflow: hidden; position: relative; break-inside: avoid; background: var(--brand-l); }
.g-item img { width: 100%; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); opacity: 0; transition: .3s; }
.g-item:hover::after { opacity: 1; }
.g-cap { position: absolute; left: 1rem; bottom: .8rem; color: #fff; font-weight: 600; z-index: 1; opacity: 0; transform: translateY(6px); transition: .3s; font-size: .9rem; }
.g-item:hover .g-cap { opacity: 1; transform: none; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filters button { border: 1px solid var(--line); background: #fff; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--ink-2); transition: .2s; }
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.is-hidden { display: none !important; }

/* reviews & faq */
.review { padding: 1.7rem; margin: 0; display: flex; flex-direction: column; }
.review blockquote { margin: .6rem 0 1.3rem; color: var(--ink-2); flex: 1; }
.review figcaption { display: flex; gap: .8rem; align-items: center; }
.review figcaption b { display: block; }
.review figcaption small { color: var(--muted); }
.stars { color: #ddd; letter-spacing: .1em; }
.stars .on { color: #f5a524; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .8rem; transition: .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 30%, transparent); box-shadow: var(--shadow); }
.faq summary { padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--brand); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--ink-2); }

/* page hero */
.page-hero { background: linear-gradient(120deg, #2a1418 0%, var(--brand-d) 60%, var(--brand) 100%); color: #fff; padding: 3.5rem 0 3.2rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .3rem; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 65ch; margin: 0; font-size: 1.05rem; }
.crumbs { font-size: .85rem; display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; color: rgba(255,255,255,.65); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }

/* detail pages */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.detail-img { width: 100%; border-radius: 20px; margin-bottom: 1.8rem; box-shadow: var(--shadow); max-height: 520px; object-fit: cover; }
.detail-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.detail-actions.center { justify-content: center; }
.prose { color: var(--ink-2); font-size: 1.04rem; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1.2rem 0; padding: .4rem 1.2rem; background: var(--brand-ll); border-radius: 0 12px 12px 0; }
.side { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.side-card h4 { margin-bottom: 1rem; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; gap: .6rem; align-items: center; padding: .6rem .5rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.side-list a:hover { background: var(--brand-ll); color: var(--brand); }
.side-list .ic { color: var(--brand); }
.side-cta { background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff; border: 0; }
.side-cta h4 { color: #fff; margin-bottom: .4rem; }
.side-cta p { color: rgba(255,255,255,.85); }
.mini-doc { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.mini-doc:last-child { border: 0; }
.mini-doc b, .mini-doc small { display: block; }
.mini-doc small { color: var(--ink-2); font-size: .82rem; }

/* forms */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row.three { grid-template-columns: 1fr 1fr 1.4fr; }
.form label { display: grid; gap: .4rem; }
.form label > span { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.form input, .form select, .form textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; background: #fdfcfc; color: var(--ink); transition: .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.alert-error { background: #fdecec; color: #a32020; border: 1px solid #f6caca; }
.alert-ok { background: #e8f6ef; color: var(--ok); border: 1px solid #bfe5d1; }
.alert-warn { background: #fff6e5; color: #8a5a00; border: 1px solid #f5dca8; }
.success-box { text-align: center; padding: 1.5rem 0; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: #e8f6ef; color: var(--ok); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.success-icon .ic { width: 40px; height: 40px; }
.success-box h2 { font-size: 1.4rem; }
.ref { font-size: 1.3rem; color: var(--brand); letter-spacing: .05em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.c-card { display: flex; gap: 1.1rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.c-card .sp-icon { margin: 0; width: 52px; height: 52px; }
.c-card h4 { margin: 0 0 .2rem; }
.c-card p { margin: 0 0 .3rem; color: var(--ink-2); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.9); }

/* CTA band & footer */
.cta-band { background: linear-gradient(110deg, var(--brand-d), var(--brand)); color: #fff; padding: 2.8rem 0; }
.cta-band-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer { background: var(--dark); color: #b9bdc6; padding-top: 4rem; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { color: #fff; margin-bottom: 1.1rem; font-size: 1.02rem; }
.brand-light, .brand-light:hover { color: #fff; margin-bottom: 1rem; }
.brand-light .brand-mark { color: var(--brand); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: #b9bdc6; }
.footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ic { color: color-mix(in srgb, var(--brand) 60%, #fff); margin-top: .25em; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .85rem; }
.footer-bottom-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.visitor-badge { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.07); padding: .35rem .9rem; border-radius: 999px; }
.visitor-badge strong { color: #fff; }

/* floating actions & mobile bar */
.float-actions { position: fixed; right: 1.2rem; bottom: 1.4rem; display: grid; gap: .7rem; z-index: 60; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.2); transition: transform .2s; }
.fab:hover { transform: scale(1.08); color: #fff; }
.fab .ic { width: 26px; height: 26px; }
.fab-wa { background: #25d366; }
.fab-call { background: var(--brand); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.mobile-bar { display: none; }

/* popup & lightbox */
.popup { position: fixed; inset: 0; background: rgba(15,8,10,.6); z-index: 100; display: grid; place-items: center; padding: 1rem; backdrop-filter: blur(3px); }
.popup[hidden], .lightbox[hidden] { display: none; }
.popup-box { background: #fff; border-radius: 22px; max-width: 460px; width: 100%; overflow: hidden; position: relative; animation: rise .4s; }
.popup-box img { width: 100%; max-height: 300px; object-fit: cover; }
.popup-body { padding: 1.6rem; text-align: center; }
.popup-close { position: absolute; top: .7rem; right: .7rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.lightbox { position: fixed; inset: 0; background: rgba(10,6,8,.94); z-index: 110; display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; margin: auto; }
.lightbox figcaption { color: #ddd; margin-top: .8rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; } .lb-prev .ic { transform: rotate(180deg); }
.lb-next { right: 1rem; }

/* maintenance */
.maint { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #2a1418, var(--brand-d)); padding: 1.5rem; }
.maint-box { background: #fff; border-radius: 28px; max-width: 560px; width: 100%; padding: 3rem 2rem; text-align: center; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.maint-box .lang-toggle { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .85rem; display: inline-flex; gap: .3rem; align-items: center; }
.maint-icon { width: 84px; height: 84px; border-radius: 24px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; margin: 0 auto 1.4rem; }
.maint-icon .ic { width: 42px; height: 42px; }
.maint-name { color: var(--brand); font-weight: 800; margin-bottom: .3rem; }
.maint-box h1 { font-size: 2rem; }
.maint-contact { border-top: 1px dashed var(--line); margin-top: 1.8rem; padding-top: 1.6rem; display: grid; gap: .8rem; justify-items: center; }
.big-404 { font-size: 7rem; font-weight: 800; color: var(--brand-l); -webkit-text-stroke: 2px var(--brand); line-height: 1; margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .nav > a, .nav-drop > button { padding: .5rem .55rem; font-size: .9rem; }
}
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; flex-direction: column; align-items: stretch; padding: 5.5rem 1.2rem 2rem; gap: .2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: -20px 0 50px rgba(0,0,0,.15); overflow-y: auto; z-index: 70; }
  .nav.open { transform: none; visibility: visible; }
  .nav > a, .nav-drop > button { padding: .85rem 1rem; font-size: 1rem; width: 100%; }
  .nav > a.nav-cta { margin: 1rem 0 0; justify-content: center; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  .nav-drop > button .rot { display: none; }
  .nav-toggle { display: grid; place-items: center; position: relative; z-index: 80; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .updates-grid, .detail-grid, .form-layout, .contact-grid, .doctor-profile { grid-template-columns: 1fr; }
  .side, .doc-side { position: static; }
  .about-badge { right: 1rem; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; padding-bottom: 64px; }
  .hide-sm { display: none !important; }
  .topbar-info span:first-child { display: none; }
  .header-in { min-height: 66px; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-mark { width: 38px; height: 38px; }
  .grid-2, .grid-3, .grid-events, .form-row, .form-row.three, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .quick { margin-top: -3rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .quick-card { flex-direction: column; align-items: flex-start; padding: 1rem; gap: .6rem; }
  .quick-card p { font-size: .8rem; }
  .q-icon { width: 42px; height: 42px; }
  .hero-content { padding-block: 3.5rem 5.5rem; }
  .hero-dots { bottom: 4.6rem; }
  .doc-card { grid-template-columns: 1fr; }
  .doc-photo { aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 140px; column-gap: .6rem; }
  .g-item { margin-bottom: .6rem; }
  .notice-item { grid-template-columns: 1fr auto; gap: .4rem .8rem; }
  .notice-date { grid-column: 1 / -1; justify-self: start; }
  .notice-att { display: none; }
  .float-actions { display: none; }
  .mobile-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .3rem; font-size: .74rem; font-weight: 700; color: var(--ink-2); }
  .mobile-bar a .ic { width: 22px; height: 22px; color: var(--brand); }
  .mobile-bar a.primary { background: var(--brand); color: #fff; }
  .mobile-bar a.primary .ic { color: #fff; }
  .ba { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .header, .ticker, .cta-band, .footer, .float-actions, .mobile-bar, .page-hero, .side, .detail-actions { display: none !important; }
  .form-layout { grid-template-columns: 1fr; }
  .form-card { box-shadow: none; border: 0; }
}
