:root {
  --primary-dark: #071426;
  --secondary-dark: #0e223b;
  --accent-blue: #49a8ff;
  --accent-teal: #2ad0c3;
  --soft-blue: #eaf7ff;
  --cream-white: #fffaf1;
  --muted-text: #66778d;
  --card-bg: #ffffff;
  --border-color: #dceaf3;
  --ink: #101d2e;
  --white: #ffffff;
  --primary: var(--accent-blue);
  --teal: var(--accent-teal);
  --muted: var(--muted-text);
  --line: var(--border-color);
  --soft: var(--soft-blue);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream-white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.main-shell { padding-top: 78px; }
.site-header .navbar {
  background: rgba(255, 250, 241, .92) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7, 20, 38, .08);
}
.navbar .nav-link { color: #28384c; font-weight: 800; font-size: .94rem; }
.navbar .nav-link:hover { color: var(--primary); }
.btn { border-radius: 8px; font-weight: 800; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #55c8f0 48%, var(--accent-teal) 100%);
  border: 0;
  color: var(--primary-dark);
  box-shadow: 0 18px 38px rgba(73, 168, 255, .24);
}
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream-white);
  background:
    radial-gradient(circle at 78% 18%, rgba(42,208,195,.26), transparent 31%),
    linear-gradient(105deg, rgba(7,20,38,.98) 0%, rgba(14,34,59,.9) 54%, rgba(7,20,38,.42) 100%),
    url("https://orthocareplus.us/uploads/sections/6006cddfd16a4f80887b20baba5c495d.png?auto=format&fit=crop&w=1800&q=80") center right / cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255,250,241,0), var(--cream-white));
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  color: var(--accent-teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}
.display-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: .98;
  max-width: 880px;
}
.hero .lead-copy { color: rgba(255,250,241,.82); }
.lead-copy { color: #41566e; font-size: 1.15rem; max-width: 680px; line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.trust-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: .55rem .85rem;
  color: rgba(255,250,241,.9);
  font-weight: 800;
  font-size: .85rem;
}

.section-pad { padding: 5rem 0; }
.section-soft { background: var(--soft-blue); }
.section-cream { background: var(--cream-white); }
.section-dark {
  background:
    radial-gradient(circle at 82% 10%, rgba(42,208,195,.14), transparent 28%),
    linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: var(--cream-white);
}
.section-dark .section-intro,
.section-dark .text-muted {
  color: rgba(255,250,241,.68) !important;
}
.section-dark .section-title { color: var(--cream-white); }
.section-dark .cms-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: var(--cream-white);
  box-shadow: none;
}
.section-dark .media-card > img { opacity: .92; }
.page-hero, .detail-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  color: var(--cream-white);
  background:
    radial-gradient(circle at 82% 12%, rgba(42,208,195,.2), transparent 30%),
    linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}
