@import url("theme.css");

/* ---------- Hero Header Section ---------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url("../assets/aham_investment_co_ltd_image_102.webp")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(6, 70, 53, 0.55) 0%,
    rgba(4, 57, 39, 0.75) 40%,
    rgba(3, 40, 25, 0.9) 100%
  );
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInOverlay 1.8s ease-in-out;
}

.hero-section h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.hero-section p {
  color: var(--color-text-light-muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

.hero-section .hero-content h1 {
  letter-spacing: 1px;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-section h4 {
  color: var(--color-text-light-muted);
  font-weight: 400;
  margin-bottom: 1.8rem;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-section .btn-brand-warning {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(126, 200, 80, 0.3);
  transition: all 0.4s ease;
}

.hero-section .btn-brand-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(126, 200, 80, 0.6);
}

/* ---------- Cotton Section ---------- */
.cotton-section {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  min-height: 100vh;
}

.cotton-section h2 {
  font-size: 1.9rem;
  line-height: 1.4;
}

.cotton-section p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.cotton-media {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cotton-media:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(4, 57, 39, 0.25);
}

/* Fade-in animation from main.js is reused */

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .cotton-section {
    padding: 3rem 1rem;
  }

  .cotton-section h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .cotton-section p {
    text-align: justify;
  }

  .cotton-media {
    width: 100%;
  }
}

/* ---------- Cotton Outro Section ---------- */
.cotton-outro {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* === Background Image (blurred + dimmed) === */
.cotton-outro .bg-image {
  position: absolute;
  inset: 0;
  background: url("../assets/aham_investment_co_ltd_image_103.webp")
    center/cover no-repeat;
  filter: brightness(0.45) blur(10px);
  transform: scale(1.1);
  z-index: 0;
}

/* === Mid-layer (same image, clear but still behind gradient) === */
.cotton-outro .mid-image {
  position: absolute;
  inset: 0;
  background: url("../assets/aham_investment_co_ltd_image_103.webp")
    center/contain no-repeat;
  opacity: 0.6;
  z-index: 1;
}

/* === Gradient Overlay === */
.cotton-outro .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 70, 53, 0.45) 0%,
    rgba(4, 57, 39, 0.55) 60%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 2;
}
/* === Content === */
.cotton-outro .content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 2rem;
  animation: fadeInOverlay 1.8s ease-in-out;
}

.cotton-outro h2 {
  color: var(--color-text-light);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.cotton-outro p {
  color: var(--color-text-light-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* === Button === */
.cotton-outro .btn-brand-warning {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 0 25px rgba(126, 200, 80, 0.4);
  transition: all 0.4s ease;
}
.cotton-outro .btn-brand-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(126, 200, 80, 0.7);
}

/* ----- Cotton Operations Summary ----- */
.cotton-operations {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.cotton-operations h2 {
  font-size: 1.9rem;
}

.cotton-operations-list h5 {
  font-size: 1.05rem;
}

.cotton-operations-list p {
  font-size: 0.95rem;
}

/* Number badge (mobile-safe, no weird wrapping) */
.number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Gallery at the end of section */
.cotton-gallery .gallery-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background: #fff;
}

.cotton-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* === Responsive === */
@media (max-width: 991.98px) {
  .cotton-outro {
    height: 70vh;
    padding: 2rem 1rem;
  }

  .cotton-outro h2 {
    font-size: 1.8rem;
  }

  .cotton-outro p {
    font-size: 0.95rem;
  }

  .hero-section {
    height: 100vh;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }
}

/* Small tweak for mobile spacing */
@media (max-width: 767.98px) {
  .cotton-operations h2 {
    font-size: 1.6rem;
  }

  .cotton-operations-list .d-flex {
    align-items: flex-start;
  }

  .number-badge {
    margin-top: 2px;
  }
}

/* ---------- Animations ---------- */
@keyframes fadeInOverlay {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
