/* Enamel Craft — minimal clinical UI */
:root {
  --ec-bg: #f7f6f3;
  --ec-surface: #ffffff;
  --ec-ink: #1a1f1c;
  --ec-muted: #5a635e;
  --ec-line: rgba(26, 31, 28, 0.08);
  --ec-accent: #2f4f3f;
  --ec-accent-hover: #244038;
  --ec-accent-soft: #e8efe6;
  --ec-accent-rgb: 47, 79, 63;
  --ec-logo-lime: #a7cc6a;
  --ec-warm: #c4a574;
  --ec-radius: 14px;
  --ec-radius-lg: 22px;
  --ec-shadow: 0 4px 24px rgba(26, 31, 28, 0.06);
  --ec-shadow-hover: 0 12px 40px rgba(26, 31, 28, 0.1);
  --ec-font-serif: "Cormorant Garamond", Georgia, serif;
  --ec-font-sans: "DM Sans", system-ui, sans-serif;
  --ec-font-num: "Inter", "DM Sans", system-ui, sans-serif;
  --ec-header-h: 4.5rem;
  --ec-max: 72rem;
  --ec-nav-link-size: 0.875rem;
  --ec-nav-link-weight: 500;
  --ec-nav-link-pad-y: 0.5rem;
  --ec-nav-link-pad-x: 0.55rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.ec-body {
  margin: 0;
  font-family: var(--ec-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ec-ink);
  background: var(--ec-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .ec-body {
    overflow-x: clip;
  }
}

.ec-body h1,
.ec-body h2,
.ec-body h3,
.ec-body .ec-display {
  font-family: var(--ec-font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Readable numerals — phones, hours, ratings, stats (sans, not serif) */
.ec-num,
.ec-utility__meta-value,
.ec-strip__card p,
.ec-book-cta__phone,
.ec-book-cta__trust,
.ec-book-cta__trust strong,
.ec-stat-card strong,
.ec-footer a[href^="tel:"],
.ec-footer [itemprop="telephone"],
.ec-prose a[href^="tel:"] {
  font-family: var(--ec-font-num);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.01em;
}

.ec-display {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.ec-lead {
  font-size: 1.125rem;
  color: var(--ec-muted);
  max-width: 38rem;
}

.ec-link {
  color: var(--ec-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ec-link:hover {
  border-bottom-color: var(--ec-accent);
}

/* —— Top utility bar (reference-style: icons, labels, calm hierarchy) —— */
.ec-utility {
  display: block;
  font-size: 0.8125rem;
  color: var(--ec-muted);
  background: linear-gradient(180deg, #fafaf8 0%, #f0f2ef 100%);
  border-bottom: 1px solid var(--ec-line);
}

.ec-utility__inner {
  max-width: var(--ec-max);
  margin: 0 auto;
  padding: 0.65rem max(1.25rem, env(safe-area-inset-left)) 0.65rem max(1.25rem, env(safe-area-inset-right));
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .ec-utility__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0.55rem 1.5rem;
  }
}

.ec-utility__cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .ec-utility__cluster {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

.ec-utility__cluster--link {
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.ec-utility__cluster--link:hover {
  background: rgba(var(--ec-accent-rgb), 0.06);
  color: var(--ec-ink);
}

.ec-utility__icon-wrap {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  color: var(--ec-accent);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.ec-utility__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ec-utility__meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-warm);
}

.ec-utility__meta-value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ec-ink);
  line-height: 1.35;
  word-break: break-word;
}

.ec-utility__sep {
  display: none;
  width: 1px;
  align-self: stretch;
  min-height: 2.25rem;
  background: var(--ec-line);
  margin: 0 0.35rem;
}

@media (min-width: 768px) {
  .ec-utility__sep {
    display: block;
  }
}

/* —— Header / nav —— */
.ec-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ec-line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.ec-header.is-scrolled {
  box-shadow: var(--ec-shadow);
  background: rgba(255, 255, 255, 0.96);
}

.ec-nav__inner {
  max-width: var(--ec-max);
  margin: 0 auto;
  padding: 0.5rem max(1.25rem, env(safe-area-inset-left)) 0.5rem max(1.25rem, env(safe-area-inset-right));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: var(--ec-header-h);
  width: 100%;
}

@media (min-width: 992px) {
  .ec-nav__inner {
    flex-wrap: nowrap;
  }
}

.ec-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  margin-right: 0.5rem;
  max-width: min(46%, 11.5rem);
}

.ec-brand img {
  height: auto;
  width: auto;
  max-height: 2.35rem;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

@media (min-width: 992px) {
  .ec-brand {
    max-width: 11.25rem;
    margin-right: 0.75rem;
  }

  .ec-brand img {
    max-height: 2.4rem;
  }
}

@media (min-width: 1280px) {
  .ec-brand {
    max-width: 13rem;
  }

  .ec-brand img {
    max-height: 2.65rem;
  }
}

.ec-nav__toggle {
  border: 1px solid var(--ec-line);
  background: var(--ec-surface);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ec-ink);
}

@media (min-width: 992px) {
  .ec-nav__toggle {
    display: none;
  }
}

.ec-nav__collapse {
  display: none;
  flex-basis: 100%;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0 0;
}

.ec-nav__collapse.is-open {
  display: flex;
}

@media (min-width: 992px) {
  .ec-nav__collapse {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    flex-basis: auto;
    width: auto;
    padding: 0;
    gap: 0.35rem;
  }
}

.ec-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

@media (min-width: 992px) {
  .ec-nav__links {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.05rem;
    min-width: 0;
  }
}

@media (min-width: 1200px) {
  .ec-nav__links {
    gap: 0.15rem;
  }
}

.ec-nav__links a {
  font-family: var(--ec-font-sans);
  font-size: var(--ec-nav-link-size);
  font-weight: var(--ec-nav-link-weight);
  color: var(--ec-muted);
  text-decoration: none;
  padding: var(--ec-nav-link-pad-y) var(--ec-nav-link-pad-x);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .ec-brand {
    max-width: 10rem;
  }

  .ec-brand img {
    max-height: 2.2rem;
  }

  .ec-nav__phone {
    display: none !important;
  }

  .ec-nav__links a {
    padding: 0.4rem 0.42rem;
  }
}

@media (min-width: 1200px) {
  .ec-nav__links a {
    padding: var(--ec-nav-link-pad-y) 0.65rem;
  }
}

.ec-header .ec-nav__actions .ec-btn {
  font-size: var(--ec-nav-link-size);
  font-weight: 600;
  padding: 0.55rem 1rem;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .ec-header .ec-nav__actions .ec-btn {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
}

.ec-nav__links a:hover,
.ec-nav__links a:focus-visible {
  color: var(--ec-ink);
  background: var(--ec-accent-soft);
}

.ec-nav__links a.is-active {
  color: var(--ec-accent);
  background: var(--ec-accent-soft);
}

.ec-nav__more {
  position: relative;
}

.ec-nav__more-toggle {
  font-family: var(--ec-font-sans);
  font-size: var(--ec-nav-link-size);
  font-weight: var(--ec-nav-link-weight);
  color: var(--ec-muted);
  background: transparent;
  border: none;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.ec-nav__more-toggle:hover,
.ec-nav__more-toggle:focus-visible {
  color: var(--ec-ink);
  background: var(--ec-accent-soft);
}

.ec-nav__more.is-open .ec-nav__more-toggle {
  color: var(--ec-accent);
  background: var(--ec-accent-soft);
}

.ec-nav__more-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11rem;
  padding: 0.35rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  box-shadow: var(--ec-shadow-hover);
  z-index: 1100;
}

.ec-nav__more-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-family: var(--ec-font-sans);
  font-size: var(--ec-nav-link-size);
  font-weight: var(--ec-nav-link-weight);
  color: var(--ec-muted);
  text-decoration: none;
}

.ec-nav__more-menu a:hover,
.ec-nav__more-menu a:focus-visible {
  color: var(--ec-ink);
  background: var(--ec-accent-soft);
}

.ec-nav__more-menu a.is-active {
  color: var(--ec-accent);
  background: var(--ec-accent-soft);
}

@media (max-width: 991.98px) {
  .ec-nav__more {
    width: 100%;
  }

  .ec-nav__more-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 0.5rem;
    margin-top: 0.15rem;
  }

  .ec-nav__more-menu[hidden] {
    display: none !important;
  }
}

.ec-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .ec-nav__actions {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    margin-left: 0.35rem;
    flex-shrink: 0;
    gap: 0.4rem;
  }
}

.ec-nav__cta-secondary {
  text-align: center;
}

.ec-nav__phone {
  font-family: var(--ec-font-num);
  font-size: var(--ec-nav-link-size);
  font-weight: 600;
  color: var(--ec-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.ec-nav__phone:hover {
  color: var(--ec-accent);
}

.ec-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .ec-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.ec-gallery-grid__item {
  margin: 0;
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.ec-gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-first-visit__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ec-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ec-first-visit__list li + li {
  margin-top: 0.35rem;
}

.ec-contact-panel.ec-first-visit h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-bottom: 0.85rem;
}


.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ec-font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ec-btn:active {
  transform: scale(0.98);
}

.ec-btn--primary {
  background: var(--ec-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(var(--ec-accent-rgb), 0.25);
}

.ec-btn--primary:hover {
  background: var(--ec-accent-hover);
  color: #fff;
}

.ec-btn--ghost {
  background: transparent;
  color: var(--ec-ink);
  border: 1px solid var(--ec-line);
}

.ec-btn--ghost:hover {
  border-color: var(--ec-ink);
  background: var(--ec-surface);
}

.ec-btn--outline {
  background: transparent;
  color: var(--ec-accent);
  border: 1px solid rgba(var(--ec-accent-rgb), 0.35);
}

.ec-btn--outline:hover {
  background: var(--ec-accent-soft);
  border-color: var(--ec-accent);
  color: var(--ec-accent-hover);
}

.ec-section--surface {
  background: var(--ec-surface);
}

.ec-section__foot {
  margin-top: 1.75rem;
  text-align: center;
}

.ec-nav__cta {
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .ec-nav__cta {
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
  }
}

/* —— Hero —— */
.ec-hero {
  position: relative;
  min-height: min(88svh, 48rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(4.5rem, 12vw, 6rem) max(1.25rem, env(safe-area-inset-left)) clamp(2.75rem, 7vw, 4.25rem)
    max(1.25rem, env(safe-area-inset-right));
  overflow: hidden;
}

.ec-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ec-hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Frame holds opacity crossfade; inner img gets Ken Burns (transform on img breaks object-fit cover) */
.ec-hero__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.2s ease-in-out;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ec-hero__frame.is-active {
  opacity: 1;
  z-index: 1;
}

.ec-hero__frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transform-origin: center center;
  animation: none;
  filter: saturate(0.92) contrast(1.04) brightness(0.94);
}

.ec-hero__frame.is-active .ec-hero__frame__img {
  animation: ec-hero-ken 28s ease-in-out infinite alternate;
}

/* Ceiling TV — wide desktop heroes crop top/bottom with centered object-position */
.ec-hero__frame--top .ec-hero__frame__img {
  object-position: 50% 0%;
  transform-origin: 50% 0%;
}

.ec-hero__frame--top.is-active .ec-hero__frame__img {
  animation: ec-hero-ken-top 28s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
  .ec-hero__frame--top .ec-hero__frame__img {
    object-position: 50% 0%;
  }
}

/* Legacy single-img markup (if any page still uses it) */
.ec-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 2.2s ease-in-out;
  z-index: 0;
}

.ec-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ec-hero__frame.is-active .ec-hero__frame__img {
    animation: none;
    transform: scale(1.02);
  }

  .ec-hero__frame--top.is-active .ec-hero__frame__img {
    transform-origin: 50% 0%;
  }
}

@keyframes ec-hero-ken {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.09);
  }
}

@keyframes ec-hero-ken-top {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.06);
  }
}