.page-hero .section-intro,
.detail-hero .section-intro {
  color: rgba(255,250,241,.72);
}
.detail-hero .section-title,
.page-hero .section-title {
  color: var(--cream-white);
}
.breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.3rem;
  color: rgba(255,250,241,.58);
  font-size: .88rem;
  font-weight: 800;
}
.breadcrumb-bar a {
  color: rgba(255,250,241,.74);
}
.breadcrumb-bar a::after {
  content: "/";
  margin-left: .5rem;
  color: rgba(255,250,241,.36);
}
.breadcrumb-bar span {
  color: var(--accent-teal);
}
.card-anchor {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-anchor:hover {
  color: inherit;
  transform: translateY(-6px);
  border-color: rgba(73,168,255,.45);
  box-shadow: 0 28px 62px rgba(16, 32, 51, .13);
}
.card-anchor:hover .card-link {
  color: var(--accent-teal);
}
.empty-state {
  border: 1px dashed #b9d2e7;
  border-radius: 18px;
  padding: 2rem;
  background: rgba(255,255,255,.72);
  color: var(--muted-text);
  font-weight: 800;
  text-align: center;
}
.section-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
}
.section-intro { color: var(--muted); max-width: 720px; line-height: 1.75; }
.feature-card, .cms-card, .admin-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  padding: 1.4rem;
  height: 100%;
  box-shadow: 0 22px 55px rgba(16, 32, 51, .08);
}
.media-card { padding: 0; overflow: hidden; }
.media-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: var(--soft);
}
.media-card-body { padding: 1.55rem; }
.feature-card h3, .cms-card h3 { font-size: 1.15rem; font-weight: 900; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 900; }
.metric {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 900;
}
.price { color: var(--primary); font-weight: 900; font-size: 2rem; }
.split-panel {
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(42,208,195,.26), transparent 34%),
    linear-gradient(135deg, var(--primary-dark), #12345b);
  color: var(--cream-white);
  padding: clamp(2rem, 5vw, 4rem);
}
.text-white-75 { color: rgba(255,255,255,.78); }
.result-tile {
  position: relative;
  border-radius: 18px;
  min-height: 240px;
  background: linear-gradient(135deg, #e7f3ff, #ddfbf6);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 1.2rem;
}
.result-tile-image {
  background-size: cover;
  background-position: center;
}
.result-tile-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,35,63,0), rgba(16,35,63,.64));
}
.result-tile-image span { color: white; z-index: 1; }
.detail-hero-image, .gallery-image {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--soft);
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(16, 32, 51, .08);
}
.detail-hero-image { aspect-ratio: 4 / 3; }
.gallery-image { aspect-ratio: 4 / 3; }
.about-hero,
.smile-hero,
.resource-hero,
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: var(--cream-white);
  background:
    radial-gradient(circle at 82% 8%, rgba(42,208,195,.22), transparent 28%),
    radial-gradient(circle at 16% 84%, rgba(73,168,255,.16), transparent 30%),
    linear-gradient(135deg, #06101f 0%, #0b1d34 52%, #102d4c 100%);
}
.about-hero .section-title,
.smile-hero .section-title,
.resource-hero .section-title,
.legal-hero .section-title {
  color: var(--cream-white);
}
.about-hero .section-intro,
.smile-hero .section-intro,
.resource-hero .section-intro,
.legal-hero .section-intro {
  color: rgba(255,250,241,.78);
}
.about-hero-card,
.smile-hero-note {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 1.5rem;
  background: rgba(255,255,255,.08);
  box-shadow: 0 26px 68px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}
