/* ============================================================================
   Strawberry for Beauty — reviews band on the 3D landing pages.

   Scope: .sfb-revs, and nothing else. The band is injected on `get_footer`, so
   it sits OUTSIDE each template's own scope class (.sfb-iron3d, .sfb-comb3d, …)
   and can inherit nothing from them — every value it needs is declared here.

   Palette is the 3D pages' own: --void #0B0B0D, --char #141418, --slate #1E1E24,
   read from assets/iron-3d.css:23 so the band reads as part of the page rather
   than as a widget dropped on the end. #DE2227 is the only accent.
   ========================================================================== */

.sfb-revs {
  --void:#0B0B0D; --char:#141418; --slate:#1E1E24;
  --line:#242430; --cream:#F0EAE6; --mute:#948D96; --dim:#635C68; --red:#DE2227;
  --f-display:var(--sfb-cairo);
  --f-body:var(--sfb-cairo);
  --f-tick:var(--sfb-cairo);

  position:relative;
  background:
    radial-gradient(ellipse 55% 130% at 50% 0%,rgba(222,34,39,.13),transparent 66%),
    var(--void);
  border-block-start:1px solid var(--line);
  color:var(--cream);
  font-family:var(--sfb-cairo);
  padding:clamp(64px,9vw,120px) clamp(20px,5vw,52px);
}
.sfb-revs *,.sfb-revs *::before,.sfb-revs *::after{box-sizing:border-box}
.sfb-revs__in{max-width:1040px;margin:0 auto}
.sfb-revs :focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* ---------- head ---------- */
.sfb-revs .revs-head{max-width:620px;margin-bottom:34px}
.sfb-revs .tick{
  display:block;font-family:var(--sfb-cairo);font-size:10px;font-weight:500;
  letter-spacing:.42em;color:var(--red);margin-bottom:15px;
}
.sfb-revs h2{
  margin:0;font-family:var(--sfb-cairo);font-weight:600;
  font-size:clamp(24px,3.2vw,38px);line-height:1.4;color:#fff;
}
.sfb-revs .revs-hair{
  width:42px;height:2px;background:var(--red);
  box-shadow:0 0 14px rgba(222,34,39,.6);margin-top:20px;
}

/* ---------- post-submit confirmation ---------- */
.sfb-revs .revs-note{
  margin:0 0 26px;padding:15px 20px;
  background:var(--char);border:1px solid var(--line);border-inline-start:2px solid var(--red);
  font-size:13.5px;line-height:1.9;color:var(--cream);
}

