/*
 * Agrology Divi-child — Homepage Styles
 * -------------------------------------------------------
 * Clean, modern design with dark sections and icon cards
 * -------------------------------------------------------
 */

/* ============================================
   HERO SECTION
   ============================================ */
.agro-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.agro-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.agro-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.agro-hero-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.agro-hero-content {
  text-align: center;
  animation: fadeInUp 1s var(--ease-out) 0.3s both;
}

.agro-hero-title {
  font-family: var(--font-primary);
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.1;
  animation: fadeInUp 1s var(--ease-out) 0.7s both;
}

@media (min-width: 768px) {
  .agro-hero-title {
    font-size: 56px;
  }
}

@media (min-width: 1200px) {
  .agro-hero-title {
    font-size: 68px;
  }
}

.agro-hero-subtitle {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1.5rem;
  font-size: 16px;
  font-weight: 400;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 1s var(--ease-out) 0.9s both;
}

.agro-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
  animation: fadeInUp 1s var(--ease-out) 1.1s both;
}

/* ============================================
   STATS BAR
   ============================================ */
.agro-stats {
  background: linear-gradient(135deg, #151313 0%,#151313 20%, #1f1e1e 30%, #151313 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.agro-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.agro-stats::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.agro-stats-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .agro-stats-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .agro-stats-container {
    padding: 0 5rem;
  }
}

.agro-stat-item {
  text-align: center;
  position: relative;
  padding: 1rem 0;
}

.agro-stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.agro-stat-item:last-child::after {
  display: none;
}

.agro-stat-number {
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.agro-stat-label {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: block;
}

/* ============================================
   SERVICES GRID — Icon-based horizontal cards
   ============================================ */
.agro-services-grid {
  width: 100%;
  background: linear-gradient(180deg, #111A21 0%, #202B34 36%, #3B4957 75%, #556677 100%);
  padding: 5rem 0 3rem;
  position: relative;
}

.agro-services-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .agro-services-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .agro-services-grid-container {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
  }
}

.agro-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  background: transparent;
}

.agro-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.agro-service-card:hover::before {
  background: rgba(255, 255, 255, 0.04);
}

.agro-service-card:hover {
  transform: translateY(-8px);
}

.agro-service-card-icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.agro-service-card:hover .agro-service-card-icon {
  transform: scale(1.12);
}

.agro-service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.45s ease;
}

.agro-service-card:hover .agro-service-card-icon img {
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(218, 185, 32, 0.4));
}

.agro-service-card-title {
  font-family: var(--font-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 2;
  line-height: 1.3;
  transition: color 0.3s ease;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #dab920;
  width: 100%;
  /* Reserve two text lines and bottom-align so every underline lines up,
     even when a label wraps (e.g. "Fertiliser Application"). */
  box-sizing: content-box;
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.agro-service-card:hover .agro-service-card-title {
  color: #dab920;
}

.agro-service-card-text {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 0.75rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
              max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.agro-service-card:hover .agro-service-card-text {
  opacity: 1;
  max-height: 80px;
  transform: translateY(0);
}

.agro-service-card-link {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
  color: #dab920;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.16s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.16s,
              max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.agro-service-card:hover .agro-service-card-link {
  opacity: 1;
  max-height: 30px;
  transform: translateY(0);
}

/* ============================================
   DJI PARTNERSHIP SECTION
   ============================================ */
.agro-dji-section {
  display: block;
  text-decoration: none;
  position: relative;
  height: 600px;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 768px) {
  .agro-dji-section {
    height: 700px;
  }
}

@media (min-width: 1200px) {
  .agro-dji-section {
    height: 800px;
  }
}

.agro-dji-bg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center top;
  top: -15%;
  will-change: transform;
}

.agro-dji-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.agro-dji-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4rem;
}

.agro-dji-logo {
  max-width: 500px;
  width: 60%;
  height: auto;
  position: relative;
  z-index: 2;
}

.agro-dji-tagline {
  font-family: var(--font-primary);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
}

/* ============================================
   CTA BANNER (Homepage override)
   ============================================ */
.agrology-home-page .agro-cta-banner {
  background: #1a1a1a;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.agrology-home-page .agro-cta-banner::before {
  display: none;
}

.agrology-home-page .agro-cta-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.agrology-home-page .agro-cta-banner-title {
  font-family: var(--font-primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.agrology-home-page .agro-cta-banner-desc {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 0.25rem;
}

.agrology-home-page .agro-cta-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.agrology-home-page .agro-cta-banner-btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.4s var(--ease-out);
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.agrology-home-page .agro-cta-banner-btn:hover {
  background-color: white;
  color: #1c1c1c;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.agrology-home-page .agro-cta-banner-btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.agrology-home-page .agro-cta-banner-btn-outline:hover {
  background-color: white;
  color: #1c1c1c;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .agro-hero {
    max-height: none;
  }

  .agro-dji-section {
    height: 550px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================ */
@media (max-width: 767px) {
  /* Hero */
  .agro-hero {
    min-height: 500px;
    max-height: none;
  }

  .agro-hero-container {
    padding: 0 1.25rem;
  }

  .agro-hero-title {
    font-size: 32px;
  }

  .agro-hero-subtitle {
    font-size: 15px;
    margin-top: 1rem;
  }

  .agro-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }

  .agro-hero-buttons .agro-btn-primary,
  .agro-hero-buttons .agro-btn-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.75rem 2rem;
  }

  /* Stats */
  .agro-stats {
    padding: 2rem 0;
  }

  .agro-stats-container {
    gap: 1.25rem;
    padding: 0 1.25rem;
  }

  .agro-stat-number {
    font-size: 30px;
  }

  .agro-stat-label {
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .agro-stat-item::after {
    display: none;
  }

  /* Services Grid */
  .agro-services-grid {
    padding: 3rem 0;
  }

  .agro-services-grid-container {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .agro-service-card {
    padding: 1.5rem 0.75rem;
  }

  .agro-service-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .agro-service-card-title {
    font-size: 11px;
  }

  /* DJI */
  .agro-dji-section {
    height: 450px;
  }

  .agro-dji-content {
    padding-bottom: 2.5rem;
  }

  .agro-dji-logo {
    max-width: 260px;
  }

  .agro-dji-tagline {
    font-size: 16px;
  }

  /* CTA Banner */
  .agrology-home-page .agro-cta-banner-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .agrology-home-page .agro-cta-banner-buttons {
    justify-content: center;
  }

  .agrology-home-page .agro-cta-banner-btn {
    font-size: 12px;
    padding: 0.6rem 1.25rem;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .agro-hero-title {
    font-size: 26px;
  }

  .agro-hero-subtitle {
    font-size: 14px;
  }

  .agro-stat-number {
    font-size: 26px;
  }

  .agro-stat-label {
    font-size: 10px;
  }

  .agro-services-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .agro-service-card-icon {
    width: 50px;
    height: 50px;
  }

  .agro-service-card-title {
    font-size: 10px;
  }
}
