/* ==========================================================================
   5 STAR CONSTRUCTION COMPANY — PAGE-SPECIFIC STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   HOMEPAGE HERO SECTION
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   PINNED SCROLL-SYNCHRONIZED HERO SECTION
   -------------------------------------------------------------------------- */
.home-hero-scroll-track {
  position: relative;
  height: 250vh;
  background-color: #120904;
}

.home-hero-sticky-frame {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  padding-top: calc(var(--header-height) + var(--space-md));
  padding-bottom: var(--space-2xl);
  will-change: transform;
}

.home-hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #120904;
}

.hero-fullscreen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  transform: translateZ(0);
  will-change: transform;
  filter: contrast(108%) brightness(0.85);
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg, 
    rgba(26, 12, 5, 0.94) 0%, 
    rgba(26, 12, 5, 0.86) 45%, 
    rgba(36, 18, 8, 0.55) 75%,
    rgba(26, 12, 5, 0.40) 100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .home-hero-overlay {
    background: linear-gradient(
      180deg, 
      rgba(26, 12, 5, 0.94) 0%, 
      rgba(26, 12, 5, 0.86) 55%, 
      rgba(26, 12, 5, 0.65) 100%
    );
  }
}

.home-hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.home-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.home-hero-single-col {
  width: 100%;
}

.home-hero-content {
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   FLOATING VIDEO PLAYBACK & SCROLL SYNC BAR
   -------------------------------------------------------------------------- */
.hero-video-floating-bar {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(26, 12, 5, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(198, 134, 66, 0.4);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(166, 101, 44, 0.2);
}

.floating-mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E8B98A;
}

.floating-mode-indicator .mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38A169;
  box-shadow: 0 0 6px #38A169;
}

.floating-mode-indicator.is-autoplay .mode-dot {
  background-color: var(--color-brand-gold);
  box-shadow: 0 0 8px rgba(198, 134, 66, 0.9);
}

.floating-timeline-track {
  width: 110px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.floating-timeline-track:hover {
  height: 7px;
}

.floating-timeline-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #A6652C, #E8B98A);
  box-shadow: 0 0 6px rgba(232, 185, 138, 0.9);
  transition: width 0.04s linear;
}

.floating-time-display {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.floating-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-ctrl-btn {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E8DFD5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(198, 134, 66, 0.35);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--timing-micro);
}

.floating-ctrl-btn:hover {
  background: rgba(166, 101, 44, 0.4);
  border-color: var(--color-brand-gold);
  color: #FFF;
}

.floating-ctrl-btn.active {
  background: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
  color: #FFF;
}

@media (max-width: 640px) {
  .hero-video-floating-bar {
    bottom: 12px;
    right: 12px;
    left: 12px;
    justify-content: space-between;
    padding: 6px 12px;
    border-radius: var(--radius-md);
  }
  .floating-timeline-track {
    width: 60px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(166, 101, 44, 0.16);
  border: 1px solid rgba(198, 134, 66, 0.38);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  color: #E8B98A;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 100%;
}

@media (max-width: 480px) {
  .hero-badge {
    padding: 4px 10px;
    font-size: 11px;
    margin-bottom: var(--space-sm);
  }
}

.hero-badge-star {
  color: var(--color-brand-red);
}

.home-hero-content h1,
.home-hero h1,
.home-hero-sticky-frame h1 {
  font-size: clamp(1.75rem, 1.4rem + 2vw, 4.25rem);
  font-weight: 900;
  color: #FFFFFF !important;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.home-hero-content h1 span.text-highlight,
.home-hero h1 span.text-highlight,
.home-hero-sticky-frame h1 span.text-highlight {
  color: #FFFFFF !important;
  position: relative;
  display: inline-block;
}

.home-hero-content h1 span.text-highlight::after,
.home-hero h1 span.text-highlight::after,
.home-hero-sticky-frame h1 span.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--color-brand-accent);
  z-index: -1;
  opacity: 0.85;
}

.home-hero-lead,
.home-hero-content .home-hero-lead {
  font-size: var(--text-base);
  color: #F5EFEB !important;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

@media (max-width: 768px) {
  .home-hero-lead,
  .home-hero-content .home-hero-lead {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-lg);
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 600px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: var(--space-xl);
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Quick Trust Metrics Bar */
.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
  }
}

.trust-item-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item-desc {
  font-size: var(--text-xs);
  color: #E2D9D0;
  line-height: var(--leading-snug);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Hero Visual / 3D Canvas Box */
.hero-visual-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-video-card,
.hero-model-card {
  background-color: rgba(26, 12, 5, 0.94);
  border: 1px solid rgba(198, 134, 66, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(166, 101, 44, 0.15);
  backdrop-filter: blur(14px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-title {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-card-title span.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-brand-red);
}

/* --------------------------------------------------------------------------
   VALUES & ABOUT SECTION CARDS
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  transition: all var(--timing-micro);
  position: relative;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(166, 101, 44, 0.4);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(56, 29, 14, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-brand-accent);
}

.value-card-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-deep-navy);
  margin-bottom: 8px;
}

.value-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* --------------------------------------------------------------------------
   COMPARISON TABLE (GREY STRUCTURE VS TURNKEY)
   -------------------------------------------------------------------------- */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: left;
}

.comparison-table th {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-deep-navy);
  color: var(--color-white);
}

.comparison-table td {
  padding: 14px 20px;
  font-size: var(--text-sm);
  color: var(--color-text-main);
  border-bottom: 1px solid var(--color-border-subtle);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: #F8FAFC;
}

.badge-included {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #166534;
  font-weight: 700;
  font-size: var(--text-xs);
}

.badge-excluded {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  font-weight: 600;
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   FILTER PILLS FOR SERVICES & GALLERY
   -------------------------------------------------------------------------- */
.filter-pills-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-2xl);
}

.filter-pill {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border-subtle);
  color: var(--color-deep-navy);
  cursor: pointer;
  transition: all var(--timing-micro);
}

.filter-pill:hover {
  border-color: var(--color-primary-navy);
  color: var(--color-primary-navy);
}

.filter-pill.active {
  background-color: var(--color-deep-navy);
  border-color: var(--color-deep-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* Dark Section Filters */
.section-dark .filter-pill {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-dark);
  color: #D1D5DB;
}

.section-dark .filter-pill:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.section-dark .filter-pill.active {
  background-color: var(--color-brand-red);
  border-color: var(--color-brand-red);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   CONTACT PAGE DETAILS CARD
   -------------------------------------------------------------------------- */
.contact-info-panel {
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-panel h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card-item:last-of-type {
  border-bottom: none;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(166, 101, 44, 0.2);
  border: 1px solid rgba(198, 134, 66, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-accent);
  flex-shrink: 0;
}

.contact-card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 2px;
}

.contact-card-val {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-white);
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-card-val a {
  color: var(--color-white);
  transition: color var(--timing-micro);
}

.contact-card-val a:hover {
  color: var(--color-brand-red);
}

/* Contact Form Container */
.contact-form-panel {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
