/* ==========================================================================
   HERO / 3D DASHBOARD COMPONENT
   ========================================================================== */
.hero-dashboard {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  perspective: 1000px;
}

.dashboard-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-8deg);
  transition: transform var(--transition-slow);
}

.hero-dashboard:hover .dashboard-wrapper {
  transform: rotateX(2deg) rotateY(-2deg);
}

/* Main Dashboard Card */
.db-main-card {
  position: relative;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  transform: translateZ(0);
}

.db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.db-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-status {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(0, 208, 132, 0.1);
  color: var(--color-glow-emerald);
  border: 1px solid rgba(0, 208, 132, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.db-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-glow-emerald);
  animation: pulse-glow 1.5s infinite;
}

/* Dashboard Metrics Grid */
.db-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.db-metric-box {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
}

.db-metric-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.db-metric-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.db-metric-change {
  font-size: 0.7rem;
  margin-top: 2px;
}

.change-up { color: #008f5d; } /* Darker green for light mode */
.change-down { color: #d32f2f; } /* Darker red for light mode */

/* Dashboard Chart Container */
.db-chart-container {
  flex-grow: 1;
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  min-height: 160px;
}

.db-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.db-chart-line {
  fill: none;
  stroke: url(#chart-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}

.db-chart-area {
  fill: url(#area-gradient);
}

/* Valuation Estimator Inside Hero */
.valuation-tool {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: auto;
}

.valuation-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.valuation-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.val-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(11, 45, 91, 0.1);
  outline: none;
}

.val-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-gold-premium);
  cursor: pointer;
  box-shadow: var(--glow-shadow-gold);
  transition: transform 0.1s;
}

.val-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.valuation-output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.val-output-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.val-output-num {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold-premium);
  text-shadow: 0 0 10px rgba(201, 163, 77, 0.3);
}

/* Floating Dashboard Cards */
.db-float-card {
  position: absolute;
  background: var(--color-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--card-shadow);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.db-float-1 {
  top: -30px;
  right: -20px;
  animation-delay: 0s;
  transform: translateZ(40px);
}

.db-float-2 {
  bottom: 80px;
  left: -40px;
  animation-delay: 1.5s;
  transform: translateZ(60px);
}

.db-float-3 {
  bottom: -20px;
  right: 40px;
  animation-delay: 0.7s;
  transform: translateZ(50px);
}

/* ==========================================================================
   TRUST / CLIENT CAROUSEL
   ========================================================================== */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-brand-navy) 30%, var(--color-royal-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.logo-ticker-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
  display: flex;
}

.logo-ticker-container::before,
.logo-ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-ticker-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.logo-ticker-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.logo-ticker {
  display: flex;
  gap: 60px;
  animation: ticker-slide 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: var(--font-headings);
}

.ticker-item i {
  margin-right: 8px;
  color: var(--color-gold-premium);
}

.ticker-item:hover {
  opacity: 0.9;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   ABOUT & TIMELINE COMPONENTS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
}

.about-img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(21, 62, 122, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.about-img {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Process Timeline (How We Create Impact) */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-brand-navy) 0%, var(--color-gold-premium) 50%, var(--color-glow-emerald) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content-wrapper {
  width: 50%;
  padding: 0 40px;
  position: relative;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-brand-navy);
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(11, 45, 91, 0.1);
  transition: all var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--color-royal-blue);
  box-shadow: 0 4px 10px rgba(11, 45, 91, 0.1);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.4);
  background: var(--color-brand-navy);
  border-color: var(--color-brand-navy);
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--card-shadow);
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: 0 15px 40px rgba(11, 45, 91, 0.12);
}

.timeline-step {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-premium);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-item:nth-child(even) .timeline-step {
  color: var(--color-glow-electric);
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   SERVICES GRID & DYNAMIC PAGE COMPONENT
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-brand-navy);
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--color-brand-navy);
  color: var(--color-white);
  border-color: var(--color-brand-navy);
  box-shadow: 0 4px 12px rgba(11, 45, 91, 0.2);
}

.service-card-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin-bottom: 24px;
}

