:root {
  --bg: #f6fbfc;
  --surface: #ffffff;
  --surface-2: #e9f7f8;
  --text: #14313a;
  --muted: #5f7680;
  --primary: #0b4d67;
  --primary-2: #087f8c;
  --accent: #d8a84f;
  --line: #d9eaee;
  --shadow: 0 24px 70px rgba(11, 77, 103, .14);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(8, 127, 140, .12), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(216, 168, 79, .12), transparent 28rem),
    var(--bg);
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-2); }
button, input, textarea { font: inherit; }
address { font-style: normal; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 999;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 251, 252, .86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(217, 234, 238, .75);
}
.site-header.is-scrolled { box-shadow: 0 10px 36px rgba(11, 77, 103, .10); }
.topbar {
  background: linear-gradient(90deg, var(--primary), #0f6d7b);
  color: #eefbfc;
  font-size: .92rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar__link { opacity: .96; }
.topbar__note {
  margin-left: auto;
  color: rgba(255, 255, 255, .82);
}
.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(8, 127, 140, .22);
}
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-size: 1.12rem; letter-spacing: -.03em; }
.brand__text small { color: var(--muted); }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav-menu a:not(.btn) {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 650;
}
.nav-menu a:not(.btn):hover { background: var(--surface-2); color: var(--primary); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(8, 127, 140, .20);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 24px 50px rgba(8, 127, 140, .26); }
.btn--small { min-height: 42px; padding-inline: 17px; font-size: .94rem; }
.btn--ghost { color: var(--primary); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--primary); background: var(--surface-2); }
.btn--light { background: #fff; color: var(--primary); box-shadow: 0 18px 45px rgba(0,0,0,.10); }
.btn--light:hover { color: var(--primary); }

.section { padding: 96px 0; }
.section--compact { padding: 38px 0 74px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-2);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5.7rem); max-width: 920px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 680px; }

