
/* ==========================================================================
   Design System & Extracted Styles for Contact Page (contact.html)
   Dr. Ashwin's TMD Clinic - Kozhikode
   ========================================================================== */


:root {
  --primary-gold: #EDAA12;
  --primary-gold-hover: #D6970A;
  --primary-gold-light: #FFF8E7;
  --bg-primary: #FFFFFF;
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #1C1D1F;
  --text-dark: #1A1A1A;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --border-light: #E0E0E0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html:has(body.is-treatments-page),
body.is-treatments-page {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.serif-font {
  font-family: var(--font-heading);
}

.text-gold {
  color: var(--primary-gold);
}

h1,
h2,
h3,
h4 {
  color: var(--text-dark);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-gold);
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(237, 170, 18, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--primary-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 170, 18, 0.45);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.header.nav-hidden,
.header-subpage.nav-hidden {
  transform: translateY(-100%);
}

.header-subpage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #ECECEC;
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header-subpage.nav-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.header-subpage .logo-title {
  color: var(--primary-gold);
}

.header-subpage .logo-subtitle {
  color: #4A4A4A;
}

.header-subpage .nav-links a {
  color: #555555;
  text-shadow: none;
  font-weight: 600;
}

.header-subpage .nav-links a:hover,
.header-subpage .nav-links a.active {
  color: var(--primary-gold);
}

.header-subpage .logo-img-rotating {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #ECECEC;
}

.header-subpage .btn-primary {
  background-color: var(--primary-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(237, 170, 18, 0.35);
}

.header-subpage .btn-primary:hover {
  background-color: var(--primary-gold-hover);
  transform: translateY(-2px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img-rotating {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  animation: rotateLogo 12s linear infinite;
  will-change: transform;
}

.logo-img-rotating:hover {
  animation-play-state: paused;
}

@keyframes rotateLogo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.8px;
  color: var(--primary-gold);
}

.logo-subtitle {
  font-weight: 700;
  font-size: 0.78rem;
  color: #4A4A4A;
  letter-spacing: 1.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: #555555;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

.mobile-menu-btn {
  display: none;
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Contact Section & Consultation Form
   ========================================================================== */
.contact-section {
  padding: 80px 0 60px;
  background-color: transparent !important;
}

.contact-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.contact-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-spacing, 1.8px);
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 10px;
  transform: scale(var(--eyebrow-scale, 1));
  transform-origin: center center;
  transition: transform 0.12s linear, letter-spacing 0.12s linear;
  will-change: transform, letter-spacing;
}

.contact-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  transform: scale(var(--title-scale, 1));
  transform-origin: center center;
  transition: transform 0.12s linear;
  will-change: transform;
}

.contact-subtitle {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
  transform: scale(var(--subtitle-scale, 1));
  transform-origin: center center;
  transition: transform 0.12s linear;
  will-change: transform;
}

.contact-cards-wrapper {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 0;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
  margin-bottom: 2rem;
}

.contact-image-col {
  position: relative;
  min-height: 480px;
  background: #EFEFEF;
  overflow: hidden;
}

.contact-clinic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form-row:hover .contact-clinic-img {
  transform: scale(1.03);
}

.contact-form-col {
  background: #FFFFFF;
  padding: 32px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-form-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 0;
  transform: scale(var(--form-heading-scale, 1));
  transform-origin: left center;
  transition: transform 0.12s linear;
  will-change: transform;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-group {
  margin-bottom: 18px;
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  display: block;
  margin-bottom: 6px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #E0E0E0;
  padding: 8px 0 10px 0;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: transparent;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--primary-gold);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #BBB;
}

.contact-textarea {
  resize: none;
  height: 38px;
  min-height: 38px;
  line-height: 1.4;
  overflow-y: hidden;
  display: block;
}

.contact-submit-btn {
  width: auto;
  background: #484749;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  text-transform: none;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  box-sizing: border-box;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-submit-btn:hover {
  background: #2B2A2C;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

/* Quick Contact Row */
/* Quick Contact & Clinic Info 2-Column Grid (Aligned with Identical 44px x 44px Icon Buttons) */
.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
  row-gap: 2.8rem;
  margin-top: 3.2rem;
  margin-bottom: 3.8rem;
  padding: 0 0.25rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

/* Identical 44px x 44px circular icon button for Call, WhatsApp, Clock, Location */
.contact-detail-circle-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-detail-circle-icon svg {
  width: 20px;
  height: 20px;
  fill: #333333;
  display: block;
}

.contact-detail-circle-icon:hover {
  transform: scale(1.08);
}

/* Call Us Directly Icon Button */
.contact-detail-circle-icon.call-blue {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.contact-detail-circle-icon.call-blue svg {
  fill: #2563EB;
}

.contact-detail-circle-icon.call-blue:hover {
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* WhatsApp Icon Button */
.contact-detail-circle-icon.whatsapp-green {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.contact-detail-circle-icon.whatsapp-green svg {
  fill: #25D366;
  width: 22px;
  height: 22px;
}

.contact-detail-circle-icon.whatsapp-green:hover {
  background: rgba(37, 211, 102, 0.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

/* Working Hours (Clock) Icon Button */
.contact-detail-circle-icon.clock-gold {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.contact-detail-circle-icon.clock-gold svg {
  fill: #EDAA12;
}

.contact-detail-circle-icon.clock-gold:hover {
  background: rgba(237, 170, 18, 0.12);
  box-shadow: 0 4px 12px rgba(237, 170, 18, 0.15);
}

/* Clinic Location Pin Icon Button */
.contact-detail-circle-icon.location-red {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.contact-detail-circle-icon.location-red svg {
  fill: #EA4335;
}

.contact-detail-circle-icon.location-red:hover {
  background: rgba(234, 67, 53, 0.1);
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.15);
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
}

.contact-detail-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.contact-detail-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #4B5563;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contact-detail-sub:hover {
  color: var(--primary-gold);
}

.contact-hours-duo {
  display: flex;
  align-items: center;
  gap: 4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #4B5563;
  font-weight: 400;
}

.contact-hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-hours-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4B5563;
}

.hours-day {
  color: #1F2937;
  font-weight: 400;
  min-width: 125px;
}

.hours-time {
  color: #4B5563;
}

.contact-location-address {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 0.4rem;
}

.contact-location-email {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #4B5563;
}

.contact-location-email strong {
  color: #111827;
  font-weight: 700;
}

.contact-location-email a {
  color: #4B5563;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.contact-location-email a:hover {
  color: var(--primary-gold);
}

/* Map Container */
.contact-map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #E8E6E0;
  border: 1px solid #ECECEC;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact-map-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #1A1A1A;
  z-index: 5;
  pointer-events: none;
}

.contact-map-badge svg {
  fill: #EDAA12;
  color: #EDAA12;
}

/* Page Transitions & Entrance Animation */
.page-transition-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1C1D1F;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
}

.page-transition-curtain.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0%);
}

body.is-contact-page .contact-header,
body.is-contact-page .contact-form-row,
body.is-contact-page .contact-details-grid,
body.is-contact-page .contact-map-wrapper {
  animation: contactItemReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-contact-page .contact-header { animation-delay: 0.05s; }
body.is-contact-page .contact-form-row { animation-delay: 0.15s; }
body.is-contact-page .contact-details-grid { animation-delay: 0.25s; }
body.is-contact-page .contact-map-wrapper { animation-delay: 0.35s; }

@keyframes contactItemReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Footer (Exact Figma Footer from Home Page)
   ========================================================================== */
.site-footer {
  background: #191919;
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0 2.2rem;
  position: relative;
  overflow: hidden;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.35fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.footer-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-brand-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: block;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name-gold {
  color: #FCBC15;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.brand-sub-white {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.footer-clinic-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1E1E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-circle-btn:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.social-circle-btn.social-facebook:hover {
  background: #1877F2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.social-circle-btn.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(214, 36, 159, 0.45);
}

.social-circle-btn.social-youtube:hover {
  background: #FF0000;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
}

.social-circle-btn.social-linkedin:hover {
  background: #0A66C2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.45);
}

.footer-col-title-gold {
  color: #FCBC15;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.35rem;
  margin-bottom: 1.4rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-links-col a:hover {
  color: #FCBC15;
  transform: translateX(4px);
}

/* Newsletter Input Pill */
.newsletter-pill-form {
  display: flex;
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 4px;
  overflow: hidden;
}

.newsletter-pill-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  outline: none;
  color: #1E1E1E;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.newsletter-pill-form input::placeholder {
  color: #888888;
}

.newsletter-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #555555;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.newsletter-send-btn:hover {
  background: #FCBC15;
  color: #1E1E1E;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4.5rem;
  padding-top: 1.75rem;
  padding-bottom: 0.25rem;
  text-align: center;
}

.footer-copyright-bar p {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid #ECECEC;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    color: #1A1A1A;
    font-size: 1.05rem;
    font-weight: 600;
  }

  .mobile-menu-btn {
    display: block;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .contact-form-row,
  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   About Page (about.html) - Matching Exact User Reference UI
   ========================================================================== */
body.is-about-page,
body.is-contact-page,
body.is-what-is-tmd-page {
  background-color: #F6F5F1;
  color: #1A1A1A;
}

.about-page-main,
.contact-page-main,
.treatments-page-main,
.tmd-page-wrapper {
  background-color: #F6F5F1;
  padding-top: 0;
  padding-bottom: 90px;
}

.about-hero-section,
.contact-hero-section,
.treatments-hero-section,
.tmd-hero-section {
  position: relative;
  min-height: 140vh;
  margin: 0;
  padding: 0;
}

.about-hero-sticky,
.contact-hero-sticky,
.treatments-hero-sticky,
.tmd-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38px 24px 0;
  box-sizing: border-box;
  z-index: 1;
  pointer-events: none;
  opacity: var(--tmd-hero-opacity, var(--treatments-hero-opacity, 1));
  transition: opacity 0.2s ease, transform 0.05s linear;
}

.about-hero-title,
.contact-hero-title,
.treatments-hero-title,
.tmd-hero-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3.2rem, 6.2vw, 5.2rem);
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.05s linear;
}

.about-hero-title {
  transform: scale(var(--about-title-scale, 1));
}

.contact-hero-title {
  transform: scale(var(--contact-title-scale, 1));
}

.treatments-hero-title {
  transform: scale(var(--treatments-title-scale, 1));
}

.tmd-hero-title {
  transform: scale(var(--tmd-title-scale, 1));
}

.about-hero-title .hero-line,
.contact-hero-title .hero-line,
.treatments-hero-title .hero-line,
.tmd-hero-title .hero-line {
  display: block;
  text-align: center;
}

.about-hero-title .hero-line-1,
.contact-hero-title .hero-line-1,
.treatments-hero-title .hero-line-1,
.tmd-hero-title .hero-line-1 {
  color: #1A1A1A;
}

.about-hero-title .hero-line-2,
.contact-hero-title .hero-line-2,
.treatments-hero-title .hero-line-2,
.tmd-hero-title .hero-line-2 {
  color: #111827;
}

.about-hero-sub,
.contact-hero-sub,
.treatments-hero-sub,
.tmd-hero-sub {
  font-family: var(--font-body), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 400;
  color: #555555;
  line-height: 1.6;
  max-width: 680px;
  margin: clamp(18px, 2.5vh, 28px) auto 0;
  text-align: center;
  transform-origin: center top;
  will-change: transform, opacity;
  transition: transform 0.05s linear;
}

.about-hero-sub {
  transform: scale(var(--about-title-scale, 1));
  opacity: var(--about-sub-opacity, 1);
}

.contact-hero-sub {
  transform: scale(var(--contact-title-scale, 1));
  opacity: var(--contact-sub-opacity, 1);
}

.treatments-hero-sub {
  transform: scale(var(--treatments-title-scale, 1));
  opacity: var(--treatments-sub-opacity, 1);
}

.tmd-hero-sub {
  transform: scale(var(--tmd-title-scale, 1));
  opacity: var(--tmd-sub-opacity, 1);
}

.about-hero-scroll-hint,
.contact-hero-scroll-hint,
.treatments-hero-scroll-hint,
.tmd-hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
  opacity: var(--scroll-hint-opacity, 1);
  transition: opacity 0.15s ease;
  animation: heroBounceHint 2.2s infinite ease-in-out;
  pointer-events: auto;
}

@keyframes heroBounceHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Content Sections Layering Over Sticky Hero */
.about-cards-wrapper,
.contact-section,
.treatments-content-wrapper,
.treatments-showcase-section,
.tmd-content-wrapper,
.pin-spacer {
  position: relative;
  z-index: 20;
}

/* Cards Shared Wrapper */
.about-cards-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Card 1: Our Story (Clean unboxed editorial presentation) */
.about-story-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: start;
}

.about-card-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 700;
  color: #111827;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.about-story-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.78;
  color: #262626;
}