.about-hero-card span {
  color: var(--accent-teal);
  font-weight: 900;
}
.about-hero-card h2 {
  margin: .6rem 0;
  color: white;
  font-family: "Source Serif 4", Georgia, serif;
}
.smile-hero-note strong,
.smile-hero-note span {
  display: block;
}
.smile-hero-note span {
  margin-top: .35rem;
  color: rgba(255,250,241,.72);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .55rem 1rem;
  color: rgba(255,250,241,.82);
  background: rgba(255,255,255,.08);
  font-weight: 900;
}
.filter-pill:hover,
.filter-pill.is-active {
  color: var(--primary-dark);
  background: linear-gradient(135deg, #dff8ff, #8ff1e6);
  border-color: transparent;
}
.smile-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(16, 32, 51, .07);
}
.smile-card-premium {
  border-color: #cfe5f4;
  background:
    linear-gradient(180deg, white, #f8fdff);
}
.smile-card-body {
  padding: 1.5rem;
}
.smile-card-body h2 {
  margin: .9rem 0 .45rem;
  color: var(--primary-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
}
.smile-card-body p {
  color: var(--muted-text);
  line-height: 1.7;
}
.premium-empty-state h2 {
  color: var(--primary-dark);
  font-family: "Source Serif 4", Georgia, serif;
}
.premium-empty-state p {
  color: var(--muted-text);
}
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.before-after-grid button,
.before-after-grid > div {
  position: relative;
  border: 0;
  padding: 0;
  background: white;
  cursor: zoom-in;
}
.before-after-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.before-after-grid span {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  padding: .35rem .7rem;
  font-weight: 900;
  font-size: .8rem;
}
.detail-before-after {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
}
.treatment-label {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .5rem .8rem;
  color: rgba(255,250,241,.78);
  font-weight: 900;
}
.detail-micro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.2rem 0;
}
.detail-micro-grid span {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: .75rem;
  color: rgba(255,250,241,.74);
  background: rgba(255,255,255,.08);
}
.detail-micro-grid strong {
  display: block;
  color: var(--accent-teal);
  font-size: .74rem;
  text-transform: uppercase;
}
.detail-layout { align-items: flex-start; }
.content-panel {
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: white;
  box-shadow: 0 22px 55px rgba(16, 32, 51, .08);
}
.content-panel h2 {
  margin-top: 1.6rem;
  color: var(--primary-dark);
  font-family: "Source Serif 4", Georgia, serif;
}
.content-panel h2:first-child { margin-top: 0; }
.sticky-detail-card {
  position: sticky;
  top: 100px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(234,247,255,.88), white);
  box-shadow: 0 22px 55px rgba(16, 32, 51, .08);
}
.sticky-detail-card h2 {
  font-size: 1.25rem;
  font-weight: 900;
}
.sticky-detail-card h3 {
  margin-top: 1rem;
  color: var(--primary-dark);
  font-size: .88rem;
  font-weight: 900;
  text-transform: uppercase;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.about-dark-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: var(--cream-white);
}
.about-dark-card h2 {
  color: white;
  font-family: "Source Serif 4", Georgia, serif;
}
.about-dark-card p {
  color: rgba(255,250,241,.74);
}
.journey-list {
  display: grid;
  gap: .8rem;
}
.journey-step {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  background: white;
  box-shadow: 0 14px 38px rgba(16,32,51,.06);
}
.journey-step span {
  color: var(--primary-dark);
  font-weight: 900;
}
.journey-step p {
  margin: 0;
  color: var(--muted-text);
}
.values-grid,
.resource-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .85rem;
}
.values-grid div,
.resource-highlight-grid div {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  background: white;
  color: var(--primary-dark);
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(16,32,51,.05);
}
.resource-steps {
  display: grid;
  gap: .6rem;
  padding-left: 1.25rem;
  color: var(--muted-text);
  font-weight: 700;
}
.legal-panel p {
  color: var(--muted-text);
  line-height: 1.75;
}
.cta-card {
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--cream-white);
  background:
    radial-gradient(circle at 85% 20%, rgba(42,208,195,.22), transparent 30%),
    linear-gradient(135deg, var(--primary-dark), #12345b);
  box-shadow: 0 26px 68px rgba(16, 32, 51, .16);
}
.cta-card h2 {
  max-width: 760px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.cta-card p {
  max-width: 620px;
  color: rgba(255,250,241,.72);
}
.detail-price {
  color: var(--accent-teal);
}
.result-tile span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-weight: 900;
}
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item h3 { font-size: 1rem; font-weight: 900; }

