/* ─────────────────────────────────────────────────────
   RC Dental — Hero Section CSS
   Only styles that are actually used are included.
───────────────────────────────────────────────────── */

:root {
  /* Scroll progress: 0 (start) → 1 (video fully expands) */
  --progress: 0;
  /* Values below are updated by JS so CSS stays validator-friendly. */
  --reveal-start: 50%;
  --reveal-height: 50%;
  --title-opacity: 1;
  --title-lift: 0rem;
  --tagline-opacity: 0;
  --tagline-y: 6rem;
  --service-opacity: 0;
  --service-y: 1.5rem;

  /* Colours */
  --color-bg: #f3f2ee;
  --color-dark: #2c2a29;
  --color-white: #ffffff;
  --color-muted: #6e6b64;

  /* Typography */
  --font-serif: 'Instrument Serif', serif;
  --font-sans: 'Inter Tight', sans-serif;

  /* Page padding */
  --px: 5rem;
  --py: 3rem;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════
   SCROLL CONTAINER & STICKY WRAPPER
═══════════════════════════════════════════════════ */

.hero-scroll-container {
  height: 250vh;
  /* Scroll distance = animation duration */
  width: 100%;
  position: relative;
}

.hero-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   TWO LAYERS (back = light, front = clipped video)
═══════════════════════════════════════════════════ */

.hero-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem var(--px) var(--py);
}

/* Light background layer */
.layer-back {
  background-color: var(--color-bg);
  color: var(--color-dark);
  z-index: 1;
}

/* Video layer — clips to the expanding panel on the right */
.layer-front {
  color: var(--color-white);
  z-index: 2;
  clip-path: polygon(var(--reveal-start) 0%,
      100% 0%,
      100% 100%,
      var(--reveal-start) 100%);
  will-change: clip-path;
}

/* ═══════════════════════════════════════════════════
   VIDEO
═══════════════════════════════════════════════════ */

.video-container {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 14, 13, 0.42);
}

