/* Smart Farming — top bar + heroes1
   Bank / Day-Night / Boost stay IN the nav. Hero sits flush under it. */

.smart-farming-page {
  --nav-height: 78px;
}

/* Kill the old circular fixed toggle that yanks Day/Night out of the bar */
.smart-farming-page .theme-toggle:not(.ainna-theme-switch) {
  display: none !important;
}
.smart-farming-page .desktop-nav .ainna-theme-switch.theme-toggle,
.smart-farming-page .ainna-mobile-topbar .ainna-theme-switch.theme-toggle,
.smart-farming-page .nav-actions .ainna-theme-switch.theme-toggle {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  border-radius: 999px !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none !important;
  z-index: auto;
}
.smart-farming-page .ainna-nav-dock {
  display: none !important;
}

/* Top bar: one row — short menu + 3 include buttons */
.smart-farming-page .desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-secondary, #fff) 88%, transparent) !important;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.smart-farming-page .desktop-nav .nav-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-height: var(--nav-height);
  padding: 0.55rem 1.25rem;
}
.smart-farming-page .desktop-nav .nav-logo {
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.smart-farming-page .desktop-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}
.smart-farming-page .desktop-nav .nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.smart-farming-page .desktop-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: 0.35rem;
}
.smart-farming-page .desktop-nav .ainna-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.smart-farming-page .ainna-mobile-topbar {
  background: color-mix(in srgb, var(--bg-secondary, #fff) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

/* ===== HERO ===== */
.smart-farming-page .section.hero,
.smart-farming-page .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100dvh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 18px) 1.5rem clamp(32px, 4vh, 48px) !important;
  overflow-x: clip;
  overflow-y: visible;
  align-items: stretch;
}
.smart-farming-page .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.smart-farming-page .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.smart-farming-page .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(6, 20, 10, 0.62) 0%, rgba(6, 20, 10, 0.48) 100%) !important;
}
.smart-farming-page .hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.smart-farming-page .hero__content {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  text-align: left;
  width: 100%;
  min-width: 0;
}
.smart-farming-page .hero__title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  margin: 0 0 0.65rem;
  line-height: 1.12;
  text-align: left;
}
.smart-farming-page .hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 0.9rem;
}
.smart-farming-page .hero__copy {
  font-size: 1.02rem;
  margin-bottom: 1.35rem;
  padding: 0;
  max-width: 38rem;
}
.smart-farming-page .hero__cta {
  justify-content: flex-start;
  margin-bottom: 0;
}
.smart-farming-page .hero__visual {
  position: relative;
  z-index: 2;
  margin-top: 0;
  min-width: 0;
  max-width: 100%;
}
.smart-farming-page .farm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}
.smart-farming-page .hero .node {
  height: 88px;
  margin: 0;
}

@media (max-width: 900px) {
  .smart-farming-page {
    --nav-height: 64px;
  }
  .smart-farming-page .section.hero,
  .smart-farming-page .hero {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: calc(var(--nav-height) + 14px) 1rem 2rem !important;
  }
  .smart-farming-page .hero-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .smart-farming-page .hero__title {
    font-size: 1.85rem;
    text-align: center;
  }
  .smart-farming-page .hero__subtitle,
  .smart-farming-page .hero__copy,
  .smart-farming-page .hero__content {
    text-align: center;
  }
  .smart-farming-page .hero__copy {
    margin-left: auto;
    margin-right: auto;
  }
  .smart-farming-page .hero__cta {
    justify-content: center;
  }
  .smart-farming-page .hero-bg img {
    animation: none !important;
    transform: none !important;
  }
  .smart-farming-page .farm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.75rem;
  }
  .smart-farming-page .hero .node {
    height: 68px;
  }
}

@media (max-width: 900px) and (max-height: 780px) {
  .smart-farming-page .hero__title { font-size: 1.55rem; }
  .smart-farming-page .hero__subtitle { font-size: 0.95rem; margin-bottom: 0.5rem; }
  .smart-farming-page .hero__copy { font-size: 0.92rem; margin-bottom: 0.85rem; }
  .smart-farming-page .hero .node { height: 56px; }
}