.about-story-text p {
  margin-bottom: 1.25rem;
}

.about-story-text p:last-child {
  margin-bottom: 0;
  font-weight: 700;
  color: #111827;
}

/* Word-by-Word Scroll Reveal Text Animation (Matches Doctor Mission Quote & Our Story Brief) */
.about-story-text .reveal-word,
.tmd-joint-text .reveal-word {
  color: rgba(38, 38, 38, 0.20);
  transition: color 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline;
}

.about-story-text .reveal-word.active,
.tmd-joint-text .reveal-word.active {
  color: #262626;
}

.about-story-text p:last-child .reveal-word.active,
.tmd-joint-text:last-child .reveal-word.active {
  color: #111827;
}

@media (prefers-reduced-motion: reduce) {
  .about-story-text .reveal-word,
  .tmd-joint-text .reveal-word {
    color: #262626 !important;
  }
  .about-story-text p:last-child .reveal-word,
  .tmd-joint-text:last-child .reveal-word {
    color: #111827 !important;
  }
}

.about-images-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-stack-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  opacity: 1 !important;
  filter: none !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-stack-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Card 2: Meet Dr. Ashwin */
.about-doctor-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: clamp(2rem, 3.5vw, 3.5rem);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
}

.about-doctor-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.about-doctor-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 0.5s ease;
}