.service-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-card-link i {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link i {
  transform: translateX(4px);
  color: var(--color-gold-premium);
}

/* ==========================================================================
   FINANCIAL HEALTH ASSESSMENT COMPONENT
   ========================================================================== */
.assessment-widget {
  max-width: 800px;
  margin: 0 auto;
}

.assessment-header {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assessment-progress-container {
  width: 200px;
  height: 6px;
  background: rgba(11, 45, 91, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.assessment-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-brand-navy) 0%, var(--color-royal-blue) 100%);
  transition: width var(--transition-normal);
}

.assessment-q-step {
  display: none;
}

.assessment-q-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.assessment-question {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.assessment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.assessment-option {
  background: var(--color-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
}

.assessment-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-royal-blue);
}

.assessment-option.selected {
  background: rgba(21, 62, 122, 0.2);
  border-color: var(--color-glow-electric);
  box-shadow: var(--glow-shadow-blue);
}

.option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.assessment-option.selected .option-radio {
  border-color: var(--color-glow-electric);
}

.assessment-option.selected .option-radio::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-glow-electric);
}

.assessment-nav {
  display: flex;
  justify-content: space-between;
}

/* Assessment Results */
.assessment-results {
  display: none;
  animation: fadeIn 0.8s ease;
}

.assessment-results.active {
  display: block;
}

.results-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  align-items: center;
}

.results-gauge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gauge-svg-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-bg-circle {
  fill: none;
  stroke: rgba(11, 45, 91, 0.1);
  stroke-width: 12;
}

.gauge-fill-circle {
  fill: none;
  stroke: url(#gauge-gradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 565; /* 2 * PI * r (r = 90) */
  stroke-dashoffset: 565;
  transition: stroke-dashoffset var(--transition-slow);
}

.gauge-score-txt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-num {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.gauge-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.results-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
}

.status-badge-high {
  background: rgba(0, 208, 132, 0.1);
  color: var(--color-glow-emerald);
  border: 1px solid rgba(0, 208, 132, 0.2);
}

.status-badge-mod {
  background: rgba(201, 163, 77, 0.1);
  color: var(--color-gold-premium);
  border: 1px solid rgba(201, 163, 77, 0.2);
}

.status-badge-crit {
  background: rgba(255, 77, 77, 0.1);
  color: #FF4D4D;
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.results-title {
  font-size: 1.6rem;
}

.results-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.results-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* ==========================================================================
   TESTIMONIALS SLIDER COMPONENT
   ========================================================================== */
.cfo-testimonial-section {
  display: flex;
  width: 100%;
  background: var(--color-brand-navy);
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.cfo-testimonial-left {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  background: #f8f9fc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 480px;
}

.cfo-testimonial-right {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-brand-navy);
  color: #ffffff;
}

@media (max-width: 991px) {
  .cfo-testimonial-section {
    flex-direction: column;
  }
  .cfo-testimonial-left,
  .cfo-testimonial-right {
    flex: 1 1 100%;
    width: 100%;
  }
  .cfo-testimonial-right {
    padding: 40px 24px;
  }
}

/* Images */
.cfo-slider-images {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfo-img-wrapper {
  position: absolute;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  opacity: 0;
  z-index: 1;
  transform: scale(0.8);
}

.cfo-img-wrapper.active {
  width: 260px;
  height: 320px;
  z-index: 3;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.cfo-img-wrapper.prev {
  width: 200px;
  height: 250px;
  z-index: 2;
  opacity: 0.5;
  transform: translateX(-160px) scale(0.9);
}

.cfo-img-wrapper.next {
  width: 200px;
  height: 250px;
  z-index: 2;
  opacity: 0.5;
  transform: translateX(160px) scale(0.9);
}


.cfo-img-wrapper .google-review-badge {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-align: center;
  box-sizing: border-box;
  padding: 20px;
}

.cfo-img-wrapper.active .google-review-badge {
  padding-bottom: 106px; /* Offset the active banner and stars height */
}

.cfo-img-wrapper .stars {
  position: absolute;
  bottom: 20px; /* Position at the bottom of the white card for side cards */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  margin-top: 0;
  white-space: nowrap;
  transition: all 0.4s ease;
  z-index: 4;
}

.cfo-img-wrapper.active .stars {
  bottom: 98px; /* Override to sit exactly above the active info banner */
}

.client-logo-svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0px;
  width: 100%;
  height: 64px;
  transition: transform var(--transition-normal);
  background: transparent;
}

.client-logo-svg-container img {
  max-height: 64px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: none;
}

.cfo-img-wrapper:hover .client-logo-svg-container {
  transform: scale(1.05);
}

.cfo-img-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-brand-navy);
  color: white;
  text-align: center;
  padding: 12px 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translateY(10px);
}

.cfo-img-wrapper.active .cfo-img-info {
  opacity: 1;
  transform: translateY(0);
}

.cfo-img-info .name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cfo-img-info .title {
  font-size: 0.8rem;
  color: var(--color-gold-premium);
}

/* Text */
.cfo-text-container {
  position: relative;
  min-height: 250px;
  margin-bottom: 20px;
}

.cfo-text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
  transform: translateY(10px);
}