.hero {
  padding-top: 82px;
  min-height: 760px;
  display: grid;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: 52px;
}
.hero__content { position: relative; z-index: 2; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0; }
.hero__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
}
.hero__badges span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(201, 221, 227, .95);
  color: var(--muted);
  padding: 14px 18px;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(11, 77, 103, .08);
}
.hero__badges strong {
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero__badges em {
  color: var(--text);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}
.hero__visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.hero__visual img {
  width: min(100%, 690px);
  filter: drop-shadow(0 36px 60px rgba(11, 77, 103, .16));
}
.floating-card {
  position: absolute;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 16px 18px;
  display: grid;
  min-width: 160px;
}
.floating-card strong { font-size: 2rem; line-height: 1; color: var(--primary); }
.floating-card span { color: var(--muted); font-weight: 650; font-size: .92rem; }
.floating-card--one { left: 0; bottom: 70px; }
.floating-card--two { right: 10px; top: 90px; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-row article,
.card,
.service-card,
.contact-panel,
.hours-panel,
.contact-form,
.accordion {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(217,234,238,.88);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(11, 77, 103, .08);
}
.feature-row article { padding: 28px; }
.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--primary-2);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-row p, .card p, .service-card p { color: var(--muted); margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 70px;
  align-items: start;
}
.about .two-col p { font-size: 1.08rem; }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.card { padding: 30px; }

.section-heading {
  max-width: 760px;
  text-align: center;
  margin-bottom: 44px;
}
.section-heading p:last-child { color: var(--muted); font-size: 1.08rem; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  padding: 26px;
  min-height: 215px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card span {
  display: inline-flex;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 26px;
}
.service-card h3 { margin-bottom: 14px; }

.cta-band {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary), #0b7382);
  color: #fff;
}
.cta-band .eyebrow { color: #c8f5f7; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 720px; margin-bottom: 0; }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.two-col--team { grid-template-columns: .85fr 1.15fr; }
.doctor-card {
  position: sticky;
  top: 150px;
  background: linear-gradient(180deg, #fff, #f3fbfc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.doctor-card__photo {
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  border-radius: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 28px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.check-list li::before { content: "✓"; color: var(--primary-2); font-weight: 900; margin-right: 8px; }
.accordion-grid {
  display: grid;
  gap: 16px;
  margin-top: 46px;
}
.accordion { padding: 0; overflow: hidden; }
.accordion summary {
  cursor: pointer;
  padding: 24px 28px;
  font-weight: 850;
  font-size: 1.1rem;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  float: right;
  color: var(--primary-2);
  font-size: 1.3rem;
}
.accordion[open] summary::after { content: "–"; }
.accordion ul, .accordion p { color: var(--muted); margin: 0; padding: 0 28px 28px 48px; }
.accordion p { padding-left: 28px; }
.accordion li { margin-bottom: 10px; }

.stats {
  padding: 62px 0;
  background: rgba(255,255,255,.56);
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}
.stats__grid div {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
}
.stats__grid strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--primary);
  line-height: 1;
}
.stats__grid span { color: var(--muted); font-weight: 750; }

.contact__grid {
  display: grid;
  grid-template-columns: .9fr .82fr 1.15fr;
  gap: 18px;
  align-items: start;
}
.contact-panel, .hours-panel, .contact-form { padding: 30px; }
.contact-panel a { color: var(--primary-2); font-weight: 800; }
.notice {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 650;
}
.hours {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 750; }
.hours dd { margin: 0; color: var(--muted); }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  background: #fbfeff;
  color: var(--text);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, .12);
}
.form-note { color: var(--muted); font-size: .88rem; margin: 0; }
.map { margin-top: 20px; }
.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 64px 0 24px;
  background: #0b2630;
  color: #d8e8ec;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .6fr .8fr;
  gap: 34px;
}
.brand--footer .brand__mark { background: linear-gradient(135deg, #fff, #cbeef0); color: var(--primary); }
.brand--footer .brand__text small { color: #9fb8c0; }
.footer__grid h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer__grid a { display: block; color: #d8e8ec; margin-bottom: 8px; }
.footer__grid p { color: #9fb8c0; max-width: 420px; margin-top: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 42px;
  padding-top: 20px;
  color: #9fb8c0;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .hero__grid, .two-col, .two-col--team, .contact__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__visual { min-height: 420px; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .doctor-card { position: static; }
  .topbar__note { margin-left: 0; width: 100%; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .topbar__inner { padding-block: 8px; gap: 12px; }
  .navbar { min-height: 70px; }
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .nav-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    background: var(--text);
    display: block;
  }
  .nav-menu {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 126px;
    display: grid;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .nav-menu.is-open { transform: scale(1); opacity: 1; pointer-events: auto; }
  .hero__grid { gap: 24px; }
  .hero__badges { grid-template-columns: 1fr; }
  .feature-row, .cards-3, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { display: grid; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .member-card__media { min-height: 170px; padding: 12px; }
  .member-card__photo { height: 150px; }
  .services__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 340px; }
  .floating-card { position: static; margin: 10px auto 0; width: 100%; }
  .floating-card--two { display: none; }
  .contact-panel, .hours-panel, .contact-form, .doctor-card, .card, .service-card, .feature-row article { padding: 22px; border-radius: 22px; }
  h1 { font-size: 2.45rem; }
  .topbar { font-size: .85rem; }
}

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


/* Real Royal Dental branding and photo sections */
.brand--image {
  min-width: 210px;
}
.brand__logo {
  width: clamp(190px, 25vw, 286px);
  height: auto;
  object-fit: contain;
}
.brand__logo--footer {
  width: min(280px, 100%);
  filter: brightness(0) invert(1) drop-shadow(0 10px 22px rgba(0,0,0,.18));
  opacity: .98;
}

.hero-photo-card {
  width: min(100%, 690px);
  margin: 0;
  border-radius: 42px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-photo-card img {
  width: 100%;
  height: min(520px, 56vw);
  object-fit: cover;
  object-position: center;
}
.partner-badge {
  position: absolute;
  left: 26px;
  top: 22px;
  width: min(300px, 58%);
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(217,234,238,.9);
  box-shadow: 0 18px 46px rgba(11, 77, 103, .12);
}
.partner-badge span {
  display: block;
  color: var(--primary);
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.partner-badge img {
  width: 210px;
  max-width: 100%;
  height: auto;
}

.logo-section {
  padding: 54px 0;
  background: rgba(255,255,255,.52);
  border-block: 1px solid var(--line);
}
.logo-section__inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: center;
}
.logo-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}
.logo-section p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.logo-wall {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 18px 50px rgba(11, 77, 103, .08);
}
.logo-wall__royal {
  width: min(390px, 100%);
  height: auto;
}
.logo-wall__partner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.logo-wall__partner span {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}
.logo-wall__partner img {
  width: min(250px, 100%);
  height: auto;
}

.doctor-card__photo--image {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5fbfc, #e7f5f8);
  margin-bottom: 28px;
  box-shadow: inset 0 -20px 40px rgba(11, 77, 103, .08);
}
.doctor-card__photo--image img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  object-position: bottom center;
  margin-inline: auto;
}
.section-heading--team {
  margin-top: 74px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.member-card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(217,234,238,.88);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(11, 77, 103, .08);
  padding: 30px;
}
.member-card--wide {
  grid-column: 1 / -1;
}
.member-card__media {
  margin-bottom: 20px;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f6fbfc 0%, #ecf6f8 100%);
  box-shadow: inset 0 -16px 30px rgba(11, 77, 103, .06);
  overflow: hidden;
}
.member-card__photo {
  width: auto;
  max-width: 100%;
  height: 175px;
  display: block;
  border-radius: 18px;
  object-fit: contain;
  object-position: top center;
  box-shadow: 0 16px 34px rgba(11, 77, 103, .14);
  border: 3px solid rgba(255,255,255,.92);
  background: transparent;
}
.member-card__avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin-bottom: 20px;
  box-shadow: 0 14px 30px rgba(8, 127, 140, .2);
}
.member-card h3 {
  margin-bottom: 12px;
}
.member-card__tags {
  color: var(--primary-2);
  font-weight: 850;
  font-size: .92rem;
  margin-bottom: 18px;
}
.member-card p:not(.member-card__tags) {
  color: var(--muted);
}
.member-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1060px) {
  .logo-section__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .brand--image { min-width: 0; }
  .brand__logo { width: 210px; }
  .partner-badge { position: static; width: 100%; margin-top: 12px; }
  .hero-photo-card img { height: 340px; }
  .team-grid { grid-template-columns: 1fr; }
  .member-card--wide { grid-column: auto; }
}

@media (max-width: 560px) {
  .brand__logo { width: 170px; }
  .brand__logo--footer { width: 240px; }
  .hero-photo-card { border-radius: 26px; }
  .hero-photo-card img { height: 280px; }
  .logo-wall, .member-card { padding: 22px; border-radius: 22px; }
}
.hero-photo-card img,
.partner-badge img,
.doctor-card__photo--image img {
  filter: none;
}


.partner-badge strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
  letter-spacing: -.02em;
  margin-top: 4px;
}
.partner-badge small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 6px;
}
.faq {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfc 100%);
}
