/* Sri Ramya Dental Clinic · public website. Colours taken from the clinic logo. */
:root {
  --green: #17594A;
  --green-deep: #0F3F35;
  --green-ink: #0B2E27;
  --green-wash: #E8F1ED;
  --gold: #D2A12A;
  --gold-deep: #A97E14;
  --gold-wash: #FBF2DC;
  --cream: #FBF8F1;
  --paper: #FFFFFF;
  --ink: #1C2A26;
  --ink-2: #51625C;
  --line: #E3E8E4;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(15, 63, 53, .10);
  --shadow-lg: 0 24px 60px rgba(15, 63, 53, .16);
  --header-h: 76px;
  color-scheme: only light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; color: var(--green-ink); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.gold { color: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; cursor: pointer; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(23, 89, 74, .28); }
.btn-primary:hover { background: var(--green-deep); }
.btn-gold { background: var(--gold); color: var(--green-ink); box-shadow: 0 10px 24px rgba(210, 161, 42, .3); }
.btn-gold:hover { background: #DDB03E; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.link-arrow { color: var(--green); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--green), var(--gold)); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: height .3s ease, background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { --header-h: 64px; background: rgba(251, 248, 241, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15, 63, 53, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: auto; transition: width .3s; }
.scrolled .brand img { width: 40px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-family: var(--serif); font-size: 1.35rem; color: var(--green); }
.brand strong em { font-style: normal; color: var(--gold); }
.brand small { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a, .menu-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); background: none; border: 0; font-family: inherit; cursor: pointer; position: relative; }
.nav > ul > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; border-radius: 2px; }
.nav > ul > li > a:hover::after, .nav > ul > li > a.active::after { transform: scaleX(1); }
.nav > ul > li > a.active { color: var(--green); }
.menu-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.has-menu { position: relative; }
.has-menu.open .menu-btn svg { transform: rotate(180deg); }
.submenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-menu.open .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .has-menu:hover .submenu { opacity: 1; visibility: visible; transform: none; } }
.submenu a { display: grid; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.submenu a:hover { background: var(--green-wash); }
.submenu strong { color: var(--green-deep); }
.submenu span { font-size: .82rem; color: var(--ink-2); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--green-deep); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
  background: radial-gradient(1000px 500px at 85% 20%, #EEF5F1 0%, transparent 60%), radial-gradient(700px 400px at 5% 95%, var(--gold-wash) 0%, transparent 60%), var(--cream); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; pointer-events: none; }
.b1 { width: 420px; height: 420px; right: -120px; top: 80px; background: radial-gradient(circle at 30% 30%, #D6E8DF, #BCD9CB); }
.b2 { width: 260px; height: 260px; left: -90px; bottom: 40px; background: radial-gradient(circle at 30% 30%, #F7E6BC, #EFD08A); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(210, 161, 42, .2); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; }
.hero-badges li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 10px 16px; border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 63, 53, .06); }
.hero-badges strong { font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.hero-badges span { font-size: .78rem; line-height: 1.25; color: var(--ink-2); }
.hero-badges .is-open strong { color: #1E8E5A; }
.hero-badges .is-closed strong { color: #B4442F; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 440px; }
.halo { position: absolute; width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff 55%, rgba(255,255,255,0) 72%); box-shadow: inset 0 0 0 1px rgba(23, 89, 74, .06); }
.halo::before, .halo::after { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(23, 89, 74, .18); animation: spin 60s linear infinite; }
.halo::after { inset: -46px; border-color: rgba(210, 161, 42, .25); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo { position: relative; width: min(420px, 82%); max-width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(15, 63, 53, .12)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.float-card strong { display: block; font-size: .92rem; color: var(--green-deep); }
.float-card small { color: var(--ink-2); font-size: .78rem; }
.float-card .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-wash); color: var(--green); }
.float-card .ic.gold { background: var(--gold-wash); color: var(--gold-deep); }
.float-card .ic svg { width: 22px; height: 22px; }
.fc1 { left: -4%; bottom: 14%; }
.fc2 { right: -2%; top: 10%; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(23, 89, 74, .35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- stats ---------- */
.stats { background: var(--green-deep); color: #fff; padding: 46px 0; position: relative; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at 80% 0%, rgba(210, 161, 42, .18), transparent 70%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; position: relative; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); line-height: 1.05; }
.stat span { font-size: .92rem; color: #CFE0D9; }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.08rem; margin-top: 14px; }

/* about */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about-photo { position: relative; }
.portrait { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 10 / 11; background: var(--green-wash); }
.portrait svg { width: 100%; height: 100%; stroke: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.exp-badge { position: absolute; right: -24px; bottom: 32px; background: var(--gold); color: var(--green-ink); border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.exp-badge strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.exp-badge span { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy h2 .sub { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--gold-deep); letter-spacing: .04em; margin-top: 8px; }
.about-copy p { color: var(--ink-2); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317594A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.about-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* services */
.services { background: linear-gradient(180deg, var(--cream), #F4F1E8); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; position: relative; overflow: hidden; }
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin: 16px 0 8px; color: var(--green-ink); }
.card p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.cicon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--green-wash); color: var(--green); transition: background .3s, color .3s, transform .3s; }
.cicon svg { width: 28px; height: 28px; }
.card:hover .cicon { background: var(--green); color: #fff; transform: rotate(-6deg); }

/* journey */
.journey { background: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); transform: scaleX(var(--line-progress, 0)); transform-origin: left; transition: transform 1.4s ease; }
.steps.in::before { --line-progress: 1; }
.step { text-align: center; position: relative; }
.step .num { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line); position: relative; }
.step h3 { margin-bottom: 8px; color: var(--green-ink); }
.step p { color: var(--ink-2); font-size: .95rem; }

/* team */
.team { background: var(--green-wash); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doc { background: #fff; border-radius: 22px; padding: 30px 24px 26px; text-align: center; box-shadow: 0 8px 26px rgba(15, 63, 53, .07); transition: transform .3s, box-shadow .3s; }
.doc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.avatar { width: 116px; height: 116px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; display: grid; place-items: end center; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.avatar svg { width: 100%; height: 100%; stroke: none; }
.a1 { background: linear-gradient(160deg, #F6E3B4, #E8C46C); } .a1 svg { fill: var(--green-deep); }
.a2 { background: linear-gradient(160deg, #D9EAE3, #A9CFC0); } .a2 svg { fill: var(--green); }
.a3 { background: linear-gradient(160deg, #FCE8DA, #F2BFA0); } .a3 svg { fill: #8B4A2B; }
.a4 { background: linear-gradient(160deg, #E0E6F4, #AFC0E3); } .a4 svg { fill: #2E4677; }
.doc h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--green-ink); }
.doc .role { color: var(--gold-deep); font-weight: 700; font-size: .88rem; margin: 6px 0 12px; }
.doc p:last-child { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* why */
.why { background: var(--green-deep); color: #E3EEE9; overflow: hidden; }
.why::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 161, 42, .22), transparent 70%); }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; position: relative; }
.why h2 { color: #fff; margin-bottom: 18px; }
.why .eyebrow { color: var(--gold); }
.why-copy p { color: #BFD3CB; font-size: 1.08rem; margin-bottom: 28px; }
.why-copy { position: sticky; top: 110px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.why-list li { display: flex; gap: 18px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .3s, transform .3s; }
.why-list li:hover { background: rgba(255, 255, 255, .09); transform: translateX(6px); }
.why-list h3 { color: #fff; margin-bottom: 4px; }
.why-list p { margin: 0; color: #BFD3CB; font-size: .95rem; }
.wicon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(210, 161, 42, .16); color: var(--gold); }
.wicon svg { width: 24px; height: 24px; }

/* visit */
.visit { background: #fff; }
.visit-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 36px; align-items: stretch; }
.visit-info { display: grid; gap: 18px; }
.info-block { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.info-block h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--green-ink); margin-bottom: 10px; }
.info-block p { color: var(--ink-2); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.hours td { text-align: right; padding: 6px 0; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px dashed var(--line); }
.hours tr.today th, .hours tr.today td { color: var(--green); font-weight: 700; }
.status-pill { font-family: var(--sans); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-pill.is-open { background: #E2F4EA; color: #1E7A4F; }
.status-pill.is-closed { background: #FBE7E3; color: #A33A26; }
.contact-list { display: grid; gap: 4px; }
.contact-list a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; padding: 6px 0; font-weight: 600; color: var(--green-deep); word-break: break-word; }
.contact-list a span { min-width: 84px; font-weight: 500; font-size: .85rem; color: var(--ink-2); }
.contact-list a:hover { color: var(--gold-deep); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* faq */
.faq { background: var(--cream); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--green-ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--green-wash); color: var(--green); display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--gold); color: var(--green-ink); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-2); }
.faq details:target { box-shadow: 0 0 0 3px var(--gold); }

/* cta */
.cta { background: linear-gradient(120deg, var(--green) 0%, var(--green-deep) 100%); color: #fff; padding: 64px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #CFE0D9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--green-ink); color: #B9CCC4; padding: 64px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { width: 200px; background: var(--cream); border-radius: 16px; padding: 12px 16px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #B9CCC4; word-break: break-word; }
.site-footer a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 20px; font-size: .85rem; }
.foot-bottom p { margin: 0; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-36px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; padding: 90px 22px 28px; box-shadow: none; transform: translateX(105%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s, box-shadow .35s; overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; box-shadow: -20px 0 50px rgba(0, 0, 0, .15); transition: transform .35s ease, visibility 0s, box-shadow .35s; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li > a, .menu-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .nav > ul > li > a::after { display: none; }
  .nav > ul > li > a.active { background: var(--green-wash); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; min-width: 0; }
  .has-menu.open .submenu { display: block; }
  .burger { position: relative; z-index: 2; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(11, 46, 39, .35); z-index: 45; }
  .site-header { z-index: 55; }
  .hero-grid, .about-grid, .why-grid, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .about-grid > *, .why-grid > *, .visit-grid > * { min-width: 0; }
  .hero-art { min-height: 360px; order: -1; }
  .hero { text-align: left; padding-top: calc(var(--header-h) + 20px); }
  .why-copy { position: static; }
  .about-grid { gap: 48px; }
  .about-photo { max-width: 440px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .cards, .team-grid, .steps, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art { min-height: 300px; }
  .float-card { padding: 9px 12px; }
  .float-card small { display: none; }
  .hero-art { padding: 34px 0 40px; }
  .hero-logo { width: 78%; }
  .fc1 { left: 0; bottom: -2%; }
  .fc2 { right: 0; top: -14px; }
  .exp-badge { right: 12px; bottom: -20px; padding: 12px 16px; }
  .exp-badge strong { font-size: 2rem; }
  .brand strong { font-size: 1.2rem; }
  .map, .map iframe { min-height: 320px; }
  .cta-actions .btn { flex: 1; }
  .scroll-cue { display: none; }
}

/* ---------- Phones: compact rows instead of tall stacked cards ---------- */
@media (max-width: 600px) {
  .card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 16px; }
  .card .cicon { width: 48px; height: 48px; border-radius: 14px; grid-row: span 2; }
  .card .cicon svg { width: 24px; height: 24px; }
  .card h3 { margin: 2px 0 4px; font-size: 1.02rem; }
  .card p { font-size: .9rem; }
  .cards { gap: 12px; }
  .steps { gap: 14px; }
  .step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; text-align: left; align-items: start; }
  .step .num { width: 46px; height: 46px; margin: 0; font-size: 1.15rem; grid-row: span 2; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line); }
  .step h3 { margin: 6px 0 4px; }
  .step p { margin: 0; font-size: .93rem; }
  .team-grid { gap: 14px; }
  .doc { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; text-align: left; padding: 18px; align-items: start; }
  .doc .avatar { width: 84px; height: 84px; margin: 0; grid-row: span 3; border-width: 3px; }
  .doc h3 { font-size: 1.12rem; margin-top: 2px; }
  .doc .role { margin: 4px 0 6px; font-size: .84rem; }
  .doc p:last-child { font-size: .9rem; -webkit-line-clamp: 5; }
  .why-list li { padding: 16px; gap: 14px; }
  .info-block p br { display: none; }
  .foot-logo { width: 180px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .foot-grid > div:first-child, .foot-grid > div:nth-child(3) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Real doctor photos (uploaded by the Admin) */
.avatar.photo { background: var(--green-wash); place-items: stretch; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; }
.doc p:last-child { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
