/* ==========================================================================
   Satani Painless Dental Hospital — core design system
   Tokens · reset · typography · buttons · header · hero · trust · footer
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #0F2A3F;
  --ink-2:      #173F5C;
  --body:       #4A6076;
  --muted:      #7A8FA3;
  --blue:       #1E7BC4;
  --blue-700:   #14609F;
  --blue-300:   #8CC4E8;
  --blue-100:   #E6F2FB;
  --blue-50:    #F3FAFE;
  --paper:      #FFFFFF;
  --off:        #F7F9FB;
  --line:       #E4EBF1;
  --line-2:     #EFF4F8;
  --charcoal:   #0A1F2E;
  --shadow-sm:  0 1px 2px rgba(15,42,63,.05), 0 4px 14px -6px rgba(15,42,63,.10);
  --shadow-md:  0 2px 4px rgba(15,42,63,.04), 0 18px 40px -18px rgba(15,42,63,.20);
  --shadow-lg:  0 30px 70px -30px rgba(15,42,63,.30);

  /* Type */
  --font-head: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 860px;
  --gutter: clamp(18px, 4vw, 40px);
  --sec-y: clamp(64px, 8vw, 122px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-100); color: var(--ink); }

.skip-link {
  position: fixed; left: 12px; top: -70px; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 600; transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.1vw, 4.15rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.85rem, 3.7vw, 3rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.22rem, 1.9vw, 1.6rem); }
h4 { font-size: 1.06rem; letter-spacing: -.012em; }
p  { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 650; }

.lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--body); line-height: 1.78; }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; letter-spacing: .02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-body); font-size: .735rem; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px; background: var(--blue);
  border-radius: 2px; opacity: .85;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--blue-300); }
.eyebrow.light::before { background: var(--blue-300); }
.grad-text { color: var(--blue); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sec-y); position: relative; }
.section.tight { padding-block: clamp(48px, 5.5vw, 78px); }
.bg-off { background: var(--off); }
.bg-blue-soft {
  background:
    radial-gradient(900px 420px at 12% -10%, #EAF5FD 0%, rgba(234,245,253,0) 62%),
    radial-gradient(780px 420px at 92% 8%, #F1F7FB 0%, rgba(241,247,251,0) 60%),
    var(--paper);
}
.divider {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.section-head { max-width: 720px; margin-bottom: clamp(34px, 4.4vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 18px 0 16px; }
.section-head p { margin-bottom: 0; }
.section-head.split {
  max-width: none; display: grid; gap: 26px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end;
}
.section-head.split p { padding-bottom: 4px; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(30px, 5vw, 74px); align-items: center; }
.split.wide-left { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-size: .925rem; font-weight: 700; letter-spacing: -.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .3s var(--ease); }
.btn-primary { box-shadow: 0 12px 26px -12px rgba(30,123,196,.62); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(30,123,196,.68); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-dark { --btn-bg: var(--ink); box-shadow: 0 12px 26px -14px rgba(15,42,63,.6); }
.btn-dark:hover { background: var(--charcoal); transform: translateY(-2px); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); transform: translateY(-2px); }
.btn-light { --btn-bg: rgba(255,255,255,.10); --btn-fg: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); color: var(--blue-700); }
.btn-sm { padding: 11px 20px; font-size: .855rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--blue);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2.5px; z-index: 120;
  background: linear-gradient(90deg, var(--blue), var(--blue-300));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- header ---------- */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: .795rem; letter-spacing: .012em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; opacity: .8; flex: none; }
.topbar-links { display: flex; gap: 22px; }
.topbar a:hover { color: #fff; }
.topbar .ph { color: #A9CBE6; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 32px -22px rgba(15,42,63,.35); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-700) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 22px -12px rgba(30,123,196,.75);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: grid; line-height: 1.06; }
.brand-text b { font-family: var(--font-head); font-weight: 800; font-size: 1.055rem; color: var(--ink); letter-spacing: -.02em; }
.brand-text span { font-size: .625rem; letter-spacing: .175em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: var(--r-sm);
  font-family: var(--font-head); font-size: .885rem; font-weight: 600; color: var(--ink-2);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--blue); background: var(--blue-50); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* mobile nav */
.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); align-items: center; justify-content: center;
}
.burger span { display: block; width: 19px; height: 1.9px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 4.6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  padding: 96px var(--gutter) 130px; overflow-y: auto;
  transform: translateY(-14px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 4px; border-bottom: 1px solid var(--line-2);
  font-family: var(--font-head); font-size: 1.14rem; font-weight: 700; color: var(--ink);
}
.mobile-nav a.m-link svg { width: 17px; height: 17px; color: var(--blue); }
.mobile-nav .m-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 0 4px; }
.mobile-nav .m-sub a {
  padding: 11px 14px; border-radius: var(--r-sm); background: var(--off);
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
}
.mobile-nav .btn { margin-top: 26px; }

body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(46px, 6.4vw, 92px) clamp(56px, 7vw, 104px);
  background:
    radial-gradient(1000px 520px at 88% -4%, #E9F4FC 0%, rgba(233,244,252,0) 62%),
    radial-gradient(760px 460px at -6% 22%, #F2F8FC 0%, rgba(242,248,252,0) 58%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(34px, 4.5vw, 68px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
  font-size: .79rem; font-weight: 600; color: var(--ink-2); letter-spacing: .015em;
}
.hero-badge i {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue-100); color: var(--blue);
  display: grid; place-items: center; font-style: normal; font-size: .68rem; font-weight: 800;
}
.hero h1 { margin: 24px 0 22px; }
.hero h1 em { font-style: normal; color: var(--blue); display: inline-block; }
.hero-sub { font-size: clamp(1.03rem, 1.35vw, 1.17rem); line-height: 1.76; max-width: 552px; }
.hero-actions { margin-top: 34px; }

.doc-chip {
  display: flex; align-items: center; gap: 14px; margin-top: 34px;
  padding: 14px 20px 14px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); width: fit-content;
}
.doc-chip .avatar {
  width: 46px; height: 46px; border-radius: 13px; flex: none; overflow: hidden;
  background: var(--blue-100); display: grid; place-items: center;
}
.doc-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc-chip b { display: block; font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--ink); }
.doc-chip span { font-size: .795rem; color: var(--muted); }
.doc-chip .sep { width: 1px; align-self: stretch; background: var(--line); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.42; background: var(--off);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,46,0) 46%, rgba(10,31,46,.42) 100%);
}
.hero-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; color: #fff;
  display: flex; align-items: center; gap: 11px; font-size: .82rem; font-weight: 600;
}
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); box-shadow: 0 0 0 5px rgba(140,196,232,.22); }

