/*
Theme Name: drshikha
Theme URI: https://drshikhaaggarwal.com
Author: Debangshu Baul
Author URI: https://drshikhaaggarwal.com
Description: Ultra-modern, premium Swiss-minimalist WordPress theme built for Dr. Shikha Aggarwal (MBBS, MD-Dermatology), a renowned Skin Specialist & Dermatologist in Ludhiana. Features clean editorial typography, grid border layouts, and a spacious high-contrast visual system.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drshikha
*/

/* ==========================================================================
   1. Swiss Minimalist Design System & CSS Custom Properties
   ========================================================================== */
:root {
  /* Color Palette - Premium Alabaster and Charcoal Luxury */
  --color-bg-light: #faf9f6;     /* Warm alabaster off-white */
  --color-bg-card: #ffffff;      /* Pure Crisp White */
  --color-primary: #111111;      /* Crisp rich charcoal black */
  --color-primary-light: #222222;/* Dark grey */
  --color-accent: #bda07b;       /* Warm Champagne Gold for cosmetology details */
  --color-accent-hover: #a88d67; /* Deepened Champagne Gold */
  --color-secondary: #3c5448;    /* Premium Clinical Laurel Green */
  --color-tertiary: #c8968b;     /* Cosmetology Rose Gold */
  --color-taupe: #7e7568;        /* Muted Warm Taupe */
  --color-border: #e6e4df;       /* Soft linen border line */
  --color-border-dark: #111111;  /* Dark border matching primary */
  --color-accent-light: #f7f3ed; /* Pale Champagne tint for pill backgrounds */
  --color-text-dark: #111111;    /* Crisp charcoal for headings / key dark text */
  --color-text-body: #4b5563;    /* Soft slate grey body text (matches screenshot) */
  --color-text-muted: #6b7280;   /* Muted Slate Grey for footnotes and labels */
  --color-text-light: #ffffff;

  /* Typography */
  --font-headings: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 3.5rem;

  /* Border Radii (Elegant, rounded aesthetic from photos) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700; /* High-impact bold weight matching screenshot */
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.035em; /* Clean geometric tracking for clean headings */
}

p {
  color: var(--color-text-body);
  font-size: 0.95rem; /* ~15px, elegant and highly readable */
  line-height: 1.65;  /* Spacious and airy body copy */
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   3. Utility & Layout Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.section:last-of-type {
  border-bottom: none;
}

.section-bg-alt {
  background-color: var(--color-bg-card);
}

.section-bg-dark {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  border-bottom: none;
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: var(--color-bg-light);
}

.section-title-wrapper {
  position: relative;
  text-align: left;
  max-width: 800px;
  margin-bottom: 5rem;
  z-index: 2; /* keep content above absolute watermark background */
}

.section-bg-watermark {
  position: absolute;
  top: -3.25rem; /* pull up behind title */
  left: -0.25rem;
  font-family: var(--font-headings);
  font-size: 8rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(107, 78, 71, 0.065); /* soft faded rose-gold overlay (increased prominence) */
  z-index: -1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.section-title-wrapper.center .section-bg-watermark {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--color-secondary);
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.04em;
}

.section-title span {
  font-weight: 300;
  color: var(--color-secondary);
}

.section-title-wrapper.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Screen reader text accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   4. Buttons & CTAs (Minimalist editorial style)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border-dark);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
}

.btn-teal {
  background-color: var(--color-secondary);
  color: var(--color-bg-light);
  border: 1px solid var(--color-secondary);
}

.btn-teal:hover {
  background-color: transparent;
  color: var(--color-secondary);
}

.btn-dark {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
}

.btn-icon {
  margin-left: 0.75rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(6px);
}

/* ==========================================================================
   5. Site Header & Navigation
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background-color: transparent; /* Fully transparent initially */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  height: 70px;
  background-color: rgba(252, 252, 250, 0.95); /* Frosted alabaster on scroll */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px !important; /* Expanded to allow menu items to breathe on desktop */
}

.site-branding {
  position: relative;
  width: 200px; /* Reduced from 300px to allow more space for navigation items */
  height: 100%;
}

.site-logo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.site-logo {
  max-height: 150px;
  width: auto;
  display: block;
  position: absolute;
  top: -22px;
  left: 0;
  z-index: 1010;
  transition: max-height var(--transition-normal), top var(--transition-normal), transform var(--transition-fast);
}

.site-header.scrolled .site-logo {
  max-height: 110px;
  top: -15px;
}

.site-logo-link:hover .site-logo {
  transform: scale(1.02);
}

.site-navigation-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Reduced from 1.75rem to prevent cramping */
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.25rem; /* Muted from 1.5rem for better distribution */
}

.main-navigation a {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-primary);
}

/* --- Sub Menu / Dropdown Navigation --- */
.main-navigation li {
  position: relative;
}