.cfo-text-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, visibility 0s 0s;
}

.cfo-quote {
  font-family: var(--font-headings);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: white;
  position: relative;
  z-index: 2;
}

.cfo-quote::after {
  content: '"';
  font-size: 6rem;
  position: absolute;
  right: 0;
  bottom: -60px;
  color: rgba(255,255,255,0.1);
  font-family: serif;
  z-index: -1;
}

.cfo-author-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.cfo-author-title {
  font-size: 0.95rem;
  color: var(--color-gold-premium);
}

.cfo-know-more {
  background: white;
  color: var(--color-royal-blue);
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.cfo-know-more:hover {
  background: var(--color-gold-premium);
  color: var(--color-brand-navy);
}

/* Nav Controls */
.cfo-slider-nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.cfo-slider-nav button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.cfo-slider-nav button:hover {
  background: white;
  color: var(--color-royal-blue);
}

/* ==========================================================================
   BOOKING / CALENDAR COMPONENT
   ========================================================================== */
.booking-widget {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}

.calendar-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
}

.calendar-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--card-border);
  transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
  background: rgba(255,255,255,0.05);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-weekday {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  padding-bottom: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.calendar-day.empty {
  cursor: default;
  pointer-events: none;
}

.calendar-day.past {
  color: var(--color-text-muted);
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day:hover:not(.past):not(.empty) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.selected {
  background: var(--color-gold-premium);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: var(--glow-shadow-gold);
}

.calendar-day.today {
  border-color: var(--color-glow-electric);
}

/* Time slot selection */
.timeslots-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeslots-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.timeslots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.timeslot-chip {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeslot-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-glow-electric);
}

.timeslot-chip.selected {
  background: var(--color-royal-blue);
  border-color: var(--color-glow-electric);
  color: var(--color-white);
  box-shadow: var(--glow-shadow-blue);
}

.timeslot-chip.booked {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  background: none;
  text-decoration: line-through;
}

/* ==========================================================================
   MODAL WINDOW DIALOG
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 580px;
  background: rgba(11, 31, 58, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  z-index: 1200;
  color: var(--color-white);
}

.modal-box .form-label {
  color: rgba(255, 255, 255, 0.9);
}

.modal-box select.form-control option {
  background-color: #0b1f3a;
  color: #ffffff;
}

.modal-box select.form-control optgroup {
  background-color: #082041;
  color: var(--color-gold-light);
  font-weight: 700;
  font-style: normal;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FF4D4D;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-white);
}

/* Forms general */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.val-slider-dropdown {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  color: var(--color-text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.val-slider-dropdown option {
  color: var(--color-text-primary);
  background: var(--bg-primary);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--color-white);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-glow-electric);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--glow-shadow-blue);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--color-white);
}

select.form-control optgroup {
  background: var(--bg-primary);
  color: var(--color-gold-light);
  font-weight: 700;
  font-style: normal;
}

/* ==========================================================================
   CUSTOM DROPDOWN UI
   ========================================================================== */
.custom-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.custom-dropdown-selected {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--color-white);
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.custom-dropdown-selected:hover {
  background: rgba(255, 255, 255, 0.05);
}

.custom-dropdown-selected.open {
  border-color: var(--color-glow-electric);
  box-shadow: var(--glow-shadow-blue);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #082041;
  border: 1px solid var(--color-glow-electric);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 2000;
  max-height: 220px; /* Forces scrollbar */
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.custom-dropdown-options.open {
  display: block;
}

.custom-dropdown-options li {
  padding: 10px 16px;
  list-style: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.custom-dropdown-options li:hover:not(.optgroup-label) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-gold-light);
}

.custom-dropdown-options li.optgroup-label {
  font-weight: 700;
  color: var(--color-gold-light);
  cursor: default;
  padding-top: 12px;
  padding-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  background: #061833;
}

