/* AgriVita theme - from original design */
:root {
  --agri-green-light: #70C05B;
  --agri-green-dark: #3E7D41;
  --agri-green: #2D5A27;
  --agri-nav: #2D4A1E;
  --agri-teal: #1E4D4D;
  --agri-teal-blue: #008B8B;
  --agri-bg: #F4F9F2;
  --agri-beige: #F5F5DC;
  --agri-white: #FFFFFF;
  --agri-text: #1F291C;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--agri-bg);
  color: var(--agri-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

main {
  flex: 1;
  padding-top: 72px;
}

@media (min-width: 768px) {
  main {
    padding-top: 80px;
  }
}

/* Skip link - visible on focus for keyboard/screen reader users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--agri-nav);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.375rem 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--agri-teal-blue);
  outline-offset: 2px;
}

/* Focus visible - clear outline for keyboard, not for mouse */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--agri-teal-blue);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--agri-teal-blue);
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: var(--agri-nav);
  padding: 0.75rem 1rem;
  transition: box-shadow 0.3s, padding 0.3s;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 480px) {
  .navbar {
    padding: 1rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .navbar {
    padding: 1.25rem 1.5rem;
  }
}

.navbar.scrolled {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .navbar.scrolled {
    padding: 1rem 1.5rem;
  }
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
}

@media (min-width: 480px) {
  .nav-inner {
    padding: 0 1rem;
  }
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 0 5rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  z-index: 10;
  min-height: 44px;
}

@media (min-width: 480px) {
  .nav-brand {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .nav-brand {
    font-size: 1.5rem;
  }
}

.nav-brand img {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-brand img {
    width: 2rem;
    height: 2rem;
  }
}

.nav-links {
  display: none;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

@media (min-width: 1024px) {
  .nav-links { gap: 1.5rem; }
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  background: white;
  color: var(--agri-nav);
}

/* Mobile menu button - min 44px touch target */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle .bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle .bar:nth-child(1) { margin-bottom: 6px; }
.nav-toggle .bar:nth-child(3) { margin-top: 6px; }

.nav-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  margin-top: -8px;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--agri-nav);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 1rem 1.5rem;
}

.nav-mobile.open {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}

.nav-mobile a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(255,255,255,0.1);
}

.nav-mobile a.active {
  background: white;
  color: var(--agri-nav);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(70vh, 380px);
  display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  overflow: hidden;
}

@media (min-width: 480px) {
  .hero {
    padding: 2rem 1.25rem;
    min-height: min(70vh, 420px);
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 520px;
    padding: 0 5rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&q=80') center/cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  color: white;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw + 1rem, 3.75rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.hero p {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: clamp(0.8125rem, 2vw + 0.5rem, 1rem);
  opacity: 0.9;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero p {
    margin-top: 1rem;
  }
}

/* Buttons - touch-friendly min height */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: clamp(0.875rem, 2vw, 1rem);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .btn {
    padding: 0.5rem 1.5rem;
  }
}

.btn-teal-blue {
  background: var(--agri-teal-blue);
  color: white;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .btn-teal-blue {
    margin-top: 1.5rem;
  }
}

.btn-teal-blue:hover {
  opacity: 0.9;
}

.btn-green {
  background: var(--agri-green);
  color: white;
}

.btn-teal {
  background: var(--agri-teal);
  color: white;
}

/* Stats section */
.stats {
  background: var(--agri-beige);
  padding: 2rem 1rem;
}

@media (min-width: 480px) {
  .stats {
    padding: 2.5rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .stats {
    padding: 4rem 5rem;
  }
}

.stats-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .stats-inner {
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .stats-inner {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

@media (min-width: 640px) {
  .stat-card {
    gap: 1rem;
  }
}

.stat-card svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--agri-green);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .stat-card svg {
    width: 3rem;
    height: 3rem;
  }
}

.stat-card .number {
  font-size: clamp(1.25rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--agri-nav);
  line-height: 1.2;
}

.stat-card .label {
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--agri-nav);
  line-height: 1.3;
}

