/* Deploy Goats - National Targeted Grazing Aggregator
   Mobile-first, clean, professional */

:root {
  --green-dark: #2d5016;
  --green-mid: #4a7c2e;
  --green-light: #6ba33e;
  --green-pale: #e8f5e0;
  --earth-dark: #3e2c1c;
  --earth-mid: #6b4c33;
  --earth-light: #a67c52;
  --earth-pale: #f5efe8;
  --gray-900: #1a1a1a;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --accent: #d97706;
  --danger: #dc2626;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', var(--font-sans);
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--gray-900); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
p { margin-bottom: 1rem; }

/* Layout */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--gray { background: var(--gray-100); }
.section--green { background: var(--green-pale); }
.section--dark { background: var(--green-dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition);
  text-align: center; justify-content: center;
}
.btn--primary { background: var(--green-mid); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--secondary { background: transparent; color: var(--green-mid); border-color: var(--green-mid); }
.btn--secondary:hover { background: var(--green-mid); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #b45309; color: var(--white); }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn--full { width: 100%; }

/* ===== HEADER / NAV ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-300);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0.75rem 1.5rem;
}
.header__logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.5rem;
  color: var(--green-dark);
}
.header__logo span { color: var(--accent); }
.header__logo svg { width: 40px; height: 40px; }
.nav { display: none; }
.nav--open { display: flex; }
.nav ul { display: flex; gap: 0; flex-direction: column; }
.nav a {
  display: block; padding: 0.75rem 1rem;
  color: var(--gray-700); font-weight: 500; font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: var(--green-mid); }
.nav__cta { margin-left: 0; margin-top: 0.5rem; }
@media (min-width: 768px) {
  .nav { display: flex !important; align-items: center; }
  .nav ul { flex-direction: row; gap: 0.25rem; }
  .nav__cta { margin-left: 1rem; margin-top: 0; }
}
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-900); transition: var(--transition); }
@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile nav overlay */
@media (max-width: 767px) {
  .nav--open {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-300);
    padding: 1rem 1.5rem; flex-direction: column;
    box-shadow: var(--shadow-lg);
  }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--earth-dark) 100%);
  color: var(--white); padding: 5rem 0 4rem; position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
  background-size: 200px; opacity: 0.5;
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { margin-bottom: 1.25rem; color: var(--white); }
.hero h1 span { color: var(--green-light); }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; max-width: 550px; }
.hero__search {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 500px;
}
.hero__search input {
  padding: 1rem 1.25rem; border: none; border-radius: var(--radius);
  font-size: 1.1rem; width: 100%;
  box-shadow: var(--shadow-lg);
}
.hero__search input::placeholder { color: var(--gray-500); }
@media (min-width: 480px) {
  .hero__search { flex-direction: row; }
  .hero__search input { flex: 1; border-radius: var(--radius) 0 0 var(--radius); }
  .hero__search .btn { border-radius: 0 var(--radius) var(--radius) 0; white-space: nowrap; }
}
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem;
  font-size: 0.9rem; opacity: 0.85;
}
.hero__badges span { display: flex; align-items: center; gap: 0.4rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--green-pale); color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.5rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--gray-500); font-size: 0.95rem; }

/* ===== STEPS (How It Works) ===== */
.steps { counter-reset: step; }
.step {
  position: relative; padding-left: 4.5rem;
  margin-bottom: 2.5rem; counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--green-mid); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--gray-500); }

/* ===== SERVICES TABS ===== */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  background: var(--gray-100); border: 2px solid transparent;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
  color: var(--gray-700);
}
.tab-btn:hover { border-color: var(--green-mid); }
.tab-btn.active { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem;
  font-weight: 600; font-size: 0.9rem; color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--gray-300); border-radius: var(--radius);
  font-size: 1rem; transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--green-mid);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 480px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; font-size: 0.95rem; cursor: pointer; }
.checkbox-group input[type="checkbox"] { accent-color: var(--green-mid); }

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--green-mid);
}
.testimonial__text { font-style: italic; margin-bottom: 1rem; font-size: 1.05rem; color: var(--gray-700); }
.testimonial__author { font-weight: 600; color: var(--gray-900); }
.testimonial__location { color: var(--gray-500); font-size: 0.9rem; }

/* ===== STATS BAR ===== */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--green-light); }
.stat__label { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: 0.25rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: var(--white); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: var(--gray-300); position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white); padding: 1.5rem 1rem 0.75rem;
  font-size: 0.85rem; font-weight: 600;
}

/* ===== PARTNER BENEFITS ===== */
.benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.benefit__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-pale); color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.benefit h4 { margin-bottom: 0.25rem; }
.benefit p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900); color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: var(--gray-300); }
.footer a:hover { color: var(--green-light); }
.footer ul li { margin-bottom: 0.5rem; }
.footer__brand p { font-size: 0.9rem; line-height: 1.5; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.85rem; color: var(--gray-500);
}
.footer__sister {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.5rem; font-size: 0.9rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--earth-dark) 100%);
  color: var(--white); padding: 3rem 0 2.5rem;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { opacity: 0.85; font-size: 1.1rem; max-width: 600px; }
.breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-bottom: 1rem; }
.breadcrumb a { color: var(--white); }

/* ===== ALERT / NOTICE ===== */
.notice {
  background: var(--earth-pale); border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem; font-size: 0.95rem;
}

/* ===== UTILITIES ===== */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-delay { animation: fadeUp 0.6s ease 0.2s forwards; opacity: 0; }

/* ===== FORM FEEDBACK ===== */
.form-error {
  background: #fee;
  color: #c00;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ===== SUCCESS MODAL ===== */
#success-modal { display: none; }
#success-modal.modal--open { display: block; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-card {
  background: linear-gradient(135deg, #1a2e12, #2d4a1e);
  border: 1px solid rgba(106,163,62,0.3);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(106,163,62,0.1);
  max-width: 520px; width: 100%;
  padding: 2.5rem; text-align: center; color: #fff;
  animation: fadeUp 0.4s ease;
}
.modal-icon { margin-bottom: 1.5rem; }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; }
.modal-message { color: #ccc; margin-bottom: 1.5rem; font-size: 1rem; }
.modal-next { text-align: left; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 1.25rem; margin-bottom: 1.5rem; }
.modal-next h4 { color: var(--green-light); margin-bottom: 0.75rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-steps { list-style: none; padding: 0; margin: 0; }
.modal-steps li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; color: #ddd; font-size: 0.9rem; }
.modal-steps li::before { content: '\2713'; position: absolute; left: 0; color: var(--green-light); font-weight: 700; }
.modal-ref { font-size: 0.8rem; color: #888; margin-bottom: 1.25rem; font-family: monospace; }
.modal-close { width: 100%; }