.about-doctor-card:hover .about-doctor-portrait {
  transform: scale(1.02);
}

.about-doctor-content {
  display: flex;
  flex-direction: column;
}

.about-specialist-tag {
  font-family: var(--font-body);
  color: #EDAA12;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.about-doctor-name {
  font-family: var(--font-body);
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
}

.about-doctor-qualification {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #71717A;
  margin-bottom: 1.5rem;
}

.about-doctor-bio {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.78;
  color: #4A4A4A;
}

.about-doctor-bio p {
  margin-bottom: 1.15rem;
}

.about-doctor-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #27272A;
  border-left: 3px solid #EDAA12;
  padding-left: 1.15rem;
  margin-top: 1.25rem;
  font-weight: 500;
}

/* Page Cascade Entrance Animation (Ensures 100% crisp solid opacity - no wash out) */
.about-anim-item {
  opacity: 1 !important;
  transform: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .about-story-card,
  .about-doctor-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }

  .about-doctor-img-wrap {
    min-height: 340px;
    max-height: 380px;
  }

  .about-scroll-showcase {
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }
}

/* ==========================================================================
   PHILOSOPHY 4-CARD SHOWCASE (MOUSE HOVER & SLIDE INTERACTION)
   ========================================================================== */
.about-philosophy-section {
  background: transparent;
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1rem, 2vw, 1.5rem);
  box-shadow: none;
  border: none;
  position: relative;
  overflow: visible;
}

.philosophy-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(1.5rem, 2.5vw, 2.25rem);
}

.philosophy-main-heading {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
}

.philosophy-lead-text {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: #666666;
  margin: 0;
  line-height: 1.6;
}

.philosophy-track-viewport {
  position: relative;
  width: 100%;
  padding: 2rem 0.5rem clamp(120px, 14vw, 190px);
  overflow: visible;
  user-select: none;
}

.philosophy-cards-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
  will-change: transform;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Base card styling with stepped descending cascade */
.philosophy-card {
  position: relative;
  width: clamp(235px, 21vw, 280px);
  height: clamp(340px, 29vw, 395px);
  flex-shrink: 0;
  border-radius: 20px;
  cursor: pointer;
  transform-origin: center center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.07);
  will-change: transform, box-shadow, opacity;
  z-index: 2;

  /* Initial unrevealed state: offset downwards from bottom side */
  opacity: 0;
  transform: translateY(calc(var(--step-y, 0px) + 160px));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1), 
              opacity 0.5s ease-out, 
              box-shadow 0.45s ease, 
              filter 0.35s ease;
}

/* Stepped vertical offsets (staircase down towards right, matching reference) */
.philosophy-card.phil-card-1 {
  --step-y: 0px;
}

.philosophy-card.phil-card-2 {
  --step-y: 54px;
}

.philosophy-card.phil-card-3 {
  --step-y: 108px;
}

.philosophy-card.phil-card-4 {
  --step-y: 162px;
}