/* Page shell (for inner pages) */
.page-hero {
  background: var(--agri-nav);
  color: white;
  padding: 5rem 1rem 2.5rem;
}

@media (min-width: 480px) {
  .page-hero {
    padding: 5.5rem 1.25rem 3rem;
  }
}

@media (min-width: 768px) {
  .page-hero {
    padding: 8rem 5rem 4rem;
  }
}

.page-hero-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 5vw + 1rem, 3rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.page-hero .subtitle {
  margin-top: 0.75rem;
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  opacity: 0.9;
  max-width: 42rem;
}

/* Section */
.section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 480px) {
  .section {
    padding: 2.5rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 5rem;
  }
}

.section.grid-2 {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .section.grid-2 {
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
  }
}

.section h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}

.section h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #111827;
  margin: 1.25rem 0 0.5rem;
}

@media (min-width: 768px) {
  .section h3 {
    margin: 1.5rem 0 0.5rem;
  }
}

.section p,
.section li {
  color: #374151;
  line-height: 1.6;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

@media (min-width: 768px) {
  .section ul {
    padding-left: 1.5rem;
  }
}

.section .about-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

@media (min-width: 768px) {
  .section .about-img {
    border-radius: 1rem;
  }
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .products-grid {
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  background: white;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}

.product-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.5s;
}

@media (min-width: 480px) {
  .product-card img {
    height: 14rem;
  }
}

@media (min-width: 768px) {
  .product-card img {
    height: 16rem;
  }
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card .body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .product-card .body {
    padding: 1.5rem;
  }
}

.product-card .category {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--agri-green);
}

.product-card h3 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--agri-teal);
  line-height: 1.3;
}

.product-card p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .product-card p {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
  }
}

/* News */
.news-featured {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .news-featured {
    border-radius: 1rem;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
}

.news-featured .img-wrap {
  width: 100%;
  height: 14rem;
  overflow: hidden;
}

@media (min-width: 480px) {
  .news-featured .img-wrap {
    height: 16rem;
  }
}

@media (min-width: 768px) {
  .news-featured .img-wrap {
    width: 50%;
    height: 20rem;
  }
}

.news-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured .content {
  padding: 1.25rem;
  width: 100%;
}

@media (min-width: 480px) {
  .news-featured .content {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .news-featured .content {
    width: 50%;
    padding: 2.5rem;
  }
}

.news-featured .badge {
  background: #149988;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .news-featured .badge {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
  }
}

.news-featured h3 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--agri-teal);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.3;
}

.news-featured .date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.news-featured .excerpt {
  color: #6b7280;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .news-featured .excerpt {
    margin-top: 1rem;
    line-height: 1.6;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  transition: transform 0.5s;
}

@media (min-width: 480px) {
  .news-card img {
    height: 12rem;
  }
}

@media (min-width: 768px) {
  .news-card img {
    height: 13rem;
  }
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card .body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .news-card .body {
    padding: 1.5rem;
  }
}

.news-card .badge {
  background: var(--agri-beige);
  color: var(--agri-green);
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .news-card .badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
}

.news-card h4 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--agri-teal);
  margin: 0.75rem 0 0.5rem;
  min-height: 0;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .news-card h4 {
    min-height: 3.5rem;
  }
}

.news-card .date {
  color: #9ca3af;
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .news-card .date {
    font-size: 0.75rem;
  }
}

.news-card .excerpt {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.5rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .news-card .excerpt {
    font-size: 0.875rem;
  }
}

.news-card a.read-more {
  color: var(--agri-green);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  min-height: 44px;
  align-items: center;
}

.news-card a.read-more:hover {
  text-decoration: underline;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

@media (min-width: 480px) {
  .testimonial-card {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .testimonial-card {
    padding: 2rem;
    border-radius: 1rem;
    min-height: 220px;
  }
}

.testimonial-card .quote {
  font-size: 0.8125rem;
  font-style: italic;
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .testimonial-card .quote {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

.testimonial-card .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--agri-teal);
}

.testimonial-card .role {
  color: #6b7280;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .testimonial-card .role {
    font-size: 0.875rem;
  }
}

.testimonial-card .location {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--agri-green);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .testimonial-card .location {
    font-size: 0.75rem;
  }
}

