/* 3Farmers Clean Modern Responsive CSS */
:root {
  --primary: #1e73be;
  --primary-dark: #155a96;
  --accent: #00bfff;
  --text: #2c3e50;
  --text-muted: #606f7b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --header-bg: #1f2937;
  --footer-bg: #111827;
  --footer-text: #9ca3af;
  --border: #e2e8f0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --max-w: 1160px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.65;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
}
.site-logo {
  max-height: 54px;
  width: auto;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.site-nav a {
  color: #374151;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: #374151;
  transition: 0.2s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 4.5rem 0;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-weight: 700;
}
.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
}
.btn-secondary {
  background-color: #ffffff;
  color: var(--primary) !important;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background-color: #f1f5f9;
  text-decoration: none;
}
.btn-outline {
  border: 2px solid #cbd5e1;
  color: #ffffff !important;
}
.btn-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Content Pages */
.page-header {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-bottom: 2.5rem;
}
.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
}
.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.content-wrapper {
  padding: 1.5rem 0 4rem;
}
.content-wrapper h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #0f172a;
}
.content-wrapper h3 {
  font-size: 1.4rem;
  margin: 1.75rem 0 0.75rem;
  color: #1e293b;
}
.content-wrapper p {
  margin-bottom: 1.25rem;
}
.content-wrapper ul, .content-wrapper ol {
  margin: 1rem 0 1.5rem 2rem;
}
.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
  margin-top: 0;
  color: var(--primary);
  border-bottom: 2px solid #e0f2fe;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.team-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}
.team-card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}
.team-card .role {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}
.linkedin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0077b5;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Blog & Posts */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.blog-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}
.blog-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.blog-meta a {
  color: var(--text-muted);
}
.article-featured-img {
  margin: 1.5rem 0 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.contact-form {
  background: #ffffff;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #374151;
}
.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}
.form-alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  display: none;
  font-size: 0.95rem;
}
.form-alert.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}
.form-alert.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Honeypot */
.hidden-hp {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: -9999px;
}

/* Support Portal Card */
.support-portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  max-width: 780px;
}
.support-portal-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.65rem;
  color: #0f172a;
}
.support-portal-card > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.support-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}
.support-portal-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}
.support-portal-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.support-link-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
}
.support-link-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0f172a;
}
.support-link-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-logo {
  max-height: 48px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
}
.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.tagline {
  font-style: italic;
  color: #cbd5e1;
  margin-bottom: 1rem;
}
.contact-details {
  font-size: 0.95rem;
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.social-links a {
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.social-links a:hover {
  color: #ffffff;
}
.support-email {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
.bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bottom-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  }
  .site-nav.nav-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
}