/* Staggered entrance delays when entering from bottom side */
.about-philosophy-section.is-in-view:not(.is-aligned) .philosophy-card.phil-card-1 {
  transition-delay: 0.06s;
}
.about-philosophy-section.is-in-view:not(.is-aligned) .philosophy-card.phil-card-2 {
  transition-delay: 0.24s;
}
.about-philosophy-section.is-in-view:not(.is-aligned) .philosophy-card.phil-card-3 {
  transition-delay: 0.42s;
}
.about-philosophy-section.is-in-view:not(.is-aligned) .philosophy-card.phil-card-4 {
  transition-delay: 0.60s;
}

/* When in view: animate one by one from bottom side into their stepped positions */
.about-philosophy-section.is-in-view:not(.is-aligned) .philosophy-card {
  opacity: 1;
  transform: translateY(var(--step-y));
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Then ALIGN: All cards smoothly align into a clean straight horizontal row */
.about-philosophy-section.is-aligned .philosophy-card {
  opacity: 1;
  transform: translateY(0px);
  transition: transform 0.85s cubic-bezier(0.2, 0.9, 0.3, 1), 
              box-shadow 0.45s ease, 
              filter 0.35s ease,
              opacity 0.4s ease;
}

.about-philosophy-section.is-aligned .philosophy-card.phil-card-1 {
  transition-delay: 0s;
}

.about-philosophy-section.is-aligned .philosophy-card.phil-card-2 {
  transition-delay: 0.08s;
}

.about-philosophy-section.is-aligned .philosophy-card.phil-card-3 {
  transition-delay: 0.16s;
}

.about-philosophy-section.is-aligned .philosophy-card.phil-card-4 {
  transition-delay: 0.24s;
}

/* Hover straightening & elevation */
.about-philosophy-section.is-in-view:not(.is-aligned) .philosophy-card:hover {
  transform: translateY(calc(var(--step-y) - 20px)) scale(1.04) !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.28), 0 10px 26px rgba(237, 170, 18, 0.25) !important;
  z-index: 30 !important;
}

.about-philosophy-section.is-aligned .philosophy-card:hover {
  transform: translateY(-20px) scale(1.04) !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.28), 0 10px 26px rgba(237, 170, 18, 0.25) !important;
  z-index: 30 !important;
}

/* Subtle focus spotlight: dim neighboring cards when one is hovered */
.about-philosophy-section.is-in-view:not(.is-aligned) .philosophy-cards-track:has(.philosophy-card:hover) .philosophy-card:not(:hover) {
  opacity: 0.76;
  filter: brightness(0.95);
  transform: translateY(var(--step-y)) scale(0.98);
}

.about-philosophy-section.is-aligned .philosophy-cards-track:has(.philosophy-card:hover) .philosophy-card:not(:hover) {
  opacity: 0.76;
  filter: brightness(0.95);
  transform: translateY(0px) scale(0.98);
}

.phil-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: #1A1A1A;
}

.phil-card-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 5;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.philosophy-card:hover .phil-card-border-glow {
  border-color: rgba(237, 170, 18, 0.7);
  box-shadow: inset 0 0 15px rgba(237, 170, 18, 0.2);
}

.phil-card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.18);
  filter: brightness(0.85);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}

.about-philosophy-section.is-in-view .philosophy-card .phil-card-img,
.about-philosophy-section.is-aligned .philosophy-card .phil-card-img {
  transform: scale(1.0);
  filter: brightness(1);
}

.philosophy-card:hover .phil-card-img {
  transform: scale(1.08) !important;
  filter: brightness(1.06) !important;
}

.phil-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.0) 32%,
    rgba(12, 12, 16, 0.65) 68%,
    rgba(12, 12, 16, 0.95) 100%
  );
  pointer-events: none;
  transition: background 0.4s ease;
}

.philosophy-card:hover .phil-card-scrim {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.0) 30%,
    rgba(12, 12, 16, 0.58) 68%,
    rgba(12, 12, 16, 0.92) 100%
  );
}

/* Default Bottom Bar (Reference Image 2: Title + Circular Right Arrow) */
.phil-card-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2.2rem 1.25rem 1.35rem 1.35rem;
  z-index: 6;
  gap: 12px;
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.phil-card-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.05rem, 1.22vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.01em;
}

/* Circular Arrow Badge (Reference Image 2: Light Gray Circle, Black Arrow) */
.phil-arrow-badge {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  color: #1A1A1A;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.phil-arrow-svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Little slide of arrow on hover before panel covers */
.philosophy-card:hover .phil-arrow-badge {
  transform: translateX(4px);
}

.philosophy-card:hover .phil-card-bottom-bar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.25s ease;
}

/* Sliding Hover Content Panel (Reference Image 1: White Bottom Card, Content + Down-Right Arrow) */
.phil-card-hover-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  padding: 0.95rem 1.15rem 0.85rem;
  border-radius: 0 0 20px 20px;
  min-height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
  z-index: 10;
  transform: translateY(102%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* On hover: smooth slide-up to reveal contents */
.philosophy-card:hover .phil-card-hover-panel {
  transform: translateY(0%);
  pointer-events: auto;
}

.phil-hover-desc {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.82rem, 0.91vw, 0.89rem);
  font-weight: 500;
  line-height: 1.4;
  color: #1A1A1A;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

/* Arrow badge inside the sliding hover panel (Reference Image 1: Diagonal Down-Right Arrow) */
.phil-hover-arrow-badge {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1A1A;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  margin-top: 0.15rem;
}

/* Arrow little slide on hover */
.philosophy-card:hover .phil-hover-arrow-badge {
  transform: translate(-2px, -2px);
}

/* Mobile & Tablet Responsiveness for Cards */
@media (max-width: 900px) {
  .about-philosophy-section {
    padding: 1.5rem 0.5rem;
  }

  .philosophy-track-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 1.5rem 0.5rem 2.5rem;
    scrollbar-width: none;
  }

  .philosophy-track-viewport::-webkit-scrollbar {
    display: none;
  }

  .philosophy-cards-track {
    justify-content: flex-start;
    width: max-content;
    padding: 0 1rem;
    gap: 16px;
  }

  .philosophy-card {
    scroll-snap-align: center;
    width: 245px;
    height: 350px;
    opacity: 1 !important;
    transform: none !important;
  }

  .philosophy-card.phil-card-1,
  .philosophy-card.phil-card-2,
  .philosophy-card.phil-card-3,
  .philosophy-card.phil-card-4 {
    --step-y: 0px;
  }
}