/* Our Work */
.work-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .work-item {
    flex-direction: row;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }
  .work-item.reverse {
    flex-direction: row-reverse;
  }
}

.work-item .img-wrap {
  width: 100%;
}

@media (min-width: 768px) {
  .work-item .img-wrap {
    width: 50%;
  }
}

.work-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

@media (min-width: 480px) {
  .work-item img {
    height: 260px;
  }
}

@media (min-width: 768px) {
  .work-item img {
    height: 320px;
    border-radius: 1rem;
  }
}

.work-item .content {
  width: 100%;
}

@media (min-width: 768px) {
  .work-item .content {
    width: 50%;
  }
}

.work-item h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--agri-teal);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .work-item h3 {
    margin: 0 0 1rem;
  }
}

.work-item .description {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .work-item .description {
    font-size: 0.875rem;
  }
}

.work-item .impact {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(45, 90, 39, 0.1);
  background: var(--agri-beige);
  font-size: 0.8125rem;
  color: var(--agri-green);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .work-item .impact {
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Login page */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  padding: 1.5rem 0.75rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

@media (min-width: 480px) {
  .login-page {
    padding: 2rem 1rem;
  }
}

@media (min-width: 768px) {
  .login-page {
    padding: 3rem 1rem;
  }
}

.login-box {
  width: 100%;
  max-width: 28rem;
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

@media (min-width: 480px) {
  .login-box {
    padding: 2rem;
  }
}

.login-box h1 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .login-box h1 {
    margin: 0 0 2rem;
  }
}

.login-box .field {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .login-box .field {
    margin-bottom: 1.25rem;
  }
}

.login-box .field-wrapper {
  position: relative;
}

.login-box .field-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
}

.login-box input {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 16px;
  background: white;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 768px) {
  .login-box input {
    font-size: 0.875rem;
  }
}

.login-box input:focus {
  outline: none;
  border-color: var(--agri-teal-blue);
  box-shadow: 0 0 0 1px var(--agri-teal-blue);
}

.login-box .error {
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.5rem;
}

.login-box button[type="submit"] {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem;
  background: var(--agri-teal-blue);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .login-box button[type="submit"] {
    font-size: 0.875rem;
    padding: 0.625rem;
  }
}

.login-box button[type="submit"]:hover:not(:disabled) {
  opacity: 0.9;
}

.login-box button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-box .link-row {
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .login-box .link-row {
    font-size: 0.875rem;
    margin-top: 1rem;
  }
}

.login-box .link-row a,
.login-box .link-row button.link-btn {
  color: var(--agri-teal-blue);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.login-box .link-row button.link-btn:hover {
  text-decoration: underline;
}

.section-title {
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  font-weight: 700;
  color: var(--agri-teal);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: 2.5rem;
  }
}

.empty-msg {
  color: #6b7280;
}

/* Footer */
footer {
  background: var(--agri-nav);
  color: white;
  margin-top: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 480px) {
  .footer-inner {
    padding: 2.5rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 3rem 5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-grid h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
  .footer-grid h3 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
  }
}

.footer-grid p,
.footer-grid ul {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-grid p,
  .footer-grid ul {
    font-size: 0.875rem;
  }
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.375rem;
}

.footer-grid a {
  color: white;
  text-decoration: none;
  padding: 0.25rem 0;
  display: inline-block;
  min-height: 1.5em;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .footer-copy {
    padding-top: 1.5rem;
    font-size: 0.875rem;
  }
}

/* Print */
@media print {
  .skip-link,
  .navbar .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
  .navbar {
    position: relative;
    padding: 0.5rem 0;
  }
  body {
    background: white;
  }
  main {
    padding-top: 0;
  }
  .hero-bg::after {
    background: rgba(0, 0, 0, 0.2);
  }
  a[href^="http"]:not([href*="agrivita"]):after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
  .btn {
    border: 1px solid currentColor;
  }
}
