/*
Theme Name: Luminous Dental Collective
Author: WordPress Telex
Description: A luxury dental theme with warm, inviting aesthetics. Refined typography, soft teal accents, and generous whitespace convey trust and sophistication.
Version: 0.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: telex-luminous-dental
Tags: block-theme, full-site-editing

Luminous Dental Collective — Where elegance meets exceptional care.
*/

/* Equal-height card system */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease;
}

/* Remove gap between header and hero */
.site-header + .hero-slider,
.site-header + .wp-block-group.hero-slider {
  margin-top: 0 !important;
}

/* Remove gap between header and cinematic hero */
.wp-site-blocks > .cinematic-hero,
.wp-site-blocks > .wp-block-html:has(.cinematic-hero),
.site-header + .cinematic-hero,
.site-header + .wp-block-html {
  margin-top: 0 !important;
}
.cinematic-hero {
  margin-top: 0 !important;
}

/* Remove default WordPress margin on wp-site-blocks direct children after header */
.wp-site-blocks > header + *,
.wp-site-blocks > .wp-block-template-part + * {
  margin-top: 0 !important;
}



/* Smooth link transitions */
a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* ───── Luminous Navigation ───── */
.luminous-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.luminous-nav-item {
  position: static;
}
.luminous-nav-link {
  color: #1c2b33;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.25s ease;
  position: relative;
}
.luminous-nav-link:hover {
  color: #1a7a7a;
}

/* ───── Mega Menu ───── */
.has-mega-menu {
  position: static;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s 0.5s;
  pointer-events: none;
  padding-top: 12px;
}
/* Invisible bridge so cursor can travel from link to dropdown */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 32px;
  background: transparent;
}
.has-mega-menu:hover .mega-menu,
.has-mega-menu .mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s 0s;
  pointer-events: auto;
}
.mega-menu-inner {
  max-width: 1320px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 60px rgba(14, 30, 42, 0.12), 0 1px 0 rgba(26, 122, 122, 0.08) inset;
  padding: 2.5rem 3rem 2rem;
  border-top: 2px solid #1a7a7a;
}
.mega-menu-header {
  margin-bottom: 1.75rem;
}
.mega-menu-label {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a7a7a;
  margin: 0 0 0.35rem;
}
.mega-menu-title {
  font-family: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1c2b33;
  margin: 0;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.mega-menu-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  align-items: flex-start;
}
.mega-menu-card:hover {
  background: #edf2f4;
  transform: translateY(-2px);
}
.mega-menu-card-img-wrap {
  flex: 0 0 80px;
  width: 80px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
}
.mega-menu-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px !important;
}
.mega-menu-card-body h4 {
  font-family: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1c2b33;
  margin: 0 0 0.25rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mega-menu-card-body p {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  color: #5a7184;
  margin: 0;
  line-height: 1.5;
}
.mega-menu-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf2f4;
  text-align: center;
}
.mega-menu-footer span {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.8125rem;
  color: #5a7184;
}
.mega-menu-footer strong {
  color: #1a7a7a;
  font-weight: 600;
}

/* Chevron indicator on Services link */
.has-mega-menu > .luminous-nav-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.has-mega-menu:hover > .luminous-nav-link::after {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
  .mega-menu-inner {
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
  }
}

/* Global rounded corners for images — exclude hero */
.wp-block-image img {
  border-radius: 16px;
}

/* Hero slider images should be sharp/square edged */
.hero-slider .wp-block-cover__image-background,
.hero-slider .wp-block-cover {
  border-radius: 0 !important;
}

/* Rounded buttons globally */
.wp-block-button__link,
.wp-element-button {
  border-radius: 50px !important;
}

/* Testimonial quote styling — glassmorphic card */
.testimonial-quote {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}
.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  font-size: 5rem;
  line-height: 1;
  color: #5fb8b8;
  opacity: 0.2;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* Testimonial star ratings */
.testimonial-stars {
  line-height: 1;
}

/* Testimonial divider line */
.testimonial-quote .testimonial-divider {
  width: 40px;
  border: none;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, #5fb8b8, transparent) 1;
  opacity: 1;
}

/* Footer social links override for dark background */
.wp-block-social-links.has-icon-color .wp-social-link {
  background: transparent;
  border: 1px solid rgba(95, 184, 184, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.wp-block-social-links.has-icon-color .wp-social-link:hover {
  border-color: #5fb8b8;
  background: rgba(95, 184, 184, 0.1);
}

/* Teal separator */
.teal-separator {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #1a7a7a, #5fb8b8);
  border: none;
  margin: 0;
  margin-left: 0;
  margin-right: auto;
}

/* Scroll-triggered fade-in — JS adds .js-scroll-ready to <html> before hiding elements */
.js-scroll-ready .scroll-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-scroll-ready .scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-fade.delay-1 { transition-delay: 0.1s; }
.scroll-fade.delay-2 { transition-delay: 0.2s; }
.scroll-fade.delay-3 { transition-delay: 0.3s; }
.scroll-fade.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .js-scroll-ready .scroll-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Service card hover */
.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(26, 122, 122, 0.12);
  border-radius: 16px;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28, 43, 51, 0.08);
}
.service-card img {
  border-radius: 8px !important;
}

/* Button refinement */
.wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 1.5px;
  transition: all 0.3s ease;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #1a7a7a;
  color: #f7f9fa;
  border-color: #1a7a7a;
}

/* ───── Cinematic Scroll Hero ───── */
.cinematic-hero {
  position: relative;
  height: 300vh;
  overflow: visible;
}
.cinematic-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.cinematic-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity, transform;
  transition: none;
}
.cinematic-scene.is-active {
  opacity: 1;
}
.cinematic-scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cinematic-scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}
.cinematic-scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}
.cinematic-scene-1 .cinematic-scene-bg::after {
  background: linear-gradient(180deg, rgba(14,30,42,0.55) 0%, rgba(14,30,42,0.75) 100%);
}
.cinematic-scene-2 .cinematic-scene-bg::after {
  background: linear-gradient(135deg, rgba(14,30,42,0.7) 0%, rgba(26,122,122,0.4) 100%);
}
.cinematic-scene-3 .cinematic-scene-bg::after {
  background: linear-gradient(180deg, rgba(14,30,42,0.6) 0%, rgba(14,30,42,0.8) 100%);
}
.cinematic-scene-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}
.cinematic-scene-content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cinematic-scene.is-active .cinematic-scene-content > * {
  opacity: 1;
  transform: translateY(0);
}
.cinematic-scene.is-active .cinematic-scene-content > *:nth-child(1) { transition-delay: 0.1s; }
.cinematic-scene.is-active .cinematic-scene-content > *:nth-child(2) { transition-delay: 0.25s; }
.cinematic-scene.is-active .cinematic-scene-content > *:nth-child(3) { transition-delay: 0.4s; }
.cinematic-scene.is-active .cinematic-scene-content > *:nth-child(4) { transition-delay: 0.55s; }

/* Cinematic scene decorative elements */
.cinematic-accent-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #5fb8b8, #1a7a7a);
  margin: 0 auto 1.5rem;
  border: none;
}
.cinematic-scene-label {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5fb8b8;
  margin: 0 0 1.25rem;
}
.cinematic-scene-title {
  font-family: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f7f9fa;
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}
.cinematic-scene-subtitle {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(237, 242, 244, 0.85);
  margin: 0 auto;
  max-width: 640px;
}
.cinematic-scene-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 3rem;
  background: #1a7a7a;
  color: #f7f9fa;
  border-radius: 50px;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.cinematic-scene-cta:hover {
  background: #0d5c5c;
  transform: translateY(-2px);
  color: #f7f9fa;
}

/* Scroll indicator */
.cinematic-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.cinematic-scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.cinematic-scroll-indicator span {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.cinematic-scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}
.cinematic-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #5fb8b8;
  animation: cinematic-scroll-pulse 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cinematic-scroll-pulse {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* Scene progress dots */
.cinematic-progress {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.cinematic-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  padding: 0;
}
.cinematic-progress-dot.is-active {
  background: #5fb8b8;
  border-color: #5fb8b8;
  box-shadow: 0 0 12px rgba(95, 184, 184, 0.4);
  transform: scale(1.3);
}

/* Parallax scale on background */
.cinematic-scene-bg img {
  transform: scale(1.1);
  transition: transform 0.1s linear;
}

@media (max-width: 768px) {
  .cinematic-scene-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .cinematic-scene-subtitle {
    font-size: 1rem;
  }
  .cinematic-progress {
    right: 1rem;
  }
}

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
}
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  margin-top: 0 !important;
}
.hero-slider .hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.hero-slider .hero-slide:first-child {
  position: relative;
}
.hero-slider .wp-block-cover {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Slider navigation dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.is-active {
  background: #5fb8b8;
  box-shadow: 0 0 12px rgba(95, 184, 184, 0.5);
}

/* Amenity card */
.amenity-card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.amenity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(28, 43, 51, 0.06);
}