/* ==========================================================================
   ABOUT PAGE NAVBAR INTEGRATION (Matching Home Page Navbar Function & Appearance)
   ========================================================================== */
body.is-about-page .site-header,
body.is-contact-page .site-header,
body.is-treatments-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

body.is-about-page .site-header:not(.scrolled),
body.is-contact-page .site-header:not(.scrolled),
body.is-treatments-page .site-header:not(.scrolled) {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.is-about-page .site-header:not(.scrolled) .brand-sub-white,
body.is-contact-page .site-header:not(.scrolled) .brand-sub-white,
body.is-treatments-page .site-header:not(.scrolled) .brand-sub-white,
body.is-what-is-tmd-page .site-header:not(.scrolled) .brand-sub-white {
  color: #1A1A1A;
}

body.is-about-page .site-header:not(.scrolled) .nav-link-item,
body.is-contact-page .site-header:not(.scrolled) .nav-link-item,
body.is-treatments-page .site-header:not(.scrolled) .nav-link-item,
body.is-what-is-tmd-page .site-header:not(.scrolled) .nav-link-item {
  color: #222222;
}

body.is-about-page .site-header:not(.scrolled) .nav-link-item.active,
body.is-contact-page .site-header:not(.scrolled) .nav-link-item.active,
body.is-treatments-page .site-header:not(.scrolled) .nav-link-item.active,
body.is-what-is-tmd-page .site-header:not(.scrolled) .nav-link-item.active {
  color: #EDAA12;
}

body.is-about-page .site-header:not(.scrolled) .nav-link-item:hover,
body.is-contact-page .site-header:not(.scrolled) .nav-link-item:hover,
body.is-treatments-page .site-header:not(.scrolled) .nav-link-item:hover,
body.is-what-is-tmd-page .site-header:not(.scrolled) .nav-link-item:hover {
  color: #EDAA12;
}

body.is-about-page .site-header:not(.scrolled) .mobile-nav-toggle,
body.is-contact-page .site-header:not(.scrolled) .mobile-nav-toggle,
body.is-treatments-page .site-header:not(.scrolled) .mobile-nav-toggle,
body.is-what-is-tmd-page .site-header:not(.scrolled) .mobile-nav-toggle {
  color: #1A1A1A;
}

body.is-about-page .site-header.scrolled,
body.is-contact-page .site-header.scrolled,
body.is-treatments-page .site-header.scrolled,
body.is-what-is-tmd-page .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.95rem 0;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.is-about-page .site-header.scrolled .brand-sub-white,
body.is-contact-page .site-header.scrolled .brand-sub-white,
body.is-treatments-page .site-header.scrolled .brand-sub-white,
body.is-what-is-tmd-page .site-header.scrolled .brand-sub-white {
  color: #1A1A1A;
}

body.is-about-page .site-header.scrolled .nav-link-item,
body.is-contact-page .site-header.scrolled .nav-link-item,
body.is-treatments-page .site-header.scrolled .nav-link-item,
body.is-what-is-tmd-page .site-header.scrolled .nav-link-item {
  color: #222222;
}

body.is-about-page .site-header.scrolled .nav-link-item.active,
body.is-contact-page .site-header.scrolled .nav-link-item.active,
body.is-treatments-page .site-header.scrolled .nav-link-item.active,
body.is-what-is-tmd-page .site-header.scrolled .nav-link-item.active {
  color: #EDAA12;
}

body.is-about-page .site-header.scrolled .nav-link-item:hover,
body.is-contact-page .site-header.scrolled .nav-link-item:hover,
body.is-treatments-page .site-header.scrolled .nav-link-item:hover,
body.is-what-is-tmd-page .site-header.scrolled .nav-link-item:hover {
  color: #EDAA12;
}

body.is-about-page .site-header.scrolled .mobile-nav-toggle,
body.is-contact-page .site-header.scrolled .mobile-nav-toggle,
body.is-treatments-page .site-header.scrolled .mobile-nav-toggle,
body.is-what-is-tmd-page .site-header.scrolled .mobile-nav-toggle {
  color: #1A1A1A;
}

body.is-about-page .site-header.nav-hidden,
body.is-contact-page .site-header.nav-hidden,
body.is-treatments-page .site-header.nav-hidden {
  transform: translateY(-100%);
}

.nav-btn-gold:hover,
#navConsultBtn:hover {
  background: #DC8B0B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(238, 157, 26, 0.45) !important;
}

/* ==========================================================================
   TREATMENTS PAGE (treatment.html / treatments.html)
   Exact UI from uploaded reference design
   ========================================================================== */
body.is-treatments-page {
  background-color: #F6F5F1;
  color: #1A1A1A;
}

.treatments-content-wrapper {
  position: relative;
  z-index: 10;
  padding-bottom: 90px;
}

.treatments-preview-banner {
  max-width: 280px;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.treatments-preview-banner img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Treatments Stacked Card Interactive Showcase (Matching Video Recording)
   ========================================================================== */
.treatments-showcase-section {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background-color: #F6F5F1;
  color: #1E3524;
  overflow: hidden;
}

/* Hero Intro Overlay (Grand First Screen Title & Subtitle - Centered like About page) */
.treatments-hero-intro {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px clamp(1.25rem, 4vw, 3rem) 3rem;
  box-sizing: border-box;
  z-index: 15;
  pointer-events: none;
  will-change: transform, opacity;
}

.treatments-hero-intro .treatments-hero-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3.2rem, 6.2vw, 5.2rem);
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: none !important;
}