.ec-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 31, 28, 0.32) 0%,
    rgba(26, 31, 28, 0.48) 42%,
    rgba(26, 31, 28, 0.78) 68%,
    rgba(26, 31, 28, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.ec-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 31, 28, 0.62) 0%,
    rgba(26, 31, 28, 0.28) 42%,
    transparent 72%
  );
}

.ec-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--ec-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.ec-hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: max(-1.25rem, calc(-1 * env(safe-area-inset-left, 0px)));
  right: 8%;
  top: -0.35rem;
  bottom: -2.75rem;
  background: radial-gradient(
    ellipse 95% 110% at 0% 88%,
    rgba(26, 31, 28, 0.55) 0%,
    rgba(26, 31, 28, 0.22) 52%,
    transparent 78%
  );
  pointer-events: none;
}

.ec-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.ec-hero h1 {
  color: #fff;
  max-width: min(38ch, 100%);
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.48), 0 1px 3px rgba(0, 0, 0, 0.38);
}

.ec-hero__sub {
  font-family: var(--ec-font-sans);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.42);
}

.ec-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04) brightness(0.96);
}

@media (prefers-reduced-motion: no-preference) {
  .ec-hero--static .ec-hero__img {
    animation: ec-hero-ken 28s ease-in-out infinite alternate;
    transform: scale(1.04);
  }
}

.ec-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ec-hero__secondary {
  margin: 0.85rem 0 0;
}

.ec-hero__consult-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ec-hero__consult-link:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.ec-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 1.15rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

.ec-hero__trust-item {
  color: inherit;
}

.ec-hero__trust a.ec-hero__trust-item {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.ec-hero__trust a.ec-hero__trust-item:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.ec-hero__trust-sep {
  opacity: 0.55;
  user-select: none;
}

.ec-hero .ec-btn--primary {
  background: #fff;
  color: var(--ec-accent);
  box-shadow: none;
}

.ec-hero .ec-btn--primary:hover {
  background: var(--ec-accent-soft);
  color: var(--ec-accent-hover);
}

.ec-hero .ec-btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.ec-hero .ec-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.ec-hero .ec-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.ec-hero .ec-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

/* —— Info strip —— */
.ec-strip {
  max-width: var(--ec-max);
  margin: clamp(-2.75rem, -4vw, -2rem) auto 0;
  position: relative;
  z-index: 3;
  padding: 0 max(1.25rem, env(safe-area-inset-left)) 0 max(1.25rem, env(safe-area-inset-right));
  width: 100%;
  box-sizing: border-box;
}

.ec-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ec-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-strip__card {
  background: var(--ec-surface);
  border-radius: var(--ec-radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--ec-shadow);
  border: 1px solid var(--ec-line);
}

.ec-strip--prominent .ec-strip__card {
  background: linear-gradient(165deg, #ffffff 0%, #f8f6f1 100%);
  border: 1px solid rgba(var(--ec-accent-rgb), 0.14);
  box-shadow: 0 8px 32px rgba(26, 31, 28, 0.08);
}

.ec-strip--page {
  margin-top: -1.35rem;
  margin-bottom: 1.75rem;
}

.ec-strip__card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ec-strip__card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--ec-shadow-hover);
  border-color: rgba(var(--ec-accent-rgb), 0.22);
}

.ec-strip__card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ec-strip__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--ec-accent-soft);
  border: 1px solid rgba(var(--ec-accent-rgb), 0.12);
  color: var(--ec-accent);
  font-size: 1.05rem;
}

.ec-strip__icon--accent {
  background: var(--ec-accent);
  border-color: var(--ec-accent);
  color: #fff;
}

.ec-strip__card-body {
  min-width: 0;
}

.ec-strip__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-warm);
  margin-bottom: 0.35rem;
  display: block;
}

.ec-strip__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--ec-font-sans);
  letter-spacing: -0.01em;
}

.ec-strip__card h3.ec-num {
  font-family: var(--ec-font-num);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.ec-strip__card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ec-muted);
}

.ec-strip__visit-address {
  color: var(--ec-ink);
  line-height: 1.5;
}

