/* ===================================================================
   BALDWA & ASSOCIATES - Home Page (index.html) Specific Styles
   =================================================================== */

/* Section 1: Hero Banner Fold */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  background-color: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-pin {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.showcase-video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 177.77vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  background: #141312 url('../assets/site_foundation_bg.jpg') center/cover no-repeat;
}

.showcase-bg-video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.showcase-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding-top: 4rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hero-subtext {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Section 2: On The Ground / Showcase Scroll Video */
.showcase-video-section {
  position: relative;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 8rem 0;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}



/* Section 3: Philosophy Section */
.philosophy-section {
  background-color: var(--color-cream);
  background-image: url('../assets/building_wireframe.svg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 60% auto;
  color: var(--color-dark);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-cream) 40%, rgba(248, 245, 240, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.philosophy-section .container {
  position: relative;
  z-index: 2;
}

.philosophy-header {
  margin-bottom: 4.5rem;
}

.philosophy-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  display: inline-block;
  padding-top: 8px;
  margin-bottom: 1.5rem;
}

.philosophy-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: rgba(0, 0, 0, 0.25);
}

.philosophy-title {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--color-dark);
  letter-spacing: -1px;
}

.philosophy-body {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.philosophy-highlights {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: normal;
  line-height: 1.35;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.philosophy-paragraph {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 560px;
}

/* Section 4: Marquee & Interactive Image Follower Section (Matching Reference Design) */
.marquee-section {
  position: relative;
  background-color: #EDE7DA;
  padding: 4.5rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(20, 19, 18, 0.08);
  border-bottom: 1px solid rgba(20, 19, 18, 0.08);
  cursor: crosshair;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  width: 100%;
}

.marquee-row-left .marquee-track {
  display: flex;
  gap: 3.5rem;
  animation: marqueeScrollLeft 70s linear infinite;
}

.marquee-row-right .marquee-track {
  display: flex;
  gap: 3.5rem;
  animation: marqueeScrollRight 75s linear infinite;
}

@keyframes marqueeScrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeScrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: 'Satoshi', 'Outfit', var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.15;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: inline-block;
}

.marquee-item.stroke-text {
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 19, 18, 0.38);
  letter-spacing: -0.5px;
}

.marquee-item.fill-text {
  font-weight: 900;
  color: #141312;
  letter-spacing: -1.5px;
}

.marquee-item:hover {
  color: var(--color-gold) !important;
  -webkit-text-stroke: 0 !important;
  transform: scale(1.04);
}

/* Floating Image Follower */
.marquee-image-follower {
  position: fixed;
  width: 260px;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--color-gold);
}

.marquee-image-follower.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.marquee-image-follower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section 5: Insights / Tech Grid Section */
.insights-section {
  padding: 8rem 0;
  background-color: var(--color-white);
  color: var(--color-dark);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.insight-card {
  background: var(--color-cream-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
}

.insight-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/* Section 6: Stats & Track Record Section */
.stats-numbers-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
}

.stats-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stats-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) contrast(1.1);
}

.stats-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 18, 0.75) 0%, rgba(20, 19, 18, 0.92) 100%);
}

.stats-container {
  position: relative;
  z-index: 2;
}

.stats-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.stats-top-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gold);
}

.stats-year-range {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stat-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Responsive Rules for Home Page */
@media (max-width: 992px) {

  .showcase-grid,
  .insights-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .philosophy-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {

  .showcase-grid,
  .insights-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 600px;
  }
}

/* Home hero image slideshow with auto slider fade-in / fade-out effect */
.hero-image-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #141312;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transform: scale(1.05);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide.is-prev {
  opacity: 0;
  visibility: visible;
  z-index: 2;
  transform: scale(1.02);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section .hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.15));
  pointer-events: none;
  z-index: 4;
}

/* Hero Slider Navigation Arrows (Left & Right Sides) */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 19, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero-slider-arrow--prev {
  left: 32px;
}

.hero-slider-arrow--next {
  right: 32px;
}

.hero-slider-arrow:hover {
  background: var(--color-gold, #c5a880);
  border-color: var(--color-gold, #c5a880);
  color: #141312;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(197, 168, 128, 0.45);
}

.hero-slider-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-slider-arrow:focus-visible {
  outline: 2px solid var(--color-gold, #c5a880);
  outline-offset: 3px;
}

@media(max-width: 992px) {
  .hero-slider-arrow--prev {
    left: 20px;
  }
  .hero-slider-arrow--next {
    right: 20px;
  }
}

@media(max-width: 600px) {
  .hero-slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    background: rgba(20, 19, 18, 0.7);
  }
  .hero-slider-arrow--prev {
    left: 12px;
  }
  .hero-slider-arrow--next {
    right: 12px;
  }
  .hero-section .hero-scroll-indicator {
    display: none;
  }
  .hero-slide {
    object-position: 58% center;
  }
}

@media(prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.5s ease;
    transform: none !important;
  }
}

@media(max-width: 600px) {
  .hero-section .hero-title.reveal-on-scroll { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-section .hero-content { padding-top: 0; padding-bottom: 35px; }
  .hero-section .hero-subtext { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-section .hero-pin { min-height: 720px; }
}

