
/* === FULL-BLEED LANDING HERO (ignores .container limits) === */
.landing-hero {
  position: relative;
  width: 100vw;                /* full viewport width */
  left: 50%;
  right: 50%;
  margin-left: -50vw;          /* visually break out of parent container */
  margin-right: -50vw;
  margin-bottom: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--page-bg);
}

/* background layer */
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.svg") center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

/* inner layout */
.hero-inner {
  z-index: 1;
  width: 100%;
  max-width: 1400px;           /* hero has its own wide limit */
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-left {
  flex: 1 1 50%;
  text-align: left;
  color: var(--fg);
}

.hero-left h1 {
  font-size: clamp(2.3rem, 4vw + 1rem, 3.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-left p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-left .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-right {
  flex: 1 1 50%;
  text-align: right;
}

.hero-right img {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.hero-right img:hover {
  transform: translateY(-6px);
}

/* mobile layout */
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 60px 6vw;
    gap: 40px;
  }
  .hero-left, .hero-right {
    flex: 1 1 100%;
    text-align: center;
  }
  .hero-right img {
    max-width: 90%;
    margin: 0 auto;
  }
}



/* SECTIONS */
.section {
  padding: 50px 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.section.light { background: var(--section-bg); }
.section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--headline);
  margin-bottom: 40px;
}

/* Feature blocks */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 32px;
  text-align: center;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.feature-card h3 { color: var(--accent); margin-top: 14px; }

/* Testimonials */
/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-container {
  overflow: hidden;
  border-radius: 12px;
  padding: 10px 0; /* Add padding to ensure full visibility */
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  gap: 22px;
}

.carousel-slide {
  flex: 0 0 auto; /* Let width be controlled by calculations */
  box-sizing: border-box;
  min-width: 0; /* Prevent flex item overflow */
}

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 30px 30px;
  text-align: center;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
  width: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card p { 
  color: var(--headline); 
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card .meta { 
  margin-top: auto;
  color: var(--text-muted); 
  font-weight: 600; 
  font-style: normal;
  font-size: 0.9rem;
}

/* Semi-transparent Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

/* Card widths for different screen sizes */
@media (min-width: 1200px) {
  .carousel-slide {
    width: calc((100% - 60px) / 3); /* 3 cards with gap */
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .carousel-slide {
    width: calc((100% - 40px) / 2); /* 2 cards with gap */
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .carousel-slide {
    width: calc((100% - 40px) / 2); /* 2 cards with gap */
  }
}

@media (max-width: 767px) {
  .carousel-slide {
    width: calc(100% - 20px)
  }
  
  .testimonial-carousel {
    padding: 0 50px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .testimonial-carousel {
    padding: 0 40px;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
}
/* Footer */
.site-footer {
  background: var(--section-bg);
  color: var(--text-muted);
  padding: 40px 16px;
  font-size: .9rem;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.modal.hidden { display: none; }

.modal-content {
  background: var(--card);
  border-radius: 18px;
  padding: 30px 36px;
  box-shadow: var(--shadow);
  width: 90%; max-width: 420px;
}
.modal-body label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.modal-body select {
  width: 100%;
  margin-top: 6px;
}
.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