.ec-strip--prominent {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.ec-strip__email {
  color: var(--ec-accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-word;
}

.ec-strip__email:hover {
  text-decoration: underline;
}

.ec-strip__tel {
  color: inherit;
  text-decoration: none;
}

.ec-strip__tel:hover {
  color: var(--ec-accent);
}

.ec-strip--prominent .ec-strip__card--link .ec-strip__icon,
.ec-strip--prominent .ec-strip__card--hours .ec-strip__icon,
.ec-strip--prominent .ec-strip__card--phone .ec-strip__icon {
  background: var(--ec-accent-soft);
  border-color: rgba(var(--ec-accent-rgb), 0.12);
  color: var(--ec-accent);
}

.ec-section--after-strip {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.ec-media-frame--doctor {
  aspect-ratio: 4 / 5;
  max-height: min(36rem, 80vh);
  background: #6d8aa3;
  border: none;
}

.ec-media-frame--doctor img {
  object-fit: cover;
  object-position: center 30%;
}

.ec-section__head--compact {
  margin-bottom: clamp(1.15rem, 2.5vw, 1.65rem);
}

.ec-split--about {
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.ec-split--about .ec-media-frame--doctor-home {
  margin-top: 0;
  width: min(100%, 20rem);
  max-height: min(24rem, 62vh);
  min-height: 0;
  height: auto;
  justify-self: center;
}

@media (min-width: 992px) {
  .ec-split--about {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .ec-split--about .ec-media-frame--doctor-home {
    justify-self: end;
    width: 100%;
    max-height: min(22rem, 58vh);
  }

  .ec-split--about .ec-media-frame--doctor {
    height: auto;
    min-height: 0;
  }

  .ec-media-frame--doctor-home img {
    object-position: center 10%;
  }

  .ec-split--about .ec-checklist {
    margin-top: 1rem;
  }

  .ec-split--about .ec-prose .mt-4 {
    margin-top: 1rem !important;
  }
}

/* —— Sections —— */
.ec-section {
  padding: clamp(3.5rem, 8vw, 6rem) max(1.25rem, env(safe-area-inset-right)) clamp(3.5rem, 8vw, 6rem)
    max(1.25rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.ec-section__inner {
  max-width: var(--ec-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Match Bootstrap row gutters to section padding rhythm */
.ec-section__inner > .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.ec-section__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ec-section__head.ec-section--tight {
  padding-top: 0;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.ec-section__h-sub {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-family: var(--ec-font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

/* Bootstrap row: equal-height columns for paired blocks (before/after + services) */
.ec-row-equal > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.ec-row-equal > [class*="col-"] > * {
  flex: 1 1 auto;
  min-height: 0;
}

.ec-row-equal > [class*="col-"] > .ec-book-cta {
  flex: 0 0 auto;
  width: 100%;
}

.ec-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-warm);
  margin-bottom: 0.5rem;
}

.ec-section h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  margin: 0 0 0.75rem;
}

.ec-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ec-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 4vw, 4rem);
    align-items: stretch;
  }

  .ec-split .ec-media-frame--doctor {
    height: 100%;
    max-height: none;
    min-height: 28rem;
  }
}

@media (max-width: 991.98px) {
  .ec-split .ec-media-frame {
    order: -1;
    justify-self: center;
    width: min(100%, 22rem);
    max-height: 26rem;
  }
}

.ec-prose p {
  margin: 0 0 1rem;
  color: var(--ec-muted);
}

.ec-prose p:last-child {
  margin-bottom: 0;
}

.ec-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .ec-checklist {
    grid-template-columns: 1fr 1fr;
  }
}

.ec-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ec-ink);
}

.ec-checklist li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--ec-accent);
  flex-shrink: 0;
}

.ec-media-frame {
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: min(32rem, 70vh);
  width: 100%;
  box-shadow: var(--ec-shadow-hover);
}

.ec-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Before / after (static) —— */
.ec-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  min-height: min(280px, 42vw);
  height: 100%;
}

.ec-before-after figure {
  margin: 0;
  position: relative;
}

.ec-before-after img {
  width: 100%;
  height: 100%;
  min-height: min(240px, 36vw);
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .ec-before-after {
    min-height: 100%;
  }

  .row > [class*="col-"] > .ec-before-after {
    min-height: 320px;
  }
}

.ec-before-after figcaption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 31, 28, 0.65);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

/* —— Service grid —— */
.ec-services {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .ec-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ec-services--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ec-service-card {
  background: var(--ec-surface);
  border-radius: var(--ec-radius);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ec-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow-hover);
}

.ec-service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ec-service-card h3 {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  font-size: 1rem;
  font-family: var(--ec-font-sans);
  font-weight: 600;
}

/* —— Treatments grid (homepage) —— */
.ec-ba-showcase {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .ec-ba-showcase {
    grid-template-columns: repeat(2, minmax(0, 28rem));
    justify-content: center;
    gap: 1.75rem clamp(1.25rem, 3vw, 2rem);
  }
}

.ec-ba-showcase__item {
  margin: 0;
  width: 100%;
  max-width: 28rem;
}

.ec-ba-showcase__tag {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-warm);
  text-align: center;
}

.ec-ba-showcase__note {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  font-size: 0.8125rem;
  text-align: center;
}

.ec-before-after--showcase {
  min-height: 0;
  height: auto;
  gap: 0.75rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(26, 31, 28, 0.08);
}

.ec-before-after--showcase img {
  min-height: 0;
  aspect-ratio: 1;
  height: auto;
}

.ec-service-detail[id] {
  scroll-margin-top: calc(var(--ec-header-h) + 1.25rem);
}

.ec-services--detail {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .ec-services--detail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ec-services--detail {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.ec-service-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--ec-line);
  background: var(--ec-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ec-service-detail:hover {
  border-color: rgba(196, 149, 106, 0.45);
  box-shadow: 0 6px 18px rgba(26, 31, 28, 0.08);
  transform: translateY(-2px);
  color: inherit;
}

.ec-service-detail__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ec-surface);
}

.ec-service-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ec-service-detail__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ec-service-detail__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.ec-service-detail__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ec-muted);
}

.ec-services--flagship.ec-services--detail {
  gap: 1rem;
}

@media (min-width: 576px) {
  .ec-services--flagship.ec-services--detail {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .ec-services--flagship.ec-services--detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.ec-services--flagship .ec-service-detail {
  padding: 1rem 1.15rem;
  gap: 1rem;
  align-items: center;
}

.ec-services--flagship .ec-service-detail__thumb {
  flex: 0 0 104px;
  width: 104px;
  height: 78px;
  border-radius: 10px;
}

.ec-services--flagship .ec-service-detail__title {
  font-size: 1.0625rem;
}

.ec-services--flagship .ec-service-detail__desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* —— Services page: linked treatment cards (image + copy) —— */
.ec-services--page-grid {
  padding: clamp(0.85rem, 2vw, 1.25rem);
  border-radius: var(--ec-radius-lg);
  border: 1px solid var(--ec-line);
  background: linear-gradient(165deg, var(--ec-surface) 0%, var(--ec-bg) 100%);
}

.ec-services--page {
  gap: 0.9rem;
}

@media (min-width: 576px) {
  .ec-services--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .ec-services--page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.ec-services--page .ec-service-detail {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  border-radius: var(--ec-radius);
  background: var(--ec-surface);
  box-shadow: 0 1px 0 var(--ec-line);
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.ec-services--page .ec-service-detail:hover {
  transform: translateY(-3px);
  box-shadow: var(--ec-shadow-hover);
  border-color: rgba(var(--ec-accent-rgb), 0.25);
}

.ec-services--page .ec-service-detail:focus-visible {
  outline: 2px solid var(--ec-accent);
  outline-offset: 2px;
}

.ec-services--page .ec-service-detail:target {
  border-color: rgba(var(--ec-accent-rgb), 0.35);
  box-shadow: 0 0 0 2px var(--ec-accent-soft);
}

.ec-services--page .ec-service-detail__thumb {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--ec-line);
  background: var(--ec-accent-soft);
}

.ec-services--page .ec-service-detail__thumb img {
  transition: transform 0.35s ease;
}

.ec-services--page .ec-service-detail:hover .ec-service-detail__thumb img {
  transform: scale(1.04);
}

.ec-services--page .ec-service-detail__body {
  padding: 0.9rem 1rem 1.05rem;
  gap: 0.35rem;
  flex: 1;
}

.ec-services--page .ec-service-detail__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--ec-font-sans);
}

.ec-services--page .ec-service-detail__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ec-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ec-services--page .ec-service-detail__thumb {
    aspect-ratio: 4 / 3;
  }

  .ec-services--page .ec-service-detail__body {
    padding: 1rem 1.1rem 1.15rem;
  }

  .ec-services--page .ec-service-detail__title {
    font-size: 1rem;
  }

  .ec-services--page .ec-service-detail__desc {
    font-size: 0.8375rem;
  }
}

/* —— Booking CTA (services) —— */
.ec-book-cta {
  display: grid;
  gap: 0;
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  box-shadow: var(--ec-shadow-hover);
  background: var(--ec-surface);
  align-items: stretch;
}

@media (min-width: 768px) {
  .ec-book-cta {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: 17.5rem;
  }
}

.ec-book-cta__visual {
  position: relative;
  min-height: 11.5rem;
  max-height: 15rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ec-book-cta__visual {
    min-height: 100%;
    max-height: none;
  }
}

.ec-book-cta__visual img {
  width: 100%;
  height: 100%;
  min-height: 11.5rem;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

@media (min-width: 768px) {
  .ec-book-cta__visual img {
    position: absolute;
    inset: 0;
    min-height: 100%;
    width: 100%;
    height: 100%;
  }
}

.ec-book-cta__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.92) 100%);
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .ec-book-cta__visual::after {
    background: linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, 0.95) 100%);
  }
}

.ec-book-cta__body {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ec-book-cta__body .ec-eyebrow {
  color: var(--ec-warm);
}

.ec-book-cta__body h3 {
  font-family: var(--ec-font-serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 0.35rem 0 0.75rem;
  color: var(--ec-ink);
}

.ec-book-cta__body > p {
  margin: 0 0 1.25rem;
  color: var(--ec-muted);
  font-size: 1rem;
  max-width: 28rem;
}

.ec-book-cta__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--ec-ink);
}

.ec-google-trust {
  gap: 0.65rem 0.75rem;
}

.ec-book-cta__trust-sep {
  color: color-mix(in srgb, var(--ec-ink) 35%, transparent);
  font-weight: 500;
  user-select: none;
}

.ec-book-cta__trust-cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

/* Visit Health partner strip (home) */
.ec-partner-strip {
  border-bottom: 1px solid var(--ec-line);
  background: var(--ec-surface);
  box-sizing: border-box;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  overflow-x: clip;
}

.ec-partner-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding-top: clamp(1rem, 3vw, 1.35rem);
  padding-bottom: clamp(1rem, 3vw, 1.35rem);
  width: 100%;
  max-width: var(--ec-max);
  margin-left: auto;
  margin-right: auto;
}

.ec-partner-strip__inner--logos {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.ec-partner-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 40rem;
}

.ec-partner-logos__item {
  min-width: 0;
}

.ec-partner-logos__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  background: var(--ec-bg);
  box-sizing: border-box;
  line-height: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-partner-logos__link:hover {
  border-color: color-mix(in srgb, var(--ec-accent) 22%, var(--ec-line));
  box-shadow: var(--ec-shadow);
}

.ec-partner-logos__link:focus-visible {
  outline: 2px solid var(--ec-accent);
  outline-offset: 2px;
}

.ec-partner-logos__img {
  display: block;
  width: auto;
  height: 1.15rem;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .ec-partner-logos {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.6rem;
    max-width: 52rem;
  }

  .ec-partner-logos__link {
    min-height: 3.15rem;
    padding: 0.6rem 0.75rem;
  }

  .ec-partner-logos__img {
    height: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .ec-book-cta__trust-cluster {
    width: 100%;
  }

  .ec-google-trust .ec-google-rating__summary {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
}

.ec-google-logo--trust {
  height: 1rem;
}

.ec-google-rating__summary--light .ec-google-rating__score {
  color: var(--ec-ink);
}

.ec-google-rating__summary--light .ec-google-rating__count {
  color: var(--ec-muted);
}

.ec-book-cta__stars {
  color: #e8a317;
  letter-spacing: 0.06em;
}

.ec-book-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ec-book-cta__phone {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ec-accent);
  text-decoration: none;
}

.ec-book-cta__phone:hover {
  text-decoration: underline;
}

/* —— Reviews —— */
.ec-reviews {
  background: var(--ec-accent);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) max(1.25rem, env(safe-area-inset-right)) clamp(3rem, 7vw, 5rem)
    max(1.25rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.ec-reviews__inner {
  max-width: var(--ec-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.ec-reviews h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.ec-reviews__intro {
  opacity: 0.88;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.ec-google-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ec-google-rating {
  margin-bottom: 1.75rem;
}

.ec-google-rating__link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 479.98px) {
  .ec-google-rating__link {
    width: 100%;
    border-radius: var(--ec-radius-lg);
    justify-content: flex-start;
  }
}

.ec-google-rating__link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.ec-google-logo {
  display: block;
  width: auto;
  height: 1.25rem;
  flex-shrink: 0;
}

.ec-google-rating__link .ec-google-logo {
  height: 1.35rem;
}

.ec-google-rating__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ec-font-sans);
  font-weight: 400;
}

.ec-google-rating__score {
  font-family: var(--ec-font-num);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: #fff;
  letter-spacing: normal;
  font-variant-numeric: normal;
  font-feature-settings: normal;
}

.ec-google-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ec-google-rating__star {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #fbbc04;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  flex-shrink: 0;
}

.ec-google-rating__count {
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #bdc1c6;
  letter-spacing: normal;
  font-variant-numeric: normal;
  font-feature-settings: normal;
}

.ec-google-rating__info {
  display: block;
  flex-shrink: 0;
  color: #bdc1c6;
}

.ec-google-logo--btn {
  height: 1rem;
}

.ec-reviews-loading {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.ec-reviews-loading[hidden] {
  display: none;
}

.ec-testimonial-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.ec-testimonial-card__time {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
  font-style: normal;
}

/* —— Testimonial marquee —— */
.ec-review-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: var(--ec-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.12);
  padding: 0.85rem 0;
  box-sizing: border-box;
}

.ec-review-marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 0.25rem 0;
  animation: ec-review-marquee-scroll 80s linear infinite;
  will-change: transform;
}

.ec-review-marquee:hover .ec-review-marquee__track {
  animation-play-state: paused;
}

.ec-review-marquee__group {
  display: flex;
  gap: 1.25rem;
}

@keyframes ec-review-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-review-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .ec-review-marquee__group[aria-hidden="true"] {
    display: none;
  }
}

.ec-testimonial-card--marquee {
  flex: 0 0 auto;
  width: min(100%, 20rem);
  scroll-snap-align: none;
}

.ec-review-marquee .ec-testimonial-card {
  flex: 0 0 auto;
  width: min(18.5rem, calc(100vw - 3rem));
  scroll-snap-align: none;
  padding: 1.35rem 1.4rem;
  box-sizing: border-box;
}

.ec-review-marquee .ec-testimonial-card img {
  width: 64px;
  height: 64px;
}

.ec-reviews .ec-btn--primary {
  background: #fff;
  color: var(--ec-accent);
}

.ec-reviews .ec-btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.ec-reviews .ec-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ec-testimonial-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ec-testimonial-rail::-webkit-scrollbar {
  height: 6px;
}

.ec-testimonial-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
}

.ec-testimonial-card {
  flex: 0 0 min(100%, 22rem);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ec-radius-lg);
  padding: 1.5rem;
}

.ec-testimonial-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.ec-stars {
  color: #e8c547;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.ec-testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.95;
}

.ec-testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

/* —— Page hero (inner pages) —— */
.ec-page-hero {
  padding: clamp(4rem, 10vw, 6rem) 1.25rem 2.5rem;
  background: var(--ec-surface);
  border-bottom: 1px solid var(--ec-line);
}

.ec-page-hero__inner {
  max-width: var(--ec-max);
  margin: 0 auto;
}

.ec-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.ec-breadcrumb {
  font-size: 0.875rem;
  color: var(--ec-muted);
  margin-bottom: 0.5rem;
}

.ec-breadcrumb a {
  color: var(--ec-muted);
  text-decoration: none;
}

.ec-breadcrumb a:hover {
  color: var(--ec-accent);
}

/* —— Footer —— */
.ec-footer {
  background: #141916;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem max(1.25rem, env(safe-area-inset-right)) 2rem max(1.25rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.ec-footer__inner {
  max-width: var(--ec-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .ec-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

.ec-footer h3 {
  color: #fff;
  font-family: var(--ec-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.ec-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.ec-footer a:hover {
  color: #fff;
}

.ec-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ec-footer__social a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
}

.ec-footer__social a:hover {
  background: var(--ec-accent);
}

.ec-footer__bottom {
  max-width: var(--ec-max);
  margin: 2.5rem auto 0;
  padding: 1.25rem max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.ec-footer__bottom a {
  color: rgba(255, 255, 255, 0.55);
  display: inline;
  padding: 0;
}

.ec-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.ec-legal-doc {
  max-width: 42rem;
}

.ec-legal-doc h2 {
  font-family: var(--ec-font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 1.65rem 0 0.55rem;
  color: var(--ec-ink);
}

.ec-legal-doc ul {
  padding-left: 1.15rem;
  margin-bottom: 0.85rem;
}

.ec-legal-doc li + li {
  margin-top: 0.35rem;
}

/* —— Mobile CTA —— */
.ec-mobile-cta {
  display: none;
}

@media (max-width: 991.98px) {
  .ec-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .ec-mobile-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
  }

  .ec-mobile-cta .ec-mobile-cta__call {
    background: var(--ec-accent);
    color: #fff;
  }

  .ec-mobile-cta .ec-mobile-cta__wa {
    background: #25d366;
  }

  body.ec-body:has(.ec-mobile-cta) {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* —— Clinic marquee (from legacy, themed) —— */
.clinic-marquee-stack {
  --clinic-marquee-gap: 1rem;
  --clinic-marquee-radius: var(--ec-radius);
  --clinic-marquee-h: clamp(180px, 28vw, 300px);
  --clinic-marquee-w: clamp(260px, 40vw, 400px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
}

.clinic-marquee-stack.ec-studio-marquee {
  --clinic-marquee-gap: 0.65rem;
  --clinic-marquee-radius: 14px;
  --clinic-marquee-h: clamp(128px, 28vw, 360px);
  --clinic-marquee-w: clamp(160px, 56vw, 480px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0 0.35rem;
}

@media (min-width: 480px) {
  .clinic-marquee-stack.ec-studio-marquee {
    --clinic-marquee-gap: 0.85rem;
    --clinic-marquee-radius: 16px;
    --clinic-marquee-h: clamp(148px, 26vw, 380px);
    --clinic-marquee-w: clamp(200px, 48vw, 500px);
  }
}

@media (min-width: 768px) {
  .clinic-marquee-stack.ec-studio-marquee {
    --clinic-marquee-gap: 1.05rem;
    --clinic-marquee-radius: 18px;
    --clinic-marquee-h: clamp(188px, 30vw, 400px);
    --clinic-marquee-w: clamp(260px, 38vw, 520px);
    padding: 1rem 0 0.5rem;
  }
}

.ec-studio-marquee .clinic-marquee__track {
  animation-duration: 56s;
}

.ec-studio-marquee .clinic-marquee--reverse .clinic-marquee__track {
  animation-duration: 64s;
}

.clinic-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--clinic-marquee-radius);
  background: var(--ec-accent-soft);
  border: 1px solid var(--ec-line);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.clinic-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--clinic-marquee-gap);
  padding: 1rem 0;
  animation: clinic-marquee-scroll 42s linear infinite;
  will-change: transform;
}

.clinic-marquee--reverse .clinic-marquee__track {
  animation-duration: 48s;
  animation-direction: reverse;
}

.clinic-marquee__group {
  display: flex;
  gap: var(--clinic-marquee-gap);
}

.clinic-marquee__slide {
  flex: 0 0 auto;
  width: var(--clinic-marquee-w);
  height: var(--clinic-marquee-h);
  margin: 0;
  border-radius: var(--clinic-marquee-radius);
  overflow: hidden;
  box-shadow: var(--ec-shadow);
  border: 1px solid var(--ec-line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinic-marquee__slide:hover {
  transform: translateY(-3px);
  box-shadow: var(--ec-shadow-hover);
}

.clinic-marquee__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.04) brightness(0.97);
}

.ec-case-photo-pair img,
.ec-case-teaser__visual img {
  filter: saturate(0.92) contrast(1.03) brightness(0.98);
}

.clinic-marquee__slide[role="button"] {
  cursor: zoom-in;
}

.clinic-marquee__slide[role="button"]:focus-visible {
  outline: 2px solid var(--ec-accent);
  outline-offset: 3px;
}

.clinic-marquee-stack.is-lightbox-open .clinic-marquee__track {
  animation-play-state: paused;
}

@keyframes clinic-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clinic-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .clinic-marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .clinic-marquee__group[aria-hidden="true"] {
    display: none;
  }
  .clinic-marquee__slide {
    width: min(100%, 360px);
  }
}

/* Lightbox */
.clinic-tour-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.clinic-tour-lightbox[hidden] {
  display: none !important;
}

.clinic-tour-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 22, 0.88);
  backdrop-filter: blur(6px);
}

.clinic-tour-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clinic-tour-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ec-shadow);
}

.clinic-tour-lightbox__img-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d120f;
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.clinic-tour-lightbox__img {
  max-width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
}

.clinic-tour-lightbox__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  text-align: center;
  min-height: 2.5rem;
}

.clinic-tour-lightbox__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.clinic-tour-lightbox__counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 5rem;
  text-align: center;
}

.clinic-tour-lightbox__nav {
  min-width: 6.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.clinic-tour-lightbox__nav--solid {
  background: #fff;
  color: var(--ec-accent);
  border-color: #fff;
}

/* Bootstrap alignment helpers used on legacy inner pages */
.ec-body .form-control:focus {
  border-color: var(--ec-accent);
  box-shadow: 0 0 0 0.2rem rgba(var(--ec-accent-rgb), 0.15);
}

.ec-body .btn-primary {
  background: var(--ec-accent);
  border-color: var(--ec-accent);
  color: #fff;
}

.ec-body .btn-primary:hover {
  background: var(--ec-accent-hover);
  border-color: var(--ec-accent-hover);
}

/* Align Bootstrap utility colors with brand */
.ec-body .bg-primary {
  background-color: var(--ec-accent) !important;
}

.ec-body .text-primary {
  color: var(--ec-accent) !important;
}

/* Subtle scroll reveal */
[data-ec-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-ec-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-ec-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Inner pages: About / Services / Contact —— */
.ec-page-main {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.ec-page-hero {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.ec-stock-note {
  font-size: 0.75rem;
  color: var(--ec-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
}

.ec-about-intro {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .ec-about-intro {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: stretch;
  }

  .ec-about-intro .ec-media-frame--doctor {
    height: 100%;
    max-height: none;
    min-height: 28rem;
  }
}

.ec-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 576px) {
  .ec-stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-stat-card {
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
  padding: 1.25rem 1.35rem;
  text-align: center;
  box-shadow: var(--ec-shadow);
}

.ec-stat-card strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ec-accent);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.ec-stat-card span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-warm);
}

.ec-stat-card--google .ec-google-logo--stat {
  display: block;
  height: 0.875rem;
  width: auto;
  margin: 0 auto 0.4rem;
}

.ec-value-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ec-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ec-value-card {
  background: var(--ec-surface);
  border-radius: var(--ec-radius-lg);
  border: 1px solid var(--ec-line);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--ec-shadow);
}

.ec-value-card h3 {
  font-family: var(--ec-font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.ec-value-card p {
  margin: 0;
  color: var(--ec-muted);
  font-size: 0.95rem;
}

.ec-contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .ec-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
}

.ec-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  height: 100%;
}

.ec-contact-portrait {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ec-contact-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 22rem;
  object-fit: cover;
  object-position: center 12%;
  border-radius: var(--ec-radius-lg);
}

@media (min-width: 992px) {
  .ec-contact-portrait img {
    max-height: 24rem;
  }
}

.ec-contact-portrait figcaption {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ec-muted);
  text-align: left;
}

.ec-contact-panel {
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--ec-shadow);
}

.ec-contact-panel h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 1.25rem;
}

.ec-contact-line {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ec-line);
}

.ec-contact-line:last-of-type {
  border-bottom: none;
}

.ec-contact-line i {
  font-size: 1.35rem;
  color: var(--ec-accent);
  margin-top: 0.15rem;
}

.ec-contact-line h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-warm);
  margin: 0 0 0.25rem;
  font-family: var(--ec-font-sans);
}

.ec-contact-line p,
.ec-contact-line a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ec-ink);
}

.ec-contact-line a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ec-contact-line a:hover {
  color: var(--ec-accent);
  border-bottom-color: var(--ec-accent);
}

.ec-form-ec .form-control {
  border-radius: 12px;
  border: 1px solid var(--ec-line);
  padding: 0.85rem 1.1rem;
  min-height: 3.25rem;
}

.ec-form-ec textarea.form-control {
  min-height: 8rem;
}

.ec-map-frame {
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  box-shadow: var(--ec-shadow);
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.ec-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.ec-areas-note {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ec-line);
  color: var(--ec-muted);
  font-size: 0.95rem;
}

/* —— Online consultation —— */
.ec-consult-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 992px) {
  .ec-consult-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.ec-consult-info {
  display: grid;
  gap: 1.25rem;
}

.ec-consult-info__panel h2 {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  font-family: var(--ec-font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-warm);
}

.ec-consult-info__lead {
  color: var(--ec-muted);
  margin: 0 0 1rem;
}

.ec-consult-info__list {
  margin-bottom: 1.25rem;
}

.ec-consult-info__photo {
  max-height: 18rem;
}

.ec-consult-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 1rem;
}

.ec-consult-price__amount {
  font-family: var(--ec-font-serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--ec-accent);
  line-height: 1;
}

.ec-consult-price__label {
  font-size: 0.9rem;
  color: var(--ec-muted);
}

.ec-consult-steps ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ec-muted);
}

.ec-consult-steps li + li {
  margin-top: 0.5rem;
}

.ec-consult-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ec-line);
}

.ec-consult-form-panel h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.ec-consult-submit {
  font-weight: 600;
}

.ec-consult-secure {
  text-align: center;
}

