/* ==========================================================================
   Greenfield Analytics — shared stylesheet
   Palette sampled directly from GFA_Logo.png
   ========================================================================== */

:root {
  /* Sampled from logo */
  --ink:        #000000;   /* logo background */
  --neon:       #00F9D5;   /* logo mark + "GREENFIELD" wordmark */
  --paper:      #FFFFFF;   /* logo "ANALYTICS" wordmark */
  --neon-deep:  #006E5E;   /* logo antialias shadow — used for gradients */

  /* Derived surface ramp */
  --surface-0:  #000000;
  --surface-1:  #0A0F0E;
  --surface-2:  #101917;
  --surface-3:  #16211F;
  --line:       rgba(0, 249, 213, 0.16);
  --line-soft:  rgba(255, 255, 255, 0.08);

  /* Type */
  --text:       #EAF3F1;
  --text-mute:  #93A5A2;
  --text-dim:   #6B7E7B;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --glow: 0 0 0 1px rgba(0,249,213,.25), 0 12px 40px -12px rgba(0,249,213,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip blocks sideways panning without breaking the sticky header */
}
img { max-width: 100%; display: block; }
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .5em; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
#industries { padding-top: 2rem; }
.section--alt { background: var(--surface-1); border-block: 1px solid var(--line-soft); }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.team__title { display: flex; align-items: center; gap: .9rem; }
.team__title img { flex: none; }
.team__title h2 { margin: 0; white-space: nowrap; }
.eyebrow {
  font-family: var(--font-head);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--neon); margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .7rem;
}
.section__head--center .eyebrow { justify-content: center; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--neon); flex: none; }
.lede { color: var(--text-mute); font-size: 1.08rem; }

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--neon); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0,249,213,.6); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(0,249,213,.75); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(0,249,213,.05); }
.btn--ghost:hover { border-color: var(--neon); background: rgba(0,249,213,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; }
.nav__logo {
  display: inline-flex; align-items: center; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav__logo:hover { transform: translateY(-1px); }
.nav__logo img {
  height: 56px; width: auto; display: block;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.nav__logo:hover img { transform: scale(1.04); filter: brightness(1.06); }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--text); font-family: var(--font-head); font-weight: 500;
  font-size: .95rem; text-decoration: none; position: relative; padding: .25rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--neon); transition: width .22s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--neon); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .7rem; color: var(--neon); cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 820px) {
  /* Sticky is unreliable on mobile with body overflow-x: hidden, so pin the header */
  body { padding-top: 73px; }
  .site-header { position: fixed; left: 0; right: 0; }
  .nav { gap: .6rem; }
  .nav__logo { flex: 0 1 auto; min-width: 0; }
  .nav__logo img { height: auto; max-height: 44px; max-width: 100%; }
  .nav > .btn { margin-left: auto; padding: .55rem 1rem; font-size: .85rem; white-space: nowrap; }
  .nav__toggle { display: block; flex: none; }
  .team__title h2 { white-space: normal; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface-1); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; display: none;
    max-height: calc(100vh - 73px); overflow-y: auto;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; border-top: 1px solid var(--line-soft); }
  .nav__links a { display: block; padding: .9rem 0; width: 100%; }
  .nav__links .btn { margin-top: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(48% 55% at 22% 12%, rgba(0,249,213,.20), transparent 62%),
    radial-gradient(40% 45% at 88% 78%, rgba(0,110,94,.30), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
  opacity: .7;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 860px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--neon);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem 1rem; margin-bottom: 1.6rem;
  background: rgba(0,249,213,.06);
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--neon), #7CFFEA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: var(--text-mute); max-width: 640px; margin-bottom: 2.2rem; }

/* Page hero (subpages) */
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 160%;
  background: radial-gradient(45% 55% at 30% 15%, rgba(0,249,213,.16), transparent 65%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--line-soft); background: var(--surface-1); padding: 1.6rem 0; }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.6rem; }
.trustbar__label { font-family: var(--font-head); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--glow); }
.card > :last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: rgba(0,249,213,.10); border: 1px solid var(--line);
  color: var(--neon);
}
.card__icon svg { width: 22px; height: 22px; }
.card p { color: var(--text-mute); }
.card--service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--neon), transparent);
  transition: width .3s var(--ease);
}
.card--service:hover::before { width: 100%; }

.meta { font-size: .88rem; color: var(--text-dim); margin: 0; }
.meta strong { color: var(--text-mute); font-weight: 600; }