.treatments-hero-intro .treatments-hero-sub {
  font-family: var(--font-body), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.96rem, 1.2vw, 1.14rem);
  font-weight: 400;
  color: #555555;
  line-height: 1.6;
  max-width: 960px;
  width: auto;
  white-space: nowrap;
  margin: clamp(14px, 2.2vh, 24px) auto 0;
  text-align: center;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: none !important;
}

@media (max-width: 768px) {
  .treatments-hero-intro .treatments-hero-sub {
    white-space: normal;
    max-width: 92%;
  }
}

/* Architectural Vertical Grid Guide Lines (Removed for seamless view) */
.editorial-grid-lines {
  display: none !important;
}

.treatments-showcase-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.treatments-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  width: 100%;
  gap: clamp(2rem, 4.5vw, 5rem);
  padding: 1.5rem 0;
  box-sizing: border-box;
}

/* Left Column: Cards Deck */
.showcase-visual-col {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-cards-deck {
  position: relative;
  width: 100%;
  height: clamp(400px, 68vh, 580px);
  border-radius: clamp(26px, 3.5vw, 42px);
  overflow: hidden;
  background-color: #E5E2DA;
  box-shadow: 0 28px 70px -15px rgba(22, 38, 24, 0.16), 0 10px 30px -8px rgba(0, 0, 0, 0.06);
  will-change: transform;
}

.showcase-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background-color: #E5E2DA;
  will-change: transform;
}

.showcase-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

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

.showcase-card-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1E3524;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Vertical Dots Navigation with Smooth Gliding Capsule Pill (Matching Video) */
.showcase-vertical-nav {
  position: absolute;
  left: clamp(20px, 2.5vw, 32px);
  top: 35%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dot:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

.nav-dot.active {
  width: 7px;
  height: 26px;
  border-radius: 999px;
  background: #FFFFFF;
}

/* Right Column: Dynamic Text & Action */
.showcase-info-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-info-sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: clamp(320px, 48vh, 430px);
  gap: 0.85rem;
  box-sizing: border-box;
  padding: 0.5rem 0;
}

.showcase-info-top {
  display: flex;
  flex-direction: column;
}

.showcase-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.showcase-counter .curr-num {
  font-family: var(--font-serif, Georgia, 'Times New Roman', serif);
  font-size: clamp(3.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #B8860B 0%, #E5C158 30%, #FFF3B3 50%, #D4AF37 70%, #996515 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.showcase-counter .total-num {
  font-family: var(--font-sans, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 600;
  color: #8C8C8C;
  line-height: 1;
  letter-spacing: 0.02em;
}

.showcase-title-area {
  position: relative;
  width: 100%;
  margin-bottom: 0.85rem;
}

.showcase-title {
  display: none;
  width: 100%;
  margin: 0;
  font-family: var(--font-sans, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: #333333;
  letter-spacing: -0.025em;
}

.showcase-title.active {
  display: block;
  animation: showcaseTextFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.showcase-btn-wrap {
  margin-top: 0.25rem;
}

.showcase-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px;
  border: 1.5px solid rgba(30, 53, 36, 0.35);
  border-radius: 999px;
  color: #1E3524;
  background: transparent;
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-pill-btn svg {
  transition: transform 0.3s ease;
}

.showcase-pill-btn:hover {
  background-color: #1E3524;
  color: #FFFFFF;
  border-color: #1E3524;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 53, 36, 0.2);
}

.showcase-pill-btn:hover svg {
  transform: translateX(3px);
}

.showcase-desc-area {
  position: relative;
  width: 100%;
  margin-top: 0.65rem;
}

.showcase-desc {
  display: none;
  width: 100%;
  max-width: 580px;
  margin: 0;
  font-family: var(--font-sans, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.8;
  color: #555555;
}

.showcase-desc.active {
  display: block;
  animation: showcaseTextFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes showcaseTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .treatments-showcase-section {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .treatments-hero-intro {
    position: relative;
    top: auto;
    left: auto;
    padding-top: 100px;
    margin-bottom: 2rem;
  }

  .treatments-showcase-container {
    height: auto;
    padding-bottom: 4rem;
  }

  .treatments-showcase-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.25rem;
    padding: 2.5rem 0 3.5rem;
  }

  .showcase-cards-deck {
    aspect-ratio: 16 / 12;
    max-height: 420px;
  }

  .showcase-title-area {
    margin-bottom: 0.85rem;
  }

  .showcase-desc-area {
    margin-top: 0.5rem;
  }
}

.treatments-process-section {
  position: relative;
  width: 100%;
  background-color: #F6F5F1;
  box-sizing: border-box;
  z-index: 4;
}

.process-scroll-track {
  position: relative;
  width: 100%;
  height: 195vh; /* Fluid scroll progression seamlessly transitioning into Section 3 */
}

.process-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.process-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

/* Stepper Column */
.process-stepper-col {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  padding-left: 0;
}

/* Animated Stepper Path Track & Dynamic Line */
.process-path-track {
  position: absolute;
  width: 2px;
  background: #E2E8F0;
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

.process-path-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #111827 0%, #D4AF37 100%);
  border-radius: 2px;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Glowing leading tip on the path line */
.process-path-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 10px #D4AF37, 0 0 16px rgba(212, 175, 55, 0.6);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.process-timeline-line {
  display: none;
}

.process-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.05rem 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-dot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background-color: #F6F5F1;
  border-radius: 50%;
  z-index: 2;
}

.step-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #CBD5E1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step-item.passed .step-dot {
  background-color: #111827;
  width: 11px;
  height: 11px;
}

.process-step-item.active .step-dot {
  width: 22px;
  height: 22px;
  background-color: #FFFFFF;
  border: 2.5px solid #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
  position: relative;
}

.process-step-item.active .step-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #D4AF37;
  animation: pulseGoldDot 2s infinite ease-in-out;
}

@keyframes pulseGoldDot {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.35); }
}

.step-num {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  min-width: 28px;
}

.process-step-item.active .step-num {
  color: #111827;
  font-weight: 700;
}

.step-label {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.22rem, 1.5vw, 1.48rem);
  font-weight: 500;
  color: #64748B;
  letter-spacing: -0.015em;
  transition: all 0.25s ease;
}

.process-step-item:hover .step-label {
  color: #1E293B;
}

.process-step-item.active .step-label {
  color: #0F172A;
  font-weight: 700;
}

/* Visual Card Column */
.process-display-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.process-visual-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  background-color: #111111;
}

/* Animated Image Coming Slide Transition (From Left Side) */
.process-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-65px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.55s;
  overflow: hidden;
}

.process-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.process-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateX(-40px) scale(1.08);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-slide.active .process-slide-img {
  transform: translateX(0) scale(1.02);
}

.process-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.92) 100%);
  color: #FFFFFF;
}

.process-slide-counter,
.process-slide-title,
.process-slide-desc {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-slide.active .process-slide-counter {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.12s;
}

.process-slide.active .process-slide-title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.process-slide.active .process-slide-desc {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.28s;
}

.process-slide-counter {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #E2E8F0;
  margin-bottom: 0.45rem;
}

.process-slide-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 0.65rem 0;
  letter-spacing: -0.02em;
}

.process-slide-desc {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.90);
  margin: 0;
  max-width: 440px;
}

@media (max-width: 900px) {
  .process-scroll-track {
    height: auto;
  }

  .process-sticky-stage {
    position: relative;
    height: auto;
    padding: 3.5rem 0;
  }

  .process-grid-container {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .process-visual-card {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .process-stepper-col {
    padding-left: 0;
  }
}

/* ==========================================================================
   Section 3: Treatment Timeline Journey (Clear steps. No surprises.)
   ========================================================================== */
.treatment-journey-section {
  position: relative;
  width: 100%;
  padding: clamp(5.5rem, 8vw, 8.5rem) 0 clamp(4rem, 6vw, 6.5rem);
  background-color: #F6F5F1;
  box-sizing: border-box;
  z-index: 4;
}

.treatment-journey-header {
  text-align: center;
  margin-bottom: clamp(4.5rem, 6.5vw, 6rem);
}

.journey-heading {
  font-family: var(--font-body), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.treatment-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 3rem;
  row-gap: 3rem;
  position: relative;
}

.journey-step-col {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Timeline Marker Row */
.journey-marker-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  height: 52px;
}

.journey-circle-badge {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.6px solid #1E293B;
  background-color: #F6F5F1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body), 'Plus Jakarta Sans', monospace, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  color: #1E293B;
  letter-spacing: -0.02em;
  z-index: 3;
  flex-shrink: 0;
  box-shadow: 0 0 0 7px #F6F5F1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.journey-step-col:hover .journey-circle-badge {
  transform: scale(1.05);
  border-color: #0F172A;
}

.journey-badge-dot {
  position: absolute;
  top: -1px;
  right: 4px;
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background-color: #E5A93C;
  box-shadow: 0 0 0 2px #F6F5F1;
}

/* Connecting lines bridging between columns (Removed for borderless seamless view) */
.journey-connector-line,
.journey-connector-stub {
  display: none !important;
}

/* Content Area */
.journey-step-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journey-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-right: 0.25rem;
}

.journey-meta-label {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8E867E;
}

.journey-meta-clock {
  color: #8E867E;
  opacity: 0.85;
  flex-shrink: 0;
}

.journey-step-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 1.65vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin: 0 0 0.95rem 0;
}

.journey-step-desc {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.62;
  color: #4B5563;
  margin: 0;
}

.journey-step-subtext {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
  color: #6B7280;
  margin: 1.25rem 0 0 0;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .treatment-journey-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.75rem;
    row-gap: 3.5rem;
  }
}

@media (max-width: 640px) {
  .treatment-journey-section {
    padding: 3rem 0 2.5rem;
  }

  .treatment-journey-header {
    margin-bottom: 2.25rem;
  }

  .treatment-journey-grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }
}

/* ==========================================================================
   Treatments Footer Top CTA Banner (Exact User Reference Design)
   ========================================================================== */
/* ==========================================================================
   Treatments Footer Front Minimal CTA Card (Exact User Reference Design)
   ========================================================================== */
.treatments-cta-section {
  position: relative;
  width: 100%;
  padding: 3.5rem 0 0;
  margin-bottom: -110px;
  background-color: transparent;
  box-sizing: border-box;
  z-index: 25;
  pointer-events: none;
}