.ec-consult-summary {
  background: var(--ec-bg);
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.ec-consult-thank-you__icon {
  font-size: 3rem;
  color: var(--ec-accent);
  margin-bottom: 0.75rem;
}

.ec-consult-next-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.ec-consult-next-steps li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  background: var(--ec-bg);
}

.ec-consult-next-steps strong {
  display: block;
  color: var(--ec-ink);
  margin-bottom: 0.35rem;
}

.ec-consult-next-steps span {
  display: block;
  color: var(--ec-muted);
  font-size: 0.925rem;
}

.ec-consult-pay-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* —— Pay page (/pay/) —— */
.ec-page-pay .ec-pay-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.ec-pay-card {
  max-width: 26rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
  box-shadow: var(--ec-shadow);
  padding: clamp(1.35rem, 4vw, 2rem);
}

.ec-pay-amount-block {
  margin: 1.5rem 0;
  padding: 1.15rem 1rem;
  background: var(--ec-accent-soft);
  border-radius: var(--ec-radius);
}

.ec-pay-amount__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ec-muted);
  margin-bottom: 0.25rem;
}

.ec-pay-amount {
  font-family: var(--ec-font-serif);
  font-size: clamp(2.25rem, 8vw, 2.75rem);
  font-weight: 600;
  color: var(--ec-accent);
  line-height: 1.1;
}

.ec-pay-qr-frame {
  margin: 0;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.ec-pay-qr-frame img {
  display: block;
  width: 100%;
  max-width: 17.5rem;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.ec-pay-qr__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ec-ink);
}

.ec-pay-upi-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--ec-muted);
}

.ec-pay-upi-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ec-pay-qr-download-wrap {
  margin-top: 1.15rem;
}

.ec-pay-instructions {
  margin: 1.35rem 0;
  padding-left: 1.15rem;
  color: var(--ec-muted);
  font-size: 0.925rem;
}

.ec-pay-instructions li + li {
  margin-top: 0.5rem;
}

.ec-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ec-pay-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ec-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ec-pay-or::before,
.ec-pay-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ec-line);
}

.ec-pay-trust {
  padding-top: 0.75rem;
  border-top: 1px solid var(--ec-line);
}

/* —— Our work / cases —— */
.ec-cases-hero-note {
  font-size: 0.875rem;
  color: var(--ec-muted);
  max-width: 40rem;
}

/* Our work — editorial story layout */
.ec-page-our-work .ec-page-hero--editorial {
  text-align: center;
  background: var(--ec-bg);
  border-bottom: none;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.ec-page-our-work .ec-page-hero__inner--narrow {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.ec-page-our-work .ec-page-hero--editorial .ec-lead,
.ec-page-our-work .ec-page-hero--editorial .ec-cases-hero-note {
  margin-left: auto;
  margin-right: auto;
}

.ec-work-main {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.ec-work-index {
  position: sticky;
  top: calc(var(--ec-header-h) - 1px);
  z-index: 25;
  background: color-mix(in srgb, var(--ec-bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ec-line);
}

.ec-work-index__track {
  max-width: var(--ec-max);
  margin: 0 auto;
  padding: 0.7rem max(1.25rem, env(safe-area-inset-left)) 0.7rem max(1.25rem, env(safe-area-inset-right));
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ec-work-index__track::-webkit-scrollbar {
  display: none;
}

.ec-work-index a {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ec-muted);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-work-index a:hover {
  color: var(--ec-accent);
  border-color: rgba(var(--ec-accent-rgb), 0.28);
  background: var(--ec-accent-soft);
}

.ec-work {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.ec-work__inner {
  max-width: var(--ec-max);
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 11vw, 7.5rem);
}

.ec-story {
  scroll-margin-top: calc(var(--ec-header-h) + 3.25rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.ec-story + .ec-story {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--ec-line);
}

.ec-story__header {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.ec-story__kicker {
  font-family: var(--ec-font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-accent);
  margin: 0 0 0.65rem;
}

.ec-story__title {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.ec-story__meta {
  font-size: 0.875rem;
  color: var(--ec-muted);
  margin: 0;
  line-height: 1.55;
}

.ec-story__stage {
  width: 100%;
  min-width: 0;
  max-width: min(64rem, 100%);
  margin: 0 auto;
}

.ec-page-our-work .ec-story__stage .ec-case-photo-pair--page {
  border: none;
  border-radius: clamp(14px, 2vw, 22px);
  box-shadow: 0 24px 64px rgba(26, 31, 28, 0.11);
  cursor: zoom-in;
  overflow: hidden;
}

.ec-page-our-work .ec-story__stage .ec-case-photo-pair--page img {
  max-height: min(42rem, 78vh);
  width: 100%;
}

.ec-page-our-work .ec-story__stage .ec-case-photo-pair--page.ec-case-photo-pair--stacked img {
  max-height: min(46rem, 82vh);
}

.ec-story__figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ec-muted);
  margin: 1rem auto 0;
  max-width: 32rem;
  line-height: 1.55;
}

.ec-story__zoom-hint {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ec-muted);
  opacity: 0.75;
  margin-top: 0.65rem;
  text-align: center;
}

.ec-story__narrative {
  min-width: 0;
  max-width: 34rem;
  margin: 0 auto;
  width: 100%;
}

.ec-story__section + .ec-story__section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ec-line);
}

.ec-story__label {
  font-family: var(--ec-font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-muted);
  margin: 0 0 0.85rem;
}

.ec-story__text {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ec-muted);
}

.ec-story__text p {
  margin: 0 0 1.05rem;
}

.ec-story__text p:last-child {
  margin-bottom: 0;
}

.ec-story__text ul,
.ec-story__text ol {
  margin: 0 0 1.05rem;
  padding-left: 1.2rem;
}

.ec-story__text li + li {
  margin-top: 0.4rem;
}

.ec-story__text strong {
  color: var(--ec-ink);
  font-weight: 600;
}

.ec-story__callout {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--ec-radius);
  background: var(--ec-accent-soft);
  border-left: 3px solid var(--ec-accent);
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--ec-muted);
}

.ec-story__callout strong {
  color: var(--ec-ink);
}

.ec-work__cta {
  margin-top: 0;
}

@media (min-width: 992px) {
  .ec-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3.25rem);
    row-gap: clamp(1.5rem, 3vw, 2rem);
    align-items: start;
  }

  .ec-story__header {
    text-align: left;
    max-width: none;
    margin: 0;
  }

  .ec-story:nth-child(odd) .ec-story__stage {
    grid-column: 1;
    grid-row: 2;
  }

  .ec-story:nth-child(odd) .ec-story__narrative {
    grid-column: 2;
    grid-row: 2;
  }

  .ec-story:nth-child(even) .ec-story__stage {
    grid-column: 2;
    grid-row: 2;
  }

  .ec-story:nth-child(even) .ec-story__narrative {
    grid-column: 1;
    grid-row: 2;
  }

  .ec-story__stage {
    position: sticky;
    top: calc(var(--ec-header-h) + 3.25rem);
    max-width: none;
    margin: 0;
  }

  .ec-story__narrative {
    max-width: none;
    margin: 0;
  }

  .ec-story__figcaption,
  .ec-story__zoom-hint {
    text-align: left;
  }

  .ec-page-our-work .ec-story__stage .ec-case-photo-pair--page img {
    max-height: min(38rem, calc(100vh - var(--ec-header-h) - 5rem));
  }

  .ec-page-our-work .ec-story__stage .ec-case-photo-pair--page.ec-case-photo-pair--stacked img {
    max-height: min(42rem, calc(100vh - var(--ec-header-h) - 4rem));
  }
}

.ec-case-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding: 1rem 1.15rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
}

.ec-case-toc__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-warm);
  width: 100%;
  margin-bottom: 0.15rem;
}

.ec-case-toc a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ec-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ec-line);
  background: var(--ec-bg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ec-case-toc a:hover {
  color: var(--ec-accent);
  border-color: rgba(var(--ec-accent-rgb), 0.25);
  background: var(--ec-accent-soft);
}

.ec-case-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.ec-case-block {
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow);
}

.ec-case-block__layout {
  display: flex;
  flex-direction: column;
}

.ec-case-block__media {
  order: 2;
  padding: 0 0.75rem 1.25rem;
}

@media (min-width: 768px) {
  .ec-case-block__media {
    padding: 0 clamp(1rem, 2vw, 1.5rem) 1.75rem;
  }
}

.ec-case-block__main {
  display: contents;
}

.ec-case-block__head {
  order: 1;
}

.ec-case-block__body {
  order: 3;
}

