/* SRQ Analytics — v2 extras (loaded AFTER styles.css)
   Mobile fixes + small refinements specific to the revised version. */

/* Keep the hero data card from dominating on tablet/phone */
.hero-visual { max-width: 460px; width: 100%; }

@media (max-width: 900px) {
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero-visual { max-width: 380px; }
  .viz { padding: 22px; }
  .viz-big { font-size: 27px; }
  .viz-chart { height: 88px; margin-bottom: 12px; }
  .viz-pair .vb { width: 11px; }
  .viz-item { font-size: 12.5px; }
  .viz-list { gap: 10px; }
}

@media (max-width: 400px) {
  .hero-visual { max-width: 100%; }
  .viz { padding: 18px; }
}

/* ---------- FAQ (AEO) ---------- */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-mark::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); opacity: 0; }
.faq-item p {
  margin: 0 40px 26px 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

/* ---------- About: headline full-width, byline top-right ----------
   Three children in .about-grid: .about-head (eyebrow + h2), .about-copy (the
   bio paragraphs) and .about-card (168px circle-clipped cutout, name, role).
   Above 820px the head spans both columns, the copy takes the left column and
   the byline sits top-right, anchored to the first paragraph. Below 820px it
   stacks head → byline → copy, so the face is still next to the headline on a
   phone rather than four paragraphs down.
   Why: with the four-paragraph bio, a vertically-centred byline floated beside
   paragraph three attached to nothing. Full-width head also lets the headline
   set on one line. A true text-wrap around the photo was tried and rejected —
   the measure ran past 90 characters. Noir/Atlas don't load this file. */
.about-grid {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}
.about-head  { order: 1; margin-bottom: 26px; }
.about-card  { order: 2; }
.about-copy  { order: 3; margin-top: 28px; }
.about-copy > * + * { margin-top: 22px; }
.about-copy p { max-width: 68ch; }

@media (min-width: 821px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(36px, 6vw, 96px);
  }
  /* Rows are pinned on purpose. With `order` set for the mobile stack, grid
     auto-placement puts the copy on row 3 (the cursor never moves backwards),
     which silently turns this back into a single column. */
  .about-head  { grid-column: 1 / -1; grid-row: 1; }
  .about-copy  { grid-column: 1; grid-row: 2; margin-top: 0; }
  .about-card  { grid-column: 2; grid-row: 2; align-self: start; margin-top: 2px; }
}

/* the byline itself: photo over name over role, centred */
.about-card {
  /* undo the v1 card */
  background: none;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  overflow: visible;
  max-width: none;
  display: grid;
  grid-template-columns: 168px;
  grid-template-rows: auto auto auto;
  row-gap: 0;
  justify-items: center;
  justify-content: start;
}
.about-card .glow { display: none; }
.about-photo {
  grid-row: 1;
  display: block;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: none;
  margin-bottom: 12px;
}
.about-card .name {
  grid-row: 2;
  margin: 0;
  font-size: 20px;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.about-card .role {
  grid-row: 3;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* ---------- Section rhythm ----------
   styles.css sets .section padding to clamp(64px, 9vw, 120px) on BOTH top and
   bottom, so two adjacent sections stacked to ~230px of empty space at desktop
   widths — and 336px between the hero and Services. Roughly halved here. The
   display type is large enough to carry the separation without the extra air.
   No media query needed: these clamps scale down on their own, and styles.css
   sets no breakpoint-specific padding on .section or .hero. */
.section { padding: clamp(40px, 4.2vw, 60px) 0; }
.section-head { margin-bottom: clamp(24px, 2.8vw, 36px); }
.hero { padding: clamp(40px, 5vw, 68px) 0 clamp(28px, 3.4vw, 46px); }

/* Nav CTA: compact so it sits inside the 70px bar with air around it,
   instead of filling it (was 53px tall). Short label on narrow phones so
   it never collides with the brand or overflows the viewport. */
.nav-cta .btn { padding: 10px 18px; font-size: 14px; gap: 8px; box-shadow: 0 1px 2px rgba(11,43,61,.08), 0 4px 12px rgba(11,43,61,.10); }
.nav-cta .btn .lbl-short { display: none; }
@media (max-width: 480px) {
  .nav-cta .btn { padding: 9px 15px; }
  .nav-cta .btn .lbl-long { display: none; }
  .nav-cta .btn .lbl-short { display: inline; }
}
@media (max-width: 350px) {
  .nav .brand { font-size: 18px; gap: 8px; }
}