/* ==========================================================================
   FORTUNE 500 EDITORIAL ENGINE
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: calc(var(--utility-bar-height) + var(--header-height));
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 1005;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
body.header-scrolled .reading-progress-container {
  top: 72px;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold-premium), var(--color-gold-light));
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(201, 161, 74, 0.5);
}

/* Article Hero (Redesigned for Premium feel) */
.article-hero {
  padding-top: calc(var(--utility-bar-height) + var(--header-height) + 80px) !important;
  padding-bottom: 60px !important;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,253,1) 100%);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at top right, rgba(11, 45, 91, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at bottom left, rgba(201, 161, 74, 0.03) 0%, transparent 40%);
  pointer-events: none;
}
.category-badge {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold-premium);
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(201, 161, 74, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 15px rgba(201, 161, 74, 0.1);
}
.article-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--color-brand-navy);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.article-hero h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* Author Block */
.hero-author-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(11, 45, 91, 0.05);
  display: inline-flex;
  border: 1px solid rgba(11, 45, 91, 0.05);
}
.hero-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-brand-navy);
  color: var(--color-gold-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.hero-author-meta {
  text-align: left;
}
.hero-author-meta strong {
  display: block;
  color: var(--color-brand-navy);
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.hero-author-meta span {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Featured Image */
.article-hero-img-container {
  max-width: 1200px;
  margin: -40px auto 60px auto;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}
.article-hero-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(11, 45, 91, 0.15);
  display: block;
}

/* 3-Column Grid */
.article-grid {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 60px;
  align-items: start;
}
.article-grid > .left-sidebar { grid-column: 1; grid-row: 1; }
.article-grid > .article-content { grid-column: 2; grid-row: 1; }
.article-grid > .right-sidebar { grid-column: 3; grid-row: 1; }

@media (max-width: 1200px) {
  .article-grid {
    grid-template-columns: 220px 1fr 280px;
    gap: 40px;
  }
}
@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-grid > .left-sidebar { display: none; }
  .article-grid > .article-content { grid-column: 1; grid-row: 1; }
  .article-grid > .right-sidebar { grid-column: 1; grid-row: 2; }
}

/* Sidebar & Sticky */
.article-sidebar {
  position: relative;
  height: 100%;
}
.sticky-container {
  position: sticky;
  top: 120px;
  padding-bottom: 40px;
}

/* Table of Contents */
.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 45, 91, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 12px;
}
.toc-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.3s ease;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 12px;
}
.toc-list a:hover {
  color: var(--color-brand-navy);
  border-left-color: rgba(11, 45, 91, 0.3);
}
.toc-list a.active {
  color: var(--color-gold-premium);
  font-weight: 700;
  border-left-color: var(--color-gold-premium);
}

/* Article Content Body */
.post-content {
  font-size: 18px;
  line-height: 2.0;
  color: var(--color-text-primary);
}
.post-content p {
  margin-bottom: 24px;
}
.post-content a {
  color: var(--color-royal-blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.post-content a:hover {
  color: var(--color-gold-premium);
}
.post-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-brand-navy);
  margin: 60px 0 24px 0;
}
.post-content h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-brand-navy);
  margin: 40px 0 20px 0;
}

/* Callouts */
.callout {
  padding: 30px;
  border-radius: 16px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.callout i { font-size: 1.8rem; margin-top: 2px; }
.callout-info {
  background: rgba(11, 45, 91, 0.03);
  border-left: 6px solid var(--color-brand-navy);
}
.callout-info i { color: var(--color-brand-navy); }
.callout-warning {
  background: rgba(201, 161, 74, 0.05);
  border-left: 6px solid var(--color-gold-premium);
}
.callout-warning i { color: var(--color-gold-premium); }

/* Premium Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 45, 91, 0.05);
  background: var(--color-white);
}
.post-content th, .post-content td {
  padding: 20px 24px;
  text-align: left;
}
.post-content th {
  background: var(--color-brand-navy);
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.post-content td {
  border-bottom: 1px solid rgba(11, 45, 91, 0.05);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:nth-child(even) { background: rgba(11, 45, 91, 0.02); }

/* Gold Checkmark Lists */
.post-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.post-content ul li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.post-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--color-gold-premium);
  font-size: 1.2rem;
}