/* ═══════════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════════ */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.main-nav {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.nav-item:hover {
  opacity: 0.6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.patient-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.patient-link:hover {
  opacity: 0.6;
}

.phone-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-label {
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.call-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.layer-back .call-button {
  background: rgba(44, 42, 41, 0.07);
  color: var(--color-dark);
  border: 1px solid rgba(44, 42, 41, 0.14);
}

.layer-back .call-button:hover {
  background: var(--color-dark);
  color: var(--color-bg);
  border-color: var(--color-dark);
}

.layer-front .call-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.layer-front .call-button:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* ═══════════════════════════════════════════════════
   HERO TITLE  (non-sticky — fades out on scroll)
═══════════════════════════════════════════════════ */

.hero-content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* Fades out and floats up as video comes in */
  opacity: var(--title-opacity);
  transform: translateY(var(--title-lift));
  will-change: opacity, transform;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 11vw;
  font-weight: 400;
  line-height: 0.83;
  text-align: center;
  letter-spacing: -0.035em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title .italic {
  font-style: italic;
}

/* ═══════════════════════════════════════════════════
   SCROLL-REVEAL TAGLINE  (slides in with video)
   — lives inside .layer-front, so the clip-path
     naturally reveals it left-to-right as the
     video panel expands.
═══════════════════════════════════════════════════ */

.hero-scroll-tagline {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  /* Centred vertically; slides up from below as it appears */
  transform: translateY(calc(-50% + var(--tagline-y)));
  opacity: var(--tagline-opacity);
  pointer-events: none;
  will-change: opacity, transform;
}

.scroll-tagline-text {
  font-family: var(--font-serif);
  font-size: 10.5vw;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding-left: 1vw;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   SERVICE BAR  (bottom of video, fades in later)
═══════════════════════════════════════════════════ */

.hero-service-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem var(--px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  opacity: var(--service-opacity);
  transform: translateY(var(--service-y));
  will-change: opacity, transform;
}

.hero-service-bar span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════
   BOTTOM ROW
═══════════════════════════════════════════════════ */

.hero-bottom-left {
  display: flex;
  align-items: flex-end;
  gap: 8.5rem;
  pointer-events: auto;
}

.locations {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.loc-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.loc-item {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tagline {
  font-family: var(--font-serif);
  font-size: 1.8vw;
  line-height: 1.28;
  font-weight: 400;
}

.tagline .italic {
  font-style: italic;
}

/* Science line — bottom right, video layer only */
.hero-bottom-right {
  position: absolute;
  bottom: var(--py);
  right: var(--px);
}

.science-line {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: right;
}

/* SVG icon sizes */
.icon-menu {
  width: 15px;
  height: 15px;
}

.icon-chevron {
  width: 11px;
  height: 11px;
  margin-top: 1px;
}

.icon-arrow {
  width: 13px;
  height: 13px;
}

.icon-plus {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  :root {
    --px: 3.5rem;
    --py: 2.5rem;
  }

  .hero-title {
    font-size: 10vw;
  }

  .tagline {
    font-size: 2.2vw;
  }
}

@media (max-width: 992px) {
  :root {
    --px: 2.5rem;
    --py: 2rem;
  }

  .main-nav {
    gap: 2rem;
  }

  .header-actions {
    gap: 1.5rem;
  }

  .hero-bottom-left {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --px: 1.25rem;
    --py: 1.25rem;
  }

  .hero-scroll-container {
    height: 245vh;
  }

  .hero-layer {
    padding: 0.85rem var(--px) var(--py);
  }

  .layer-front {
    clip-path: polygon(0% 0%,
        100% 0%,
        100% var(--reveal-height),
        0% var(--reveal-height));
  }

  .patient-link,
  .phone-link {
    display: none;
  }

  .main-nav {
    display: flex !important;
    align-items: center;
    order: 3;
  }

  .main-nav a:not(.menu-toggle-btn) {
    display: none !important;
  }

  .menu-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: inherit;
    transition: all 0.3s ease;
  }

  .menu-toggle-btn span {
    display: none !important;
  }

  .menu-toggle-btn svg {
    width: 20px;
    height: 20px;
    display: block !important;
  }

  .site-header {
    height: 70px;
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .brand {
    gap: 0.8rem;
    align-items: center;
    display: flex;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text {
    font-size: 12px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    order: 2;
  }

  .call-button {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
  }

  .call-button span {
    display: none !important;
  }

  .icon-plus {
    display: block !important;
    width: 16px;
    height: 16px;
  }

  .hero-content {
    align-items: center;
    padding-top: 5.5rem;
  }

  .hero-title {
    width: 100%;
    font-size: clamp(3.6rem, 17vw, 7.5rem);
    line-height: 0.86;
    letter-spacing: 0;
  }

  .hero-bottom-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 100%;
  }

  .locations {
    gap: 0.12rem;
  }

  .loc-label {
    font-size: 10px;
  }

  .loc-item {
    font-size: 13px;
  }

  .tagline {
    max-width: 19rem;
    font-size: clamp(1.55rem, 7vw, 2.25rem);
    line-height: 1.05;
  }

  .hero-bottom-right {
    display: none;
  }

  .hero-scroll-tagline {
    top: 47%;
  }

  .scroll-tagline-text {
    width: min(21rem, calc(100vw - 2.5rem));
    font-size: clamp(3.2rem, 15vw, 6.25rem);
    line-height: 0.92;
    letter-spacing: 0;
    white-space: normal;
    padding: 0;
  }

  .hero-service-bar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  :root {
    --px: 1rem;
    --py: 1rem;
  }

  .hero-title {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .tagline {
    max-width: 17rem;
  }

  .scroll-tagline-text {
    width: min(18rem, calc(100vw - 2rem));
  }
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════ */

.about-section {
  background-color: var(--color-bg);
  width: 100%;
  padding: 7rem var(--px);
  position: relative;
  z-index: 10;
  /* sits above the sticky hero */
}

/* Outer flex row: sidebar + content */
.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Left sidebar with rotated "about us" label ── */
.about-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.4rem;
  gap: 1rem;
}

/* Vertical line above the label */
.about-sidebar::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background-color: var(--color-dark);
  opacity: 0.25;
}

.about-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-dark);
  opacity: 0.45;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  user-select: none;
}

/* ── Two-column content grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 6rem;
  flex-grow: 1;
}

/* Thin top border on each column */
.about-col {
  border-top: 1px solid rgba(44, 42, 41, 0.15);
  padding-top: 2rem;
}

.about-col-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.about-col p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 1.1rem;
}

.about-col p:last-child {
  margin-bottom: 0;
}

/* Inline link style */
.about-col a {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.about-col a:hover {
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-sidebar::before {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 5rem var(--px);
  }

  .about-inner {
    gap: 2rem;
  }

  .about-sidebar {
    padding-top: 0.2rem;
  }

  .about-label {
    font-size: 0.95rem;
  }

  .about-col-heading {
    font-size: 1.65rem;
  }

  .about-col p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .about-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
  }

  .about-sidebar::before {
    width: 40px;
    height: 1px;
  }

  .about-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════
   OUR SERVICES SECTION
═══════════════════════════════════════════════════ */

.services-section {
  background-color: #14151d;
  /* Deep navy — premium contrast */
  width: 100%;
  padding: 7rem var(--px) 2rem;
  position: relative;
  z-index: 10;
}

/* ── Section Header ── */
.services-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.services-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.services-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: 1.2rem;
}

.services-subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  max-width: 520px;
  margin: 0 auto;
}

/* ── 4-Column Card Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* ── Individual Card ── */
.service-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

/* Image area */
.service-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(15%) brightness(0.9);
}

.service-card:hover .service-card-img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}

