/* ============================================
   FARMER RESEARCH GROUP — style.css
   Palette: Cream #f5efe3 | Navy #16243d | Gold #d8b98c
   Fonts: Source Serif 4 (display) + Archivo (body)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Archivo', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: #f5efe3;
  color: #16243d;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea { font: inherit; }
h1,h2,h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* === PAGES === */
.page { display: none; }
.page.active { display: block; }

/* === CONTAINER === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,239,227,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22,36,61,0.1);
}
.nav-gold-bar {
  height: 3px;
  background: linear-gradient(90deg, #d8b98c, #c7a36b 60%, #d8b98c);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #16243d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  color: #16243d;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 8.5px;
  letter-spacing: 0.26em;
  color: #6a7790;
  margin-top: 3px;
  font-family: 'Archivo', sans-serif;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}
.nav-link {
  color: #46546d;
  cursor: pointer;
  transition: color 0.15s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: #16243d;
  border-bottom-color: #d8b98c;
}
.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: #f5efe3;
  background: #16243d;
  padding: 11px 20px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: #1d2f4d; }
.nav-menu-btn { display: none; color: #16243d; padding: 4px; }

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #f5efe3;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-link {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  color: #16243d;
  font-weight: 600;
}
.mobile-cta {
  font-family: 'Archivo', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: #16243d;
  color: #f5efe3 !important;
  padding: 13px 28px;
  border-radius: 3px;
  margin-top: 8px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  padding: 14px 26px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-navy { background: #16243d; color: #f5efe3; }
.btn-navy:hover { background: #1d2f4d; }
.btn-link {
  background: none;
  color: #16243d;
  padding: 0;
  border-bottom: 2px solid #d8b98c;
  border-radius: 0;
  padding-bottom: 3px;
}
.btn-link:hover { color: #a8824a; }
.btn-link-light {
  background: none;
  color: #f4f7fa;
  padding: 0;
  border-bottom: 2px solid #d8b98c;
  border-radius: 0;
  padding-bottom: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}
.btn-link-light:hover { color: #d8b98c; }
.btn-full { width: 100%; }

/* === TYPOGRAPHY === */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #a8824a;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.eyebrow-gold { color: #d8b98c; }
.h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 600;
  color: #16243d;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.text-light { color: #f4f7fa; }
