/* ==========================================================================
   AgroTech - Header & Footer Styles (Fixed)
   ========================================================================== */

/* ── 1. Top Bar (scrolls away naturally) ────────────────────────────────── */
.agrotech-top-bar {
  position: relative;
  z-index: 1100;
  background-color: #2e361e;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: none;
}

.top-bar-info {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-bar-info li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-info a {
  color: inherit;
}

.top-bar-info a:hover {
  color: var(--color-secondary);
}

.top-bar-socials {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.top-bar-socials a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.top-bar-socials a:hover {
  color: var(--color-secondary);
  background-color: rgba(255, 255, 255, 0.08);
}

/* ── 2. Main Navigation Header ──────────────────────────────────────────── */

.agrotech-header {
  position: absolute;
  top: 0;
  /* sits right after topbar in flow */
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(46, 54, 30, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  padding: 14px 0;
}

/* ── Logo: invert + brightness for visibility on dark bg ── */
.navbar-logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease;
}

/* ── Sticky Header State (fixed after scrolling past hero top) ── */
.agrotech-header.is-sticky {
  position: fixed;
  top: 0;
  background-color: var(--color-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 20px rgba(21, 21, 21, 0.2);
  padding: 10px 0;
  animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.agrotech-header.is-sticky .navbar-logo img {
  filter: brightness(0) invert(1);
}

/* ── Navbar Layout ── */
.agrotech-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-link {
  font-family: var(--font-headers);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92) !important;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-secondary) !important;
  background-color: rgba(255, 255, 255, 0.07);
}

.nav-item.active .nav-link {
  color: var(--color-secondary) !important;
  background-color: rgba(236, 249, 110, 0.1);
}

/* ── Dropdown Menu ── */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: var(--color-white);
  min-width: 210px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(21, 21, 21, 0.15);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.nav-dropdown li a {
  display: block;
  padding: 9px 22px;
  font-size: 0.93rem;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-dropdown li a:hover {
  background-color: rgba(63, 73, 42, 0.05);
  color: var(--color-primary);
  padding-left: 28px;
}

.nav-item:hover>.nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ── Header Right Area ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
}

.header-phone-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.header-phone-details span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.65;
  line-height: 1.2;
}

.header-phone-details a {
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* ── Mobile Hamburger Toggle ── */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--color-white);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Mobile Off-Canvas Drawer ── */
.mobile-nav-canvas {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: linear-gradient(160deg, #2e3a1a 0%, #3f492a 100%);
  z-index: 9999;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  padding: 0;
  transition: right 0.42s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-canvas.is-open {
  right: 0;
}

.mobile-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--color-white);
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-canvas-body {
  padding: 25px;
  flex: 1;
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.mobile-menu-links>li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-links>li:last-child {
  border: none;
}

.mobile-menu-links a {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 13px 0;
  transition: var(--transition-smooth);
}

.mobile-menu-links a:hover {
  color: var(--color-secondary);
  padding-left: 6px;
}

/* ── Mobile submenu parent toggle ── */
.mobile-menu-links .has-submenu>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-menu-links .has-submenu>a .chevron {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-menu-links .has-submenu.submenu-open>a .chevron {
  transform: rotate(180deg);
  background: rgba(236, 249, 110, 0.15);
  color: var(--color-secondary);
}

/* ── Mobile submenu list ── */
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-submenu li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-submenu li a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 0 10px 16px;
  color: rgba(255, 255, 255, 0.65);
  display: block;
  border: none;
}

.mobile-submenu li a::before {
  content: "–";
  margin-right: 8px;
  color: var(--color-secondary);
  opacity: 0.7;
}

.mobile-submenu li a:hover {
  color: var(--color-secondary);
  padding-left: 22px;
}

.mobile-canvas-footer {
  padding: 20px 25px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-canvas-footer .contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.mobile-canvas-footer .contact-line i {
  color: var(--color-secondary);
  width: 16px;
}

.mobile-canvas-footer .contact-line a {
  color: var(--color-white);
}

/* ── Overlay behind mobile canvas ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 15, 15, 0.65);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(2px);
}

.mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1199px) {

  .navbar-menu,
  .header-phone {
    display: none;
  }

  .header-right .btn-agrotech:not(.mobile-only-btn) {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .agrotech-header {
    position: fixed;
    top: 0;
    background-color: var(--color-primary);
    backdrop-filter: none;
  }

  .agrotech-top-bar {
    display: none;
  }
}

@media (max-width: 575px) {
  .mobile-nav-canvas {
    width: 100%;
    right: -100%;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   3. Premium Footer
   ══════════════════════════════════════════════════════════════════════════ */

.agrotech-footer {
  background-color: #1c2212;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  /* Extra padding so newsletter overlap works */
}

/* Newsletter Strip (overlaps section above footer) */
.footer-newsletter {
  background-color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  position: relative;
  z-index: 5;
  margin-top: -100px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-title {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 14px 28px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.93rem;
  width: 100%;
  transition: var(--transition-smooth);
  outline: none;
}

.newsletter-input:focus {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--color-secondary);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Footer Main Grid */
.footer-main {
  /* padding-top: 120px; */
  padding-bottom: 60px;
}

.footer-logo img {
  height: 44px;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
}

.footer-widget-title {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

.footer-widget-title svg {
  width: 18px;
  height: 18px;
  fill: var(--color-secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  font-size: 0.93rem;
}

.footer-links a::before {
  content: "›";
  color: var(--color-secondary);
  font-size: 1.1rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

/* Footer Contact Items */
.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
}

.footer-contact-details h5 {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.footer-contact-details p,
.footer-contact-details a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  margin: 0;
  font-size: 0.93rem;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 25px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ── Responsive Footer ── */
@media (max-width: 991px) {
  .footer-newsletter {
    padding: 32px 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  .footer-main {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .footer-newsletter {
    margin-top: -60px;
  }

  .agrotech-footer {
    padding-top: 60px;
  }
}