/* =========================================================
   FIELD IQ — styles.css
   Premium "ag + data" theme
   - Mobile-first
   - Accessible focus states
   - Sticky header offset friendly
   - Works with your existing assets: hero.jpg, logo.png, partner-*.png
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html:focus-within { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
input, button, textarea { font: inherit; }

/* ---------- Tokens ---------- */
:root{
  --bg: #0f141a;             /* graphite */
  --bg-2: #0b0f14;
  --surface: rgba(19, 27, 34, 0.92);
  --border: rgba(232, 238, 245, 0.12);

  --text: #e8eef5;
  --muted: rgba(232, 238, 245, 0.78);
  --muted2: rgba(232, 238, 245, 0.62);

  --primary: #2f6b4f;        /* olive */
  --primary2: #245440;
  --accent: #b7791f;         /* copper */

  --shadow: 0 14px 35px rgba(0,0,0,0.35);
  --shadowSoft: 0 10px 25px rgba(0,0,0,0.22);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --max: 1120px;
  --ring: 0 0 0 3px rgba(183, 121, 31, 0.25);
}

body { background: var(--bg); color: var(--text); }

/* ---------- Layout ---------- */
.container{
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.grid{ display: grid; gap: 16px; }

.section{ padding: 72px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(245,243,238,0.08), rgba(245,243,238,0.04));
}

