/* =============================================================
   HOME PAGE STYLES
   Specific to index.html only — relies on design system in
   variables.css, base.css, components.css, layout.css
   ============================================================= */


/* ---------------------------------------------------------------
   HERO SECTION — SPLIT LAYOUT
--------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1B3A5C 0%, #112337 100%);
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 92, 0.75);
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 6rem;
}

/* Left column */
.hero-left {
  color: var(--white);
}

.hero-left .section-tag {
  color: var(--color-accent);
  letter-spacing: 3px;
}

.hero-left h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

.hero-left .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.form-consent {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.form-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

.hero-subtext {
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 500;
  margin-bottom: 0;
}

.hero-video-wrapper {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-wrapper video::cue {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.video-controls {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-video-wrapper:hover .video-controls,
.video-controls.visible {
  opacity: 1;
}

@media (hover: none) {
  .video-controls {
    opacity: 1;
  }
}

.video-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.video-ctrl-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hero-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--white);
  gap: 0.5rem;
}

/* Right column — form card */
.hero-form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-form-card h2 {
  color: var(--color-text);
  font-size: var(--font-size-h3);
  margin-bottom: 0.5rem;
}

.hero-form-card .hero-form-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-form-card .form-group {
  margin-bottom: 1rem;
}

.hero-form-card .form-label {
  font-size: 0.85rem;
}



/* ---------------------------------------------------------------
   REVIEWS CAROUSEL
--------------------------------------------------------------- */
.reviews-section {
  background: var(--color-bg-alt);
}

.text-accent {
  color: var(--color-accent);
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.review-nav:hover {
  background: var(--color-accent);
}

.review-nav-prev {
  left: 0;
}

.review-nav-next {
  right: 0;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

.review-stars {
  color: #F59E0B;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  color: var(--color-text);
  font-size: 0.9rem;
}

.review-author span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.reviews-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.3;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  padding: 0;
}

.reviews-dots .dot.active {
  opacity: 1;
  background: var(--color-primary);
}

.reviews-section .reviews-disclosure {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  width: 100%;
  display: block;
}

.reviews-disclosure a {
  color: var(--color-primary);
  text-decoration: underline;
}


/* ---------------------------------------------------------------
   SERVICES SECTION
--------------------------------------------------------------- */
.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

/* Image wrapper — fills the card via absolute positioning */
.service-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.service-card-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  color: var(--white);
}

.service-card-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-card-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card-content .btn {
  white-space: normal;
}


/* ---------------------------------------------------------------
   WHY CHOOSE US / DIFFERENTIATORS SECTION
--------------------------------------------------------------- */
.differentiator-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.differentiator-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-primary);
}

.differentiator-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.differentiator-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.why-card {
  text-align: center;
  padding: 2rem;
}

.why-card .icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.why-card .icon svg {
  color: var(--color-primary);
  width: 28px;
  height: 28px;
}

.why-card h3 {
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}


/* ---------------------------------------------------------------
   PROCESS SECTION
--------------------------------------------------------------- */
.process-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.process-step {
  flex: 1 1 0;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--color-accent);
  opacity: 0.3;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}


/* ---------------------------------------------------------------
   STATS SECTION
--------------------------------------------------------------- */
.stats-section {
  background: var(--color-bg-dark);
  padding: var(--space-xl) 0;
  color: var(--white);
}

.stat {
  text-align: center;
}

.stat-number {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  display: block;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  display: block;
}


/* ---------------------------------------------------------------
   MINI GALLERY PREVIEW
--------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}


/* ---------------------------------------------------------------
   SOCIAL MEDIA SECTION
--------------------------------------------------------------- */
.social-section {
  background: var(--color-bg-alt);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
  min-width: 250px;
}

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

.social-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.social-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.social-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}


/* ---------------------------------------------------------------
   SCROLL ANIMATIONS
   JS adds .animate when element enters viewport
--------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ---------------------------------------------------------------
   RESPONSIVE — LARGE TABLET (max-width: 1024px)
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .process-grid {
    justify-content: center;
  }

  .process-step {
    max-width: 45%;
  }
}


/* ---------------------------------------------------------------
   RESPONSIVE — TABLET (max-width: 768px)
--------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hero splits to single column */
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 0;
  }

  /* Hero badge goes static below content */
  .hero-badge {
    position: static;
    transform: none;
    margin: 2rem auto 0;
    display: inline-block;
  }

  /* Hero form card — reduce padding on tablet */
  .hero-form-card {
    padding: 2rem;
  }

  /* Reviews — full-width cards */
  .review-card {
    flex: 0 0 100%;
  }

  .reviews-carousel {
    padding: 0 2.5rem;
  }

  /* Gallery drops to 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service card — reduce min-height on tablet */
  .service-card {
    min-height: 320px;
  }

  /* Social links — full width column */
  .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .social-card {
    min-width: unset;
    width: 100%;
  }
}


/* ---------------------------------------------------------------
   RESPONSIVE — MOBILE (max-width: 480px)
--------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Hero — tighter padding on very small screens */
  .hero {
    padding: 6rem 0 3rem;
  }

  /* Hero headline — clamp to something reasonable for 375px */
  .hero-left h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-subtext {
    font-size: 1rem;
  }

  /* Hero form card — tighter padding on small phones */
  .hero-form-card {
    padding: 1.5rem 1.25rem;
  }

  /* Reviews carousel — tighter arrow padding, smaller arrows */
  .reviews-carousel {
    padding: 0 2rem;
  }

  .review-nav {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  /* Process collapses to single column */
  .process-step {
    max-width: 100%;
    min-width: 100%;
  }

  /* Gallery drops to 1 column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Social cards go full width */
  .social-card {
    min-width: unset;
    width: 100%;
    padding: 1.5rem;
  }

  /* Stats section — ensure single column readability */
  .stats-section .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