.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  min-width: 200px;
  padding: 1rem 0;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(12, 43, 32, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1005;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.main-navigation .menu-item-has-children:hover .dropdown-caret {
  transform: rotate(180deg);
}

.main-navigation .sub-menu li {
  width: 100%;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 0.65rem 1.5rem;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
  text-transform: uppercase;
  transition: all var(--transition-fast);
  text-align: left;
}

.main-navigation .sub-menu a:hover {
  background-color: var(--color-bg-light);
  color: var(--color-secondary);
  padding-left: 1.75rem;
}

.header-contact-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-phone-link {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-phone-link svg {
  color: var(--color-secondary);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 1.5px;
  background-color: var(--color-primary);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   6. Front Page Components
   ========================================================================== */

/* --- Hero Section --- */
/* --- Centered Hero Section with Framing Side Slideshows --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 12px); /* Spacing reduced by half */
  padding-bottom: 2.5rem; /* Reduced by half (originally 5rem) */
  overflow: hidden;
  background-color: var(--color-bg-light); /* Off-white background for box contrast */
}


/* Side Slideshows (Almost Square / Editorial Cards) */
.hero-side-slideshow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  margin-top: -10px; /* Shifted higher by 10px (lowered from -30px by 20px) */
  width: 388px; /* Reduced by 10% (originally 432px) */
  height: 410px; /* Reduced by 10% (originally 456px) */
  border-radius: 24px; /* Soft elegant rounded corners */
  overflow: hidden;
  z-index: 3; /* Floating above the centered translucent box */
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 45px rgba(12, 43, 32, 0.05);
  transition: box-shadow var(--transition-normal), opacity 0.2s ease-out; /* Removed transform to prevent scroll lag */
}

.hero-side-slideshow:hover {
  box-shadow: 0 30px 65px rgba(12, 43, 32, 0.12);
}

.hero-side-slideshow.left-side {
  left: calc(50% - 748px); /* Shifted inward by 20px (originally 768px) */
  border-radius: 0 24px 24px 0; /* Sharp corners on the outer left side */
}

.hero-side-slideshow.right-side {
  right: calc(50% - 748px);
  border-radius: 24px 0 0 24px; /* Sharp corners on the outer right side */
}

.hero-side-slideshow .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-side-slideshow .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-side-slideshow:hover .hero-slide img {
  transform: scale(1.04);
}

@keyframes floatLeft {
  0% { transform: translateY(-50%) translateY(0); }
  100% { transform: translateY(-50%) translateY(-10px); }
}

@keyframes floatRight {
  0% { transform: translateY(-50%) translateY(-10px); }
  100% { transform: translateY(-50%) translateY(0); }
}

/* Left side: Doctor slideshow timings (4 slides, 24s loop, 6s per slide) */
.left-side .hero-slide {
  animation: heroLeftFade 24s infinite;
}
.left-side .hero-slide:nth-child(1) { animation-delay: 0s; }
.left-side .hero-slide:nth-child(2) { animation-delay: 6s; }
.left-side .hero-slide:nth-child(3) { animation-delay: 12s; }
.left-side .hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroLeftFade {
  0% {
    opacity: 0;
  }
  8.3% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  33.3% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Right side: Patient results slideshow timings (9 slides, 54s loop, 6s per slide) */
.right-side .hero-slide {
  animation: heroRightFade 54s infinite;
}
.right-side .hero-slide:nth-child(1) { animation-delay: 0s; }
.right-side .hero-slide:nth-child(2) { animation-delay: 6s; }
.right-side .hero-slide:nth-child(3) { animation-delay: 12s; }
.right-side .hero-slide:nth-child(4) { animation-delay: 18s; }
.right-side .hero-slide:nth-child(5) { animation-delay: 24s; }
.right-side .hero-slide:nth-child(6) { animation-delay: 30s; }
.right-side .hero-slide:nth-child(7) { animation-delay: 36s; }
.right-side .hero-slide:nth-child(8) { animation-delay: 42s; }
.right-side .hero-slide:nth-child(9) { animation-delay: 48s; }

@keyframes heroRightFade {
  0% {
    opacity: 0;
  }
  3.7% {
    opacity: 1;
  }
  11.1% {
    opacity: 1;
  }
  14.8% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Disable full-screen overlay */
.hero-overlay {
  display: none;
}

/* Clean, transparent Centered Content Box */
.hero-centered-content {
  position: relative;
  z-index: 2; /* Layered below the overlapping slideshows (z-index 3) */
  width: 100%;
  max-width: 792px; /* Wider by 10% (originally 720px) */
  margin: 20px auto 0 auto; /* Shifted lower by 20px */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  padding: 2rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Base state for bloom animation (starts invisible and blurred) */
.hero-centered-content .hero-qualifications,
.hero-centered-content .hero-title,
.hero-centered-content .hero-tagline,
.hero-centered-content .hero-desc,
.hero-centered-content .hero-ctas {
  opacity: 0;
  filter: blur(12px) brightness(1.6);
  transform: translateY(15px) scale(0.98);
  will-change: transform, opacity, filter;
}

/* Blooming active keyframe transitions when parent has .revealed class */
.hero-centered-content .scroll-reveal.revealed .hero-qualifications {
  animation: heroTextBloom 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

.hero-centered-content .scroll-reveal.revealed .hero-title {
  animation: heroTextBloom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.hero-centered-content .scroll-reveal.revealed .hero-tagline {
  animation: heroTextBloom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.45s;
}

.hero-centered-content .scroll-reveal.revealed .hero-desc {
  animation: heroTextBloom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

.hero-centered-content .scroll-reveal.revealed .hero-ctas {
  animation: heroTextBloom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.75s;
}

@keyframes heroTextBloom {
  0% {
    opacity: 0;
    filter: blur(12px) brightness(1.6);
    transform: translateY(15px) scale(0.98);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: translateY(0) scale(1);
  }
}

.hero-centered-content .hero-qualifications {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  display: inline-flex;
  gap: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(12, 43, 32, 0.12); /* Subtle green-tint border */
  padding: 0.6rem 2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 15px rgba(12, 43, 32, 0.02);
}

.hero-centered-content .hero-qualifications span {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-centered-content .hero-qualifications span:not(:last-child)::after {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  position: absolute;
  right: -1rem;
}

.hero-centered-content .hero-title {
  font-size: 5rem;
  line-height: 1.05;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-centered-content .hero-title span {
  font-weight: 400;
  color: var(--color-secondary);
}

.hero-centered-content .hero-title span .title-period {
  color: var(--color-accent); /* Golden Period accent */
  font-weight: 700;
}

.hero-centered-content .hero-tagline {
  font-family: var(--font-headings);
  font-size: 1.45rem; /* Slightly larger for visual presence */
  font-style: italic;
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em; /* Elegant spacing */
}

.hero-centered-content .hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0 auto 3rem auto;
  max-width: 580px; /* Narrower width to create premium gutters from side panels */
}

.hero-centered-content .hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(12, 43, 32, 0.3);
  padding: 0.85rem 2.25rem;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}


/* Responsiveness overrides for side framing layout */
@media (max-width: 1300px) {
  .hero-side-slideshow {
    display: none;
  }
  .hero-centered-content {
    padding: 3rem 1.5rem;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero-centered-content {
    padding: 2.5rem 1.5rem;
    margin-top: 0;
    border-radius: 18px;
    width: calc(100% - 2rem);
  }
  .hero-centered-content .hero-title {
    font-size: 3rem;
  }
  .hero-centered-content .hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

/* --- Stats Banner (Minimalist Luxury Row) --- */
.stats-banner-section {
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
}

.stats-banner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: left;
}

.stat-banner-item {
  border-right: 1px solid var(--color-border);
  padding: 3rem 2rem;
  transition: all var(--transition-fast);
}

.stat-banner-item:last-child {
  border-right: none;
}

.stat-banner-item:hover {
  background-color: var(--color-bg-light);
}

.stat-banner-number {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-accent); /* Elegant gold */
  margin-bottom: 0.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-banner-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-secondary); /* Clinical laurel green */
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 992px) {
  .stats-banner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-banner-item:nth-child(3) {
    border-right: none;
  }
  .stat-banner-item:nth-child(n+4) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 768px) {
  .stats-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-banner-item:nth-child(even) {
    border-right: none;
  }
  .stat-banner-item:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
  }
  .stat-banner-item {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-banner-grid {
    grid-template-columns: 1fr;
  }
  .stat-banner-item {
    border-right: none;
    border-top: 1px solid var(--color-border);
  }
  .stat-banner-item:first-child {
    border-top: none;
  }
}

/* --- Aesthetics Better Section (Minimalist Overhaul) --- */
.aesthetics-better-section {
  padding: 4rem 0;
  background-color: var(--color-bg-light);
}

.aesthetics-section-title {
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
}

.aesthetics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  overflow: hidden; /* Clips elements so they are completely invisible initially */
  padding: 10px 10px 40px 10px;
  margin: -10px -10px 0 -10px;
}

.aesthetics-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Science-Backed Cards Roll-Up/Slide-Up Animation (Triggers via aesthetics-grid reveal) */
.aesthetics-better-section .aesthetics-col {
  opacity: 1 !important; /* Force fully opaque initial state (no fading) */
  transform: translateY(150%); /* Pushed completely down out of sight */
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1); /* 10% slower, smoother transition */
  will-change: transform;
}

.aesthetics-better-section .aesthetics-grid.revealed .aesthetics-col {
  opacity: 1 !important;
  transform: translateY(0); /* Slid up into place simultaneously */
}

.aesthetics-img-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.aesthetics-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.aesthetics-col:hover .aesthetics-img-wrapper img {
  transform: scale(1.04);
}

.aesthetics-badge {
  display: inline-block;
  background-color: #faf0e6; /* Soft gold/beige badge background */
  color: #8a5d3b;           /* Warm gold/brown text */
  font-family: var(--font-headings);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.aesthetics-col-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.aesthetics-col-desc {
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--color-text-body);
}

@media (max-width: 992px) {
  .aesthetics-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .aesthetics-section-title {
    font-size: 2.75rem;
    margin-bottom: 3rem;
  }
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: flex-start;
}

.about-image-column {
  position: relative;
}

.about-image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.about-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
}

.about-experience-badge {
  display: none; /* remove colorful badge */
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.75;
}

.about-bio-para {
  margin-bottom: 2rem;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2.5rem;
}

.bookmark-card-wrapper {
  position: relative;
  overflow: visible;
  opacity: 0;
  transform: translateY(-50px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.1s ease-out, transform 0.1s ease-out, clip-path 0.1s ease-out;
}

.highlight-item-card {
  position: relative;
  overflow: visible;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast);
}


/* Bookmark Ribbon Styling */
.bookmark-ribbon {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 20px;
  height: 38px;
  background-color: var(--color-accent); /* Champagne Gold ribbon */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  transition: transform var(--transition-normal), background-color var(--transition-fast);
  z-index: 5;
}

.bookmark-eyelet {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-bg-card);
}

.highlight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.highlight-icon-wrapper {
  background-color: var(--color-accent-light);
  color: var(--color-secondary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.highlight-card-num {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-tertiary);
  letter-spacing: 0.05em;
}

.highlight-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.highlight-card-title {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.highlight-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* About Read More Drawer */
.about-hidden-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.about-hidden-content.open {
  max-height: 800px;
  margin-top: 2rem;
}

/* --- Services Section (Asymmetric Category Banners) --- */
.services-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

/* Normal Stacked List Layout */
.services-normal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4rem;
}

@media (max-width: 992px) {
  .services-normal-list {
    gap: 0;
  }
}

.category-banner-item + .category-banner-item {
  margin-top: -5.25rem;
}

.category-banner-item {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: visible;
  transition: transform var(--transition-normal);
}

.category-banner-item:nth-child(odd) {
  transform: translateX(-110px);
}

.category-banner-item:nth-child(even) {
  transform: translateX(110px);
}

.banner-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(62% - 40px);
  height: 560px;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.banner-image-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 26, 26, 0.2), transparent);
  z-index: 2;
}