.section__head{ margin-bottom: 22px; }
.section__head h2{
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.3px;
}
.section__head p{
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- Accessibility ---------- */
.sr-only{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link{
  position: absolute;
  left: 16px; top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(232,238,245,0.92);
  color: #0b1220;
  box-shadow: var(--shadowSoft);
  transform: translateY(-200%);
  transition: transform 160ms ease;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus{ transform: translateY(0); outline: none; box-shadow: var(--shadowSoft), var(--ring); }

:focus-visible{ outline: none; box-shadow: var(--ring); border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, opacity 120ms ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color: var(--text);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 10px 25px rgba(47, 107, 79, 0.25);
}
.btn--primary:hover{ opacity: 0.95; }

.btn--ghost{
  background: rgba(232,238,245,0.06);
  color: var(--text);
  border-color: rgba(232,238,245,0.16);
}
.btn--ghost:hover{ background: rgba(232,238,245,0.08); }

.btn--sm{ padding: 10px 14px; font-size: 14px; }
.btn--lg{ padding: 14px 18px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 26, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,238,245,0.08);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__logo{
  width: 34px; height: 34px;
  border-radius: 10px;
}
.brand__name{ font-weight: 800; letter-spacing: 0.6px; }

.nav{ display: flex; align-items: center; }

.nav__toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(232,238,245,0.14);
  background: rgba(232,238,245,0.05);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle .bar{
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 2px;
}

.nav__menu{
  list-style: none;
  margin: 0; padding: 0;
  display: none;
  gap: 10px;
  align-items: center;
}
.nav__menu a{
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  transition: background 120ms ease, color 120ms ease;
}
.nav__menu a:hover{
  color: var(--text);
  background: rgba(232,238,245,0.06);
}
.nav__menu a.btn{ padding: 10px 14px; }

/* Mobile dropdown */
.nav__menu.is-open{
  display: grid;
  position: absolute;
  right: 20px;
  top: 74px;
  background: rgba(19, 27, 34, 0.96);
  border: 1px solid rgba(232,238,245,0.12);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  width: min(320px, calc(100vw - 40px));
}

/* Desktop nav */
@media (min-width: 920px){
  .nav__toggle{ display: none; }
  .nav__menu{
    display: flex;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }
}

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 42px;
  position: relative;
  overflow: hidden;
}
.hero__bg{
  position: absolute;
  inset: -120px -80px auto -80px;
  height: 380px;
  background:
    radial-gradient(closest-side at 25% 35%, rgba(47, 107, 79, 0.35), transparent 65%),
    radial-gradient(closest-side at 70% 40%, rgba(183, 121, 31, 0.25), transparent 60%);
  filter: blur(20px);
  opacity: 0.95;
}
.hero__inner{
  display: grid;
  align-items: center;
  gap: 24px;
}
.hero__copy h1{
  margin: 0 0 10px;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.9px;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 68ch;
}
.hero__cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero__bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.hero__bullets li{ margin: 6px 0; }
.hero__bullets strong{ color: var(--text); }

.hero__media{
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(232,238,245,0.12);
  box-shadow: var(--shadowSoft);
  background: rgba(232,238,245,0.03);
}
.hero__media img{ width: 100%; height: auto; }

@media (min-width: 920px){
  .hero__inner{ grid-template-columns: 1.05fr 0.95fr; gap: 28px; }
  .hero{ padding: 78px 0 56px; }
}

/* ---------- Cards ---------- */
.cards{ grid-template-columns: 1fr; }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.card h3{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.card p{
  margin: 0 0 12px;
  color: var(--muted);
}

.checklist{
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.checklist li{
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: rgba(47, 107, 79, 0.95);
  font-weight: 900;
}

@media (min-width: 760px){
  .cards{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Tiles ---------- */
.tiles{ grid-template-columns: 1fr; }

.tile{
  background: rgba(232,238,245,0.06);
  border: 1px solid rgba(232,238,245,0.12);
  border-radius: var(--r-lg);
  padding: 18px;
}
.tile h3{ margin: 0 0 8px; font-size: 18px; }
.tile p{ margin: 0; color: var(--muted); }

@media (min-width: 760px){ .tiles{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px){ .tiles{ grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cases ---------- */
.cases{ grid-template-columns: 1fr; }

.case{
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(232,238,245,0.12);
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.case__body{ padding: 16px 16px 14px; }
.case__body h3{ margin: 0 0 8px; font-size: 18px; }
.case__body p{ margin: 0 0 12px; color: var(--muted); }

.tags{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.tags li{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232,238,245,0.12);
  background: rgba(232,238,245,0.05);
  color: var(--muted);
}

@media (min-width: 760px){ .cases{ grid-template-columns: repeat(3, 1fr); } }

/* ---------- Partners / Platforms ---------- */
.partners{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: center;
}
.partners img{
  width: 100%;
  height: 64px;
  object-fit: contain;
  opacity: 0.92;
  background: rgba(232,238,245,0.04);
  border: 1px solid rgba(232,238,245,0.1);
  border-radius: var(--r-md);
  padding: 12px;
}
@media (min-width: 760px){
  .partners{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Contact / Forms ---------- */
.contact__grid{
  grid-template-columns: 1fr;
  gap: 16px;
}

.form{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.24);
}

.form__row{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label{
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

input, textarea{
  border-radius: 14px;
  border: 1px solid rgba(232,238,245,0.14);
  background: rgba(232,238,245,0.05);
  color: var(--text);
  padding: 12px 12px;
}
textarea{ resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder{ color: rgba(232,238,245,0.45); }

.form__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form__note{
  margin: 0;
  color: var(--muted);
}

.form__note a{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(183,121,31,0.6);
  text-underline-offset: 3px;
}

.form__success{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47,107,79,0.35);
  background: rgba(47,107,79,0.15);
  color: rgba(232,238,245,0.92);
}
.form__error{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(214,69,69,0.35);
  background: rgba(214,69,69,0.14);
  color: rgba(232,238,245,0.92);
}

.contact__aside{ display: grid; gap: 12px; }

.contact__card{
  background: rgba(232,238,245,0.05);
  border: 1px solid rgba(232,238,245,0.12);
  border-radius: var(--r-lg);
  padding: 16px;
}
.contact__card h3{ margin: 0 0 8px; font-size: 18px; }
.contact__card p{ margin: 0 0 10px; color: var(--muted); }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }
.list strong{ color: var(--text); }

/* FAQ */
.faq{
  background: rgba(232,238,245,0.05);
  border: 1px solid rgba(232,238,245,0.12);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}
.faq summary{
  cursor: pointer;
  font-weight: 750;
  color: var(--text);
}
.faq p{
  color: var(--muted);
  margin: 10px 0 0;
}

@media (min-width: 920px){
  .contact__grid{
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid rgba(232,238,245,0.08);
  padding: 22px 0;
  background: rgba(11,15,20,0.65);
}
.footer__inner{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}
.footer__brand img{
  width: 26px; height: 26px;
  border-radius: 9px;
}
.footer__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__nav a{
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}
.footer__nav a:hover{
  color: var(--text);
  background: rgba(232,238,245,0.06);
}
.footer__copy{
  margin: 0;
  color: var(--muted2);
}