/* Opcelerate Neural — Reviews page (client-facing) */
:root {
  --bg: #f4efe6;
  --bg-deep: #ebe4d8;
  --ink: #14110d;
  --muted: #5c554c;
  --line: rgba(20, 17, 13, 0.1);
  --card: #fffcf7;
  --green: #1f5c48;
  --green-2: #2f6f56;
  --gold: #d97706;
  --star: #d97706;
  --shadow: 0 24px 60px rgba(20, 17, 13, 0.08);
  --radius: 22px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(47, 111, 86, 0.14), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(217, 119, 6, 0.1), transparent 50%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Nav */
.topnav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(244, 239, 230, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.topnav.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(20, 17, 13, 0.06);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 8px; }
.nav-links {
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.05rem;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .82rem; font-weight: 700;
}
.nav-cta:hover { background: var(--green); }

/* Hero */
.hero { padding: 2.25rem 0 1.25rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}
.eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: .75rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.08rem; color: var(--muted); max-width: 38rem; margin-bottom: 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.25rem; border-radius: 999px;
  font-size: .9rem; font-weight: 700; border: 0; cursor: pointer;
  font-family: inherit; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green); color: #fffaf0;
  box-shadow: 0 12px 28px rgba(31, 92, 72, 0.22);
}
.btn-primary:hover { background: var(--green-2); }
.btn-ghost {
  background: rgba(255,252,247,.7); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: #fff; }

/* Score card */
.score-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.score-main { display: flex; align-items: center; gap: 1.1rem; }
.score-num {
  font-family: var(--display);
  font-size: 4rem; line-height: 1; letter-spacing: -0.04em; color: var(--ink);
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.15rem; }
.star-empty { color: rgba(20,17,13,.18); }
.score-count { font-weight: 700; margin-top: .2rem; }
.score-place { color: var(--muted); font-size: .88rem; }
.bars { display: grid; gap: 6px; }
.bar-row {
  display: grid; grid-template-columns: 14px 1fr 36px; gap: 10px;
  align-items: center; font-size: .75rem; color: var(--muted); font-weight: 600;
}
.bar {
  height: 8px; background: rgba(20,17,13,.08); border-radius: 99px; overflow: hidden;
}
.bar > i {
  display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f59e0b);
  border-radius: 99px;
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span {
  font-size: .74rem; font-weight: 700;
  padding: .38rem .7rem; border-radius: 999px;
  background: rgba(47, 111, 86, 0.1); color: var(--green);
  border: 1px solid rgba(47, 111, 86, 0.14);
}

/* Sections */
.section { padding: 1.5rem 0 2.5rem; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button {
  border: 1px solid var(--line); background: rgba(255,252,247,.75);
  border-radius: 999px; padding: .5rem .9rem;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: .2s;
}
.filters button:hover { color: var(--ink); border-color: rgba(20,17,13,.2); }
.filters button.on {
  background: var(--green); color: #fffaf0; border-color: var(--green);
}

/* Review grid */
.feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.2rem;
  box-shadow: 0 10px 30px rgba(20, 17, 13, 0.04);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(31, 92, 72, 0.22);
}
.review-top { display: flex; gap: .8rem; align-items: flex-start; }
.avatar {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--av, var(--green)); color: #fff;
  font-weight: 700; font-size: .85rem;
  display: grid; place-items: center; flex-shrink: 0;
}
.who { min-width: 0; flex: 1; }
.name { font-weight: 700; font-size: .98rem; }
.meta { font-size: .8rem; color: var(--muted); margin-top: .1rem; line-height: 1.35; }
.badge-client {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: rgba(47, 111, 86, 0.12);
  border: 1px solid rgba(47, 111, 86, 0.16);
  padding: .3rem .55rem; border-radius: 999px; white-space: nowrap;
}
.rating-line {
  display: flex; align-items: center; gap: .65rem;
  margin: .85rem 0 .55rem;
}
.rating-line time { color: var(--muted); font-size: .8rem; font-weight: 500; }
.review-card .body {
  font-size: .95rem; color: var(--ink); line-height: 1.6;
  flex: 1;
}

/* FAQ */
.faq { display: grid; gap: .65rem; max-width: 760px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(31, 92, 72, 0.25); }
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.2rem; color: var(--green); font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: .65rem; color: var(--muted); font-size: .95rem;
  padding-right: 1.5rem;
}

/* Form */
.form-section { padding-bottom: 3.5rem; }
.form-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.form-intro h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: .35rem 0 .75rem;
}
.form-intro p:last-child { color: var(--muted); }
label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--muted); letter-spacing: .02em; margin: .85rem 0 .35rem;
}
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem .95rem; font: inherit; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(31, 92, 72, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 92, 72, 0.12);
}
textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.star-pick { display: flex; gap: .35rem; }
.star-pick button {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  color: rgba(20,17,13,.18); font-size: 1.2rem; cursor: pointer;
  transition: .15s;
}
.star-pick button.on { color: var(--star); border-color: rgba(217,119,6,.35); background: rgba(217,119,6,.08); }
.star-pick button:hover { border-color: rgba(217,119,6,.4); }
.check {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .88rem; font-weight: 500; color: var(--muted);
  margin: 1rem 0 1.15rem; cursor: pointer;
}
.check input { width: auto; margin-top: .2rem; accent-color: var(--green); }
.submit { width: 100%; min-height: 52px; }
.form-success {
  display: none; margin-top: 1rem; padding: 1.1rem 1.2rem;
  background: rgba(47, 111, 86, 0.1); border: 1px solid rgba(47, 111, 86, 0.2);
  border-radius: 14px; color: var(--green); font-weight: 600;
}
.form-success.show { display: block; grid-column: 1 / -1; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 calc(1.5rem + var(--safe-b));
  color: var(--muted); font-size: .85rem;
  background: rgba(255,252,247,.5);
}
.foot-inner { display: grid; gap: .4rem; }
.site-foot a { color: var(--muted); font-weight: 600; }
.site-foot a:hover { color: var(--green); }
.copy { font-size: .8rem; opacity: .85; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-links { display: none; }
  .feed { grid-template-columns: 1fr; }
  .form-panel { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .score-num { font-size: 3.2rem; }
  .hero { padding-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .review-card:hover { transform: none; }
}
