/* NRB Dental Clinic. Look follows the Dentia template's default scheme (scheme-01): navy headings,
   Urbanist + Inter, 20px radius, dark navy bands, 10% primary tint sections, solid primary CTA band.
   Primary is the NRB logo blue (#406BBD, close to Dentia's #4A7CD2 but AA on white). Static, no script. */
:root {
  --primary: #406BBD;
  --primary-rgb: 64, 107, 189;
  --primary-light: #8EB1F0;
  --secondary: #EAA638;
  --heading: #10244B;
  --text: #55657A;
  --text-on-dark: rgba(255, 255, 255, .78);
  --bg: #FFFFFF;
  --bg-light: #F8F9FA;
  --tint: rgba(var(--primary-rgb), .1);
  --dark-1: #000A5B;
  --dark-2: #071630;
  --line: #E3E8F0;
  --radius: 20px;
  --radius-sm: 10px;
  --btn-radius: 8px;
  --wrap: 1240px;
  --head-h: 76px;
  --font-body: "Inter", "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-head: "Urbanist", "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
html:lang(ne) body { font-size: 17px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); font-weight: 600; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.15; letter-spacing: -0.027em; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.5; }
html:lang(ne) h1, html:lang(ne) h2 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.figure { font-variant-numeric: tabular-nums; white-space: nowrap; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--primary); padding: 8px 16px; font-weight: 600; }
.skip:focus { left: 16px; top: 8px; }