/* Dark gradient over image bottom */
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 40%,
      rgba(14, 15, 22, 0.85) 100%);
  pointer-events: none;
}

/* Number badge */
.service-card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Card body */
.service-card-body {
  padding: 1.5rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.service-card-desc {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  flex-grow: 1;
  margin-bottom: 1.4rem;
}

/* Arrow link */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s ease, gap 0.25s ease;
  align-self: flex-start;
}

.service-card-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
}

.service-card:hover .service-card-link {
  color: var(--color-white);
}

.service-card:hover .service-card-link svg {
  transform: translate(2px, -2px);
}

/* ── View All CTA ── */
.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #14151d;
  background-color: var(--color-bg);
  border: 1px solid var(--color-bg);
  transition: all 0.3s ease;
}

.services-cta-btn svg {
  width: 14px;
  height: 14px;
}

.services-cta-btn:hover {
  background-color: transparent;
  color: var(--color-bg);
  border-color: rgba(243, 242, 238, 0.45);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 5rem var(--px) 4rem;
  }

  .services-header {
    margin-bottom: 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .services-subtitle br {
    display: none;
  }

  .service-card-img-wrap {
    aspect-ratio: 16 / 9;
  }
}

/* ═══════════════════════════════════════════════════
   STATEMENT SECTION
═══════════════════════════════════════════════════ */

.statement-section {
  background-color: #eaeaea;
  /* Light warm grey background */
  width: 100%;
  padding: 4rem var(--px) 8rem;
  /* Reduced top padding to decrease gap from services */
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.statement-inner {
  max-width: 1400px;
  width: 100%;
}

.statement-text {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 12.5vw, 13.5rem);
  /* Increased font size slightly */
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: #3b3f42;
  /* Dark slate text */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  width: 100%;
}

.statement-line {
  display: block;
  white-space: nowrap;
}

.reveal-word {
  display: inline-block;
  --start: calc(var(--word-index) * 0.16);
  --word-progress: calc((var(--statement-progress) - var(--start)) / 0.16);
  opacity: clamp(0.15, var(--word-progress), 1);
  transition: opacity 0.1s ease-out;
  will-change: opacity;
}

.line-1 {
  text-align: center;
  margin-bottom: 0.15em;
  /* Added gap to prevent character collisions with line 2 */
}

.line-2 {
  text-align: center;
}

.statement-italic {
  font-style: italic;
  font-weight: 400;
  margin: 0 0.8rem;
  /* Centered spacing around 'for' */
}

.line-3 {
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .statement-text {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.9;
  }

  .statement-italic {
    margin: 0 0.4rem;
  }
}

@media (max-width: 768px) {
  .statement-section {
    padding: 4rem var(--px) 6rem;
  }

  .statement-text {
    font-size: clamp(2.8rem, 11vw, 4.5rem);
  }
}

/* ═══════════════════════════════════════════════════
   TECHNOLOGY SECTION (Sticky Scroll)
═══════════════════════════════════════════════════ */

.tech-section {
  background-color: #eaeaea;
  /* Same light grey as statement section */
  width: 100%;
  position: relative;
  z-index: 10;
}

.tech-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  /* Image column slightly wider, text column balanced */
  gap: 6rem;
  /* Ensures ample space between image and text so they never overlap */
  min-height: 100vh;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--px);
}

/* Left Side: Sticky Panel */
.tech-left-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}

/* Numbers: "01 / 06" */
.tech-number-wrap {
  font-family: var(--font-serif);
  color: #3b3f42;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 100px;
}

.tech-number-current {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
}

.tech-number-total {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  opacity: 0.35;
}

