/*
 * Agrology Theme - Component Styles
 * Navigation, Buttons, Cards, Footer
 */

/* ============================================
   DIVI OVERRIDES — suppress Divi chrome on ALL agrology pages
   Applied via body classes: agrology-home-page, agrology-page
   ============================================ */
.agrology-home-page #main-header,
.agrology-home-page #top-header,
.agrology-home-page #main-footer,
.agrology-home-page #footer-bottom,
.agrology-home-page #et-footer-nav,
.agrology-page #main-header,
.agrology-page #top-header,
.agrology-page #main-footer,
.agrology-page #footer-bottom,
.agrology-page #et-footer-nav {
  display: none !important;
}

.agrology-home-page #page-container,
.agrology-home-page #et-main-area,
.agrology-home-page #main-content,
.agrology-home-page .container,
.agrology-page #page-container,
.agrology-page #et-main-area,
.agrology-page #main-content,
.agrology-page .container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.agrology-home-page #page-container,
.agrology-page #page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Prevent Divi from adding extra padding/margin to our main content area */
.agrology-home-page .et_pb_section,
.agrology-page .et_pb_section {
  padding: 0 !important;
}

/* ============================================
   NAVIGATION
   ============================================ */
.agro-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.4s var(--ease-out);
}

.agro-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.agro-nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s var(--ease-out);
}

.agro-nav.scrolled .agro-nav-container {
  height: 80px;
}

@media (min-width: 1024px) {
  .agro-nav-container {
    padding: 0 3rem;
  }
}

.agro-nav-logo {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.agro-nav-logo:hover {
  transform: scale(1.02);
}

.agro-nav-logo img {
  height: 75px;
  object-fit: contain;
  transition: height 0.3s var(--ease-out);
}

.agro-nav.scrolled .agro-nav-logo img {
  height: 48px;
}

.agro-nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .agro-nav-links {
    display: flex;
  }
}

/* wp_nav_menu outputs ul.agro-nav-menu > li > a */
.agro-nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-nav-menu > li {
  list-style: none;
}

.agro-nav-menu > li > a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.3s var(--ease-out);
  color: #2d2d3a;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.agro-nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: linear-gradient(135deg, #DDA933, #f0d040);
  border-radius: 9999px;
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}

.agro-nav-menu > li > a:hover::after,
.agro-nav-menu > li.current-menu-item > a::after,
.agro-nav-menu > li.current_page_item > a::after {
  left: 0;
  right: 0;
}

.agro-nav-menu > li > a:hover,
.agro-nav-menu > li.current-menu-item > a,
.agro-nav-menu > li.current_page_item > a {
  color: #dab920;
}

/* Legacy direct-link classes (kept for backward compat) */
.agro-nav-link {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.3s var(--ease-out);
  color: #2d2d3a;
}

.agro-nav-link:hover,
.agro-nav-link.active {
  color: #dab920;
}

.agro-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #DDA933, #f0d040);
  border-radius: 9999px;
}

.agro-nav-icons {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .agro-nav-icons {
    display: flex;
  }
}

.agro-nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  font-size: 10px;
  color: #0a0a0a;
  font-family: var(--font-primary);
  transition: color 0.3s var(--ease-out);
}

.agro-nav-icon-btn:hover {
  color: #dab920;
}

.agro-nav-divider {
  height: 1.5rem;
  width: 1px;
  background-color: #e5e5e5;
}

.agro-nav-hamburger {
  margin-left: 0.5rem;
  color: #1c1c1c;
  transition: color 0.3s var(--ease-out);
}

.agro-nav-hamburger:hover {
  color: #dab920;
}

.agro-mobile-hamburger {
  display: block;
  color: #2d2d3a;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.agro-mobile-hamburger:hover {
  color: #dab920;
  transform: scale(1.1);
}

@media (min-width: 1024px) {
  .agro-mobile-hamburger {
    display: none;
  }
}

/* Mobile Menu */
.agro-mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(218, 185, 32, 0.1);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeInDown 0.3s var(--ease-out);
}

.agro-mobile-menu.active {
  display: flex;
}

@media (min-width: 1024px) {
  .agro-mobile-menu {
    display: none !important;
  }
}

/* wp_nav_menu output in mobile menu */
.agro-mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-mobile-nav-menu > li {
  list-style: none;
}

.agro-mobile-nav-menu > li > a,
.agro-mobile-menu a {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #2d2d3a;
  display: block;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}

.agro-mobile-nav-menu > li > a:hover,
.agro-mobile-menu a:hover {
  color: #dab920;
  padding-left: 0.5rem;
}

.agro-mobile-nav-menu > li.current-menu-item > a,
.agro-mobile-nav-menu > li.current_page_item > a,
.agro-mobile-menu a.active {
  color: #dab920;
}

.agro-mobile-menu-icons {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.75rem;
}

.agro-mobile-menu-icons button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #1c1c1c;
}

.agro-mobile-menu-icons button:hover {
  color: #dab920;
}

/* ============================================
   BUTTONS
   ============================================ */