/* Subtitle (Dentia .subtitle) */
.subtitle { color: var(--primary); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.lead { margin-top: 18px; max-width: 600px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.head { max-width: 760px; margin-bottom: 48px; }

/* Buttons (Dentia .btn-main: 8px radius, bold, hover to dark) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--btn-radius); border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--dark-1); }
.btn-secondary { background: #fff; color: var(--primary); border-color: rgba(var(--primary-rgb), .35); }
.btn-secondary:hover { border-color: var(--primary); background: var(--tint); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-line:hover { background: #fff; color: var(--heading); border-color: #fff; }
.btn-light { background: #fff; color: var(--heading); }
.btn-light:hover { background: var(--dark-2); color: #fff; }
.btn:active { transform: translateY(1px) scale(.99); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px) scale(.99); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header (Dentia: dark navy bar) */
.top { position: sticky; top: 0; z-index: 50; background: var(--dark-2); color: #fff; }
.bar { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { width: 46px; height: 46px; background: #fff; border-radius: 50%; padding: 2px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-family: var(--font-head); font-size: 19px; font-weight: 700; }
.brand-name span { font-size: 13px; color: var(--text-on-dark); }
.nav { display: none; gap: 28px; }
.nav a { position: relative; color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--secondary); transform: scaleX(0); transform-origin: left; }
.nav a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) { .nav a::after { transition: transform .25s var(--ease); } }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--btn-radius); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.lang:hover { border-color: #fff; }
.btn-head { display: none; }
@media (min-width: 1080px) { .nav, .btn-head { display: inline-flex; } }

/* Hero (Dentia section-intro: full-bleed photo, dark overlay, gradient edge left, light text) */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(800px, calc(100svh - var(--head-h))); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 22, 48, .92) 0%, rgba(7, 22, 48, .75) 45%, rgba(7, 22, 48, .35) 100%); }
.hero-inner { padding-top: 64px; padding-bottom: 72px; }
.hero-copy { max-width: 640px; }
.hero .subtitle { color: var(--primary-light); }
.hero h1 { color: #fff; }
.hero-lead { margin-top: 20px; font-size: 18px; color: var(--text-on-dark); max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; font-weight: 600; }
.hero-badge img { background: #fff; border-radius: 50%; padding: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: hero-zoom 1.6s var(--ease) both; }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4) { animation-delay: .3s; }
  .hero-copy > :nth-child(5) { animation-delay: .4s; }
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Contact band (Dentia bg-dark strip with three icon items and dividers) */
.band { background: var(--dark-1); color: var(--text-on-dark); padding: 40px 0; }
.band-grid { display: grid; gap: 28px; }
.band-item { display: flex; gap: 16px; align-items: center; }
@media (min-width: 900px) {
  .band-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .band-item { justify-content: center; padding: 0 16px; }
  .band-item + .band-item { border-left: 1px solid rgba(255, 255, 255, .15); }
}
.band-ic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; color: var(--primary-light); }
.band-ic svg { width: 40px; height: 40px; stroke-width: 1.4; }
.band-h { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #fff; }
.band a { color: var(--text-on-dark); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.band a:hover { color: #fff; text-decoration: underline; }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 110px 0; } }
.tint { background: var(--tint); }
.dark { background: var(--dark-2); color: var(--text-on-dark); }
.dark h2, .dark h3 { color: #fff; }
.dark .subtitle { color: var(--primary-light); }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Photo frames with hover zoom */
.frame { border-radius: var(--radius); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .frame img, .card-media img { transition: transform .6s var(--ease); }
  .frame:hover img, .card:hover .card-media img { transform: scale(1.03); }
}

/* About: staggered pair (Dentia p1/p2) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pair .frame img { aspect-ratio: 3 / 4; }
.pair .frame-low { margin-top: 56px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--heading); font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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; }
#about .btn { margin-top: 32px; }

/* Service cards: photo + icon + text */
.cards { display: grid; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
  .card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(16, 36, 75, .1); }
}
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-empty { display: grid; place-items: center; color: var(--primary); background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), rgba(var(--primary-rgb), .04)); }
.card-media-empty svg { width: 72px; height: 72px; stroke-width: 1.2; opacity: .8; }
.card-body { position: relative; padding: 36px 24px 28px; }
.card-ic { position: absolute; top: -28px; left: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 4px solid #fff; }
.card-ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 15px; line-height: 1.7; }
.note { max-width: 680px; margin-top: 40px; }

/* Why: numbered features + mosaic */
.features { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 16px; }
.feature-num { flex: none; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--tint); color: var(--primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 4px; }
.feature p { font-size: 15px; line-height: 1.7; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mosaic .frame img { aspect-ratio: 4 / 3; }
.mosaic .frame-wide { grid-column: 1 / -1; }
.mosaic .frame-wide img { aspect-ratio: 16 / 9; }

/* Dentist (dark section) */
.doctor { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .doctor { grid-template-columns: 400px 1fr; gap: 80px; } }
.doctor-photo { border-radius: var(--radius); overflow: hidden; background: #1A2C4E; max-width: 440px; }
.doctor-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.role { margin-top: 8px; color: var(--secondary); font-weight: 600; }

/* FAQ (Dentia accordion) */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { border-radius: var(--radius-sm); background: var(--bg-light); border: 1px solid var(--line); }
.faq details[open] { background: #fff; border-color: rgba(var(--primary-rgb), .4); box-shadow: 0 10px 30px rgba(16, 36, 75, .06); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; min-height: 64px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; font-family: var(--font-body); }
.faq details[open] summary::after { content: "−"; background: var(--dark-1); }
.faq .answer { padding: 0 24px 22px; }

/* Visit cards */
.visit { display: grid; gap: 24px; }
@media (min-width: 900px) { .visit { grid-template-columns: repeat(3, 1fr); } }
.vcard { background: #fff; border-radius: var(--radius); padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vcard .card-ic { position: static; border: 0; margin-bottom: 8px; }
.vcard .btn { margin-top: auto; }
.vcard p:last-of-type { margin-bottom: 12px; }
.vcard a.plain { color: var(--heading); font-weight: 600; font-size: 18px; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.vcard a.plain:hover { color: var(--primary); }

/* CTA band (Dentia bg-color text-light) */
.cta { background: var(--primary); color: rgba(255, 255, 255, .88); padding: 56px 0; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta p { margin-top: 8px; }
.cta-grid { display: grid; gap: 24px; align-items: center; }
.cta .actions { margin-top: 0; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr auto; } }

/* Footer */
.foot { background: var(--dark-2); color: var(--text-on-dark); padding: 72px 0 108px; font-size: 15px; }
@media (min-width: 1080px) { .foot { padding-bottom: 28px; } }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: 18px; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { color: var(--text-on-dark); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-about { margin-top: 16px; max-width: 360px; }
.foot-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }

/* Credits page */
.credits h1 { font-size: clamp(32px, 4vw, 44px); }
.credits ul { margin: 24px 0; padding-left: 20px; display: grid; gap: 10px; }

/* Phone action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.actionbar .btn { min-height: 50px; padding: 0 8px; }
@media (min-width: 1080px) { .actionbar { display: none; } }
@media (max-width: 379px) {
  .btn { padding: 0 16px; }
  .hero .btn { white-space: normal; text-align: center; }
}
.hero h1 em { font-style: normal; color: var(--primary-light); }