.text-muted-light { color: #aebbcf; }
.text-center { text-align: center; }
.body-lg { font-size: 17px; line-height: 1.7; color: #46546d; }
.body-md { font-size: 16px; line-height: 1.72; color: #46546d; margin-bottom: 18px; }

/* === HERO === */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px 68px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(32px, 4.5vw, 53px);
  font-weight: 600;
  line-height: 1.12;
  color: #16243d;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.68;
  color: #46546d;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* Snapshot card */
.snapshot-card {
  background: #101d33;
  background-image:
    repeating-linear-gradient(0deg, rgba(216,185,140,.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(216,185,140,.045) 0 1px, transparent 1px 28px);
  border: 1px solid rgba(216,185,140,0.22);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 28px 60px rgba(22,36,61,0.28);
}
.snapshot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.snapshot-title { color: #f4f7fa; font-size: 15px; font-weight: 600; }
.snapshot-badge {
  color: #d8b98c;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  border: 1px solid rgba(216,185,140,0.35);
  padding: 4px 10px;
  border-radius: 20px;
}
.snapshot-map {
  position: relative;
  height: 190px;
  border-radius: 7px;
  background: radial-gradient(circle at 50% 50%, #1b2c49, #0c1729);
  overflow: hidden;
  margin-bottom: 16px;
}
.ring {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(216,185,140,0.2);
}
.ring-3 { width: 172px; height: 172px; }
.ring-2 { width: 114px; height: 114px; border-color: rgba(216,185,140,0.28); }
.ring-1 { width: 58px; height: 58px; border-color: rgba(216,185,140,0.45); background: rgba(216,185,140,0.06); }
.ring-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8b98c;
  box-shadow: 0 0 0 4px rgba(216,185,140,0.15);
}
.competitor-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7fa3d0;
  transform: translate(-50%,-50%);
}
.map-legend {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 10.5px;
  color: #7c8ca8;
  display: flex;
  gap: 14px;
}
.legend-you { color: #d8b98c; }
.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.snapshot-stat {
  background: #16243d;
  border-radius: 6px;
  padding: 13px 15px;
}
.snapshot-num {
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  color: #f4f7fa;
  font-weight: 600;
  line-height: 1;
}
.snapshot-gold .snapshot-num { color: #d8b98c; }
.snapshot-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #8a99b3;
  margin-top: 4px;
}
.snapshot-note {
  text-align: right;
  font-size: 10px;
  color: #5b6b85;
  margin-top: 11px;
  letter-spacing: 0.08em;
}

/* === SERVICES OVERVIEW === */
.services-overview {
  background: #fbf8f1;
  border-top: 1px solid rgba(22,36,61,0.08);
  border-bottom: 1px solid rgba(22,36,61,0.08);
  padding: 72px 0;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 38px;
  flex-wrap: wrap;
  gap: 16px;
}
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card-sm {
  background: #fff;
  border: 1px solid rgba(22,36,61,0.1);
  border-radius: 8px;
  padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card-sm:hover {
  border-color: #d8b98c;
  transform: translateY(-3px);
}
.service-num-sm {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  font-weight: 600;
  color: #a8824a;
  margin-bottom: 16px;
}
.service-card-h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-weight: 600;
  color: #16243d;
  margin-bottom: 10px;
  line-height: 1.25;
}
.service-card-p { font-size: 14px; line-height: 1.6; color: #56637a; }

/* === CREDIBILITY BAND === */
.cred-band {
  background: #16243d;
  background-image:
    repeating-linear-gradient(0deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px);
  padding: 78px 0;
}
.cred-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.cred-text .h2 { margin-bottom: 18px; }
.cred-text .body-lg { margin-bottom: 26px; max-width: 520px; }
.cred-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cred-stat {
  border: 1px solid rgba(216,185,140,0.22);
  border-radius: 8px;
  padding: 22px;
}
.cred-num {
  font-family: 'Source Serif 4', serif;
  font-size: 40px;
  color: #d8b98c;
  font-weight: 600;
  line-height: 1;
}
.cred-label { font-size: 13px; color: #aebbcf; margin-top: 8px; line-height: 1.45; }

/* === PROCESS === */
.process-section { padding: 78px 0; }
.section-header-center { text-align: center; margin-bottom: 46px; }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.process-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.process-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid #d8b98c;
  color: #a8824a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.process-line { height: 1px; flex: 1; background: rgba(22,36,61,0.12); }
.process-h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: #16243d;
  margin-bottom: 8px;
}
.process-p { font-size: 14.5px; line-height: 1.62; color: #56637a; }

/* === CTA BAND === */
.cta-band {
  background: #fbf8f1;
  border-top: 1px solid rgba(22,36,61,0.08);
  padding: 68px 0;
}
.cta-band .h2 { margin-bottom: 14px; }

/* === PAGE HERO (dark) === */
.page-hero {
  padding: 68px 0 58px;
}
.dark-hero {
  background: #16243d;
  background-image:
    repeating-linear-gradient(0deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px);
}
.page-h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.page-hero .body-lg { margin-top: 4px; }

/* === SERVICES LIST === */
.services-list { padding: 16px 0 0; }
.service-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  padding: 46px 0;
  border-bottom: 1px solid rgba(22,36,61,0.1);
}
.service-row-last { border-bottom: none; }
.service-row-num {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  color: #a8824a;
  font-weight: 600;
  padding-top: 4px;
}
.service-row-h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 600;
  color: #16243d;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-row-p { font-size: 16.5px; line-height: 1.7; color: #46546d; margin-bottom: 18px; max-width: 680px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 13px;
  color: #16243d;
  background: #ece3d2;
  padding: 6px 13px;
  border-radius: 20px;
}

/* === DELIVERABLES === */
.deliverables-band { background: #fbf8f1; border-top: 1px solid rgba(22,36,61,0.08); padding: 72px 0; }
.deliverable-card {
  background: #fff;
  border: 1px solid rgba(22,36,61,0.1);
  border-radius: 8px;
  padding: 30px 26px;
}
.deliverable-icon {
  width: 44px; height: 44px;
  background: rgba(168,130,74,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.deliverable-h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: #16243d;
  margin-bottom: 10px;
}
.deliverable-p { font-size: 14.5px; line-height: 1.65; color: #56637a; }

/* === ABOUT === */
.about-story { padding: 72px 0; }
.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-story-text .h2 { margin-bottom: 20px; }
.about-team { display: flex; flex-direction: column; gap: 14px; }
.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(22,36,61,0.1);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.team-card:hover { border-color: #d8b98c; }
.team-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(216,185,140,0.15);
  border: 1px solid rgba(168,130,74,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  font-weight: 600;
  color: #a8824a;
  flex-shrink: 0;
}
.team-name { font-size: 16px; font-weight: 600; color: #16243d; margin-bottom: 3px; }
.team-role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #7c8ca8; }
.about-focus-box {
  padding: 18px 20px;
  background: rgba(216,185,140,0.12);
  border: 1px solid rgba(168,130,74,0.2);
  border-radius: 8px;
  font-size: 14.5px;
  color: #46546d;
  line-height: 1.6;
}
.about-focus-box strong { color: #a8824a; }
.values-section { background: #fbf8f1; border-top: 1px solid rgba(22,36,61,0.08); padding: 72px 0; }
.value-card {
  padding: 28px 24px;
  border-left: 2px solid #d8b98c;
}
.value-h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: #16243d;
  margin-bottom: 10px;
}
.value-p { font-size: 14.5px; line-height: 1.65; color: #56637a; }

/* === CONTACT === */
.contact-section { padding: 72px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info .h2 { margin-bottom: 16px; }
.contact-info .body-md { margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a8824a;
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-value { font-size: 15px; color: #16243d; font-weight: 500; }
a.contact-value:hover { color: #a8824a; }

/* === FORM === */
.contact-form {
  background: #fff;
  border: 1px solid rgba(22,36,61,0.1);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(22,36,61,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(22,36,61,0.55);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: #f5efe3;
  border: 1px solid rgba(22,36,61,0.12);
  border-radius: 4px;
  font-size: 15px;
  color: #16243d;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(22,36,61,0.3); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #a8824a;
  box-shadow: 0 0 0 3px rgba(168,130,74,0.12);
}

/* === FOOTER === */
.footer {
  background: #16243d;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 0.03em; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
  .mobile-menu { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 48px; }
  .hero-sub { max-width: 100%; }
  .four-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-inner { grid-template-columns: 1fr; gap: 40px; }
  .three-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-story-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 80px 1fr; gap: 20px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
}
@media (max-width: 600px) {
  .four-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .hero-h1 { font-size: 30px; }
}

/* === ABOUT PAGE (v2) === */
.about-hero { padding: 78px 0 68px; }
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  color: #16243d;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.about-photo-wrap {
  aspect-ratio: 3/2;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(22,36,61,0.12);
  box-shadow: 0 18px 44px rgba(22,36,61,0.16);
}
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #16243d 0%, #1d2f4d 100%);
  background-image: repeating-linear-gradient(0deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 380px;
}
.about-avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(216,185,140,0.15);
  border: 2px solid rgba(216,185,140,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 600;
  color: #d8b98c;
  margin-bottom: 8px;
}
.about-photo-name {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: #f4f7fa;
}
.about-photo-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d8b98c;
}
.mission-band {
  background: #16243d;
  background-image: repeating-linear-gradient(0deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(216,185,140,.04) 0 1px, transparent 1px 30px);
  padding: 64px 0;
  text-align: center;
}
.mission-quote {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.45;
  color: #f4f7fa;
  max-width: 880px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
.value-card-v2 {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(22,36,61,0.1);
  border-radius: 8px;
}
.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #16243d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
@media (max-width: 960px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-photo-wrap { aspect-ratio: 3/2; }
  .about-photo-placeholder { min-height: 240px; }
}
