/* ==========================================================================
   We Buy Exotics — Testimonials
   Sections unique to this page. Everything shared (buttons, stars, pillars,
   how-it-works, core commitment, closing CTA, footer) comes from styles.css
   and why-us.css, which this file loads on top of.
   ========================================================================== */

/* Sections that sit on the off-white plate rather than pure white. */
.section--alt{ background:#fafafa; color:var(--ink); }

.eyebrow--muted{ color:var(--n500); }

/* .btn sets its own display, so it needs telling that [hidden] wins. */
.btn[hidden]{ display:none; }

/* ==========================================================================
   NAV — light variant
   The testimonials hero is a white plate, so the nav flips from glass-on-dark
   to solid white with a hairline rule.
   ========================================================================== */

/* .nav--light lives in styles.css, shared by every page — including the top
   padding. Redeclaring it here with a `padding:0 …` shorthand was flattening
   that, leaving this bar 12px shorter than the one on FAQs. */

/* ==========================================================================
   HERO
   Centred copy on the off-white plate with a car bleeding off each edge. The
   cars are sized and offset in percentages of the plate width so the whole
   composition scales with the viewport, then pins to the Figma pixel values
   once the layout reaches its 1440px design width.
   ========================================================================== */

.thero{ background:#fff; }

.thero__stage{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  justify-content:center;
  background:#fafafa;
  padding:64px max(var(--gutter), calc((100% - var(--maxw)) / 2)) 32px;
}

.thero__car{
  position:absolute;
  top:0;
  z-index:0;
  max-width:none;
  height:auto;
  pointer-events:none;
  user-select:none;
}
.thero__car--l{
  width:min(1330px, 92.36%);
  left:max(-807px, -56.04%);
  margin-top:max(-97px, -6.74%);
}
.thero__car--r{
  width:min(1286px, 89.30%);
  right:max(-790px, -54.86%);
  margin-top:max(-71px, -4.93%);
}

.thero__copy{
  position:relative;
  z-index:1;
  width:486px;
  max-width:100%;
  min-height:404px;
  display:flex;
  flex-direction:column;
  gap:32px;
  align-items:center;
  text-align:center;
}

.thero__head{ display:flex; flex-direction:column; gap:24px; align-items:center; width:100%; }

.thero__title{ margin:0; display:flex; flex-direction:column; width:100%; }
.thero__title-sm,
.thero__title-lg{
  font-family:var(--font-head);
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--n900);
}
.thero__title-sm{ font-size:48px; line-height:48px; }
.thero__title-lg{ font-size:64px; line-height:1; }

.thero__lede{ width:368px; max-width:100%; }

.thero__actions{ display:flex; flex-direction:column; gap:20px; align-items:center; width:100%; }
.thero__actions .btn{ width:293px; max-width:100%; }

.thero__phone{ display:flex; flex-direction:column; gap:4px; align-items:center; }
.thero__phone-num{ font-weight:500; font-size:14px; line-height:20px; }
.thero__phone-num a:hover{ text-decoration:underline; }
.thero__phone-hours{
  font-family:var(--font-head);
  font-weight:500;
  font-size:12px;
  line-height:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--n600);
}

/* ==========================================================================
   THE NUMBERS
   Runs straight on from the hero plate, so it drops its own top padding.
   ========================================================================== */

.tnumbers{ padding-top:0; }
.tnumbers__inner{ display:flex; align-items:center; gap:24px; }
.tnumbers__head{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:12px; }
/* Las tres columnas comparten filas: la volanta arriba y el numero abajo. Sin
   esto, "GOOGLE REVIEWS" se parte en dos lineas en algunos anchos (390 y 1100,
   medido) y empuja su 5.0 por debajo del A+ y del 94%. Con subgrid la fila de
   la volanta mide lo mismo en las tres sin reservar aire de mas donde entra en
   una sola linea. */
.tnumbers__stats{
  flex:0 0 581px;
  width:581px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  grid-template-rows:auto auto;
  gap:24px;
}

.tstat{
  min-width:0;
  display:grid;
  grid-template-rows:subgrid;
  grid-row:span 2;
  gap:16px;
  padding-left:24px;
  border-left:1px solid var(--n200);
}
/* Navegadores sin subgrid: se le reservan dos lineas a la volanta. */
@supports not (grid-template-rows: subgrid){
  .tstat{ display:flex; flex-direction:column; }
  .tstat > .eyebrow{ min-height:40px; }
}
.tstat__body{ display:flex; flex-direction:column; gap:8px; }
.tstat__val{
  font-family:var(--font-head);
  font-weight:900;
  font-size:48px;
  line-height:48px;
  letter-spacing:-1px;
}
.tstat__note{ font-size:14px; line-height:20px; color:var(--n700); }

/* ==========================================================================
   FEATURED REVIEW
   ========================================================================== */

.tfeature{ border-top:1px solid var(--n200); }

.tfeature__card{
  margin:0;
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:535px;
  padding:64px;
  border-radius:var(--r-xl);
  overflow:hidden;
  background:#0a0a0a url("/wp-content/uploads/2026/10/wbe-testimonial-featured.jpg") center / cover no-repeat;
}
/* Two washes from the design: a dark corner falloff behind the card, and a
   white scrim at the top so the plate above reads as continuous. */
.tfeature__card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(243.08deg, rgba(102,102,102,0) 27.67%, rgba(0,0,0,.4) 100%),
    linear-gradient(180deg, rgba(255,255,255,.8) 3.16%, rgba(255,255,255,0) 39.61%);
}

.tquote{
  margin:0;
  position:relative;
  z-index:1;
  width:500px;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:32px;
  border:1px solid var(--n700);
  border-radius:var(--radius, 6px);
  background:rgba(0,0,0,.8);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  overflow:hidden;
  color:var(--n50);
}
.tquote__mark{
  position:absolute;
  left:-17px;
  top:41px;
  z-index:0;
  margin:0;
  font-family:var(--font-head);
  font-weight:700;
  font-size:196px;
  line-height:1;
  opacity:.6;
  background:linear-gradient(180deg, #0a0a0a 0%, #e9635d 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  pointer-events:none;
}
/* The oversized quote glyph is positioned, so the copy has to be positioned
   too or it paints underneath it. */
.tquote > *:not(.tquote__mark){ position:relative; z-index:1; }

.tquote__label{ color:var(--n400); }
.tquote__text{
  font-family:var(--font-head);
  font-weight:700;
  font-size:24px;
  line-height:28.8px;
}
.tquote__who{ display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; }
.tquote__who b{ font-weight:700; }

/* ==========================================================================
   REVIEW GRID
   Borrows .wreviews / .wreview from why-us.css and swaps the single row for a
   3 × 2 grid.
   ========================================================================== */

.tgrid{ border-top:1px solid var(--n200); border-bottom:1px solid var(--n200); }
.tgrid__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px;
}

/* ==========================================================================
   PRESS & MEDIA
   ========================================================================== */

.tpress__inner{ display:flex; gap:64px; align-items:stretch; }
.tpress__aside{
  flex:0 0 271px;
  width:271px;
  display:flex;
  flex-direction:column;
  gap:24px;
  align-items:flex-start;
}
.tpress__head{ display:flex; flex-direction:column; gap:12px; }
.tpress__lede{ color:var(--n700); }
.tpress__cta .btn__label{ text-decoration:underline; text-underline-offset:2px; }

.tclip{
  margin:0;
  flex:1 1 0;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:24px;
  align-items:flex-start;
  padding:32px;
  border:1px solid var(--n200);
  border-radius:var(--radius, 6px);
  background:#fff;
}
.tclip__logo{ width:143px; height:54px; object-fit:contain; opacity:.6; }
.tclip__quote{ margin:0; }
.tclip__body{ display:flex; flex-direction:column; gap:16px; color:var(--n700); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width:1200px){
  .tnumbers__stats{ flex:0 0 48%; width:48%; }
}