/* Image frame matching the reference layout */
.tech-image-frame {
  width: min(420px, 85%);
  aspect-ratio: 4 / 5;
  /* Beautiful portrait rectangle instead of a square */
  overflow: hidden;
  position: relative;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.tech-image-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.tech-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.tech-showcase-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Right Side: Normal Scrolling items */
.tech-right-scroll {
  display: flex;
  flex-direction: column;
}

.tech-scroll-spacer {
  height: 40vh;
  /* space before and after the elements to trigger active state correctly */
}

.tech-scroll-item {
  padding: 8rem 0;
  opacity: 0.18;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-scroll-item.active {
  opacity: 1;
  transform: translateY(0);
}

.tech-scroll-item:last-of-type {
  border-bottom: none;
}

.tech-item-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b3f42;
  opacity: 0.45;
  margin-bottom: 0.8rem;
}

.tech-item-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #3b3f42;
  margin-bottom: 1.2rem;
}

.tech-item-desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: #6e6b64;
  max-width: 440px;
  margin-bottom: 1.5rem;
}

.tech-item-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b3f42;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s ease;
}

.tech-item-link:hover {
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .tech-left-sticky {
    gap: 2rem;
  }

  .tech-image-frame {
    width: 340px;
  }
}

@media (max-width: 768px) {
  .tech-section {
    display: none;
    /* Hide desktop sticky scroll on mobile */
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE TECHNOLOGY SHOWCASE (Carousel Slider)
═══════════════════════════════════════════════════ */

.tech-mobile-section {
  display: none;
  /* Hidden on desktop */
  background-color: #eaeaea;
  /* Same light grey as desktop */
  padding: 5rem 0 6rem;
  width: 100%;
}

@media (max-width: 768px) {
  .tech-mobile-section {
    display: block;
    /* Visible on mobile */
  }
}

.tech-mob-carousel-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.tech-mob-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Hide scrollbar for clean aesthetic */
}

.tech-mob-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Padding elements to center the first and last slides */
.tech-mob-carousel-track::before,
.tech-mob-carousel-track::after {
  content: '';
  flex: 0 0 12%;
  /* Leaves 12% space on both margins */
}

.tech-mob-slide {
  flex: 0 0 76%;
  /* Active slide width */
  margin: 0 2%;
  /* Gap between slides */
  aspect-ratio: 4 / 5;
  /* Matches portrait rectangle design */
  scroll-snap-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  background-color: #000;
}

.tech-mob-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-mob-details {
  text-align: center;
  margin-top: 2rem;
  padding: 0 2rem;
}

.tech-mob-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: #3b3f42;
  margin-bottom: 0.8rem;
}

.tech-mob-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b3f42;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tech-mob-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  margin-top: 2.5rem;
}

.tech-mob-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #dcdcdc;
  /* Light grey circle controls */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b3f42;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.tech-mob-arrow:active {
  background-color: #cacaca;
}

.tech-mob-arrow svg {
  width: 18px;
  height: 18px;
}

.tech-mob-fraction {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #3b3f42;
  letter-spacing: 0.05em;
  min-width: 60px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   TEAM OF EXPERTS SECTION
═══════════════════════════════════════════════════ */

.experts-section {
  background: radial-gradient(circle at center, #23252a 0%, #101114 100%);
  /* Premium dark radial glow background */
  width: 100%;
  height: 110vh;
  /* Increased height of the station */
  position: relative;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.experts-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Giant background typography sitting behind the doctors */
.experts-bg-title {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 15.5vw, 15.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -0.04em;
  text-align: center;
  position: absolute;
  top: 25%;
  /* Adjusted top slightly to sit perfectly in the taller space */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Foreground cutout wrapper */
.experts-image-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 82%;
  /* Reduced height slightly to shift the figures down */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  /* Sits above the background text */
}

.experts-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Prevents stretching */
  object-position: bottom center;
  /* Aligns cutout perfectly flush at the bottom edge */
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transform: translateY(2.5rem);
  /* Shifted the cutout image down */
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .experts-section {
    height: 75vh;
  }

  .experts-bg-title {
    font-size: clamp(5rem, 16vw, 11rem);
    top: 26%;
  }

  .experts-image-wrap {
    height: 80%;
  }
}

@media (max-width: 768px) {
  .experts-section {
    height: 60vh;
  }

  .experts-bg-title {
    font-size: clamp(3.5rem, 14vw, 8rem);
    top: 26%;
  }

  .experts-image-wrap {
    height: 75%;
  }
}

@media (max-width: 480px) {
  .experts-section {
    height: 48vh;
  }

  .experts-bg-title {
    font-size: clamp(2.5rem, 13vw, 5.5rem);
    top: 26%;
  }

  .experts-image-wrap {
    height: 72%;
  }
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS SECTION
═══════════════════════════════════════════════════ */

.testimonials-section {
  background-color: var(--color-bg);
  /* Light warm grey background */
  width: 100%;
  padding: 8rem var(--px);
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.testimonials-container {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 5rem;
  max-width: 1400px;
  width: 100%;
}

.testimonials-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonials-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.testimonials-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.testimonials-subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 3rem;
}

/* Patient selection list */
.patient-selector-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.patient-selector-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: transparent;
  border: 1px solid rgba(44, 42, 41, 0.08);
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.patient-selector-card:hover {
  background: rgba(44, 42, 41, 0.02);
  border-color: rgba(44, 42, 41, 0.18);
}

.patient-selector-card.active {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(44, 42, 41, 0.08);
}

/* Circular Initials Badges */
.patient-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 42, 41, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.patient-selector-card.active .patient-avatar-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.patient-selector-info {
  display: flex;
  flex-direction: column;
}

.patient-selector-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.patient-selector-treatment {
  font-family: var(--font-sans);
  font-size: 12px;
  opacity: 0.6;
  margin-top: 1px;
}

/* Right Side Display Card */
.testimonials-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid rgba(44, 42, 41, 0.05);
  padding: 4rem 4.5rem;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

/* Quote Icon Graphic */
.testimonial-quote-icon {
  position: absolute;
  top: 2rem;
  right: 2.2rem;
  color: rgba(44, 42, 41, 0.03);
  pointer-events: none;
}

.testimonial-quote-icon svg {
  width: 90px;
  height: 90px;
}

/* Stars */
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #c9a444;
  /* Clean gold color */
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
}

/* Actual Quotation text */
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-dark);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
}