.treatments-cta-card {
  pointer-events: auto;
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  /* Frosted Glassmorphism matching reference image */
  background: rgba(255, 255, 255, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 60%, rgba(255, 255, 255, 0.68) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: 32px;
  padding: clamp(2.8rem, 4vw, 3.8rem) clamp(1.5rem, 3.5vw, 3rem) clamp(2.6rem, 3.8vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.22),
    0 8px 18px -4px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px 0 #ffffff,
    inset 0 -1px 2px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.treatments-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 32px 65px -12px rgba(0, 0, 0, 0.28),
    0 14px 28px -5px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px 0 #ffffff;
}


.treatments-cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.treatments-cta-heading {
  font-family: var(--font-body), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem 0;
}

.treatments-cta-sub {
  font-family: var(--font-sans), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  font-weight: 400;
  line-height: 1.65;
  color: #555555;
  max-width: 580px;
  margin: 0 auto 1.85rem auto;
}

.treatments-cta-action {
  display: flex;
  justify-content: center;
}

.treatments-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1E1E1E;
  color: #EBA818;
  font-family: var(--font-sans), 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 14px 38px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.treatments-cta-btn:hover {
  background-color: #111111;
  color: #FFC436;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* Site footer top padding to accommodate the overlapping CTA card */
.site-footer {
  padding-top: clamp(145px, 14vw, 175px) !important;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .treatments-cta-section {
    margin-bottom: -85px;
    padding-top: 2rem;
  }

  .treatments-cta-card {
    border-radius: 24px;
    padding: 2.25rem 1.25rem;
    margin: 0 1rem;
  }

  .treatments-cta-heading {
    font-size: 1.45rem;
  }


  .treatments-cta-btn {
    padding: 13px 30px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 290px;
  }

  .site-footer {
    padding-top: 130px !important;
  }
}

/* ==========================================================================
   What is TMD Page (what-is-tmd.html) Styles
   ========================================================================== */
body.is-what-is-tmd-page {
  background-color: #F6F5F1;
  color: #111827;
  overflow-x: hidden;
}

.tmd-page-wrapper {
  position: relative;
  width: 100%;
  background-color: #F6F5F1;
  padding-bottom: 5rem;
}

.tmd-content-wrapper {
  background-color: #F6F5F1;
}

/* 2. The Busiest Joint You Own */
.tmd-joint-section {
  padding: 2.5rem 0 4.5rem;
}

.tmd-joint-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.tmd-section-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}

.tmd-joint-text {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.02rem, 1.15vw, 1.12rem);
  font-weight: 400;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.25rem;
}

/* Anatomy Card */
.tmj-anatomy-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 2rem 2.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.anatomy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 1rem;
}

.anatomy-label {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
}

.anatomy-tag {
  background: #FFF8E7;
  color: #D4AF37;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.anatomy-diagram-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.anatomy-caption {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: #94A3B8;
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
}

/* 3. Why the jaw is such a good disguise artist */
.tmd-disguise-section {
  padding: 2rem 0 4.5rem;
}

.tmd-disguise-container {
  background: #FFFFFF;
  border-radius: 32px;
  padding: clamp(2.5rem, 4vw, 4rem);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tmd-disguise-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.75rem auto;
}

.tmd-disguise-subtitle {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4B5563;
  margin-top: 0.75rem;
}

.tmd-symptoms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tmd-symptom-card {
  background: #76777B;
  border-radius: 20px;
  padding: 1.75rem 1.65rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tmd-symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.symptom-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8FAFC;
  margin-bottom: 1.25rem;
}

.symptom-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.symptom-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
}

.symptom-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #FFFFFF;
}

.tmd-insight-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #F1F5F9;
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  color: #475569;
}

.insight-icon {
  color: #D4AF37;
  flex-shrink: 0;
}

/* 4. The Usual Reasons (8 Cards) */
.tmd-reasons-section {
  padding: 3rem 0 4.5rem;
}

.tmd-reasons-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3rem auto;
}

.tmd-reasons-subtitle {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #64748B;
  margin-top: 0.75rem;
}

.tmd-reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tmd-reason-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tmd-reason-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.reason-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.reason-num {
  font-family: var(--font-body), 'Plus Jakarta Sans', monospace, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

.reason-icon {
  color: #64748B;
  width: 20px;
  height: 20px;
}

.reason-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.reason-desc {
  font-size: 0.90rem;
  line-height: 1.55;
  color: #4B5563;
}

/* 5. When to Seek Care (Checklist + Consultation Card) */
.tmd-when-section {
  padding: 4rem 0 4.5rem;
  scroll-margin-top: 100px;
}

.tmd-when-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.tmd-when-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: stretch;
}

.tmd-when-col-left {
  display: flex;
  flex-direction: column;
}

.tmd-when-col-right {
  display: flex;
  flex-direction: column;
}

.when-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.when-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.when-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #64748B;
  margin-bottom: 0;
}

.when-checklist {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.when-check-pill {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.98rem;
  font-weight: 500;
  color: #1E293B;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.when-check-pill:hover {
  transform: translateX(4px);
  border-color: rgba(212, 175, 55, 0.3);
}

.check-pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #FFF8E7;
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Consultation Box */
.tmd-consult-card {
  background: #FDF9F2;
  border-radius: 28px;
  padding: 2.25rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.consult-includes-header {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #B45309;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.consult-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.consult-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #374151;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D4AF37;
  flex-shrink: 0;
  margin-top: 7px;
}

.consult-action-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  margin-top: auto;
}

.consult-action-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.85rem;
}

.consult-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #111827;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.consult-action-btn:hover {
  background: #D4AF37;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
}

/* 6. Questions patients ask (FAQ Accordion) */
.tmd-faq-section {
  padding: 3rem 0 5rem;
}

.tmd-faq-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3rem auto;
}

.faq-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.tmd-faq-title {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.tmd-faq-subtitle {
  font-size: 1.05rem;
  color: #64748B;
}

.tmd-faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tmd-faq-item {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tmd-faq-item.active {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.tmd-faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.65rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1.25rem;
  outline: none;
}

.faq-q-text {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: -0.01em;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.tmd-faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: #FFF8E7;
  color: #D4AF37;
}

.tmd-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  padding: 0 1.65rem;
}

.tmd-faq-item.active .tmd-faq-answer {
  max-height: 320px;
  opacity: 1;
  padding: 0 1.65rem 1.5rem 1.65rem;
}

.faq-a-text {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #475569;
  border-top: 1px solid #F1F5F9;
  padding-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .tmd-symptoms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tmd-reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tmd-when-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tmd-joint-grid {
    grid-template-columns: 1fr;
  }
  .tmd-symptoms-grid {
    grid-template-columns: 1fr;
  }
  .tmd-reasons-grid {
    grid-template-columns: 1fr;
  }
}
