:root {
  --ink: #101421;
  --muted: #626b7c;
  --paper: #fbfcff;
  --line: rgba(16, 20, 33, .12);
  --violet: #5f1df1;
  --cyan: #1ccfe2;
  --gold: #f2b233;
  --red: #e93645;
  --deep: #17122a;
  --shadow: 0 22px 70px rgba(27, 22, 54, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 54px);
  color: white;
  background: linear-gradient(180deg, rgba(8, 8, 18, .72), rgba(8, 8, 18, .16));
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.site-header nav { margin-left: auto; display: flex; gap: 18px; font-size: .93rem; }
.site-header nav a { opacity: .9; }
.site-header nav a:hover { opacity: 1; color: var(--cyan); }
.header-cta {
  border: 1px solid rgba(255,255,255,.35);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  min-height: 96vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  padding: 120px clamp(18px, 5vw, 74px) 46px;
}
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; }
.hero-shade {
  background:
    radial-gradient(circle at 74% 34%, rgba(28,207,226,.26), transparent 28%),
    linear-gradient(90deg, rgba(9, 6, 22, .92), rgba(22, 11, 58, .62) 48%, rgba(9, 6, 22, .55)),
    linear-gradient(0deg, rgba(9, 6, 22, .92), transparent 52%);
}
.hero-content { position: relative; max-width: 960px; }
.hero-logo { width: min(190px, 42vw); margin-bottom: 24px; filter: drop-shadow(0 18px 36px rgba(0,0,0,.42)); }
.eyebrow, .section-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: var(--cyan);
  font-size: .78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  line-height: .92;
  max-width: 1050px;
  margin-bottom: 22px;
  letter-spacing: 0;
}
.hero-copy { max-width: 760px; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.seo-phrases {
  max-width: 780px;
  color: rgba(255,255,255,.78);
  font-weight: 900;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.button {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.button.primary { background: linear-gradient(135deg, var(--cyan), var(--gold)); color: #07101b; }
.button.ghost { border: 1px solid rgba(255,255,255,.36); color: white; background: rgba(255,255,255,.08); }
.button.outline { border: 1px solid var(--line); color: var(--ink); background: white; }
.button.danger { background: #ffe4e8; color: #9b1021; }
.button.wide { width: 100%; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats span {
  width: min(210px, 100%);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 14px;
  color: rgba(255,255,255,.78);
}
.hero-stats strong { display: block; color: white; font-size: 1.4rem; }

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(44px, 7vw, 90px) clamp(18px, 5vw, 74px);
  background: var(--deep);
  color: white;
}
.intro-band h2, .section-heading h2 { font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: 0; }
.intro-band p:last-child { color: rgba(255,255,255,.78); line-height: 1.75; font-size: 1.08rem; }

.section, .media-strip, .admin-section { padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 74px); }
.section-heading { max-width: 930px; margin-bottom: 32px; }
.section-heading.compact { max-width: 720px; }
.section-heading p { color: var(--muted); line-height: 1.6; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.benefit-grid article, .appointment-panel, .calendar-wrap, .location-card, .review-card, .video-card, .practitioner-card, .admin-shell {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(17, 24, 39, .06);
}
.benefit-grid article { padding: 24px; min-height: 280px; }
.benefit-grid span { color: var(--red); font-weight: 900; }
.benefit-grid h3 { font-size: 1.35rem; margin: 18px 0 12px; }
.benefit-grid p { color: var(--muted); line-height: 1.65; }

.certifications-section {
  background: #f7f9fc;
}
.certification-intro {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 320px;
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  margin-bottom: 26px;
}
.certification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.association-badge {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
  box-shadow: 0 12px 35px rgba(17, 24, 39, .06);
  text-align: center;
}
.association-badge img {
  width: min(210px, 70%);
  margin: 0 auto 12px;
  filter: drop-shadow(0 14px 24px rgba(17,24,39,.16));
}
.association-badge p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.certification-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(17, 24, 39, .06);
}
.certification-grid img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}
.certification-grid figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.media-strip { background: #eef9fb; }
.gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  grid-auto-rows: 250px;
  gap: 14px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 8px; background: #d9e6ef; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 12px 12px;
  color: white; font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.presentation-carousel-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 74px);
  color: white;
  background:
    radial-gradient(circle at 18% 10%, rgba(242,178,51,.22), transparent 30%),
    radial-gradient(circle at 80% 16%, rgba(28,207,226,.18), transparent 26%),
    linear-gradient(135deg, #080611, #211044 55%, #070915);
  overflow: hidden;
}
.presentation-carousel-section .section-heading p {
  color: rgba(255,255,255,.7);
}
.presentation-carousel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(0px, 5vw, 58px) 48px;
}
.presentation-stage {
  position: relative;
  min-height: clamp(420px, 74vw, 820px);
  perspective: 1400px;
}
.presentation-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(7%) scale(.94) rotateY(-7deg);
  transition: opacity .55s ease, transform .65s ease;
  pointer-events: none;
}
.presentation-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1) rotateY(0);
  pointer-events: auto;
}
.presentation-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 34px 110px rgba(0,0,0,.46);
}
.presentation-caption {
  position: absolute;
  left: clamp(14px, 3vw, 30px);
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  display: grid;
  gap: 5px;
  max-width: 520px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(9,7,18,.78);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.presentation-caption span {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
}
.presentation-caption h3 { margin: 0; font-size: clamp(1.2rem, 2.8vw, 2.3rem); }
.presentation-caption p { margin: 0; color: rgba(255,255,255,.78); font-weight: 800; }
.carousel-control {
  position: absolute;
  z-index: 3;
  top: 45%;
  width: 48px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }
.presentation-dots {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.presentation-dots button {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.presentation-dots button.active {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  width: 54px;
}
.empty-carousel {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 8px;
  color: rgba(255,255,255,.76);
}

.scheduler { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.appointment-panel, .calendar-wrap { padding: 22px; }
label { display: grid; gap: 7px; font-weight: 800; color: #30384a; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
}
form { display: grid; gap: 14px; }
.price-tag { margin: 16px 0 0; color: var(--muted); }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calendar-toolbar h3 { margin: 0; font-size: 1.45rem; }
.icon-button {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line);
  background: white; font-size: 1.7rem; cursor: pointer;
}
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-weekdays { margin: 20px 0 8px; color: var(--muted); font-weight: 900; text-align: center; }
.day {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}
.day.muted { opacity: .34; }
.day-number { font-weight: 900; margin-bottom: 6px; }
.slot-pill {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: #e8fbfd;
  color: #063e48;
  font-size: .78rem;
  padding: 6px;
  margin-top: 5px;
  cursor: pointer;
}

.locations, .review-images, .video-testimonials, .practitioners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.location-card { overflow: hidden; }
.map-sketch {
  min-height: 160px;
  display: block;
  background: #eaf4f7;
  overflow: hidden;
}
.map-sketch img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform .35s ease;
}
.location-card:hover .map-sketch img {
  transform: scale(1.04);
}
.location-card .body, .practitioner-card { padding: 20px; }
.location-card p, .practitioner-card p { color: var(--muted); line-height: 1.6; }
.map-link { color: var(--violet); font-weight: 900; }

.testimonials-section { background: var(--deep); color: white; }
.testimonials-section .section-heading p { color: rgba(255,255,255,.7); }
.review-card {
  margin: 0;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.review-card img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}
.review-card figcaption {
  padding: 12px 16px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
}

.video-testimonials-section { background: #eef9fb; }
.video-testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card { overflow: hidden; background: white; }
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #090712;
}
.video-card div { padding: 18px; }
.video-card h3 { margin-bottom: 8px; }
.video-card p { color: var(--muted); margin-bottom: 0; }

.practitioner-card img { width: 100%; aspect-ratio: 1 / .78; object-fit: cover; border-radius: 8px; margin-bottom: 14px; background: #eef2f7; }

.admin-section { background: #090712; padding-top: 26px; }
.admin-page { background: #090712; }
.admin-page-header {
  position: static;
  background: #090712;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.admin-standalone {
  min-height: calc(100vh - 78px);
}
.admin-shell { padding: clamp(20px, 4vw, 36px); }
.admin-heading {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: center;
  color: white;
}
.admin-heading img {
  width: 28px;
  height: 28px;
  grid-row: span 3;
}
.admin-heading h1,
.admin-heading h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  line-height: 1.15;
  margin: 0 0 8px;
}
.admin-heading p:last-child { color: rgba(255,255,255,.68); }
.admin-login {
  max-width: 440px;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  background: white;
  margin-bottom: 18px;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tab {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 900;
}
.tab.active { background: var(--deep); color: white; }
.admin-panel { display: none; }
.admin-panel.active { display: grid; gap: 16px; }
.admin-panels.locked { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-list { display: grid; gap: 8px; margin-top: 8px; }
.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.small-button { border: 0; border-radius: 7px; padding: 8px 10px; background: #f0f2f7; cursor: pointer; font-weight: 800; }
.small-button.danger { background: #ffe9e9; color: #9f1d1d; }
.protected-media {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.backup-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.import-label {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
}
.import-label input { display: none; }
#backupText { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-status { color: var(--muted); font-weight: 800; }

.site-footer {
  padding: 28px clamp(18px, 5vw, 74px);
  background: #090712;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  overflow: hidden;
}
.site-footer img { width: 64px; }
.footer-links { display: flex; gap: 16px; font-weight: 900; color: var(--cyan); }
.footer-codes {
  width: 100%;
  order: 3;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  color: rgba(255,255,255,.72);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}
.footer-codes-track {
  display: inline-flex;
  gap: 24px;
  min-width: max-content;
  animation: footerCodesMarquee 28s linear infinite;
}
.footer-codes span {
  display: inline-flex;
}
@keyframes footerCodesMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.admin-lock-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.admin-lock-link img {
  width: 22px;
  height: 22px;
}

@media (max-width: 1050px) {
  .benefit-grid, .locations, .review-images, .video-testimonials, .practitioners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheduler, .intro-band, .certification-intro { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { position: absolute; flex-wrap: wrap; gap: 10px; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; padding-bottom: 4px; }
  .header-cta { margin-left: auto; }
  .hero { padding-top: 170px; min-height: 100vh; }
  .presentation-carousel { padding-inline: 0; }
  .presentation-stage { min-height: 560px; }
  .presentation-caption { position: static; margin-top: 12px; max-width: none; }
  .presentation-slide { display: grid; align-content: start; }
  .presentation-slide img { height: auto; aspect-ratio: 2 / 3; }
  .carousel-control { top: 230px; width: 40px; height: 52px; font-size: 2rem; }
  .gallery, .benefit-grid, .locations, .review-images, .video-testimonials, .practitioners, .form-grid, .certification-grid { grid-template-columns: 1fr; }
  .certification-grid img { height: 240px; }
  .gallery { grid-auto-rows: 280px; }
  .gallery figure:first-child { grid-row: auto; }
  .calendar-weekdays, .calendar-grid { gap: 5px; }
  .day { min-height: 86px; padding: 6px; }
  .slot-pill { font-size: .68rem; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-row-actions { justify-content: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