.author-treatment {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 3px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .testimonials-section {
    padding: 6rem var(--px);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 3rem 2.5rem;
    min-height: auto;
  }

  .testimonial-quote-icon {
    top: 1.5rem;
    right: 1.5rem;
  }

  .testimonial-quote-icon svg {
    width: 60px;
    height: 60px;
  }
}

/* ═══════════════════════════════════════════════════
   FOOTER SECTION (Unique Boutique Hotel Style)
═══════════════════════════════════════════════════ */

.main-footer {
  background-color: #0b0c0e;
  /* Matte dark black backdrop */
  color: rgba(255, 255, 255, 0.6);
  padding: 6rem var(--px) 3rem;
  font-family: var(--font-sans);
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Footer CTA Banner ── */
.footer-cta-banner {
  max-width: 1400px;
  margin: 0 auto 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-cta-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1.1rem 2.2rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.footer-cta-button svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.footer-cta-button:hover {
  background-color: var(--color-white);
  color: #0b0c0e;
  border-color: var(--color-white);
}

.footer-cta-button:hover svg {
  transform: translateX(4px);
}

/* ── Footer Middle Grid ── */
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  /* Asymmetric balance */
  gap: 6rem;
  padding-bottom: 4rem;
}

/* Left Column: Directory Info */
.footer-directory {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.directory-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.directory-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
}

.directory-val {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.55;
  transition: color 0.25s ease;
}

.directory-val.val-large {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--font-serif);
  color: var(--color-white);
  margin-bottom: 2px;
}

a.directory-val:hover {
  color: var(--color-white);
}

/* Right Column: Philosophy & Menu */
.footer-philosophy-menu {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.footer-philosophy-card {
  border: 1px solid rgba(212, 175, 55, 0.15);
  /* Soft gold border */
  background: rgba(212, 175, 55, 0.02);
  padding: 2rem 2.2rem;
  border-radius: 12px;
}

.philosophy-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9a444;
  /* Gold title */
  margin-bottom: 0.8rem;
}

.philosophy-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Footer Nav Menu */
.footer-nav-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-menu-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 0.4rem;
}

.footer-nav-col a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-nav-col a:hover {
  color: var(--color-white);
  padding-left: 2px;
}

/* ── Footer Bottom Wrap ── */
.footer-bottom-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Giant low-opacity background watermark */
.footer-watermark {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11vw, 12rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.02);
  /* Extremely faint */
  text-align: center;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.footer-legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding: 5rem var(--px) 2rem;
  }

  .footer-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 3rem;
    margin-bottom: 3.5rem;
  }

  .footer-legal-bar {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
}

/* ── Footer Social Media Icons ── */
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  background-color: var(--color-white);
  color: #0b0c0e;
  border-color: var(--color-white);
  transform: translateY(-3px);
}



/* ═══════════════════════════════════════════════════
   FULLSCREEN NAVIGATION OVERLAY
═══════════════════════════════════════════════════ */