/* Stats counter */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Contact form styling */
.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section textarea,
.contact-form-section select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dde6ec;
  border-radius: 12px;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.875rem;
  color: #1c2b33;
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
}
.contact-form-section input:focus,
.contact-form-section textarea:focus,
.contact-form-section select:focus {
  border-color: #1a7a7a;
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.1);
}
.contact-form-section textarea {
  min-height: 100px;
  resize: vertical;
}
.contact-form-section label {
  display: block;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a7184;
  margin-bottom: 0.4rem;
}
.contact-form-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .contact-form-section .form-row {
    grid-template-columns: 1fr;
  }
}
.contact-form-section .form-submit-btn {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.85rem 2.25rem;
  background: #1a7a7a;
  color: #f7f9fa;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.contact-form-section .form-submit-btn:hover {
  background: #0d5c5c;
  transform: translateY(-1px);
}

/* Newsletter section */
.newsletter-section .newsletter-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3rem 3rem;
  max-width: 520px;
  margin: 2.5rem auto 0;
}
.newsletter-section .newsletter-card label {
  display: block;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}
.newsletter-section .newsletter-card input[type="email"] {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.9375rem;
  color: #f7f9fa;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
}
.newsletter-section .newsletter-card input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.newsletter-section .newsletter-card input[type="email"]:focus {
  border-color: #5fb8b8;
  box-shadow: 0 0 0 3px rgba(95, 184, 184, 0.15);
}
.newsletter-section .newsletter-submit-btn {
  display: block;
  width: 100%;
  padding: 0.95rem 2rem;
  background: #1a7a7a;
  color: #f7f9fa;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.newsletter-section .newsletter-submit-btn:hover {
  background: #0d5c5c;
  transform: translateY(-1px);
}

/* Contact info card */
.contact-info-card {
  border-radius: 16px;
  transition: transform 0.3s ease;
}
.contact-info-card:hover {
  transform: translateY(-2px);
}

/* Compact contact form */
.contact-form-compact .form-row {
  gap: 0.75rem;
}
.contact-form-compact input[type="text"],
.contact-form-compact input[type="email"],
.contact-form-compact input[type="tel"],
.contact-form-compact textarea,
.contact-form-compact select {
  margin-bottom: 0.5rem;
}
.contact-form-compact textarea {
  min-height: 80px;
}

