/* ==============================================
   HOME.CSS — Homepage Section Styles
   Baxter Site Works
   ============================================== */

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
  .hero-bg {
    background-image: url('https://connect.mediaserve.io/storage/v1/object/public/media/78dba5ff-e514-44fd-bc2d-1f49dd7a0a6f/e50f7c9a-7566-41f4-ac02-6a344078ff86/media/images/excavation-services1.webp');
    background-size: cover;
    background-position: center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  width: 100%;
}

.hero-headline {
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-6);
  margin-top: var(--space-4);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-6);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.hero-trust-item i {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ==============================================
   STATS BAR
   ============================================== */
.stats-bar {
  background: var(--color-secondary);
  padding: var(--space-8) 0;
}

.stats-bar .container.row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-8);
  flex: 1;
  min-width: 160px;
}

.stats-bar .stat-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-primary);
}

.stats-bar .stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ==============================================
   SERVICES SECTION
   ============================================== */
.services-section {
  background: var(--color-bg);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header .section-label {
  margin-bottom: var(--space-3);
  align-self: center;
}

.section-header .heading-lg,
.section-header .heading-md {
  margin-bottom: var(--space-4);
}

.section-header .accent-line {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-header .text-lg,
.section-header .text-body {
  max-width: 680px;
  margin: 0 auto 0;
  text-align: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-default);
  padding: var(--space-8);
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  color: inherit;
}

.service-card-icon {
  margin-bottom: var(--space-2);
}

.service-card-title {
  color: var(--color-secondary);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-top: auto;
  transition: gap var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default);
}

.service-card:hover .service-link {
  gap: var(--space-3);
  color: #111827;
}

/* ==============================================
   RESIDENTIAL + COMMERCIAL SPLIT
   ============================================== */
.split-section {
  position: relative;
  overflow: hidden;
  background: #f9fafb;
  padding: var(--section-padding-y) 0 var(--section-padding-y) 0;
  margin-bottom: 0;
}

.split-bg-left,
.split-bg-right {
  display: none; /* decorative only on large screens via JS */
}

.split-inner {
  flex-direction: row;
  gap: 0;
  flex-wrap: wrap;
}

.split-col {
  flex: 1 1 50%;
  min-width: 300px;
}

.split-col-residential {
  background: transparent;
}

.split-col-residential-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.split-col-residential-inner .split-col-content {
  flex: 1 1 55%;
  min-width: 0;
}

.split-col-image {
  flex: 0 0 40%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  border-radius: var(--img-radius);
}

.split-residential-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--img-radius) var(--img-radius) var(--img-radius) var(--img-radius);
  margin: 0 var(--space-6) var(--space-8) 0;
  display: block;
}

.split-col-commercial {
  background: var(--color-secondary);
}

/* ==============================================
   COMMERCIAL FULL-WIDTH SECTION
   ============================================== */
.commercial-fw-section {
  background: var(--color-secondary);
}

.commercial-fw-inner {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: var(--space-12);
  align-items: stretch;
}

.commercial-fw-img-col {
  display: flex;
  flex-direction: column;
}

.commercial-fw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  flex: 1;
}

.commercial-fw-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.commercial-fw-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.commercial-fw-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
}

.commercial-fw-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-12);
  width: 100%;
}

@media (max-width: 768px) {
  .commercial-fw-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .commercial-fw-inner {
    grid-template-columns: 1fr;
  }
  .commercial-fw-content {
    order: 1;
  }
  .commercial-fw-img-col {
    order: 2;
    display: flex;
    flex-direction: column;
  }
  .commercial-fw-img {
    height: 280px;
    flex: none;
  }
}

.split-col-content {
  padding: var(--space-16) var(--space-12);
}

.split-col-content-dark {
  background: var(--color-secondary);
}

.split-title {
  color: var(--heading-dark);
  margin-bottom: 0;
  margin-top: var(--space-4);
}

.split-col-content .accent-line {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.split-col-content .text-body {
  margin-top: 0;
  margin-bottom: 0;
}

.split-col-content .split-list {
  margin-top: var(--space-5);
}

.split-col-content .btn {
  margin-top: var(--space-6);
}

.split-col-content-dark .split-title {
  color: #ffffff;
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.split-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: #374151 !important;
  line-height: var(--line-height-normal);
}

.split-list-dark li {
  color: rgba(255, 255, 255, 0.9) !important;
}

.split-list li i {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==============================================
   TRUST / WHY SECTION
   ============================================== */
.trust-grid {
  justify-content: center;
}

.trust-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  background: #ffffff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: box-shadow var(--duration-normal) var(--ease-default), transform var(--duration-normal) var(--ease-default);
}



.trust-card h3 {
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
  margin-top: var(--space-2);
}

/* ==============================================
   SERVICE AREA
   ============================================== */
.area-section {
  background: var(--color-bg);
}

.area-inner {
  align-items: center;
  gap: var(--space-16);
}

.area-content {
  flex: 1 1 480px;
}

.area-image {
  flex: 1 1 400px;
}

.area-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--img-radius);
  box-shadow: var(--shadow-xl);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.area-tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: #111827 !important;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

/* ==============================================
   PROJECTS TEASER
   ============================================== */
.projects-teaser {
  background: var(--color-bg-dark);
}

.projects-grid {
  gap: var(--grid-gutter);
}

.project-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--color-secondary-light);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-default), box-shadow var(--duration-normal) var(--ease-default);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-moderate) var(--ease-default);
}

.project-card:hover .project-card-img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}



/* ==============================================
   FAQ SECTION
   ============================================== */
.faq-accordion {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================
   FINAL CTA SECTION
   ============================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  align-items: center;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .split-col-content {
    padding: var(--space-12) var(--space-8);
  }

  .area-inner {
    gap: var(--space-10);
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-trust {
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats bar: 2-col grid on mobile */
  .stats-bar .container.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: var(--space-4);
    min-width: unset;
  }

  /* Split section stacks vertically */
  .split-col {
    flex: 1 1 100%;
  }

  .split-col-content {
    padding: var(--space-10) var(--space-6);
  }

  .split-col-residential-inner {
    flex-direction: column;
  }

  .split-col-image {
    flex: 0 0 auto;
    height: 260px;
  }

  .split-residential-img {
    min-height: 260px;
    margin: 0 var(--space-6) var(--space-6);
    border-radius: var(--img-radius);
  }

  /* Trust grid: 2 col on mobile */
  .grid-4.trust-grid > * {
    flex: 0 0 calc(50% - var(--grid-gutter) / 2);
  }

  /* Area section stacks */
  .area-inner {
    flex-direction: column;
    gap: var(--space-8);
  }

  .area-content,
  .area-image {
    flex: 1 1 100%;
  }

  /* Projects 1-col on mobile */
  .grid-3.projects-grid > * {
    flex: 0 0 100%;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-trust {
    display: none;
  }

  .stats-bar .container.row {
    grid-template-columns: 1fr;
  }

  .grid-4.trust-grid > * {
    flex: 0 0 100%;
  }
}
