/* ==========================================================================
   We Buy Exotics — Contact page
   Layers on top of styles.css: reuses its tokens, buttons, field pattern,
   closing CTA and footer, and adds only what this page introduces —
   a light navigation bar, light form fields and the two-column hero.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared additions
   -------------------------------------------------------------------------- */

/* .nav--light and .btn--ink now live in styles.css, shared by every page. */

/* Light form fields ------------------------------------------------------ */

/* Figma: general/input (#fff) on general/border (#e5e5e5) with shadow-xs. */
.field--light{
  border-color:var(--n200);
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.field--light:focus-within{ border-color:var(--n400); }
.field--light .field__label{ color:var(--n500); }
.field--light input,
.field--light textarea{ color:var(--ink); }
.field--light input::placeholder,
.field--light textarea::placeholder{ color:var(--n500); opacity:1; }

/* Multi-line variant of .field. */
.field--area textarea{
  flex:1 1 auto;
  width:100%;
  min-height:0;
  border:0;
  padding:0;
  background:transparent;
  font-family:var(--font-body);
  font-size:14px;
  line-height:20px;
  resize:none;
}
.field--area textarea:focus{ outline:none; }

/* ==========================================================================
   HERO — heading and form side by side
   ========================================================================== */

.chero{
  background:var(--n50);
  color:var(--ink);
}

/* Clips the car, which bleeds off the top of this block and behind the nav
   rule, exactly as the design has it. */
.chero__body{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  padding:64px max(var(--gutter), calc((100% - var(--maxw)) / 2));
}

.chero__intro{
  flex:1 1 50%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:24px;
  padding-right:48px;
}

/* Runs off the top of the section and is clipped by .chero__body, so only the
   bonnet and nose carry over the heading. The export adds ~60px of empty space
   below the bumper, which the offsets already account for. */
/* Ver la nota larga en faq.css: los dos autos se posicionan por el AUTO y no
   por el lienzo, apuntando al mismo --car-x y --car-b.
   El lienzo de la Aston es 482 (no 553) porque trae el auto mas grande adentro:
   575/768 contra 360/553, y a esos anchos los dos autos miden 360px.
   Factores de esta imagen:
     izquierda   90/768 = 0.11719
     trompa    1308/768 = 1.70313  */
.chero__car{
  --car-w: 482px;
  --car-x: 48px;
  --car-b: 288px;
  position:absolute;
  z-index:-1;
  top:  calc(var(--car-b) - 1.70313 * var(--car-w));
  left: calc(max(var(--gutter), (100% - var(--maxw)) / 2) + var(--car-x) - 0.11719 * var(--car-w));
  width:var(--car-w);
  height:auto;
  max-width:none;
  pointer-events:none;
}
.chero__title{
  margin:0;
  font-family:var(--font-head);
  font-weight:900;
  font-size:48px;
  line-height:1;
  letter-spacing:2px;
  text-transform:uppercase;
}
/* Mismo tratamiento que el telefono de la FAQ (.faqpage__lede a): rojo y
   subrayado en reposo, y al pasar por encima el rojo claro de la marca. */
.chero__phone{
  font-weight:700;
  color:var(--red);
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-thickness:1px;
}
.chero__phone:hover,
.chero__phone:focus-visible{ color:var(--red-bright); }

/* Form ------------------------------------------------------------------- */

/* Half of the 1200px content column, with no card behind it — the fields sit
   straight on the page, as the design has them. */
.cform{
  flex:1 1 50%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.cform__fields{ display:flex; flex-direction:column; gap:10px; }
.cform__row{ display:flex; gap:10px; }
.cform__submit{ width:100%; }
/* .field's flex:1 1 0 would override a plain height in this column. */
.cform .field--area{ flex:0 0 217px; height:217px; }

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

@media (max-width:1200px){
  .chero__title{ font-size:56px; }
  .chero__car{ --car-w:400px; --car-b:198px; }
}

/* The design drops the car and stacks the two columns below the desktop
   breakpoint. */
@media (max-width:1024px){
  .chero__car{ display:none; }
  .chero__body{
    flex-direction:column;
    align-items:stretch;
    gap:32px;
    padding-top:48px;
    padding-bottom:48px;
  }
  .chero__intro{ padding-right:0; }
  .cform{ padding-top:0; }
}

@media (max-width:640px){
  .chero__body{ gap:20px; padding-top:40px; padding-bottom:40px; }
  .chero__intro{ gap:16px; }
  .chero__title{ font-size:48px; letter-spacing:2.5px; }
  /* Both designs keep email and phone on one line, even at 400px, and
     both give the message box the same 217px. */
  .cform__row{ gap:8px; }
}