/* ───── Horizontal Scroll Section ───── */
.horizontal-scroll-section {
  position: relative;
}
.horizontal-scroll-track {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.horizontal-scroll-inner {
  display: flex;
  will-change: transform;
}
.horizontal-scroll-panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding-left: max(5rem, calc((100vw - 1320px) / 2 + 5rem));
  padding-right: 5rem;
}
.horizontal-scroll-panel-content {
  max-width: 720px;
  width: 100%;
  padding: 3.5rem;
  position: relative;
  z-index: 2;
}
.horizontal-scroll-panel-number {
  font-family: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  bottom: -0.5rem;
  right: -1rem;
  opacity: 0.08;
  color: #ffffff;
  z-index: 2;
  pointer-events: none;
}
.horizontal-scroll-progress {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.horizontal-scroll-progress-dot {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease;
}
.horizontal-scroll-progress-dot.is-active {
  background: #5fb8b8;
}

/* Panel theme variants — now use background images */
.hs-panel-1,
.hs-panel-2,
.hs-panel-3,
.hs-panel-4 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hs-panel-1::before,
.hs-panel-2::before,
.hs-panel-3::before,
.hs-panel-4::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hs-panel-1::before { background: linear-gradient(135deg, rgba(14,30,42,0.72), rgba(26,122,122,0.45)); }
.hs-panel-2::before { background: linear-gradient(135deg, rgba(14,30,42,0.75), rgba(13,92,92,0.50)); }
.hs-panel-3::before { background: linear-gradient(135deg, rgba(14,30,42,0.70), rgba(26,122,122,0.48)); }
.hs-panel-4::before { background: linear-gradient(135deg, rgba(14,30,42,0.68), rgba(95,184,184,0.35)); }

.hs-panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.hs-panel-icon svg {
  width: 24px;
  height: 24px;
  color: #5fb8b8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───── Stacking Cards Section ───── */
.stacking-cards-section {
  position: relative;
}
.stacking-card-wrap {
  /* JS sets position:sticky, top, and z-index dynamically */
}
.stacking-card {
  border-radius: 20px;
  padding: 3.5rem 4rem;
  transition: transform 0.15s linear, box-shadow 0.25s ease, filter 0.25s ease;
  will-change: transform, filter;
  box-shadow: 0 4px 30px rgba(28, 43, 51, 0.06);
  display: flex;
  align-items: center;
  gap: 4rem;
}
.stacking-card-visual {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stacking-card-visual-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.stacking-card-visual-circle svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}
.stacking-card-body {
  flex: 1;
}

/* Card color variants */
.stacking-card-1 {
  background: #ffffff;
  border: 1px solid rgba(26, 122, 122, 0.08);
}
.stacking-card-1 .stacking-card-visual-circle {
  background: linear-gradient(135deg, rgba(26, 122, 122, 0.08), rgba(95, 184, 184, 0.12));
  color: #1a7a7a;
}
.stacking-card-2 {
  background: #0e1e2a;
  border: 1px solid rgba(95, 184, 184, 0.15);
}
.stacking-card-2 .stacking-card-visual-circle {
  background: linear-gradient(135deg, rgba(95, 184, 184, 0.15), rgba(26, 122, 122, 0.2));
  color: #5fb8b8;
}
.stacking-card-3 {
  background: #ffffff;
  border: 1px solid rgba(26, 122, 122, 0.08);
}
.stacking-card-3 .stacking-card-visual-circle {
  background: linear-gradient(135deg, rgba(26, 122, 122, 0.08), rgba(95, 184, 184, 0.12));
  color: #1a7a7a;
}
.stacking-card-4 {
  background: #1a7a7a;
  border: 1px solid rgba(95, 184, 184, 0.2);
}
.stacking-card-4 .stacking-card-visual-circle {
  background: rgba(255, 255, 255, 0.1);
  color: #f7f9fa;
}

@media (max-width: 768px) {
  .stacking-card {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 2rem;
    text-align: center;
  }
  .stacking-card-visual {
    flex: 0 0 auto;
  }
  .stacking-card-visual-circle {
    width: 120px;
    height: 120px;
  }
  .stacking-card-visual-circle svg {
    width: 40px;
    height: 40px;
  }
  .horizontal-scroll-panel-content {
    padding: 2rem;
    max-width: 100%;
  }
  .horizontal-scroll-panel-number {
    font-size: 5rem;
  }
}

/* ───── Vertical Timeline ───── */
.timeline-section {
  position: relative;
}
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline-line-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: #dde6ec;
}
.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #1a7a7a, #5fb8b8);
  transition: none;
  border-radius: 0 0 2px 2px;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: start;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item-content {
  min-width: 0;
}
.timeline-item-spacer {
  min-width: 0;
}
/* Left items: content on left column, spacer on right */
.timeline-item-left .timeline-item-content {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}
.timeline-item-left .timeline-node {
  grid-column: 2;
  grid-row: 1;
}
.timeline-item-left .timeline-item-spacer {
  grid-column: 3;
  grid-row: 1;
}
/* Right items: spacer on left column, content on right */
.timeline-item-right .timeline-item-spacer {
  grid-column: 1;
  grid-row: 1;
}
.timeline-item-right .timeline-node {
  grid-column: 2;
  grid-row: 1;
}
.timeline-item-right .timeline-item-content {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}
.timeline-node {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
  position: relative;
  z-index: 2;
}
.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f7f9fa;
  border: 3px solid #dde6ec;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.timeline-item.is-revealed .timeline-dot {
  border-color: #1a7a7a;
  background: #1a7a7a;
  box-shadow: 0 0 0 6px rgba(26, 122, 122, 0.15);
}
.timeline-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(26, 122, 122, 0.08);
  box-shadow: 0 4px 24px rgba(28, 43, 51, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(28, 43, 51, 0.08);
}
.timeline-year {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a7a7a;
  margin: 0 0 0.5rem;
}
.timeline-card h3 {
  font-family: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1c2b33;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.timeline-card p {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #5a7184;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline-line-track {
    left: 20px;
  }
  .timeline-item {
    display: flex !important;
    flex-direction: row !important;
  }
  .timeline-node {
    flex: 0 0 40px;
    position: absolute;
    left: 0;
  }
  .timeline-item-left .timeline-item-content,
  .timeline-item-right .timeline-item-content {
    grid-column: auto;
    text-align: left !important;
    margin-left: 52px;
  }
  .timeline-item-spacer {
    display: none;
  }
}

/* Fallback: if JS hasn't loaded, show panels vertically */
@media (prefers-reduced-motion: reduce) {
  .horizontal-scroll-section {
    height: auto !important;
  }
  .horizontal-scroll-track {
    position: relative !important;
    height: auto !important;
  }
  .horizontal-scroll-inner {
    flex-direction: column !important;
    width: auto !important;
    transform: none !important;
  }
  .horizontal-scroll-panel {
    width: 100% !important;
    height: auto !important;
    min-height: 60vh;
    flex: 0 0 auto !important;
  }
  .stacking-card-wrap {
    position: relative !important;
    top: auto !important;
  }
}

/* Noise texture overlay for depth */
.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}