/* ==========================================================================
   Seek2Harvest Solutions — shared stylesheet
   Consolidated from the per-page inline <style> blocks that used to be
   copy-pasted across every page. Page-specific layout (service blocks,
   team grid, article cards, contact form, etc.) stays in a small <style>
   block on its own page; everything below is used on every page.
   ========================================================================== */

:root {
  --navy: #0F2A3D;
  --navy-light: #112B3D;
  --olive: #4E5E2A;
  --sand: #D7CFC2;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--white); }

img { max-width: 100%; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 14px; font-family: 'Inter', sans-serif; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.7; }
.nav-links a.active { opacity: 0.7; border-bottom: 2px solid var(--sand); padding-bottom: 2px; }
.nav-cta {
  background: var(--olive); color: var(--white); border: none;
  padding: 10px 24px; border-radius: 4px; font-size: 14px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ---------- HERO (shared structure; each page sets its own
   min-height and background-image inline on the <section class="hero">) ---------- */
.hero {
  padding-top: 72px;
  background-color: var(--navy);
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,42,61,0.92) 0%, rgba(15,42,61,0.80) 50%, rgba(78,94,42,0.62) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 80px; max-width: 700px; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 56px; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 36px; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary { background: var(--olive); color: var(--white); padding: 14px 28px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 15px; display: inline-block; border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: transparent; color: var(--white); padding: 13px 28px; border-radius: 4px; text-decoration: none; font-weight: 500; font-size: 15px; border: 1.5px solid rgba(255,255,255,0.6); display: inline-block; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--white); }

/* ---------- SECTION LABEL (used at the top of most sections) ---------- */
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--olive); text-transform: uppercase; margin-bottom: 20px; }

/* ---------- "Strategy sets direction..." quote band (index + services) ---------- */
.our-model, .integration {
  background-color: var(--navy);
  background-size: cover; background-position: center bottom;
  position: relative; padding: 100px 80px; text-align: center;
}
.our-model::before, .integration::before { content: ''; position: absolute; inset: 0; background: rgba(15,42,61,0.88); }
.our-model-content, .integration > p, .integration > .tagline { position: relative; z-index: 1; }
.our-model p, .integration p { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 22px; color: var(--white); font-style: italic; line-height: 1.8; margin-bottom: 8px; }
.our-model .tagline, .integration .tagline { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--sand); font-style: italic; font-weight: 400; margin-top: 16px; display: block; }

/* ---------- CLOSING CTA (identical on every page) ---------- */
.closing-cta {
  background-color: var(--navy);
  background-image: url('https://images.unsplash.com/photo-1518173946687-a4c8892bbd9f?w=1800&q=80');
  background-size: cover; background-position: center;
  position: relative; padding: 100px 80px; text-align: center;
}
.closing-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,42,61,0.85), rgba(78,94,42,0.7)); }
.closing-cta-content { position: relative; z-index: 1; }
.closing-cta h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 40px; color: var(--white); margin-bottom: 16px; }
.closing-cta p { font-size: 18px; color: var(--sand); margin-bottom: 36px; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy); padding: 48px 80px 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand strong { color: var(--white); font-size: 15px; font-weight: 600; }
.footer-brand p { font-size: 13px; color: var(--sand); margin-top: 6px; }
.footer-contact a { color: var(--sand); text-decoration: none; font-size: 13px; display: block; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--sand); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   MOBILE (single consolidated breakpoint — replaces the two drifting,
   partially-conflicting @media blocks that used to be pasted into each page)
   ========================================================================== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; width: 100%; }

  /* Nav: let it flow in the document on mobile instead of staying fixed.
     The old approach kept `position:fixed` and tried to pad every section
     down by a guessed pixel amount to clear it — but the mobile nav's
     height is variable (it depends on how many links wrap), so a fixed
     guess only worked on the one page that happened to get patched.
     Letting the nav sit inline removes the guesswork everywhere. */
  nav {
    position: static;
    flex-direction: column; height: auto; padding: 15px; align-items: center;
  }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 15px; width: 100%; }
  .nav-links a { font-size: 13px; padding: 5px; }
  .nav-cta { margin-top: 10px; width: 100%; text-align: center; }

  .hero { padding-top: 40px; min-height: auto !important; }
  .hero-content { padding: 40px 20px; text-align: center; max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero h1 { font-size: 32px; }

  section { padding-left: 20px; padding-right: 20px; }
  .our-model, .integration, .closing-cta, footer,
  .who-we-are, .what-we-do, .our-approach, .leadership,
  .service-block, .approach-block, .investment, .principles,
  .articles, .post-section, .contact-section, .intro {
    padding: 40px 20px;
  }
  .closing-cta h2 { font-size: 28px; }
  .post-section { padding-top: 40px; }

  /* Two-column layouts stack on mobile */
  .who-we-are, .service-block, .approach-block, .contact-section {
    grid-template-columns: 1fr; gap: 32px; text-align: left;
  }
  .who-images { flex-direction: row; }

  /* Grids of cards stack on mobile */
  .cards-grid, .team-grid, .footer-grid, .articles-grid,
  .services-grid, .tier-grid, .approach-cards, .principles-list {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
  }
  .footer-grid { text-align: center; }
  .footer-links { justify-content: center; }
  .card, .team-card, .article-card, .tier-card, .approach-card, .principle {
    width: 100%; max-width: 400px; margin: 0 auto;
  }

  img { max-width: 100%; height: auto; }
  input, textarea, select { width: 100%; max-width: 100%; }
}
