/* ============================================
   FARMTRIP LANDING PAGE - STYLES
   ============================================ */

/* -----------------------------------------
   VARIÁVEIS
   ----------------------------------------- */
:root {
  --bg: #f6f7f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #1b5e20;
  --brand-2: #2e7d32;
  --accent: #25d366;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 14px;
  --max: 1120px;
  --error: #dc2626;
  --success: #16a34a;
}

/* -----------------------------------------
   RESET & BASE
   ----------------------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 16px;
}

/* -----------------------------------------
   NAVBAR
   ----------------------------------------- */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  font-size: 1.8rem;
}

.menu-btn {
  font-size: 26px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
}

/* -----------------------------------------
   HERO SECTION
   ----------------------------------------- */
.hero {
  background:
    radial-gradient(50% 30% at 20% 0%, rgba(46,125,50,.25), transparent),
    radial-gradient(45% 30% at 90% 10%, rgba(27,94,32,.22), transparent),
    linear-gradient(180deg, #ffffff, #f6f7f8);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.hero__inner {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
}

/* -----------------------------------------
   BUTTONS
   ----------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--brand-2);
  color: white;
  width: 100%;
  max-width: 300px;
}

.btn-primary:hover {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(46,125,50,.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-2);
  border: 2px solid var(--brand-2);
  width: 100%;
  max-width: 300px;
}

.btn-secondary:hover {
  background: rgba(46,125,50,.1);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  display: block;
  margin-top: 16px;
}

.btn-whatsapp:hover {
  background: #1fa952;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -----------------------------------------
   ABOUT SECTION
   ----------------------------------------- */
.about {
  padding: 40px 0;
  background: var(--card);
}

.about h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--brand);
}

.about p {
  color: var(--muted);
  margin-bottom: 12px;
}

/* -----------------------------------------
   CATEGORIES
   ----------------------------------------- */
.categories {
  padding: 40px 0;
}

.categories h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.category-card {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 1;
}

.category-label {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 3px 10px rgba(0,0,0,.5);
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -----------------------------------------
   BANNER SECTION
   ----------------------------------------- */
.banner-section {
  padding: 40px 0;
}

.banner-destaque {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.banner-destaque::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.banner-overlay {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  text-shadow: 0 3px 12px rgba(0,0,0,.7);
}

.banner-overlay h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.banner-overlay p {
  margin: 0;
  font-size: 15px;
}

/* -----------------------------------------
   FORM SECTION
   ----------------------------------------- */
.form-section {
  padding: 40px 0;
  background: var(--card);
}

.form-wrapper {
  max-width: 500px;
  margin: auto;
}

.form-wrapper h2 {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
}

.form-wrapper > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(46,125,50,.1);
}

.form-group input.error {
  border-color: var(--error);
}

.error-message {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
}

.form-message {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.form-message.success {
  background: rgba(22,163,74,.1);
  color: var(--success);
  border: 1px solid rgba(22,163,74,.3);
}

.form-message.error {
  background: rgba(220,38,38,.1);
  color: var(--error);
  border: 1px solid rgba(220,38,38,.3);
}

/* -----------------------------------------
   FOOTER
   ----------------------------------------- */
.footer {
  background: var(--text);
  color: white;
  padding: 24px 0;
  text-align: center;
  margin-top: 40px;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

/* -----------------------------------------
   MODALS
   ----------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  z-index: 2;
  background: var(--card);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  z-index: 3;
}

.modal-body {
  padding: 32px;
  text-align: center;
}

.modal-body h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.modal-body p {
  color: var(--muted);
  margin: 0 0 16px;
}

.modal-info {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.modal-info p {
  margin-bottom: 12px;
}

.modal-success {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------------
   RESPONSIVE
   ----------------------------------------- */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    max-width: 100%;
  }

  .banner-destaque {
    height: 200px;
  }

  .banner-overlay h3 {
    font-size: 18px;
  }

  .banner-overlay p {
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    max-width: 200px;
  }

  .banner-destaque {
    height: 320px;
  }
}