/* ---------- Placeholder styling ---------- */
.ph {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: .82em; letter-spacing: .01em;
  color: #FFD166;
  background: rgba(255, 209, 102, .09);
  border: 1px dashed rgba(255, 209, 102, .45);
  border-radius: 6px;
  padding: .08em .5em;
}
.ph-block {
  display: block;
  border: 1px dashed rgba(255, 209, 102, .4);
  background: rgba(255, 209, 102, .05);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  color: #FFD166;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.ph-note {
  font-size: .8rem; color: var(--text-dim); font-style: italic;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  position: relative; padding: 2.4rem 1.6rem 1.6rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 1.1rem; left: 1.6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--neon); letter-spacing: .1em;
}
.step h3 { margin-top: .6rem; font-size: 1.1rem; }
.step p { color: var(--text-mute); font-size: .95rem; margin: 0; }

/* ---------- Industries ---------- */
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.pill-list li {
  margin: 0; padding: .6rem 1.15rem; border-radius: 100px;
  border: 1px solid var(--line-soft); background: var(--surface-2);
  font-size: .93rem; color: var(--text-mute);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pill-list li:hover { border-color: var(--neon); color: var(--text); }

/* ---------- Differentiator band ---------- */
.stat {
  font-family: var(--font-head); font-weight: 700; color: var(--neon);
}

.band {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 130% at 5% 0%, rgba(0,249,213,.12), transparent 60%),
    var(--surface-2);
  width: min(100%, 900px); margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.2rem);
}
.band h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.band p { color: var(--text-mute); margin-bottom: 0; }

/* ---------- Case studies ---------- */
.case { display: grid; gap: 1rem; }
.case dl { display: grid; grid-template-columns: 130px 1fr; gap: .5rem 1rem; margin: 0; }
.case dt { font-family: var(--font-head); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); padding-top: .2rem; }
.case dd { margin: 0; color: var(--text-mute); }
@media (max-width: 560px) { .case dl { grid-template-columns: 1fr; gap: .2rem 0; } .case dd { margin-bottom: .7rem; } }

/* ---------- Team ---------- */
.person__photo {
  width: 96px; height: 96px; border-radius: 50%;
  /*border: 1px dashed rgba(255,209,102,.5); background: rgba(255,209,102,.06);*/
  display: grid; place-items: center; color: #FFD166;
  font-size: .68rem; font-family: ui-monospace, Consolas, monospace; text-align: center;
  margin-bottom: 1.1rem; padding: .4rem;
}
.person h3 { margin-bottom: .15rem; }
.person__role { color: var(--neon); font-size: .88rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; margin-bottom: .8rem; }

/* ---------- Testimonials ---------- */
.quote {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--surface-2); padding: 2rem 1.9rem; margin: 0;
  position: relative;
}
.quote::before {
  content: "\201C"; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1;
  color: var(--neon); opacity: .35; position: absolute; top: .5rem; right: 1.2rem;
}
.quote p { font-size: 1.08rem; color: var(--text); }
.quote footer { color: var(--text-dim); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface-2); padding: 0 1.4rem;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--neon); font-size: 1.4rem; font-weight: 400;
  transition: transform .22s var(--ease); flex: none; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { padding-bottom: .3rem; color: var(--text-mute); }
.faq details p:last-child { margin-bottom: 1.2rem; }
.faq__close {
  display: block; margin: 0 0 1rem; padding: 0; border: 0;
  background: transparent; color: var(--neon); cursor: pointer;
  font: inherit; text-decoration: underline;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(0,249,213,.16), transparent 70%),
    var(--surface-1);
  text-align: center;
}
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--text-mute); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
.field label .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: .8rem .95rem; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,249,213,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { margin: 0; display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ico { color: var(--neon); flex: none; margin-top: .2rem; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list .k { font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: block; }
.contact-list .v { color: var(--text-mute); font-size: .95rem; }

/* ---------- Blog ---------- */
.post { display: flex; flex-direction: column; }
.post__date { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--neon); font-family: var(--font-head); font-weight: 600; margin-bottom: .7rem; }
.post h3 { font-size: 1.18rem; }
.post p { color: var(--text-mute); font-size: .96rem; flex: 1; }
.post__link { font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--line-soft); padding: 3.5rem 0 2rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand img {
  height: 52px; margin-bottom: 1rem; display: block;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.footer__brand:hover img { transform: scale(1.04); filter: brightness(1.06); }
.footer__brand p { color: var(--text-dim); font-size: .93rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-head); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .6rem; }
.footer ul a { color: var(--text-mute); font-size: .95rem; text-decoration: none; }
.footer ul a:hover { color: var(--neon); }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; align-items: center;
  font-size: .88rem; color: var(--text-dim);
}
.footer__bottom a { color: var(--text-dim); text-decoration: none; }
.footer__bottom a:hover { color: var(--neon); }
.footer__legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.tagline { font-family: var(--font-head); font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--neon); margin-bottom: 1rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- A11y ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--neon); color: var(--ink); padding: .7rem 1.2rem; border-radius: 0 0 10px 0;
  font-family: var(--font-head); font-weight: 600;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }
