/* Services Page Specific Styles */

/* HERO VIDEO (cross-browser safe) */
.page-hero{
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    background: #000;
  }
  
  /* wrapper that holds the video + overlay */
  .page-hero-image{
    position: absolute;
    inset: 0;
  }
  
  /* the video fills the hero */
  .page-hero-image video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* dark overlay so text is readable */
  .page-hero-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
  }
  
  /* text sits above overlay/video */
  .page-hero-content{
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 6rem 1rem;
  }

.intro-content {
    margin: 0 auto;
    text-align: left;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
  }
  
  /* Desktop */
  @media (min-width: 768px) {
    .intro-text {
      font-size: 1.5rem;
    }
  }

.services-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--stroke);
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Photo Carousel Section */
.photo-carousel-section {
    padding: 5rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--stroke);
}

.photo-carousel-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 3rem 0;
}

.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--stroke);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn svg {
    color: var(--text);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: #94a3b8;
}

.carousel-dot.active {
    background: var(--brand);
    width: 32px;
    border-radius: 6px;
}

/* Focus styles for accessibility */
.carousel-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Services Grid Section */
.services-content { 
    max-width: none; 
  }
  
  .services-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:2rem;
    margin-top:3rem;
  }
  
  /* Card */
  .service-card{
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 14px 34px rgba(0,0,0,0.14);
    background:#fff;
  }
  
  /* Image area */
  .service-front{
    position:relative;
    height:260px;
  }
  
  /* Image */
  .service-image{
    position:absolute;
    inset:0;
  }
  .service-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
  }
  
  /* Overlay */
  .service-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
      135deg,
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.20)
    );
  }
  
  /* Text on image */
  .service-front-content{
    position:absolute;
    inset:0;
    z-index:2;
    padding:1.75rem;
    display:flex;
    align-items:flex-end;
  }
  
  .service-label{
    color:#fff;
    font-size:1.25rem;
    font-weight:700;
    line-height:1.2;
  }
  
  /* Description always visible */
  .service-back{
    padding:1.5rem 1.75rem 1.75rem;
  }
  .service-back p{
    margin:0;
    line-height:1.7;
    font-size:0.95rem;
    color:var(--muted);
  }

/* Responsive Design */
@media (max-width: 1100px) {
    .services-grid{ 
      grid-template-columns:repeat(2,minmax(0,1fr)); 
    }
    .service-front{
      height:230px;
    }
}

@media (max-width: 1024px) {
    .carousel-container {
        padding: 0 50px;
    }
    
    .carousel-slide img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .photo-carousel-section {
        padding: 4rem 0;
    }
    
    .photo-carousel-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .carousel-container {
        padding: 0 20px;
    }
    
    .carousel-slide img {
        height: 320px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .carousel-dots {
        margin-top: 2rem;
        gap: 0.5rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 28px;
    }
}

@media (max-width: 640px) {
    .services-grid{ 
      grid-template-columns:1fr; 
    }
    .service-front{
      height:210px;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 280px;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 390px) {
    .photo-carousel-section {
        padding: 3rem 0;
    }
    
    .photo-carousel-section h2 {
        font-size: 1.75rem;
    }
    
    .carousel-slide img {
        height: 250px;
    }
}