.fs-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: #0b0c0e;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0% at 85% 6vh);
  transition: clip-path 0.75s cubic-bezier(0.85, 0, 0.15, 1), visibility 0s step-end 0.75s;
  will-change: clip-path;
}

.fs-menu-overlay.active {
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(150% at 85% 6vh);
  transition: clip-path 0.85s cubic-bezier(0.85, 0, 0.15, 1), visibility 0s step-start;
}

/* Close Button */
.fs-menu-close {
  position: fixed;
  /* Keep pinned to top-right even when scrolling overlay contents */
  top: var(--py);
  right: var(--px);
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-menu-close svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

.fs-menu-close:hover svg {
  transform: rotate(90deg);
}

/* Container */
.fs-menu-container {
  width: 100%;
  max-width: 1400px;
  padding: 0 var(--px);
}

.fs-menu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10rem;
  align-items: center;
}

/* Vertical Stack Links */
.fs-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fs-link-wrapper {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2rem;
  margin-bottom: 0.5rem;
}

.fs-link-wrapper:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fs-menu-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: -0.015em;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, color 0.3s ease, padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Active Entrance Animations */
.fs-menu-overlay.active .fs-menu-link {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered Entrance delays */
.fs-menu-overlay.active .fs-link-wrapper:nth-child(1) .fs-menu-link {
  transition-delay: 0.2s;
}

.fs-menu-overlay.active .fs-link-wrapper:nth-child(2) .fs-menu-link {
  transition-delay: 0.28s;
}

.fs-menu-overlay.active .fs-link-wrapper:nth-child(3) .fs-menu-link {
  transition-delay: 0.36s;
}

.fs-menu-overlay.active .fs-link-wrapper:nth-child(4) .fs-menu-link {
  transition-delay: 0.44s;
}

.fs-menu-overlay.active .fs-link-wrapper:nth-child(5) .fs-menu-link {
  transition-delay: 0.52s;
}

/* Spotlight Dimming Hover effect */
.fs-menu-links:hover .fs-menu-link {
  opacity: 0.25;
}

.fs-menu-links .fs-menu-link:hover {
  opacity: 1;
  color: #c9a444;
  /* Premium gold hover */
  padding-left: 2rem;
  /* Clean indent shift */
}

/* Gold Serial Numbers */
.fs-link-num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #c9a444;
  margin-right: 2rem;
  letter-spacing: 0.05em;
  display: inline-block;
  position: relative;
  top: -2px;
}

/* Right Details Column */
.fs-menu-details {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fs-menu-overlay.active .fs-menu-details {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.45s;
}

.fs-details-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fs-details-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

.fs-details-val {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
}

.fs-details-val.val-bold {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  color: var(--color-white);
  margin-bottom: 2px;
}

a.fs-details-val:hover {
  color: var(--color-white);
}

/* ── Responsive Overlay ── */
@media (max-width: 992px) {
  .fs-menu-overlay {
    align-items: flex-start;
    padding: 8rem 0 5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fs-menu-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .fs-menu-details {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
  }

  .fs-menu-links {
    gap: 0.4rem;
  }

  .fs-link-wrapper {
    padding-bottom: 1.2rem;
    margin-bottom: 0.3rem;
  }
}

@media (max-width: 768px) {
  .fs-menu-link {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .fs-link-num {
    font-size: 11px;
    margin-right: 1.2rem;
  }
}

/* 6th staggered overlay menu child support */
.fs-menu-overlay.active .fs-link-wrapper:nth-child(6) .fs-menu-link {
  transition-delay: 0.60s;
}

/* ═══════════════════════════════════════════════════
   SERVICES PAGE STYLING (WHITE CLINICAL THEME & ESTIMATOR)
   ═══════════════════════════════════════════════════ */

/* Glowing Background Orbs (Light Mode Optimized) */
.services-glowing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background-color: #FAF9F5;
  /* Warm off-white background */
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: orbFloat 25s infinite alternate ease-in-out;
}

.orb-gold {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  top: -10vw;
  left: -10vw;
}

.orb-blue {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(17, 98, 141, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -15vw;
  right: -10vw;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(6%, 6%) scale(1.1);
  }
}

/* Services Hero */
.services-hero {
  padding: 14rem var(--px) 6rem;
  text-align: center;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  /* Premium scroll animation properties */
  will-change: transform, opacity;
  transform: translateY(calc(var(--scroll-y, 0) * 0.28px));
  opacity: calc(1 - var(--scroll-progress, 0) * 1.5);
}

.services-hero .services-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #b5902b;
  /* Accessible gold */
  margin-bottom: 1.5rem;
  display: block;
}

.services-hero .services-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: #101114;
  /* Dark charcoal text */
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.services-hero .services-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: #b5902b;
}

