/* styles.css — Qarry landing page */

/* ─── RESET ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

/* ─── EXACT QARRY BRAND COLOURS — grey & yellow palette ─── */
:root{
  /* Greys (primary palette — qarry.com uses near-black dark sections) */
  --q-darkest:   #111111;   /* deepest dark bg */
  --q-dark:      #1a1a1a;   /* hero bg */
  --q-forest:    #222222;   /* dark card / review bg */
  --q-mid:       #c9a600;   /* yellow darker — hover state */
  --q-brand:     #f0c93a;   /* PRIMARY YELLOW — exact Qarry accent */
  --q-light:     #f7df7e;   /* light yellow tint */
  --q-pale:      #fdf0b0;   /* pale yellow */
  --q-ghost:     #fefbe8;   /* ghost yellow bg */

  /* Neutrals */
  --q-sand:      #f4f4f2;   /* light grey section bg */
  --q-sand2:     #e2e2df;   /* border grey */
  --q-sand3:     #cecece;   /* darker border */
  --q-white:     #ffffff;
  --q-ink:       #111111;   /* near-black text */
  --q-ink2:      #2c2c2c;   /* body text */
  --q-ink3:      #666666;   /* muted text */
  --q-ink4:      #aaaaaa;   /* placeholder / faint */

  /* Accent */
  --q-coral:     #d44f2a;
  --q-coral-bg:  #fdf1ec;

  /* Typography */
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing & Shape */
  --r:   6px;
  --rl: 14px;
  --rx: 22px;
  --max: 1120px;
  --gutter: clamp(20px, 4.5vw, 60px);
}

body{
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--q-ink);
  background: var(--q-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── UTILITY ─── */
.container{ max-width: var(--max); margin: 0 auto; }
.sec-tag{
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--q-brand); margin-bottom: 10px;
}
.sec-h2{
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.1; letter-spacing: -.025em;
  color: var(--q-ink); margin-bottom: 36px;
}
.sec-h2 em{ font-style: italic; color: var(--q-brand); }

/* ─── NAV ─── */
.nav{
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--q-sand2);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo img{
  height: 28px; width: auto; display: block;
}
.nav-cta{
  background: var(--q-brand); color: var(--q-ink);
  border: none; border-radius: var(--r);
  padding: 11px 24px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .1s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover{ background: var(--q-mid); color: var(--q-white); transform: translateY(-1px); }
.nav-cta svg{ width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; flex-shrink: 0; }

/* ─── HERO ─── */
.hero{
  background: var(--q-dark);
  color: var(--q-white);
  padding: 76px var(--gutter) 88px;
  position: relative; overflow: hidden;
}
/* Layered bg matching qarry.com's dark grey + subtle yellow glow */
.hero::before{
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(240,201,58,.07) 0%, transparent 65%),
    linear-gradient(160deg, #0e0e0e 0%, var(--q-dark) 50%, #1e1e1e 100%);
}
.hero::after{
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-inner{
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 408px;
  gap: 56px; align-items: start;
}

/* Hero left */
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--q-pale); margin-bottom: 28px;
}
.hero-eyebrow-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--q-brand); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(240,201,58,.6);
}
.hero h1{
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.04; letter-spacing: -.03em;
  color: var(--q-white); margin-bottom: 24px;
}
.hero h1 em{ font-style: italic; color: var(--q-light); }
.hero-sub{
  font-size: 17px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.65);
  max-width: 490px; margin-bottom: 36px;
}

/* Pain list */
.pain-box{
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rl);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 13px;
}
.pain-box-label{
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--q-brand); margin-bottom: 6px;
}
.pain-item{ display: flex; gap: 12px; align-items: flex-start; }
.pain-dot{
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: rgba(212,79,42,.18); border: 1px solid rgba(212,79,42,.38);
  display: flex; align-items: center; justify-content: center;
}
.pain-dot::after{
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--q-coral);
}
.pain-item p{ font-size: 15px; font-weight: 400; color: rgba(255,255,255,.92); line-height: 1.55; }

