/* stylelint-disable color-hex-length, value-keyword-case, no-descending-specificity, media-feature-range-notation */
:root {
  --ink: #183447;
  --text: #385565;
  --muted: #627987;
  --bg: #f7fbfd;
  --panel: #ffffff;
  --wash: #eef8fb;
  --line: #d8e9ef;
  --primary: #1da8d0;
  --primary-dark: #0d6d89;
  --primary-soft: #e6f6fb;
  --accent: #63b943;
  --warm: #fff7ef;
  --gold: #b8872b;
  --shadow: 0 18px 46px rgb(13 109 137 / 12%);
  --radius: 8px;
  --font: "Segoe UI", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: "Aptos Display", "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.top-strip {
  background: var(--primary-dark);
  color: #f4fffd;
  font-size: 14px;
}

.top-strip-inner {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip a {
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-symbol {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background-image: url("/rising-dental/assets/images/riverstone-logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 46px;
}

.brand-copy {
  display: block;
  min-width: 0;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 23px;
  font-family: var(--heading-font);
  font-weight: 760;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: #28434a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--primary);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentcolor;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 26px rgb(29 168 208 / 24%);
}

.button-secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--primary-dark);
}

.hero {
  padding: 70px 0 64px;
  background:
    linear-gradient(90deg, rgb(247 251 253 / 98%) 0%, rgb(239 248 252 / 96%) 62%, rgb(225 244 250 / 92%) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 740;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 3.7vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.25vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 720;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
}

.hero-actions,
.card-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-card,
.card,
.location-card,
.media-card,
.contact-panel,
.clinical-disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.quick-action {
  min-height: 54px;
  padding: 15px 16px;
  background: var(--panel);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.trust-line {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 76px 0;
}

.compact-section {
  padding: 56px 0;
}

.section-light {
  background: var(--wash);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p,
.clinical-note {
  color: var(--muted);
}

.alert-grid,
.card-grid,
.service-groups,
.resource-grid,
.media-grid,
.hours-grid,
.location-grid {
  display: grid;
  gap: 18px;
}

.alert-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.card-grid,
.service-groups,
.resource-grid,
.media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-grid,
.hours-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card,
.location-card,
.contact-panel {
  padding: 24px;
  box-shadow: 0 10px 30px rgb(13 109 137 / 6%);
}

.alert-card {
  background: var(--warm);
}

.panel-label {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.mini-list,
.clean-list,
.service-list,
.hours-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li,
.clean-list li,
.service-list li,
.hours-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.mini-list li::before,
.clean-list li::before,
.service-list li::before,
.hours-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.consultation-panel,
.cta-grid,
.split,
.doctor-profile,
.review-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: 32px;
  align-items: center;
}

.doctor-profile {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 42px;
}

.doctor-profile.reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
}

.doctor-profile img {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.doctor-profile.reverse .doctor-photo {
  order: 2;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-stack article {
  padding: 18px;
  border-left: 4px solid var(--primary);
  background: var(--panel);
}

.feature-stack strong,
.feature-stack span {
  display: block;
}

.feature-stack span,
.review-card span {
  color: var(--muted);
}

.text-link {
  color: var(--primary-dark);
  font-weight: 760;
}

.stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0;
}

.review-card p {
  color: #31484f;
}

.review-card span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.media-card {
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(13 109 137 / 7%);
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #dcebea;
  object-fit: cover;
}

.media-card video {
  object-fit: contain;
}

.media-card-body {
  padding: 16px;
}

.media-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.clinical-disclosure {
  overflow: hidden;
}

.clinical-disclosure summary {
  padding: 18px 20px;
  color: var(--primary-dark);
  font-weight: 760;
  cursor: pointer;
}

.clinical-disclosure .media-grid {
  padding: 0 20px 20px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero .eyebrow {
  color: #d8fff7;
}

.page-hero .lead {
  color: rgb(255 255 255 / 84%);
}

.cta-band {
  background: var(--primary-dark);
  color: #ffffff;
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band p {
  color: rgb(255 255 255 / 82%);
}

.site-footer {
  padding: 44px 0 34px;
  background: #102c31;
  color: rgb(255 255 255 / 78%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr) minmax(260px, 0.72fr);
  gap: 28px;
}

.footer-brand strong {
  color: #ffffff;
}

.footer-brand small {
  color: #d8fff7;
}

.footer-brand .brand-symbol {
  filter: drop-shadow(0 0 0 rgb(255 255 255 / 0%));
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.site-footer a {
  color: #d8fff7;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 13px;
}

.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 -10px 28px rgb(13 109 137 / 14%);
}

.mobile-cta a {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 760;
  text-decoration: none;
}

.mobile-cta a:first-child {
  background: var(--primary);
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--primary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[data-reveal] {
  transition: opacity 400ms ease, transform 400ms ease;
}

.reveal-pending {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 720px;
  }

  .card-grid,
  .service-groups,
  .resource-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    padding: 12px;
  }

  .top-strip-inner,
  .footer-bottom {
    display: grid;
    justify-content: stretch;
  }

  .alert-grid,
  .split,
  .doctor-profile,
  .doctor-profile.reverse,
  .consultation-panel,
  .cta-grid,
  .review-intro,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .doctor-profile.reverse .doctor-photo {
    order: 0;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 64px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .top-strip {
    display: none;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    gap: 10px;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
    background-size: auto 40px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 12px;
  }

  .site-nav {
    top: 68px;
    right: 12px;
    left: 12px;
  }

  .hero,
  .section {
    padding: 40px 0;
  }

  .page-hero {
    padding: 34px 0;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .lead {
    font-size: 16.5px;
  }

  .hero-actions,
  .card-actions,
  .cta-actions {
    display: grid;
  }

  .button,
  .hero-actions .button,
  .card-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .hero-card img,
  .media-card img,
  .media-card video {
    aspect-ratio: 1 / 0.76;
  }

  .quick-actions,
  .card-grid,
  .service-groups,
  .resource-grid,
  .media-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .location-card,
  .contact-panel,
  .consultation-panel {
    padding: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: grid;
  }

  .back-to-top {
    bottom: 78px;
  }
}
