/* ============================================================
   QuantSprout — static site styles
   Brand refresh: leaf-green identity, warm off-white grounds
   ============================================================ */

:root {
  /* Brand */
  --brand:        #6aa02f;   /* leaf green */
  --brand-deep:   #3c5a24;   /* forest / olive */
  --brand-mid:    #86b544;   /* lighter leaf */
  --brand-tint:   #eef3e4;   /* pale green band */

  /* Neutrals (slight green bias) */
  --ink:          #1c2318;   /* green-black */
  --ink-soft:     #55604a;   /* muted body text */
  --paper:        #fbfcf8;   /* warm off-white */
  --line:         #e4e8da;   /* hairlines */
  --card:         #ffffff;

  --shadow-sm: 0 2px 8px rgba(28, 35, 24, .06);
  --shadow-md: 0 18px 40px -24px rgba(28, 35, 24, .35);

  --maxw: 1140px;
  --radius: 14px;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(106,160,47,.7); }
.btn-primary:hover { background: var(--brand-deep); text-decoration: none; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); text-decoration: none; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 248, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  padding: 6px 2px; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); transition: right .2s ease;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a:hover::after { right: 0; }

.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; color: var(--ink-soft); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { border: 0; outline: 0; background: transparent; font-family: var(--font-body); font-size: .9rem;
  width: 130px; color: var(--ink); }

/* ---------- Placeholder blocks ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(60,90,36,.06) 11px, rgba(60,90,36,.06) 12px),
    var(--brand-tint);
  border: 1.5px dashed rgba(60,90,36,.35);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-ph);
  font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .02em;
  color: var(--brand-deep); opacity: .8; text-align: center; padding: 10px 14px;
}

/* ---------- Hero ---------- */
.hero { padding: 0; }
.hero-photo {
  min-height: 560px; border-radius: 0; border: 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  background-image:
    linear-gradient(90deg, rgba(251,252,248,.94) 0%, rgba(251,252,248,.82) 32%, rgba(251,252,248,.35) 58%, rgba(251,252,248,0) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
}
.hero-content { padding-block: 40px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--brand-deep); margin-bottom: 14px; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.hero-tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  color: var(--ink); margin-top: 6px; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-actions .btn-ghost { background: rgba(60,90,36,.1); color: var(--brand-deep); border-color: rgba(60,90,36,.4); }
.hero-actions .btn-ghost:hover { background: rgba(60,90,36,.18); }

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section.band { background: var(--brand-tint); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; margin-top: 12px; }

h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }

/* split layout (two column) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split-body h2 { margin-bottom: 2px; }
.split-body p { color: var(--ink-soft); }
.split-body .lede { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.split-body .btn { margin-top: 8px; }

.eyebrow + h2 { margin-top: -6px; }

/* ---------- Reviews ---------- */
.yelp-badge { width: 240px; max-width: 80%; height: auto; margin: 0 auto; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-deep);
  display: grid; place-items: center;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.25rem; font-weight: 600; }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* ---------- Tool montage (Custom Training) ---------- */
.tool-art {
  min-height: 340px; width: 100%; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 32px;
}

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.client-logo {
  min-height: 96px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.client-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* Logos are pre-trimmed to their content box (assets/clients/), so a uniform
   height + width cap reads at a consistent optical scale across the grid. */
.client-logo img { max-height: 48px; max-width: 82%; width: auto; object-fit: contain; }

/* ---------- Our Story ---------- */
/* Narrow photo column so the headshot stays modest beside the bio */
#story .split { grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.story-photo {
  width: 100%; max-width: 240px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 16px; box-shadow: var(--shadow-md);
}
.signature { font-family: var(--font-display); font-weight: 600; color: var(--ink) !important; line-height: 1.4; margin-top: 6px; }
.signature span { font-weight: 400; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7ddcf; padding-block: 64px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.footer-col { display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; border-right: 1px solid rgba(255,255,255,.1); }
.footer-col:last-child { border-right: 0; }
.footer-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(134,181,68,.16);
  color: var(--brand-mid); display: grid; place-items: center; margin-bottom: 4px; }
.footer-icon svg { width: 22px; height: 22px; }
.footer-col h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.footer-col p, .footer-col a { color: #d7ddcf; }
.footer-col a:hover { color: var(--brand-mid); text-decoration: none; }
.social-links { display: flex; gap: 18px; }
.copyright { text-align: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  color: #97a189; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .ph { order: -1; }
  .split-body { align-items: flex-start; }
  #story .split { grid-template-columns: 1fr; }
  #story .story-photo { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .main-nav, .search { display: none; }
  .hero-photo { min-height: 460px; }
  .section { padding-block: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer-col:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