/* ---------- summary ---------- */
.sfb-revs .revs-sum{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;
  margin:0 0 28px;font-size:13px;color:var(--mute);
}
.sfb-revs .revs-sum__n{font-family:var(--sfb-cairo);font-size:17px;color:#fff}
.sfb-revs .voice-stars{display:inline-flex;gap:2px;font-size:15px;line-height:1;color:var(--dim)}
.sfb-revs .voice-stars .on{color:var(--red)}

/* ---------- the reviews ---------- */
.sfb-revs .revs-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1px;margin:0 0 34px;padding:0;list-style:none;
}
.sfb-revs .revs-item{
  background:var(--char);box-shadow:0 0 0 1px var(--line);
  padding:24px 22px 20px;display:flex;flex-direction:column;gap:13px;
}
.sfb-revs .revs-text{
  margin:0;font-size:13.5px;line-height:2;color:#A29BA3;font-weight:300;flex:1 1 auto;
}
.sfb-revs .revs-who{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding-top:13px;border-top:1px solid var(--line);
}
.sfb-revs .revs-name{font-family:var(--sfb-cairo);font-size:14px;font-weight:500;color:#fff}
.sfb-revs .revs-who time{font-family:var(--sfb-cairo);font-size:10px;letter-spacing:.1em;color:var(--dim)}

/* ---------- empty state ---------- */
.sfb-revs .revs-first{
  background:var(--char);border:1px solid var(--line);
  padding:clamp(24px,4vw,38px);
}
.sfb-revs .revs-first__lead{
  margin:0 0 26px;font-size:14.5px;line-height:2;color:#A29BA3;font-weight:300;max-width:56ch;
}
.sfb-revs .revs-first__lead strong{color:var(--cream);font-weight:700}

/* ---------- "add yours", once there are reviews to add to ---------- */
.sfb-revs .revs-more{border:1px solid var(--line);background:var(--char)}
.sfb-revs .revs-more > summary{
  cursor:pointer;list-style:none;padding:17px 22px;
  font-family:var(--sfb-cairo);font-size:15px;font-weight:500;color:#fff;
  display:flex;align-items:center;gap:11px;transition:color .3s ease;
}
.sfb-revs .revs-more > summary::-webkit-details-marker{display:none}
.sfb-revs .revs-more > summary::before{
  content:"+";font-family:var(--sfb-cairo);font-size:17px;color:var(--red);line-height:1;
  transition:transform .35s cubic-bezier(.16,1,.3,1);
}
.sfb-revs .revs-more[open] > summary::before{transform:rotate(45deg)}
.sfb-revs .revs-more > summary:hover{color:var(--red)}
.sfb-revs .revs-more .revs-form__wrap{padding:0 22px 24px}

/* ---------- the form ---------- */
.sfb-revs .revs-form__row{margin:0 0 18px;display:flex;flex-direction:column;gap:8px}
.sfb-revs .revs-form label{font-size:12.5px;color:var(--mute)}
.sfb-revs .revs-form .req{color:var(--red)}
.sfb-revs .revs-form__hint{font-size:11px;line-height:1.7;color:var(--dim)}
.sfb-revs .revs-form input[type="text"],
.sfb-revs .revs-form input[type="email"],
.sfb-revs .revs-form input[type="url"],
.sfb-revs .revs-form textarea,
.sfb-revs .revs-form select{
  width:100%;padding:13px 15px;
  background:var(--slate);color:var(--cream);
  border:1px solid var(--line);border-radius:2px;
  font-family:var(--sfb-cairo);font-size:13.5px;line-height:1.8;
}
.sfb-revs .revs-form textarea{min-height:130px;resize:vertical}
.sfb-revs .revs-form select{
  /* The native arrow renders black-on-dark in several Android browsers. */
  appearance:none;-webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--mute) 50%),
                   linear-gradient(135deg,var(--mute) 50%,transparent 50%);
  background-position:left 18px top 50%,left 13px top 50%;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat;
  padding-inline-start:38px;
}
.sfb-revs .revs-form ::placeholder{color:var(--dim);opacity:1}
.sfb-revs .revs-form input:focus,
.sfb-revs .revs-form textarea:focus,
.sfb-revs .revs-form select:focus{border-color:var(--red);outline:none}

.sfb-revs .revs-form__actions{margin:6px 0 0;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.sfb-revs .revs-form__submit,
.sfb-revs .revs-form input[type="submit"]{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:14px 32px;
  background:var(--red);color:#fff;border:1px solid var(--red);border-radius:2px;
  font-family:var(--sfb-cairo);font-size:14px;font-weight:700;cursor:pointer;
  transition:background .3s ease,box-shadow .3s ease;
}
.sfb-revs .revs-form__submit:hover,
.sfb-revs .revs-form input[type="submit"]:hover{
  background:#c31b20;box-shadow:0 14px 40px -12px rgba(222,34,39,.95);
}

/* WordPress prints the cookie-consent checkbox as its own paragraph. */
.sfb-revs .comment-form-cookies-consent{
  display:flex;align-items:flex-start;gap:10px;margin:0 0 18px;font-size:12px;color:var(--dim);
}
.sfb-revs .comment-form-cookies-consent label{font-size:12px;line-height:1.7}
.sfb-revs .comment-form-cookies-consent input{margin-top:3px;accent-color:var(--red)}

/* Anything WordPress injects that this design has no place for. */
.sfb-revs .comment-notes,
.sfb-revs .logged-in-as{font-size:12px;color:var(--dim);margin:0 0 16px}
.sfb-revs .comment-form-url{display:none}

/* ---------- responsive ----------
   The viewport meta comes from header.php on this pipeline; without it none of
   this fires and the phone renders at 980px. See CLAUDE.md. */
@media (max-width:900px){
  .sfb-revs{padding:52px 20px}
  .sfb-revs h2{font-size:22px;line-height:1.5}
  .sfb-revs .revs-grid{grid-template-columns:1fr}
  .sfb-revs .revs-form__submit,
  .sfb-revs .revs-form input[type="submit"]{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .sfb-revs *{transition-duration:.01ms !important}
}
