/* 
 * HOME PAGE STYLES
 * Styles specific to index.html
 */

h2, h3 {
  font-size: 2.0rem;
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, .6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: .5rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.4);
}

.hero p {
  color: #f0f0f0;
  margin: 0 auto 1rem;
  max-width: 640px;
  text-shadow: 0 2px 4px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.4);
}

.hero .btn {
  margin: .5rem;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 0;
  transition: transform 1s ease;
}

.hero-slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  position: relative;
  padding: 2rem;
  background: transparent;
  z-index: 2;
}

.about-text {
  text-align: left;
  z-index: 3;
  position: relative;
  padding-left: 8rem;
}

.about-text p {
  color: #cfd6e6;
  line-height: 1.6;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
  max-width: 80%;
  justify-self: center;
  z-index: 3;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.about-bg-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(6deg);
  width: 90%;
  height: 80%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 24px;
  z-index: 2;
}

/* Services grid */
.services {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}

.service {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 2;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: .8rem;
}





/* Responsive overrides */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-text {
    text-align: center;
    padding-left: 0;
  }
  
  .about-photo {
    max-width: 100%;
  }
  
  .about-bg-shape {
    display: none;
  }
  
  .hero {
    height: 60vh;
  }
}