.services-hero .services-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(15px, 2.2vw, 17px);
  color: #555555;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Teeth Icon Watermark in Footer */
.footer-teeth-watermark {
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 30vw, 500px);
  height: auto;
  opacity: 0.06;
  /* Faint backdrop watermark */
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
  /* Removes the black background */
  z-index: 1;
}

/* Clean Category Grid (No overlapping lines / 100% Mobile Friendly) */
.services-grid-wrap {
  padding: 2rem var(--px) 6rem;
  max-width: 1300px;
  margin: 0 auto;
}

.services-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.category-clean-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 4.5rem 4rem;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.category-clean-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.08);
}

.category-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
}

.category-item-num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #b5902b;
  letter-spacing: 0.1em;
}

.category-item-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.35);
}

.category-item-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 400;
  color: #101114;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  transition: color 0.35s ease;
}

.category-clean-card:hover .category-item-title {
  color: #b5902b;
}

.category-item-desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.category-item-action {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #101114;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.35s ease;
  margin-top: auto;
}

.category-item-action svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.category-clean-card:hover .category-item-action {
  color: #b5902b;
}

.category-clean-card:hover .category-item-action svg {
  transform: translateX(5px);
}

/* Services Catalog Hub */
.services-catalog-section {
  padding: 6rem var(--px) 12rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.services-catalog-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  /* Optimized sidebar width */
  gap: 4rem;
  align-items: start;
}

/* Left panel: Filter Tools & Table */
.catalog-control-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.catalog-search-wrap {
  position: relative;
  width: 100%;
}

.catalog-search-input {
  width: 100%;
  background: #fcfbf7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  color: #101114;
  padding: 1.4rem 2rem 1.4rem 5.5rem;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.4s ease;
}

.catalog-search-input:focus {
  outline: none;
  border-color: #d4af37;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

.catalog-search-wrap svg {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: color 0.3s ease;
}

.catalog-search-input:focus+svg {
  color: #b5902b;
}

/* Category Filter Tabs */
.catalog-tabs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.catalog-tabs {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.catalog-tab-btn {
  background: #f7f6f2;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  color: #555555;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.35s ease;
}

.catalog-tab-btn:hover {
  color: #101114;
  border-color: rgba(0, 0, 0, 0.15);
  background: #ebeae6;
}

.catalog-tab-btn.active {
  background: #d4af37;
  border-color: #d4af37;
  color: #0b0c0e;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

/* Service Item List */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 300px;
}

.catalog-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 2.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
}

.catalog-item.hidden {
  display: none !important;
}

.catalog-item:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.catalog-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.catalog-item-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: #101114;
  letter-spacing: -0.01em;
}

.catalog-item-cat {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.4);
  align-self: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #fcfcfc;
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
}

.catalog-item-price-actions {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.catalog-item-price {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  color: #b5902b;
}

.catalog-add-btn {
  background: #f7f6f2;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #101114;
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.catalog-add-btn:hover {
  background: #d4af37;
  color: #0b0c0e;
  border-color: #d4af37;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.catalog-add-btn.added {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #b5902b;
}

/* Floating Treatment Estimate Sidebar (Fully Visible & Uncropped) */
.estimate-calculator-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 12rem;
  box-sizing: border-box;
  width: 100%;
}

.estimate-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estimate-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #101114;
  margin: 0;
}

.estimate-count {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #b5902b;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}

.estimate-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Prevent horizontal scroll clip */
  margin-bottom: 2.5rem;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.estimate-items-list::-webkit-scrollbar {
  width: 4px;
}

.estimate-items-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.estimate-empty-state {
  color: rgba(0, 0, 0, 0.35);
  font-family: var(--font-sans);
  font-size: 13.5px;
  text-align: center;
  padding: 4rem 1rem;
  line-height: 1.5;
}

.estimate-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 1.2rem;
  word-break: break-word;
  /* Wrap long treatment names */
}

.estimate-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.estimate-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  /* Enable flex-wrap support for children */
}

.estimate-item-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #101114;
  line-height: 1.35;
}

.estimate-item-price {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #666666;
}

.estimate-remove-btn {
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.estimate-remove-btn svg {
  width: 14px;
  height: 14px;
}

.estimate-remove-btn:hover {
  color: #ff5f56;
  background: rgba(255, 95, 86, 0.08);
}

.estimate-totals {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.estimate-total-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.4);
}