.float-card {
  position: absolute; z-index: 3; right: -14px; top: 52px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border: 1px solid rgba(228,235,241,.9); border-radius: var(--r-md);
  padding: 16px 20px; box-shadow: var(--shadow-md);
  display: grid; gap: 2px; min-width: 168px;
}
.float-card b { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; color: var(--ink); line-height: 1; }
.float-card span { font-size: .755rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.float-card.alt { top: auto; bottom: 70px; right: auto; left: -18px; }
.float-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; margin-right: 6px; }

.orb { position: absolute; border-radius: 50%; filter: blur(58px); opacity: .5; pointer-events: none; z-index: 0; }
.orb-1 { width: 260px; height: 260px; background: #D3E9F8; top: -70px; right: 8%; }
.orb-2 { width: 210px; height: 210px; background: #E4F1FA; bottom: -60px; left: 4%; }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.trust-item { padding: clamp(26px, 3.2vw, 40px) 22px; text-align: center; position: relative; }
.trust-item + .trust-item::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line);
}
.trust-item svg { width: 22px; height: 22px; margin: 0 auto 13px; color: var(--blue); }
.trust-item b { display: block; font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.trust-item span { font-size: .845rem; color: var(--muted); }

/* ---------- image helpers ---------- */
.img-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); background: var(--off); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-5-4 { aspect-ratio: 5 / 4; }
.img-stack { position: relative; }
.img-stack .img-frame + .img-frame {
  position: absolute; width: 44%; right: -18px; bottom: -30px;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.badge-float {
  position: absolute; left: -16px; top: 26px; z-index: 3;
  background: #fff; border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line-2); display: grid; gap: 1px;
}
.badge-float b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.badge-float span { font-size: .735rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }

/* ---------- placeholders ---------- */
.ph {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  background: var(--blue-50); border: 1px dashed #BFDCF0;
  color: var(--blue-700); font-size: .9em; font-weight: 600; letter-spacing: .005em;
  white-space: nowrap;
}
.ph-block {
  border: 1.5px dashed #C8DDEC; border-radius: var(--r-md); background: var(--blue-50);
  padding: 18px 20px; color: var(--blue-700); font-size: .88rem; font-weight: 600;
  display: flex; gap: 11px; align-items: flex-start;
}
.ph-block svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.notice-note {
  display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--muted);
  background: var(--off); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 16px;
}
.notice-note svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--blue); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding-top: clamp(56px, 6vw, 88px); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; top: -140px; right: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(30,123,196,.30) 0%, rgba(30,123,196,0) 68%);
}
.footer-grid { position: relative; display: grid; gap: clamp(28px, 3.4vw, 44px); grid-template-columns: 1.5fr 1fr 1fr 1.35fr; }
.site-footer h4 { color: #fff; font-size: .985rem; letter-spacing: -.008em; margin-bottom: 20px; font-weight: 700; }
.site-footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer .f-brand img { height: 42px; width: auto; }
.site-footer p { font-size: .885rem; line-height: 1.8; }
.f-links { display: grid; gap: 11px; }
.f-links a { font-size: .885rem; transition: color .2s var(--ease), transform .2s var(--ease); width: fit-content; }
.f-links a:hover { color: #fff; transform: translateX(3px); }
.f-contact { display: grid; gap: 14px; }
.f-contact div { display: flex; gap: 11px; align-items: flex-start; font-size: .885rem; }
.f-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--blue-300); }
.f-contact b { display: block; color: #fff; font-weight: 600; font-size: .885rem; }
.footer-bottom {
  margin-top: clamp(40px, 4.6vw, 64px); border-top: 1px solid rgba(255,255,255,.10);
  padding: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 12px 26px;
  align-items: center; justify-content: space-between; font-size: .82rem;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- floating utilities ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 92px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.to-top svg { width: 18px; height: 18px; }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: 10px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; }
.mobile-cta .btn-icon { flex: none; width: 50px; padding: 0; }