/* Alternate image alignment */
.category-banner-item:nth-child(even) .banner-image-bg {
  left: auto;
  right: 0;
}

.category-banner-item:nth-child(even) .banner-image-bg::after {
  background: linear-gradient(to left, rgba(26, 26, 26, 0.2), transparent);
}

.banner-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-slow);
}

.category-banner-item:hover .banner-image-bg img {
  transform: scale(1.03);
}

.banner-overlay-card {
  position: absolute;
  top: 280px;
  right: 0;
  transform: translateY(-50%);
  width: 52%;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
  z-index: 3;
  /* Dual-border accent detailing using accent and tertiary colors */
  border-top: 4px solid var(--color-accent);       /* Champagne Gold */
  border-right: 4px solid var(--color-tertiary);   /* Rose Gold */
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Alternate content alignment */
.category-banner-item:nth-child(even) .banner-overlay-card {
  right: auto;
  left: 0;
  border-right: none;
  border-left: 4px solid var(--color-tertiary);
}

.category-banner-item:hover .banner-overlay-card {
  transform: translateY(-53%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.banner-card-badge {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary); /* Clinical Laurel Green */
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
}

.banner-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.banner-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
}

.banner-floating-links {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 140px;
  z-index: 5;
}

.category-banner-item:nth-child(odd) .banner-floating-links {
  right: -160px;
}

.category-banner-item:nth-child(even) .banner-floating-links {
  left: -160px;
  align-items: flex-end;
  text-align: right;
}

.banner-floating-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.4;
  opacity: 0.6;
}