.estimate-total-val {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: #b5902b;
  font-weight: 400;
}

.estimate-cta-btn {
  width: 100%;
  background: #d4af37;
  color: #0b0c0e;
  border: none;
  border-radius: 50px;
  padding: 1.3rem 2rem;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.35s ease;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.estimate-cta-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.estimate-cta-btn:hover {
  background: #101114;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 17, 20, 0.15);
}

.estimate-cta-btn:hover svg {
  transform: translateX(4px);
}

.estimate-cta-btn:disabled {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: none;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .services-clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-catalog-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .estimate-calculator-card {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .services-clean-grid {
    grid-template-columns: 1fr;
  }

  .services-hero {
    padding: 10rem var(--px) 5rem;
  }

  .catalog-control-panel {
    padding: 2rem;
    gap: 1.5rem;
  }

  .catalog-item {
    padding: 1.8rem 2rem;
  }
}

/* Services page pagination and estimator overflow fixes */
.services-catalog-section,
.services-grid-wrap,
.services-hero {
  width: 100%;
}

.services-catalog-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(2rem, 4vw, 4rem);
}

.services-catalog-layout>div,
.catalog-control-panel,
.catalog-list,
.catalog-item,
.estimate-calculator-card {
  min-width: 0;
}

.catalog-item-info,
.estimate-item-details {
  min-width: 0;
}

.catalog-item-name,
.estimate-item-name,
.estimate-total-val,
.estimate-cta-btn span {
  overflow-wrap: anywhere;
}

.catalog-item-price-actions {
  flex-shrink: 0;
}

.estimate-calculator-card {
  max-width: 100%;
  padding: clamp(2rem, 3vw, 3.5rem);
}

.estimate-header,
.estimate-totals {
  gap: 1rem;
}

.estimate-count,
.estimate-total-val,
.catalog-item-price {
  white-space: nowrap;
}

.estimate-cta-btn {
  min-height: 54px;
  white-space: normal;
  text-align: center;
}

@media (max-width: 1180px) {
  .services-catalog-layout {
    grid-template-columns: 1fr;
  }

  .estimate-calculator-card {
    position: static;
    margin-top: 0;
  }

  .estimate-items-list {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .services-hero {
    padding: 8.5rem var(--px) 3.5rem;
  }

  .services-grid-wrap,
  .services-catalog-section {
    padding-left: var(--px);
    padding-right: var(--px);
  }

  .category-clean-card,
  .catalog-control-panel,
  .estimate-calculator-card {
    border-radius: 14px;
  }

  .category-clean-card {
    min-height: auto;
    padding: 2.4rem 1.6rem;
  }

  .category-item-header {
    margin-bottom: 1.6rem;
  }

  .category-item-desc {
    margin-bottom: 2rem;
  }

  .catalog-control-panel {
    padding: 1.25rem;
  }

  .catalog-search-input {
    min-height: 54px;
    padding: 1rem 1.2rem 1rem 3.4rem;
    font-size: 14px;
  }

  .catalog-search-wrap svg {
    left: 1.15rem;
    width: 18px;
    height: 18px;
  }

  .catalog-tabs {
    gap: 0.7rem;
  }

  .catalog-tab-btn {
    padding: 0.75rem 1.15rem;
    font-size: 12px;
  }

  .catalog-item {
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem;
    gap: 1.2rem;
  }

  .catalog-item-name {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    line-height: 1.12;
  }

  .catalog-item-price-actions {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .catalog-add-btn {
    min-height: 42px;
    padding: 0.7rem 1.1rem;
  }

  .estimate-calculator-card {
    padding: 1.35rem;
  }

  .estimate-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .estimate-title {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .estimate-items-list {
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 0;
  }

  .estimate-empty-state {
    padding: 2.25rem 0.5rem;
  }

  .estimate-item {
    gap: 0.75rem;
  }

  .estimate-totals {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .estimate-total-val {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .estimate-cta-btn {
    border-radius: 18px;
    padding: 1rem 1.2rem;
    line-height: 1.25;
  }
}

@media (max-width: 380px) {
  .catalog-item-price-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-add-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════
   FULLSCREEN INTRO ANIMATION SPLASH OVERLAY
════════════════════════════════════════════ */
html.splash-already-seen .splash-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030712;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: none;
}

@media (min-width: 769px) {
  .splash-video-pc {
    display: block !important;
  }
  .splash-video-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .splash-video-pc {
    display: none !important;
  }
  .splash-video-mobile {
    display: block !important;
  }
}

.splash-skip-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 1000000;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.splash-skip-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}