/* Floating Share Bar */
.floating-share-bar {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 45, 91, 0.05);
  color: var(--color-brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.share-btn:hover {
  background: var(--color-brand-navy);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(11, 45, 91, 0.2);
}

/* Article End CTA */
.article-end-cta {
  margin-top: 80px;
  padding: 60px 40px;
  background: var(--color-white);
  border-radius: 24px;
  text-align: center;
  color: var(--color-text-secondary);
  box-shadow: 0 10px 40px rgba(11, 45, 91, 0.08);
  border: 1px solid rgba(11, 45, 91, 0.05);
}
.article-end-cta h2 {
  color: var(--color-brand-navy);
  font-size: 36px;
  margin-bottom: 20px;
}
.article-end-cta p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px auto;
  line-height: 1.8;
}

/* Author Profile Card (Footer) */
.author-profile-card {
  margin-top: 60px;
  padding: 40px;
  background: var(--color-white);
  border-radius: 24px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: 0 10px 40px rgba(11, 45, 91, 0.08);
  border: 1px solid rgba(11, 45, 91, 0.05);
}
.author-profile-card .meta-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-size: 2.5rem;
  background: var(--color-brand-navy);
  color: var(--color-gold-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.author-profile-card h3 {
  font-size: 24px;
  color: var(--color-brand-navy);
  margin-bottom: 8px;
}
.author-profile-card .designation {
  color: var(--color-gold-premium);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Sidebar Right Cards */
.sidebar-widget {
  padding: 32px 24px;
  border-radius: 20px;
  margin-bottom: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sidebar-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(11, 45, 91, 0.1);
}
.widget-download {
  background: var(--color-white);
  border: 1px solid rgba(11, 45, 91, 0.05);
}
.widget-consult {
  background: var(--color-white);
  border: 1px solid rgba(11, 45, 91, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 30px;
  border-radius: 12px;
}
.widget-consult h4 { color: var(--color-brand-navy); font-weight: 700; font-size: 1.25rem; }
.widget-consult p { color: var(--color-text-secondary); }


/* ==========================================================================
   FADE IN ON SCROLL
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  visibility: hidden;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* ==========================================================================
   MEDIA QUERIES FOR COMPONENTS
   ========================================================================== */
@media (max-width: 992px) {
  .hero-dashboard {
    max-width: 480px;
    margin-top: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .booking-widget {
    grid-template-columns: 1fr;
  }
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-num {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .timeline-line {
    left: 24px;
  }
  .timeline-item {
    margin-bottom: 40px;
  }
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }
  .timeline-content-wrapper {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-dot {
    left: 24px;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-dashboard {
    display: none; /* Hide interactive dashboard on very small screens to maintain clean responsive look */
  }
  .results-actions {
    flex-direction: column;
  }
  .db-metrics {
    grid-template-columns: 1fr;
  }
  .stat-num {
    font-size: 2rem;
    white-space: nowrap;
  }
}

/* Animations helpers */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--color-white);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    bottom: 30px;
    left: 30px;
    right: 30px;
  }
  .cookie-banner-content {
    flex: 1;
    padding-right: 24px;
  }
  .cookie-banner-actions {
    flex-shrink: 0;
  }
}

@media (min-width: 992px) {
  .booking-grid-custom {
    grid-template-columns: 1fr 1.15fr !important;
    gap: 40px !important;
  }
}

/* Ensure gray text inside consultation and booking forms for contrast on white background */
#contact-booking-form .form-control,
#contact-booking-form .custom-dropdown-selected,
#contact-booking-form .custom-dropdown-selected span,
#modal-lead-form .form-control,
#modal-lead-form .custom-dropdown-selected,
#modal-lead-form .custom-dropdown-selected span,
#contact-booking-form input[type="date"],
#modal-lead-form input[type="date"],
#contact-booking-form input[type="date"]::placeholder,
#modal-lead-form input[type="date"]::placeholder {
  color: var(--color-text-muted) !important;
}

/* Maintain light text for options inside the dark dropdown options lists */
.custom-dropdown-options li {
  color: var(--color-white) !important;
}
.custom-dropdown-options li.optgroup-label {
  color: var(--color-gold-light) !important;
}
.custom-dropdown-options li:hover:not(.optgroup-label) {
  color: var(--color-gold-light) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Sizing overrides for booking submit buttons */
#contact-booking-form button[type="submit"],
#modal-lead-form button[type="submit"] {
  padding: 12px 24px !important;
  font-size: 16px !important;
  height: 48px !important;
  margin-top: 12px !important;
}