.agro-btn-primary {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: white;
  padding: 0.85rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.agro-btn-primary:hover {
  background-color: white;
  color: #1c1c1c;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.agro-btn-primary:active {
  transform: translateY(0);
}

.agro-btn-primary.agro-btn-large {
  padding: 1.1rem 3.5rem;
  font-size: 15px;
}

.agro-btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: white;
  padding: 0.85rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.agro-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);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .description,
.service-card .learn-more {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .description,
.service-card:hover .learn-more {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  overflow: hidden;
}

.product-card img {
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  width: 4rem;
  height: 2px;
  background: linear-gradient(135deg, #DDA933, #f0d040);
}

/* ============================================
   ICON CIRCLE
   ============================================ */
.icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #2d2d3a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.agro-footer {
  background: linear-gradient(180deg, #151313 0%, #151313 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.agro-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(218, 185, 32, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.agro-footer-main {
  padding-top: 4rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.agro-footer-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .agro-footer-container {
    padding: 0 5rem;
  }
}

.agro-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agro-footer-col {
  flex: 1;
  min-width: 200px;
}

.agro-footer-logo {
  width: 85px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 20px rgba(218, 185, 32, 0.15));
}

.agro-footer-desc {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.agro-footer-social {
  display: flex;
  gap: 0.75rem;
}

.agro-footer-social-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: all 0.3s var(--ease-out);
}

.agro-footer-social-link:hover {
  background: linear-gradient(135deg, rgba(218, 185, 32, 0.2), rgba(154, 162, 45, 0.2));
  border-color: rgba(218, 185, 32, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(218, 185, 32, 0.2);
}

.agro-footer-heading {
  font-family: var(--font-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.agro-footer-links,
ul.agro-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.agro-footer-links li {
  list-style: none;
}

.agro-footer-links a {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  position: relative;
  padding-left: 0;
}

.agro-footer-links a:hover {
  color: #dab920;
  padding-left: 0.5rem;
}

.agro-footer-contact-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.agro-footer-contact-item svg {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.agro-footer-contact-item span {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.6;
}

.agro-footer-cta {
  margin-top: 1.5rem;
  display: inline-block;
  background: transparent;
  color: white;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
}

.agro-footer-cta:hover {
  background-color: white;
  color: #1c1c1c;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.agro-footer-col-brand {
  text-align: center;
}

.agro-footer-col-brand .agro-footer-social {
  justify-content: center;
}

.agro-footer-col-dji {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.agro-footer-dji-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.agro-footer-dji-tagline {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Footer Bottom */
.agro-footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 2;
}

.agro-footer-bottom-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .agro-footer-bottom-container {
    padding: 1rem 5rem;
  }
}

.agro-footer-copyright {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.agro-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agro-footer-bottom-links a {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  transition: color 0.3s var(--ease-out);
}

.agro-footer-bottom-links a:hover {
  color: #dab920;
}

.agro-footer-bottom-links span {
  color: rgba(255, 255, 255, 0.15);
  font-size: 12px;
}

.agro-footer-powered {
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.agro-footer-powered a {
  color: #dab920;
  transition: all 0.3s var(--ease-out);
}

.agro-footer-powered a:hover {
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(218, 185, 32, 0.4);
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .agro-footer-grid {
    gap: 2rem;
  }

  .agro-footer-col {
    min-width: 45%;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================ */
@media (max-width: 767px) {
  /* Nav */
  .agro-nav-container {
    padding: 0 1rem;
    height: 70px;
  }

  .agro-nav.scrolled .agro-nav-container {
    height: 60px;
  }

  .agro-nav-logo img {
    height: 45px;
  }

  .agro-nav.scrolled .agro-nav-logo img {
    height: 40px;
  }

  /* Mobile Menu */
  .agro-mobile-menu {
    padding: 1rem 1.25rem;
  }

  /* Buttons */
  .agro-btn-primary {
    padding: 0.75rem 2rem;
    font-size: 13px;
  }

  .agro-btn-primary.agro-btn-large {
    padding: 0.9rem 2.5rem;
    font-size: 14px;
  }

  .agro-btn-outline {
    padding: 0.75rem 2rem;
    font-size: 13px;
  }

  /* Footer */
  .agro-footer-main {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }

  .agro-footer-container {
    padding: 0 1.25rem;
  }

  .agro-footer-grid {
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .agro-footer-col {
    min-width: 100%;
    text-align: center;
  }

  .agro-footer-social {
    justify-content: center;
  }

  .agro-footer-links a {
    display: inline-block;
  }

  .agro-footer-contact-item {
    justify-content: center;
  }

  .agro-footer-cta {
    display: block;
    text-align: center;
  }

  /* Footer Bottom */
  .agro-footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .agro-footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .agro-footer-copyright,
  .agro-footer-powered {
    font-size: 11px;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .agro-nav-container {
    height: 60px;
  }

  .agro-nav-logo img {
    height: 38px;
  }

  .agro-footer-heading {
    font-size: 13px;
  }

  .agro-footer-links a {
    font-size: 13px;
  }

  .agro-footer-desc {
    font-size: 13px;
  }
}