.form-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: white;
  box-shadow: 0 18px 45px rgba(16, 32, 51, .06);
}
.admin-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.admin-fieldset legend {
  float: none;
  width: auto;
  padding: 0 .5rem;
  font-size: .9rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.admin-image-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.admin-gallery-item {
  display: grid;
  gap: .45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6rem;
  background: white;
}
.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.note-editor.note-frame {
  border-color: #cddce9;
  border-radius: 8px;
}
.form-control, .form-select {
  border-radius: 6px;
  border-color: #cddce9;
  padding: .82rem .95rem;
}
.form-label {
  color: #28384c;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(11,111,206,.12);
}
.note-editor.note-frame,
.note-editor.note-airframe {
  overflow: hidden;
  border: 1px solid #cddce9;
  border-radius: 14px;
  background: white;
}
.note-toolbar {
  background: #f3f8fc;
  border-bottom: 1px solid #d9e9f4;
}
.note-editable {
  min-height: 300px;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
}
textarea.rich-editor[data-summernote-initialized="true"] {
  display: none !important;
}

.admin-shell { background: #f7fafc; min-height: calc(100vh - 78px); }
.admin-container { max-width: 1360px; }
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-page-header .section-title { margin: 0; }
.admin-form-card {
  display: grid;
  gap: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: white;
  box-shadow: 0 22px 55px rgba(16, 32, 51, .08);
}
.admin-form-section {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fbfdff;
  padding: clamp(1rem, 2vw, 1.4rem);
}
.admin-form-section h2,
.admin-details summary {
  margin: 0 0 1rem;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 900;
}
.admin-details summary {
  cursor: pointer;
  margin-bottom: 0;
}
.admin-details[open] summary { margin-bottom: 1rem; }
.admin-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), white 42%);
}
.admin-upload-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed #b9d2e7;
  border-radius: 14px;
  color: var(--muted-text);
  background: var(--soft-blue);
  font-weight: 800;
}
.admin-sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: .8rem;
}
.admin-sidebar a {
  display: block;
  color: #314256;
  padding: .7rem .8rem;
  border-radius: 12px;
  font-weight: 800;
}
.admin-sidebar a:hover { background: var(--soft); color: var(--primary); }
.table { vertical-align: middle; }
.badge-soft { color: var(--primary-dark); background: #e9f5ff; border: 1px solid #cce6ff; }

.testimonial-card {
  height: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(255,255,255,.08);
  color: var(--cream-white);
}
.testimonial-card p {
  color: rgba(255,250,241,.82);
  font-size: 1.03rem;
  line-height: 1.7;
}
.testimonial-card strong,
.testimonial-card span {
  display: block;
}
.testimonial-card span {
  color: rgba(255,250,241,.58);
  font-size: .9rem;
}
.smile-preview-band {
  background:
    radial-gradient(circle at 76% 10%, rgba(73,168,255,.16), transparent 28%),
    linear-gradient(135deg, #f7fcff, var(--cream-white));
}
.cta-final-band {
  background: linear-gradient(180deg, var(--cream-white), #edf8ff);
}

.footer-band {
  background:
    radial-gradient(circle at 20% 0%, rgba(42,208,195,.13), transparent 32%),
    var(--primary-dark);
  color: var(--cream-white);
}
.footer-band h2 { font-size: .88rem; text-transform: uppercase; color: #9ee7dd; font-weight: 900; }
.footer-band a { display: block; color: rgba(255,255,255,.78); margin: .45rem 0; }
.footer-band a:hover { color: white; }
.footer-brand-logo {
  filter: brightness(0) invert(1);
}
.footer-cta-btn {
  color: var(--primary-dark) !important;
  background: linear-gradient(135deg, #f7fcff, #9ff3ea);
  border: 0;
  box-shadow: 0 18px 38px rgba(42,208,195,.18);
}
.footer-cta-btn:hover {
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.2rem; color: rgba(255,255,255,.65); }
.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--primary);
  display: none;
  z-index: 20;
}
.back-top.is-visible { display: grid; place-items: center; }

@media (max-width: 991.98px) {
  .hero { min-height: auto; padding: 5rem 0 6rem; background-position: center; }
  .display-title { font-size: 3rem; }
  .section-pad { padding: 3.5rem 0; }
  .admin-sidebar { position: static; }
  .sticky-detail-card { position: static; }
  .page-hero, .detail-hero { padding: 3.5rem 0; }
  .admin-page-header { align-items: flex-start; flex-direction: column; }
  .admin-save-bar { position: static; justify-content: stretch; }
  .admin-save-bar .btn { width: 100%; }
  .about-hero, .smile-hero, .resource-hero, .legal-hero { padding: 3.8rem 0; }
  .journey-step { grid-template-columns: 1fr; }
  .detail-micro-grid { grid-template-columns: 1fr; }
  .filter-pill { flex: 1 1 auto; justify-content: center; }
}