/* ─── HERO FORM ─── */
.hero-form{
  background: var(--q-white);
  border-radius: var(--rx);
  padding: 32px 28px 26px;
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(240,201,58,.15);
  position: relative; z-index: 1;
}
.form-title{
  font-family: var(--serif);
  font-size: 20px; color: var(--q-forest);
  line-height: 1.2; letter-spacing: -.015em;
  margin-bottom: 22px;
}
.form-title em{ font-style: italic; color: var(--q-brand); }

.fg{ margin-bottom: 12px; }
.fg label{
  display: block; font-size: 11px; font-weight: 600;
  color: var(--q-ink3); letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 5px;
}
.fg input, .fg select{
  width: 100%;
  border: 1.5px solid var(--q-sand2); border-radius: var(--r);
  padding: 10px 13px;
  font-family: var(--sans); font-size: 14px; color: var(--q-ink);
  background: var(--q-white); outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.fg input::placeholder{ color: var(--q-ink4); }
.fg input:focus, .fg select:focus{
  border-color: var(--q-brand);
  box-shadow: 0 0 0 3px rgba(240,201,58,.18);
}
/* Custom select arrow */
.fg select{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2399a190' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.frow{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-primary{
  width: 100%; background: var(--q-brand); color: var(--q-ink);
  border: none; border-radius: var(--r);
  padding: 14px 20px; margin-top: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover{ background: var(--q-mid); color: var(--q-white); transform: translateY(-1px); }
.btn-primary svg{ width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; flex-shrink: 0; }
.form-privacy{ font-size: 11px; color: var(--q-ink4); text-align: center; margin-top: 10px; line-height: 1.5; }

.form-ok{ display: none; text-align: center; padding: 20px 8px; }
.form-ok-check{
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--q-ghost); border: 2px solid var(--q-pale);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.form-ok-check svg{ width: 24px; height: 24px; stroke: var(--q-mid); fill: none; stroke-width: 2.5; }
.form-ok h3{ font-family: var(--serif); font-size: 22px; color: var(--q-ink); margin-bottom: 6px; }
.form-ok p{ font-size: 14px; color: var(--q-ink3); }

/* ─── WAVE DIVIDERS ─── */
.wave{ display: block; width: 100%; }

/* ─── SOLUTIONS SECTION ─── */
.sec-solutions{
  background: var(--q-sand);
  padding: 72px var(--gutter) 80px;
}
.sol-grid{
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.sol-card{
  background: var(--q-white);
  border: 1px solid var(--q-sand2); border-radius: var(--rl);
  padding: 28px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.sol-card:hover{
  border-color: var(--q-light);
  box-shadow: 0 6px 24px rgba(240,201,58,.12);
}
.sol-icon{
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--q-ghost); border: 1px solid var(--q-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.sol-icon svg{ width: 22px; height: 22px; stroke: var(--q-ink2); fill: none; stroke-width: 1.75; }
.sol-card h3{ font-size: 15px; font-weight: 600; color: var(--q-ink); margin-bottom: 7px; line-height: 1.3; }
.sol-card p{ font-size: 13px; color: var(--q-ink3); line-height: 1.6; }

/* Stats bar */
.stats-bar{
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--q-dark); border-radius: var(--rl);
  overflow: hidden; margin-top: 40px;
}
.stat-cell{
  padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-cell:last-child{ border-right: none; }
.stat-num{
  font-family: var(--serif); font-size: 38px;
  color: var(--q-brand); line-height: 1; margin-bottom: 5px;
}
.stat-lbl{ font-size: 12px; font-weight: 300; color: rgba(255,255,255,.5); line-height: 1.45; }

/* ─── FIT CHECK ─── */
.sec-fit{
  background: var(--q-white);
  padding: 72px var(--gutter) 80px;
}
.fit-intro{ font-size: 16px; color: var(--q-ink3); max-width: 560px; margin-bottom: 36px; line-height: 1.7; }
.fit-questions{ display: flex; flex-direction: column; gap: 16px; }
.fit-card{
  border: 1.5px solid var(--q-sand2); border-radius: var(--rl);
  padding: 24px 26px; background: var(--q-white);
  transition: border-color .2s;
}
.fit-card.answered{ border-color: var(--q-sand3); }
.fit-q{ font-size: 15px; font-weight: 500; color: var(--q-ink); margin-bottom: 14px; line-height: 1.4; }
.fit-opts{ display: flex; flex-wrap: wrap; gap: 9px; }
.fit-opt{
  padding: 9px 20px;
  border: 1.5px solid var(--q-sand2); border-radius: 999px;
  font-family: var(--sans); font-size: 13px;
  cursor: pointer; user-select: none;
  background: var(--q-white); color: var(--q-ink2);
  transition: all .15s;
}
.fit-opt:hover{ border-color: var(--q-brand); color: var(--q-mid); }
.fit-opt.sel-good{ border-color: var(--q-brand); background: var(--q-ghost); color: var(--q-forest); font-weight: 500; }
.fit-opt.sel-bad{ border-color: var(--q-coral); background: var(--q-coral-bg); color: var(--q-coral); }

.fit-result{
  border-radius: var(--rl); padding: 30px;
  margin-top: 20px; display: none;
}
.fit-result.show{ display: block; }
.fit-result.good{ background: var(--q-ghost); border: 1.5px solid var(--q-pale); }
.fit-result.bad{ background: var(--q-coral-bg); border: 1.5px solid #f5c4b0; }
.fit-result h3{ font-family: var(--serif); font-size: 24px; margin-bottom: 10px; line-height: 1.15; }
.fit-result.good h3{ color: var(--q-ink); }
.fit-result.bad h3{ color: var(--q-coral); }
.fit-result p{ font-size: 15px; color: var(--q-ink2); line-height: 1.65; margin-bottom: 20px; }

.btn-green{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--q-brand); color: var(--q-ink);
  border: none; border-radius: var(--r);
  padding: 13px 28px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn-green:hover{ background: var(--q-mid); color: var(--q-white); transform: translateY(-1px); }
.btn-green svg{ width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.btn-coral{ background: var(--q-coral); color: var(--q-white); }
.btn-coral:hover{ background: #b23f21; color: var(--q-white); }

/* ─── TRUST ─── */
.sec-trust{
  background: var(--q-sand);
  padding: 72px var(--gutter) 80px;
}
.trust-grid{
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.trust-card{
  background: var(--q-white);
  border: 1px solid var(--q-sand2); border-radius: var(--rl);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.trust-badge{
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--q-ghost); border: 1px solid var(--q-pale);
  border-radius: 999px; padding: 5px 13px;
  font-size: 11px; font-weight: 600; color: var(--q-ink2);
  letter-spacing: .04em; text-transform: uppercase;
  align-self: flex-start;
}
.trust-badge svg{ width: 12px; height: 12px; stroke: var(--q-ink2); fill: none; stroke-width: 2.5; }
.trust-big{
  font-family: var(--serif); font-size: 48px;
  color: var(--q-brand); line-height: 1;
}
.trust-card h3{ font-size: 15px; font-weight: 600; color: var(--q-ink); line-height: 1.3; }
.trust-card p{ font-size: 13px; color: var(--q-ink3); line-height: 1.6; }

/* ─── REVIEWS ─── */
.sec-reviews{
  background: var(--q-dark);
  padding: 72px var(--gutter) 80px;
}
.sec-reviews .sec-tag{ color: var(--q-brand); }
.sec-reviews .sec-h2{ color: var(--q-white); }
.reviews-grid{
  display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
}
.rev-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rl); padding: 28px 26px;
  transition: background .2s;
}
.rev-card:hover{ background: rgba(255,255,255,.09); }
.rev-stars{ color: #ffc72c; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.rev-quote{
  font-size: 15px; font-style: italic; font-weight: 300;
  color: rgba(255,255,255,.82); line-height: 1.7;
  margin-bottom: 22px; padding-left: 22px; position: relative;
}
.rev-quote::before{
  content: '\201C';
  font-family: var(--serif); font-size: 52px; color: var(--q-brand);
  position: absolute; left: -6px; top: -10px; line-height: 1;
}
.rev-author{
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09);
}
.rev-av{
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: #333333; border: 2px solid rgba(240,201,58,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--q-white);
}
.rev-name{ font-size: 14px; font-weight: 500; color: var(--q-white); }
.rev-company{ font-size: 12px; color: rgba(255,255,255,.42); line-height: 1.45; }
.tp-strip{
  display: flex; align-items: center; gap: 14px;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.tp-name{ font-size: 14px; font-weight: 500; color: rgba(255,255,255,.55); }
.tp-name b{ color: #00b67a; }
.tp-stars{ color: #00b67a; font-size: 18px; letter-spacing: 2px; }
.tp-note{ font-size: 12px; color: rgba(255,255,255,.3); }

/* ─── MODAL ─── */
.overlay{
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75); backdrop-filter: blur(5px);
  align-items: center; justify-content: center; padding: 20px;
}
.overlay.open{ display: flex; }
.modal{
  background: var(--q-white); border-radius: var(--rx);
  padding: 38px 32px 30px; max-width: 460px; width: 100%;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close{
  position: absolute; top: 14px; right: 16px;
  background: var(--q-sand); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 16px; color: var(--q-ink3);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover{ background: var(--q-sand2); }
.modal .form-title{ font-size: 22px; margin-bottom: 22px; }

/* ─── FOOTER ─── */
.footer{
  background: var(--q-darkest);
  padding: 36px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo img{ height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.footer-mid{ font-size: 13px; color: rgba(255,255,255,.35); }
.footer-mid a{ color: rgba(255,255,255,.35); text-decoration: none; }
.footer-mid a:hover{ color: rgba(255,255,255,.65); }
.footer-right{ font-size: 13px; color: rgba(255,255,255,.25); }

/* ─── RESPONSIVE ─── */
@media(max-width:960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero{ padding: 52px var(--gutter) 52px; }
  .sol-grid{ grid-template-columns: 1fr 1fr; }
  .stats-bar{ grid-template-columns: 1fr 1fr; }
  .stats-bar .stat-cell:nth-child(2){ border-right: none; }
  .trust-grid{ grid-template-columns: 1fr 1fr; }
}
@media(max-width:640px){
  .sol-grid{ grid-template-columns: 1fr; }
  .reviews-grid{ grid-template-columns: 1fr; }
  .trust-grid{ grid-template-columns: 1fr; }
  .stats-bar{ grid-template-columns: 1fr 1fr; }
  .frow{ grid-template-columns: 1fr; }
}

/* ─── CAR ILLUSTRATION ─── */
.car-illustration{
  margin: 24px 0 28px;
  position: relative;
  display: flex; align-items: flex-end;
}
.car-illustration img{
  width: 100%; max-width: 420px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)) drop-shadow(0 0 60px rgba(240,201,58,.08));
  animation: fadeUp .65s .18s ease both;
}
.car-illustration::after{
  content: '';
  position: absolute; bottom: -4px; left: 8%; right: 8%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, transparent 70%);
  filter: blur(4px);
}
.car-spec-strip{
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fadeUp .65s .24s ease both;
}
.car-spec{
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.45);
  display: flex; align-items: center; gap: 5px;
}
.car-spec b{ color: var(--q-brand); font-weight: 600; }
.car-spec-sep{ color: rgba(255,255,255,.15); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(18px); }
  to{   opacity:1; transform:translateY(0); }
}
.hero-left > *{ animation: fadeUp .65s ease both; }
.hero-eyebrow { animation-delay: .05s; }
.hero h1      { animation-delay: .14s; }
.hero-sub     { animation-delay: .22s; }
.pain-box     { animation-delay: .30s; }
.hero-form    { animation: fadeUp .65s .08s ease both; }