.ec-case-block__figure-wrap {
  max-width: min(58rem, 100%);
  margin: 0 auto;
  width: 100%;
}

.ec-case-photo-pair--page {
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  background: #0c0c0e;
  cursor: zoom-in;
  box-shadow: var(--ec-shadow);
}

.ec-case-photo-pair--page img {
  width: 100%;
  height: auto;
  max-height: min(38rem, 68vh);
  object-fit: contain;
  margin: 0 auto;
  display: block;
  background: #0c0c0e;
}

.ec-case-photo-pair--page.ec-case-photo-pair--stacked img {
  max-height: min(44rem, 72vh);
}

@media (min-width: 992px) {
  .ec-case-photo-pair--page img {
    max-height: min(44rem, 72vh);
  }

  .ec-case-photo-pair--page.ec-case-photo-pair--stacked img {
    max-height: min(48rem, 78vh);
  }
}

.ec-case-photo-pair--page.ec-case-photo-pair--xray {
  background: #0a0a0c;
}

.ec-case-media__hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--ec-muted);
  line-height: 1.45;
  text-align: center;
}

.ec-case-media__caption {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ec-muted);
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.ec-case-prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ec-muted);
}

.ec-case-prose p {
  margin: 0 0 1rem;
}

.ec-case-prose p:last-child {
  margin-bottom: 0;
}

.ec-case-prose .ec-case-prose__h {
  font-family: var(--ec-font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ec-ink);
  margin: 1.5rem 0 0.5rem;
}

.ec-case-prose .ec-case-prose__h:first-child {
  margin-top: 0;
}

.ec-case-prose ul,
.ec-case-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.ec-case-prose li + li {
  margin-top: 0.35rem;
}

.ec-case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ec-case-lightbox[hidden] {
  display: none !important;
}

.ec-case-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 28, 0.82);
  border: none;
  cursor: pointer;
}

.ec-case-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(56rem, 100%);
  max-height: min(90vh, 100%);
  width: 100%;
}

.ec-case-lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.35rem;
}

.ec-case-lightbox__img {
  width: 100%;
  height: auto;
  max-height: min(85vh, 900px);
  object-fit: contain;
  border-radius: var(--ec-radius);
  background: #0a0a0c;
}

.ec-case-block__gallery {
  background: transparent;
  border-bottom: none;
}

.ec-case-block__gallery .ec-ba-pro {
  padding: 0;
}

.ec-case-block__gallery .ec-ba-pro--xray {
  background: transparent;
}

/* Single shared before/after composite (e.g. wisdom operculectomy) */
.ec-case-photo-pair {
  position: relative;
  margin: 0;
  line-height: 0;
}

.ec-case-photo-pair img {
  width: 100%;
  height: auto;
  display: block;
}

.ec-case-photo-pair__label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  transform: none;
  z-index: 2;
  font-family: var(--ec-font-sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #5a635e;
  box-shadow: 0 1px 8px rgba(26, 31, 28, 0.12);
  line-height: 1.2;
  width: max-content;
  max-width: calc(50% - 1rem);
  white-space: nowrap;
  box-sizing: border-box;
}

.ec-case-photo-pair__label--after {
  color: var(--ec-accent);
}

/* Side-by-side composite: after label on top-left of right panel */
.ec-case-photo-pair:not(.ec-case-photo-pair--stacked) .ec-case-photo-pair__label--after {
  left: calc(50% + 0.5rem);
}

/* Stacked composite: after label on top-left of lower panel */
.ec-case-photo-pair--stacked .ec-case-photo-pair__label--after {
  top: calc(50% + 0.5rem);
}

.ec-case-photo-pair--xray {
  background: #0a0a0c;
}

.ec-case-photo-pair--showcase {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(26, 31, 28, 0.08);
}

.ec-case-photo-pair__note {
  margin: 0;
  padding: 0.85rem 1.75rem 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ec-muted);
}

.ec-case-block__head {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: none;
  background: var(--ec-surface);
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 768px) {
  .ec-case-block__head {
    padding: 1.75rem clamp(1.75rem, 3vw, 2.25rem) 0.75rem;
  }
}

.ec-case-block__head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.35rem;
}

.ec-case-block__meta {
  font-size: 0.85rem;
  color: var(--ec-muted);
}

.ec-case-block__body {
  padding: 0.5rem 1.5rem 1.75rem;
  max-width: none;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .ec-case-block__body {
    padding: 0.75rem clamp(1.75rem, 3vw, 2.25rem) 2rem;
  }
}

.ec-case-block__body.ec-case-prose {
  margin: 0 auto;
  max-width: 44rem;
}

.ec-case-block__body .h5 {
  font-family: var(--ec-font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ec-ink);
}

/* —— Professional before / after (case studies) —— */
.ec-ba-pro {
  width: 100%;
}

.ec-ba-pro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.ec-ba-pro__grid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -1px;
  background: rgba(26, 31, 28, 0.08);
  pointer-events: none;
  z-index: 1;
}

.ec-ba-pro--xray .ec-ba-pro__grid::after {
  background: rgba(255, 255, 255, 0.12);
}

.ec-ba-pro__panel {
  margin: 0;
  position: relative;
  background: transparent;
}

.ec-ba-pro--xray .ec-ba-pro__panel {
  background: transparent;
}

.ec-ba-pro__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--ec-font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #5a635e;
  box-shadow: 0 2px 16px rgba(26, 31, 28, 0.1);
}

.ec-ba-pro__badge--after {
  color: var(--ec-accent);
}

.ec-ba-pro--xray .ec-ba-pro__badge {
  background: rgba(255, 255, 255, 0.92);
}

.ec-ba-pro__img {
  display: block;
  line-height: 0;
}

.ec-ba-pro__img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.ec-ba-pro--compact .ec-ba-pro__badge {
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.55rem;
  padding: 0.3rem 0.55rem;
}

.ec-ba-pro--compact .ec-ba-pro__grid::after {
  top: 0.65rem;
  bottom: 0.65rem;
}

.ec-ba-pro--compact .ec-ba-pro__img {
  aspect-ratio: unset;
}

@media (max-width: 575.98px) {
  .ec-ba-pro__grid {
    grid-template-columns: 1fr;
  }

  .ec-ba-pro__grid::after {
    display: none;
  }

  .ec-ba-pro__panel + .ec-ba-pro__panel {
    margin-top: 0;
  }

  .ec-ba-pro--xray .ec-ba-pro__panel + .ec-ba-pro__panel {
    margin-top: 0;
  }
}

/* Legacy compare (illustrative samples) */
.ec-case-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.65rem, 2vw, 1rem);
  margin-bottom: 1.25rem;
}

.ec-case-compare__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  overflow: hidden;
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow);
}

.ec-case-compare__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 0.5rem;
  background: #141816;
}

.ec-case-compare--clinical .ec-case-compare__frame {
  background: linear-gradient(165deg, #1c1916 0%, #0f1210 100%);
}

.ec-case-compare--xray .ec-case-compare__frame {
  background: #0a0a0a;
  min-height: 10rem;
}

.ec-case-compare__frame img {
  width: 100%;
  height: auto;
  max-height: 20rem;
  object-fit: contain;
  display: block;
}

.ec-case-compare__label {
  margin: 0;
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-muted);
  background: var(--ec-bg);
  border-top: 1px solid var(--ec-line);
}

@media (max-width: 575.98px) {
  .ec-case-compare {
    grid-template-columns: 1fr;
  }

  .ec-case-compare__frame img {
    max-height: 16rem;
  }
}

.ec-case-block__ba--composite {
  grid-template-columns: 1fr;
}

.ec-case-block__ba--composite figure {
  aspect-ratio: auto;
}

.ec-case-block__ba--composite img {
  height: auto;
  object-fit: contain;
  max-height: 28rem;
}

.ec-case-block__ba figure {
  margin: 0;
  position: relative;
  border-radius: var(--ec-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #141816;
}

.ec-case-block__ba figure.ec-case-block__figure--contain {
  aspect-ratio: auto;
  background: #141816;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

.ec-case-block__ba figure.ec-case-block__figure--contain img {
  height: auto;
  max-height: 14rem;
  object-fit: contain;
}

.ec-case-block__ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-case-block__ba figure.ec-case-block__figure--contain img {
  width: 100%;
  height: auto;
}

.ec-case-block__ba figcaption {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 31, 28, 0.72);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

.ec-case-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ec-muted);
  font-size: 0.95rem;
}

.ec-case-block ul li + li {
  margin-top: 0.35rem;
}

.ec-case-callout {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--ec-accent);
  background: var(--ec-accent-soft);
  border-radius: 0 12px 12px 0;
  font-size: 0.925rem;
  color: var(--ec-muted);
}