@media (max-width:1024px){
  /* The cars leave the sides of the copy and line up bottom-centre, nose to
     nose, the way the phone design frames them. Sizes and offsets are derived
     from the 400px artboard, then clamped so tablets do not get billboards. */
  .thero__stage{
    --carw:clamp(430px, 138.1vw, 760px);
    /* El 1.1041 venia de las piezas viejas. Con las nuevas la Ferrari quedaba
       18% mas grande que el Lamborghini: medido sobre el neumatico, la rueda
       del Diablo ocupa 166px en un lienzo de 1330 (0.1248 del ancho) y la de
       la 360, 172px en uno de 1286 (0.1337). Para que las dos ruedas midan
       igual en pantalla el factor tiene que ser 0.1248/0.1337 = 0.9334. */
    --carw-r:calc(0.9334 * var(--carw));
    padding-bottom:calc(0.24 * var(--carw) + 24px);
  }
  .thero__copy{ min-height:0; }
  .thero__car{ top:auto; margin-top:0; }
  .thero__car--l{
    width:var(--carw);
    left:calc(48% - 0.9812 * var(--carw));
    bottom:calc(15px - 0.1241 * var(--carw));
  }
  .thero__car--r{
    width:var(--carw-r);
    right:calc(41.25% - 0.98212 * var(--carw-r));
    /* La linea de piso cae en 0.7848 del alto en la pieza izquierda y 0.7917
       en la derecha; con el ancho nuevo, el coeficiente que deja los dos autos
       apoyados en la misma linea es 0.12083. */
    bottom:calc(15px - 0.12083 * var(--carw-r));
  }

  .thero__title-sm{ font-size:40px; line-height:42px; }
  .thero__title-lg{ font-size:52px; }

  .tnumbers__inner{ flex-direction:column; align-items:stretch; gap:32px; }
  .tnumbers__stats{ flex:1 1 auto; width:100%; }

  .tfeature__card{ min-height:0; padding:32px; }

  .tgrid__grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }

  .tpress__inner{ flex-direction:column; align-items:stretch; gap:32px; }
  .tpress__aside{ flex:1 1 auto; width:100%; }
}

@media (max-width:640px){
  .thero__stage{ padding-top:40px; }
  .thero__title{ gap:12px; }
  .thero__title-sm{ font-size:32px; line-height:34px; letter-spacing:1px; }
  .thero__title-lg{ font-size:44px; letter-spacing:1px; }
  .thero__lede{ width:100%; }
  .thero__actions .btn{ width:100%; }

  .tnumbers__stats{ gap:12px; }
  .tstat{ padding-left:12px; gap:12px; }
  @supports not (grid-template-rows: subgrid){
    .tstat > .eyebrow{ min-height:36px; }   /* aca la volanta va a 18px de alto */
  }
  .tstat__val{ font-size:36px; line-height:38px; }

  /* Full-bleed photo card, as on the phone artboard. La tarjeta apoya directo
     sobre la seccion de abajo (sin la franja gris ni la linea del border-top de
     .tgrid), y el aire de 40px va ADENTRO de la tarjeta: asi el pie queda
     despegado del borde sin abrir un hueco entre secciones. */
  .tfeature{ padding-inline:0; padding-bottom:0; }
  .tfeature__card{ padding:16px; padding-bottom:40px; border-radius:0; }
  .tgrid{ border-top:0; }
  .tquote{ padding:20px; }
  .tquote__text{ font-size:20px; line-height:25px; }
  .tquote__mark{ font-size:140px; top:24px; left:-10px; }

  .tgrid__grid{ grid-template-columns:minmax(0, 1fr); }
  /* Cuantas tarjetas se ven lo decide el JS (dos filas al abrir, tres mas por
     clic). Antes lo hacia una regla de CSS fija y se peleaba con el boton. */

  .tclip{ padding:20px; }
  .tpress__cta{ width:100%; }
}