.banner-floating-link:hover {
  color: var(--color-secondary);
  opacity: 1;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  border: 1px solid var(--color-primary);
  padding: 0.85rem 2.25rem;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.banner-btn:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.banner-pills-row {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  transform: none;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 10;
  width: auto;
}

.banner-pill {
  display: inline-block;
  background-color: var(--color-bg-card);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 0.7rem 1.625rem;
  font-family: var(--font-headings);
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.banner-pill:hover {
  background-color: var(--color-secondary); /* Clinical Laurel Green active state */
  color: var(--color-bg-light);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(60, 84, 72, 0.15);
}

@media (max-width: 992px) {
  .category-banner-item {
    height: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 5rem;
  }
  .banner-image-bg {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .banner-image-bg img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .banner-overlay-card,
  .category-banner-item:nth-child(even) .banner-overlay-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-right: none;
    border-left: none;
    border-top: 4px solid var(--color-accent);
    border-bottom: 4px solid var(--color-tertiary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    padding: 3rem 2rem;
  }
  .category-banner-item:hover .banner-overlay-card {
    transform: none;
  }
  .banner-pills-row {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    margin-top: 0;
    width: auto;
    gap: 0.5rem;
    padding: 0;
  }
  .banner-pill {
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
  }
}

/* --- Advanced Technology Suites Section --- */
.tech-suites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.tech-suite-card {
  display: flex;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12, 43, 32, 0.02);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.tech-suite-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(12, 43, 32, 0.05);
  border-color: rgba(12, 43, 32, 0.15);
}

.tech-suite-image {
  position: relative;
  width: 42%;
  min-width: 160px;
  overflow: hidden;
}

.tech-suite-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tech-suite-card:hover .tech-suite-image img {
  transform: scale(1.04);
}

.tech-spec-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary);
  font-family: var(--font-headings);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tech-suite-content {
  width: 58%;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-suite-category {
  font-family: var(--font-headings);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.tech-suite-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.tech-suite-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-body);
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .tech-suites-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .tech-suite-card {
    flex-direction: column;
  }
  .tech-suite-image {
    width: 100%;
    height: 200px;
  }
  .tech-suite-content {
    width: 100%;
    padding: 1.75rem;
  }
}


/* --- Video Showcase Gallery Section --- */
.video-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.video-tab-btn {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 0.65rem 1.75rem;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.video-tab-btn:hover,
.video-tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(12, 43, 32, 0.1);
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.video-gallery-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.01);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-gallery-card.show {
  opacity: 1;
  transform: scale(1);
}

.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect */
  height: 0;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-thumbnail-wrapper:hover img {
  transform: scale(1.03);
}

.video-play-trigger {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(12, 43, 32, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.video-thumbnail-wrapper:hover .video-play-trigger {
  background-color: rgba(12, 43, 32, 0.35);
}

.play-icon-ring {
  width: 54px;
  height: 54px;
  background-color: #ffffff;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.video-thumbnail-wrapper:hover .play-icon-ring {
  transform: scale(1.08);
  background-color: var(--color-secondary);
  color: #ffffff;
}

.video-thumbnail-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-meta-tag {
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.video-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .video-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .video-gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Features Section (Fluid Asymmetric morphing Overhaul) --- */
.why-choose-fluid-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.why-choose-fluid-row:last-child {
  margin-bottom: 0;
}

.why-choose-card-wrapper {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--card-bg, var(--color-bg-card));
  color: var(--card-text, var(--color-text-dark));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  height: 270px; /* strict height to completely stop vertical resizing */
  width: 32%; /* default base width percentage */
  flex: 0 0 32%;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

/* Offset defaults to create a modern asymmetric layout on load */
.why-choose-fluid-row:nth-child(1) .why-choose-card-wrapper:nth-child(1) { width: 35%; flex: 0 0 35%; }
.why-choose-fluid-row:nth-child(1) .why-choose-card-wrapper:nth-child(2) { width: 28%; flex: 0 0 28%; }
.why-choose-fluid-row:nth-child(1) .why-choose-card-wrapper:nth-child(3) { width: 33%; flex: 0 0 33%; }
.why-choose-fluid-row:nth-child(2) .why-choose-card-wrapper:nth-child(1) { width: 31%; flex: 0 0 31%; }
.why-choose-fluid-row:nth-child(2) .why-choose-card-wrapper:nth-child(2) { width: 36%; flex: 0 0 36%; }
.why-choose-fluid-row:nth-child(2) .why-choose-card-wrapper:nth-child(3) { width: 29%; flex: 0 0 29%; }

/* Hover morph state */
.why-choose-fluid-row:hover .why-choose-card-wrapper {
  width: 22%; /* shrink siblings to make room */
  flex: 0 0 22% !important;
}

.why-choose-fluid-row .why-choose-card-wrapper:hover {
  width: 52%; /* expand active card */
  flex: 0 0 52% !important;
  border-color: var(--color-accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

.why-choose-text-card {
  width: 320px; /* strict width to prevent any line wrapping or resizing */
  flex-shrink: 0; /* text card stays exactly 320px wide */
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-choose-text-card span.card-num {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--card-num-color, var(--color-secondary));
  margin-bottom: 1.25rem;
  display: block;
}

.why-choose-text-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: inherit;
}

.why-choose-text-card p {
  font-size: 0.95rem;
  line-height: 1.625;
  color: inherit;
  opacity: 0.85;
}

/* Image reveal side column */
.why-choose-image-col {
  width: 0;
  opacity: 0;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease-out;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.why-choose-card-wrapper:hover .why-choose-image-col {
  width: calc(100% - 320px); /* dynamically expand image to fill remainder of card */
  opacity: 1;
}

.why-choose-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specific Card Color Definitions matching palettes */
.why-choose-card-wrapper.color-laurel {
  --card-bg: #eef3f0;
  --card-text: #2b3d33;
  --card-num-color: var(--color-secondary);
}
.why-choose-card-wrapper.color-white {
  --card-bg: #ffffff;
  --card-text: #1a1a1a;
  --card-num-color: var(--color-accent);
}
.why-choose-card-wrapper.color-champagne {
  --card-bg: #f8f4ed;
  --card-text: #594c3c;
  --card-num-color: var(--color-accent);
}
.why-choose-card-wrapper.color-rose {
  --card-bg: #faf1ee;
  --card-text: #664b44;
  --card-num-color: var(--color-tertiary);
}
.why-choose-card-wrapper.color-taupe {
  --card-bg: #f5f2ed;
  --card-text: #484139;
  --card-num-color: var(--color-accent);
}
.why-choose-card-wrapper.color-dark {
  --card-bg: #1a1a1a;
  --card-text: #ffffff;
  --card-num-color: var(--color-accent);
  border-color: #2b2b2b;
}

@media (max-width: 992px) {
  .why-choose-fluid-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .why-choose-card-wrapper,
  .why-choose-fluid-row:hover .why-choose-card-wrapper,
  .why-choose-fluid-row .why-choose-card-wrapper:hover {
    flex: none !important;
    width: 100%;
    height: auto !important; /* dynamic height for mobile wrapping */
  }
  .why-choose-text-card {
    width: 100% !important;
    flex-shrink: 1 !important;
    padding: 2.25rem 1.75rem;
  }
  .why-choose-image-col {
    display: none !important;
  }
}

/* --- Testimonials Section (Clean Editorial) --- */
.testimonials-section {
  background-color: var(--color-bg-light);
}

.testimonials-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-slider {
  display: flex;
  transition: transform var(--transition-normal);
}

.testimonial-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity var(--transition-normal);
  box-sizing: border-box;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-card {
  padding: 2rem 0;
  text-align: center;
}

.testimonial-card::before {
  display: none; /* remove large quote mark */
}

.testimonial-rating {
  color: var(--color-tertiary);
  margin-bottom: 2rem;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin: 0 1px;
}

.testimonial-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.testimonial-author-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author-avatar {
  display: none; /* remove circles */
}

.testimonial-author-name {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.testimonial-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.testimonial-disclaimer {
  display: none; /* handled in global footer */
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all var(--transition-fast);
  z-index: 10;
}

.slider-nav-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  border-color: var(--color-primary);
}

.slider-nav-btn.prev {
  left: -4rem;
}

.slider-nav-btn.next {
  right: -4rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
}

.slider-dot {
  width: 16px;
  height: 2px;
  background-color: var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-primary);
  width: 32px;
}

/* --- Gallery Marquee (Infinite Scroll) --- */
.gallery-marquee-outer {
  width: 100%;
  overflow: hidden;
  /* Edge fade masks */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

.gallery-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: galleryMarquee 48s linear infinite;
}

.gallery-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes galleryMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-marquee-card {
  flex: 0 0 500px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(12, 43, 32, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-marquee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(12, 43, 32, 0.1);
}

.gallery-marquee-card .before-after-container {
  height: 300px;
}

/* --- Transformations Gallery / Interactive Grid Layout (kept for backward compat) --- */
.gallery-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid-item {
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(12, 43, 32, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-sizing: border-box;
}

.gallery-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(12, 43, 32, 0.08);
}

.gallery-grid-item .before-after-container {
  height: 290px;
}

.before-after-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  user-select: none;
  container-type: inline-size;
}

.before-after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.before-after-image img {
  width: 100cqw;
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-after-image.before-image {
  overflow: hidden;
  z-index: 2;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.before-after-container .label {
  position: absolute;
  top: 1.5rem;
  padding: 0.45rem 1rem;
  font-family: var(--font-headings);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  background: rgba(252, 252, 250, 0.85); /* glass container light */
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.before-after-container .before-label {
  left: 1.5rem;
}

.before-after-container .after-label {
  right: 1.5rem;
}

.before-after-handle {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px; /* thin, clean divider */
  background-color: var(--color-accent);
  z-index: 5;
  pointer-events: none;
  transform: translateX(-50%);
}

.before-after-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background-color: var(--color-bg-light);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(12, 43, 32, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23bf9b6f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='8 17 3 12 8 7'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover highlights for split slider knob */
.before-after-container:hover .before-after-handle::after {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 10px rgba(191, 155, 111, 0.4), 0 6px 20px rgba(12, 43, 32, 0.2);
}

.before-after-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}

.gallery-slide-info {
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 1.85rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-slide-info h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.gallery-slide-info p {
  color: var(--color-secondary);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  font-weight: 500;
}

/* Luxury outline capsule pill for session counts */
.gallery-slide-info .session-badge {
  display: inline-block;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-headings);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  background-color: transparent;
}

.carousel-nav-btn {
  position: absolute;
  top: 250px; /* precisely centered relative to 500px image height (excludes bottom text block) */
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(12, 43, 32, 0.06);
}

.carousel-nav-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(12, 43, 32, 0.12);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn.prev {
  left: -2.6rem;
}

.carousel-nav-btn.next {
  right: -2.6rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--color-accent);
  width: 24px;
  border-radius: 9999px;
}

/* --- Contact & Booking --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
}

.contact-info-card {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
}

.contact-info-header h3 {
  color: var(--color-bg-light);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact-info-header p {
  color: var(--color-text-muted);
  margin-bottom: 4rem;
  font-size: 0.95rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-detail-item {
  display: flex;
  gap: 1.5rem;
}

.contact-detail-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-detail-content h4 {
  color: var(--color-bg-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-detail-content p,
.contact-detail-content a {
  color: rgba(252, 252, 250, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.booking-form-wrapper {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  transition: border-color var(--transition-fast);
}

.form-group:focus-within {
  border-color: var(--color-secondary);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0;
  background-color: transparent;
  font-size: 1rem;
  color: var(--color-primary);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* Booking Form Status Alerts */
.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 2rem;
  font-size: 0.9rem;
  display: none;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ==========================================================================
   7. Page & Single Post Templates (Clean Typography)
   ========================================================================== */
.page-header {
  padding: 10rem 0 5rem 0;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  color: var(--color-primary);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.page-breadcrumbs {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.page-content-wrapper {
  padding: 7rem 0;
}

.page-content-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 6rem;
}

.page-content-grid.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 740px;
  margin: 0 auto;
}

.rich-text {
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--color-text-dark);
}

.rich-text p {
  margin-bottom: 2rem;
}

.rich-text h2 {
  font-size: 2rem;
  margin: 3.5rem 0 1.5rem 0;
}

.rich-text h3 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.25rem 0;
}

.rich-text ul, .rich-text ol {
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.rich-text ul {
  list-style-type: square;
}

.rich-text li {
  margin-bottom: 0.75rem;
}

/* Blog Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.widget {
  border-top: 1px solid var(--color-primary);
  padding-top: 2rem;
}

.widget-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Post Loops */
.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.post-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  background-color: var(--color-accent-light);
  overflow: hidden;
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card-title {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.post-card-excerpt {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* ==========================================================================
   8. Site Footer (Editorial Layout)
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  padding: 4rem 0 2rem 0;
  border-top: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-text {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-bg-light);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.footer-logo-text span {
  color: var(--color-secondary);
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 350px;
}

.footer-social-links {
  display: flex;
  gap: 1.5rem;
}

.footer-social-link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--color-bg-light);
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-bg-light);
  margin-bottom: 2.5rem;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-menu-item a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-menu-item a:hover {
  color: var(--color-bg-light);
}

.footer-timings-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-timing-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.925rem;
  color: var(--color-text-muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.footer-timing-item span:first-child {
  font-weight: 500;
  color: var(--color-bg-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 3rem;
}

.footer-bottom-links a:hover {
  color: var(--color-bg-light);
}

.footer-credits a {
  color: var(--color-bg-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-credits a:hover {
  color: var(--color-secondary);
}

/* ==========================================================================
   9. Responsive Design & Media Queries
   ========================================================================== */

@media (max-width: 1200px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-grid {
    gap: 4rem;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-item:nth-child(3) {
    border-right: none;
  }
  .slider-nav-btn.prev {
    left: -2rem;
  }
  .slider-nav-btn.next {
    right: -2rem;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 6rem;
  }
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-qualifications {
    font-size: 1rem;
  }
  .hero-image-column {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
  .about-image-column {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .about-image-card img {
    height: 400px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .services-grid .service-card:last-child {
    grid-column: span 2;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .tech-media-column {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-title {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
  .section-subtitle {
    font-size: 0.725rem;
    letter-spacing: 0.08em;
  }
  .hero-centered-content .hero-title {
    font-size: 2.75rem;
  }
  .about-highlights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
  .hero-centered-content .hero-qualifications {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    align-items: center;
  }
  .hero-centered-content .hero-qualifications span::after {
    display: none !important;
  }
  .hero-centered-content .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .hero-centered-content .hero-ctas .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding: 3rem 1.5rem;
  }
  .stat-item:nth-child(even) {
    border-right: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .services-grid .service-card {
    min-height: auto;
  }
  .before-after-container {
    height: 340px;
  }
  .carousel-nav-btn {
    display: none;
  }
  .gallery-slide-info {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .booking-form-wrapper {
    padding: 3rem 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .slider-nav-btn {
    display: none; /* remove arrows on smaller mobile to avoid layout clipping */
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-text {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   10. Services Mega Menu Custom Styles
   ========================================================================== */
.services-mega-menu {
  position: relative;
}

.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 700px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
  text-align: left;
}

.services-mega-menu:hover .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-categories {
  border-right: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.mega-menu-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.mega-menu-cat-item svg {
  width: 10px;
  height: 10px;
  opacity: 0.5;
  transition: transform var(--transition-fast);
}

.mega-menu-cat-item:hover,
.mega-menu-cat-item.active {
  color: var(--color-primary);
  background-color: var(--color-bg-card);
  border-left-color: var(--color-primary);
}

.mega-menu-cat-item.active svg {
  transform: translateX(4px);
  opacity: 1;
}

.mega-menu-panes {
  padding: 2rem;
  height: 400px;
  overflow-y: auto;
}

.mega-menu-pane {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.mega-menu-pane.active {
  display: flex;
}

.mega-menu-pane a {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
  display: block;
}

.mega-menu-pane a:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}

/* Mobile responsive menu overrides (Activated at max-width 1150px to prevent desktop layout clipping/overlaps) */
@media (max-width: 1150px) {
  .site-branding {
    width: 140px !important;
    height: auto !important;
  }
  .site-logo {
    max-height: 52px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }

  /* Mobile sub-menu adjustments */
  .main-navigation .sub-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 1px solid var(--color-border) !important;
    padding: 0.5rem 0 0.5rem 1.25rem !important;
    margin-top: 0.75rem !important;
    margin-left: 0.25rem !important;
    min-width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    background-color: transparent !important;
  }
  
  .main-navigation .sub-menu a {
    padding: 0.4rem 0 !important;
    font-size: 0.9rem !important;
    color: var(--color-text-muted) !important;
  }
  
  .main-navigation .sub-menu a:hover {
    padding-left: 0.5rem !important;
    color: var(--color-primary) !important;
  }
  
  .main-navigation .dropdown-caret {
    display: none !important;
  }
  
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-card);
    transition: left var(--transition-normal);
    z-index: 999;
    padding: 4rem 2rem;
    border-top: 1px solid var(--color-border);
  }
  
  .main-navigation.open {
    left: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }
  
  .main-navigation a {
    font-size: 1.15rem;
  }
  
  .header-contact-cta {
    display: none;
  }

  /* Fixed scroll positioning transition for mobile navigation */
  .site-header.scrolled .main-navigation {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  /* Mobile Mega Menu custom overrides */
  .mega-menu-wrapper {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height var(--transition-normal);
    background-color: transparent;
  }
  
  .services-mega-menu.active .mega-menu-wrapper {
    max-height: 1200px;
    padding-top: 1rem;
  }
  
  .mega-menu-categories {
    border-right: none;
    background-color: transparent;
    padding: 0;
    gap: 0.5rem;
  }
  
  .mega-menu-cat-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    border-left: none;
  }
  
  .mega-menu-cat-item svg {
    transform: rotate(90deg);
  }
  
  .mega-menu-cat-item.active svg {
    transform: rotate(270deg);
  }
  
  .mega-menu-panes {
    padding: 1rem 0;
    height: auto;
    overflow-y: visible;
  }
  
  .mega-menu-pane {
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
  }

  /* Services Carousel Mobile Overrides */
  .services-scroll-container {
    height: auto;
  }
  
  .services-carousel-layout {
    position: relative;
    top: auto;
    height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-carousel-nav {
    flex-direction: row;
    align-items: center;
    position: relative;
    top: auto;
    width: 100%;
    gap: 1rem;
  }
  
  .carousel-scroll-arrow {
    display: none;
  }
  
  .services-nav-list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    padding-left: 0 !important; /* remove timeline left-offset on mobile */
  }
  
  .services-nav-list::before {
    display: none !important; /* hide timeline vertical track on mobile */
  }
  
  .services-nav-list::-webkit-scrollbar {
    display: none;
  }
  
  .services-nav-tab {
    border-left: none !important;
    border-bottom: 2px solid var(--color-border);
    padding: 0.5rem 1rem;
    width: auto;
    flex-shrink: 0;
    min-width: 130px;
    align-items: center;
    text-align: center;
    transform: none !important; /* remove translateX on hover/active mobile */
  }
  
  .services-nav-tab::before,
  .services-nav-tab::after {
    display: none !important; /* hide timeline nodes and underlines on mobile */
  }
  
  .services-nav-tab.active {
    border-bottom-color: var(--color-secondary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background-color: var(--color-bg-card);
    transform: none !important;
  }
  
  .services-carousel-viewport {
    height: auto;
    min-height: auto;
  }
  
  .services-carousel-slide {
    position: relative !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    margin-bottom: 5rem;
  }

  .services-carousel-slide:last-child {
    margin-bottom: 0;
  }
}

/* --- Scroll Reveal Animations (Reversible Visibility Toggles) --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.reveal-left {
  transform: translateX(-40px);
}
.scroll-reveal.reveal-left.revealed {
  transform: translateX(0);
}

.scroll-reveal.reveal-right {
  transform: translateX(40px);
}
.scroll-reveal.reveal-right.revealed {
  transform: translateX(0);
}

.scroll-reveal.delay-1 {
  transition-delay: 0.13s;
}
.scroll-reveal.delay-2 {
  transition-delay: 0.26s;
}
.scroll-reveal.delay-3 {
  transition-delay: 0.38s;
}

/* Fix for Why Choose Cards hover transition when combined with scroll-reveal */
.why-choose-fluid-row .why-choose-card-wrapper.scroll-reveal {
  transition: opacity 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              flex var(--transition-normal), 
              width var(--transition-normal) !important;
}

/* --- Redesigned Doctor Profile Dossier Page Layout --- */
.dossier-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.dossier-hero-image-wrapper {
  position: relative;
}

.dossier-hero-image-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 45px rgba(12, 43, 32, 0.08);
}

.dossier-hero-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.dossier-hero-image-card::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
}

.dossier-profile-grid {
  align-items: center;
}

.dossier-profile-image-col {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 15px 35px rgba(12, 43, 32, 0.05);
}

.dossier-profile-image-col img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.pathway-step-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.pathway-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 15px 30px rgba(12, 43, 32, 0.05);
}

.pathway-image-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Clinical Concerns Directory Marquee format */
.directory-marquee-wrapper {
  margin-top: 4rem;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.directory-marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: scrollMarquee 40s linear infinite;
  will-change: transform;
}

.directory-marquee-wrapper:hover .directory-marquee-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

.directory-grid-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(12, 43, 32, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  flex: 0 0 380px;
}

.directory-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(12, 43, 32, 0.08);
}

.directory-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.directory-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-card-content {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.directory-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.directory-card-index {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.directory-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
}

.directory-card-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.directory-card-solutions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

/* Infrastructure Gallery Section styling */
.infrastructure-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.gallery-photo-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 15px 35px rgba(12, 43, 32, 0.05);
  position: relative;
}

.gallery-photo-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-photo-item:hover img {
  transform: scale(1.04);
}

.gallery-photo-caption {
  padding: 1.25rem 1.5rem;
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}

.gallery-photo-caption h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.gallery-photo-caption p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: 0;
}

/* responsive overrides for dossier pages */
@media (max-width: 992px) {
  .dossier-hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .dossier-hero-image-column {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .pathway-step-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .infrastructure-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .infrastructure-gallery-grid .gallery-photo-item:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {

  .infrastructure-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .infrastructure-gallery-grid .gallery-photo-item:last-child {
    grid-column: span 1;
  }
}



/* --- Map Location Section --- */
.map-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(12, 43, 32, 0.05);
  border: 1px solid var(--color-border);
}

.map-container iframe {
  display: block;
}

.map-overlay-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 380px;
  z-index: 5;
}

.map-overlay-card h4 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.map-overlay-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .map-overlay-card {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: 100%;
    border-radius: 0 0 12px 12px;
    border: none;
    border-top: 1px solid var(--color-border);
  }
  
  .map-container iframe {
    border-radius: 12px 12px 0 0 !important;
  }
}

/* ==========================================================================
   SERVICE PAGE SPECIFIC STYLES (Dynamic Template)
   ========================================================================== */

/* 1. Dark Premium Hero */
.service-detail-hero.dark-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 6rem);
  padding-bottom: 5rem;
  background: #ECE7CF;
  color: var(--color-primary);
  overflow: hidden;
}

.service-detail-hero.dark-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.hero-bg-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0,0,0,0.01) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0,0,0,0.01) 0%, transparent 50%);
  pointer-events: none;
}

.dark-breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.dark-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.dark-breadcrumbs a:hover {
  color: var(--color-secondary);
}

.service-detail-hero .service-detail-category {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.service-detail-hero .service-detail-title {
  font-size: 3.5rem;
  font-weight: 500;
  color: #ffffff; /* Only the main heading is white */
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.service-detail-hero .service-detail-tagline {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 700px;
  margin: 0 auto;
}

/* 2. Grid & Specs Card */
.service-detail-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 6rem;
  align-items: flex-start;
}

.service-specs-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.specs-title {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  border-bottom: 1.5px solid var(--color-primary);
  padding-bottom: 0.75rem;
  color: var(--color-primary);
}

.service-spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  font-size: 0.95rem;
  gap: 1rem;
}

.service-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-spec-row:first-child {
  padding-top: 0;
}

.service-spec-label {
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-spec-val {
  color: var(--color-text-muted);
  text-align: right;
}

/* 3. Right Column Content */
.service-copy-content {
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--color-text-dark);
}

.service-copy-title {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.service-benefits-title {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-benefits-list {
  margin: 1.5rem 0 2.5rem;
  padding-left: 0;
  list-style-type: none;
  display: grid;
  gap: 1rem;
}

.service-benefit-item {
  position: relative;
  padding-left: 2.25rem;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  padding: 1.25rem 1.25rem 1.25rem 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.service-benefit-item::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
}

.service-tech-stack {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.service-tech-title {
  font-family: var(--font-headings);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-right: 0.5rem;
}

.service-tech-tag {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all var(--transition-fast);
}

.service-tech-tag:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* 4. FAQ Section */
.service-faq-section {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-faq-container {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.service-faq-item {
  border-bottom: 1px solid var(--color-border);
}

.service-faq-header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.service-faq-header h3 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.service-faq-header:hover h3 {
  color: var(--color-secondary);
}

.service-faq-arrow {
  transition: transform var(--transition-fast);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.service-faq-item.active .service-faq-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.service-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0;
}

.service-faq-item.active .service-faq-content {
  max-height: 500px; /* Safe upper limit for transition */
  padding-bottom: 2rem;
}

.service-faq-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 992px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .service-specs-box {
    max-width: 100%;
    position: relative;
    top: 0;
  }
}

/* 5. Header override for service, gallery, and new subpages */
body.page-template-template-service-php .site-header,
body.page-template-template-service .site-header,
body.page-template-template-clinic-gallery-php .site-header,
body.page-template-template-clinic-gallery .site-header,
body.page-template-template-results-gallery-php .site-header,
body.page-template-template-results-gallery .site-header,
body.page-template-template-offers-php .site-header,
body.page-template-template-offers .site-header,
body.page-template-template-blog-php .site-header,
body.page-template-template-blog .site-header,
body.page-template-template-contact-php .site-header,
body.page-template-template-contact .site-header,
body.page-template-template-technologies-php .site-header,
body.page-template-template-technologies .site-header,
body.page-template-template-reviews-php .site-header,
body.page-template-template-reviews .site-header {
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   GALLERY PAGES LAYOUT & LIGHTBOX
   ========================================================================== */

/* Gallery Hero (matches standard editorial subpages rather than service pages) */
.gallery-hero-section {
  padding-top: calc(var(--header-height) + 4.5rem);
  padding-bottom: 4.5rem;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.gallery-hero-section .page-breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.gallery-hero-section .page-breadcrumbs a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.gallery-hero-section .page-breadcrumbs a:hover {
  color: var(--color-primary);
}

.gallery-hero-section .gallery-category-label {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.gallery-hero-section .gallery-hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.gallery-hero-section .gallery-hero-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text-body);
  max-width: 700px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1.5rem 0;
}

.gallery-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12, 43, 32, 0.02);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(12, 43, 32, 0.06);
  border-color: var(--color-accent);
}

.gallery-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-image-wrapper img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 43, 32, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 300;
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform var(--transition-fast);
}

.gallery-card:hover .gallery-zoom-icon {
  transform: scale(1);
}

.gallery-card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-content h3 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.gallery-card-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Results Badge & Card variations */
.result-card {
  /* Soft glass effect matching clinical results card container */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.result-card .gallery-image-wrapper {
  height: 280px; /* slightly taller for B/A crops */
}

.result-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  background-color: var(--color-accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* Lightbox Modal CSS */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.96);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10010;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-accent);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 4rem;
  font-family: Arial, sans-serif;
  cursor: pointer;
  padding: 2rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  z-index: 10005;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-accent);
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-4px) scale(1.05);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(4px) scale(1.05);
}

.lightbox-content-wrapper {
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10002;
}

.lightbox-content-wrapper img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  background-color: #111;
}

.lightbox-caption {
  margin-top: 1.5rem;
  text-align: center;
  color: #ffffff;
  max-width: 600px;
}

.lightbox-caption h3 {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.lightbox-caption p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsive details */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 2.5rem;
    padding: 1rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
  }
  .lightbox-content-wrapper {
    max-width: 90%;
  }
}