.ec-cases-preview {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ec-cases-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ec-cases-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Homepage case teasers — full-bleed before/after, clickable cards */
.ec-cases-showcase {
  display: grid;
  gap: 1.35rem;
}

.ec-cases-showcase--hero {
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 768px) {
  .ec-cases-showcase--hero {
    grid-template-columns: repeat(2, 1fr);
  }

  .ec-cases-showcase--hero .ec-case-teaser:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .ec-cases-showcase--hero {
    grid-template-columns: repeat(3, 1fr);
  }

  .ec-cases-showcase--hero .ec-case-teaser:first-child {
    grid-column: auto;
  }
}

.ec-cases-showcase--secondary {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .ec-cases-showcase--secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ec-cases-showcase__label {
  margin: 1.75rem 0 0.85rem;
  font-family: var(--ec-font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ec-muted);
}

.ec-case-teaser {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow-hover);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ec-case-teaser:hover,
.ec-case-teaser:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--ec-accent-rgb), 0.22);
  box-shadow: 0 20px 48px rgba(26, 31, 28, 0.12);
}

.ec-case-teaser:focus-visible {
  outline: 2px solid var(--ec-accent);
  outline-offset: 3px;
}

.ec-case-teaser__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  background: transparent;
}

.ec-case-teaser__visual--xray {
  background: transparent;
}

.ec-case-teaser__half {
  position: relative;
  line-height: 0;
}

.ec-case-teaser__half img {
  width: 100%;
  height: auto;
  display: block;
  transition: none;
}

.ec-case-teaser__half--before img,
.ec-case-teaser__half--after img {
  filter: none;
}

.ec-case-teaser:hover .ec-case-teaser__half--before img,
.ec-case-teaser:hover .ec-case-teaser__half--after img {
  transform: none;
  filter: none;
}

.ec-case-teaser__tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-family: var(--ec-font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.ec-case-teaser__tag--after {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ec-accent);
}

.ec-case-teaser__half--after .ec-case-teaser__tag {
  left: auto;
  right: 0.65rem;
}

.ec-case-teaser__visual--composite {
  display: block;
  position: relative;
}

.ec-case-teaser__visual--composite > img {
  width: 100%;
  height: auto;
  display: block;
}

.ec-case-teaser__tag--pair-before {
  left: 0.5rem;
  top: 0.5rem;
  transform: none;
}

.ec-case-teaser__tag--pair-after {
  left: 0.5rem;
  right: auto;
  top: 0.5rem;
  transform: none;
}

.ec-case-teaser__visual--stacked .ec-case-teaser__tag--pair-after {
  top: calc(50% + 0.5rem);
}

.ec-case-teaser__visual--composite:not(.ec-case-teaser__visual--stacked) .ec-case-teaser__tag--pair-after {
  left: calc(50% + 0.5rem);
}

.ec-case-teaser__divider {
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.85) 20%, rgba(255, 255, 255, 0.85) 80%, transparent);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.ec-case-teaser__divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 14 14'%3E%3Cpath stroke='%231a1f1c' stroke-width='1.5' stroke-linecap='round' d='M3 7h8M8 4l3 3-3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.ec-case-teaser__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ec-case-teaser__chip {
  display: inline-block;
  font-family: var(--ec-font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-accent);
  background: var(--ec-accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.ec-case-teaser__body h3 {
  font-family: var(--ec-font-serif);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.3;
  margin: 0 0 0.45rem;
  color: var(--ec-ink);
}

.ec-case-teaser__body p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ec-muted);
  flex: 1;
}

.ec-case-teaser__cta {
  font-family: var(--ec-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ec-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.ec-case-teaser__cta::after {
  content: "→";
  transition: transform 0.25s ease;
}

.ec-case-teaser:hover .ec-case-teaser__cta::after {
  transform: translateX(4px);
}

.ec-case-teaser--compact .ec-case-teaser__body p {
  display: none;
}

.ec-case-teaser--compact .ec-case-teaser__body {
  padding: 1rem 1.15rem 1.2rem;
}

.ec-case-spotlight {
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ec-shadow-hover);
  height: 100%;
}

.ec-case-spotlight__gallery {
  background: #f8f6f3;
  border-bottom: 1px solid var(--ec-line);
}

.ec-case-spotlight__gallery .ec-ba-pro {
  padding: 0.65rem 0.85rem;
}

.ec-case-spotlight__gallery .ec-ba-pro--xray {
  background: #222224;
}

.ec-case-spotlight__ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--ec-line);
}

.ec-case-spotlight__ba--pair {
  grid-template-columns: 1fr 1fr;
}

.ec-case-spotlight__ba--pair figure {
  margin: 0;
  aspect-ratio: auto;
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  background: #141816;
}

.ec-case-spotlight__ba--pair img {
  width: 100%;
  height: auto;
  max-height: 9.5rem;
  object-fit: contain;
}

.ec-case-spotlight__ba--xray figure {
  background: #0a0a0a;
}

.ec-case-spotlight__ba--composite {
  grid-template-columns: 1fr;
}

.ec-case-spotlight__ba--composite figure {
  aspect-ratio: auto;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  background: #0a0a0a;
}

.ec-case-spotlight__ba--composite img {
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 10rem;
}

.ec-case-spotlight__ba figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
}

.ec-case-spotlight__ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-case-spotlight__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-case-spotlight__body h3 {
  font-family: var(--ec-font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.ec-case-spotlight__body p {
  margin: 0 0 1rem;
  color: var(--ec-muted);
  font-size: 0.9rem;
  flex: 1;
}

.ec-case-spotlight__body .ec-link {
  font-weight: 600;
  font-size: 0.9rem;
}

.ec-case-spotlight__placeholder {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, var(--ec-accent-soft) 0%, var(--ec-bg) 100%);
  border-bottom: 1px solid var(--ec-line);
  color: var(--ec-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* —— Mobile: faster paint & touch-friendly layout —— */
@media (max-width: 767.98px) {
  .ec-hero__content {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  .ec-hero h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
    line-height: 1.12;
  }

  .ec-hero__sub {
    font-size: 1rem;
    line-height: 1.55;
  }

  .ec-hero__actions .ec-btn {
    width: 100%;
    max-width: 20rem;
  }

  .ec-nav__toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
  }

  .ec-nav__links a,
  .ec-nav__actions .ec-btn {
    min-height: 2.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .ec-book-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ec-book-cta__actions .ec-btn,
  .ec-book-cta__phone {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .ec-book-cta__phone {
    font-size: 1.15rem;
  }

  .ec-map-frame {
    min-height: 220px;
    aspect-ratio: 1 / 1;
  }

  .ec-map-frame iframe {
    min-height: 220px;
  }

  .ec-section[data-ec-reveal] {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
  }

  .ec-review-marquee__track {
    animation-duration: 90s;
  }
}

@media (max-width: 479.98px) {
  .ec-hero__trust {
    font-size: 0.78rem;
    line-height: 1.45;
    gap: 0.3rem 0.4rem;
  }

  .ec-strip {
    margin-top: -2rem;
  }

  .ec-services--flagship .ec-service-detail {
    padding: 0.85rem 0.9rem;
  }
}

img.ec-google-logo,
.ec-media-frame img,
.clinic-marquee__slide img,
.ec-case-teaser__visual img,
.ec-gallery-grid__item img {
  max-width: 100%;
}

/* Home — clinic video reels (index only) */
.ec-home-videos {
  position: relative;
}

.ec-home-videos__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

@media (min-width: 768px) {
  .ec-home-videos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (min-width: 1100px) {
  .ec-home-videos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-home-video-card__player {
    max-width: 100%;
  }
}

.ec-home-video-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: clamp(0.85rem, 2vw, 1.1rem);
  background: var(--ec-surface);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-lg);
  box-shadow: var(--ec-shadow);
}

.ec-home-video-card__player {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  border-radius: var(--ec-radius);
  overflow: hidden;
  background: #0e1210;
  box-shadow: 0 8px 32px rgba(26, 31, 28, 0.12);
}

.ec-home-video-card__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  vertical-align: middle;
  background: #0e1210;
}

.ec-home-video-card__body {
  text-align: center;
  padding-inline: 0.25rem;
}

@media (min-width: 768px) {
  .ec-home-video-card__body {
    text-align: left;
    padding-inline: 0.35rem;
  }
}

.ec-home-video-card__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  line-height: 1.2;
}

.ec-home-video-card__meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ec-muted);
  letter-spacing: 0.02em;
}

.ec-home-video-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ec-muted);
}
