/* =========================================================================
   CAMS HAIL AND DENT, the customer front door
   Sleek, premium, automotive. Cool light sections, a carbon-black hero,
   polished chrome / silver accent. The owner control room lives one click
   away at /app.
   ========================================================================= */
:root {
  --cream:   #F4F8FB;
  --surface: #FFFFFF;
  --warm:    #EAF2F8;
  --ink:     #0F1620;
  --body:    #44505E;
  --muted:   #6B7785;
  --line:    #E2EAF0;
  --green:        #9FB3C8;
  --green-deep:   #7E909F;
  --green-bright: #C9D1DA;
  --green-soft:   #E9EEF3;
  --gold:    #C9D1DA;
  /* Chrome is LIGHT, on white surfaces, accent TEXT/icons use a darker steel so
     they stay legible. Borders/backgrounds keep the bright chrome tones. */
  --steel:   #3C4A5A;
  --steel-2: #50627A;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 20px 50px rgba(12,32,48,.14);
  --shadow-sm: 0 8px 24px rgba(12,32,48,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--cream); color: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.serif { font-family: var(--serif); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 650; font-size: .95rem; padding: .85rem 1.5rem; border-radius: 999px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #04181b; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 10px 26px rgba(159,179,200,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(159,179,200,.42); }
.btn-light { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-on-dark { color: var(--ink); background: #fff; }
.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); animation: rvFail .01s linear 2.8s forwards; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---- header ----------------------------------------------------------- */
/* Header: clear/transparent over the dark hero, fades into the solid "fuller"
   header as you scroll into the page (.scrolled toggled by JS ~55% down the hero). */
html { scroll-padding-top: 76px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid transparent; transition: background .45s var(--ease), -webkit-backdrop-filter .45s var(--ease), backdrop-filter .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }
.site-header:before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,11,15,.55), rgba(8,11,15,0)); opacity: 1; transition: opacity .45s var(--ease); }
.site-header .container { position: relative; }
.site-header.scrolled { background: rgba(244,248,251,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: 0 8px 30px -14px rgba(10,12,16,.22); }
.site-header.scrolled:before { opacity: 0; }
/* transparent (over-hero) palette, white on the dark hero */
.site-header .logo { color: #fff; }
.site-header .logo em { color: #E6ECF2; }
.site-header .site-nav > a:not(.btn) { color: rgba(255,255,255,.9); }
.site-header .site-nav > a:not(.btn):hover { color: #fff; }
.site-header:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
/* solid (scrolled) palette, restore the brand defaults */
.site-header.scrolled .logo { color: var(--ink); }
.site-header.scrolled .logo em { color: var(--steel-2); }
.site-header.scrolled .site-nav > a:not(.btn) { color: var(--body); }
.site-header.scrolled .site-nav > a:not(.btn):hover { color: var(--green); }
.site-header .container { display: flex; align-items: center; gap: 1.2rem; padding-top: .8rem; padding-bottom: .8rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.logo .mk { width: 36px; height: 36px; }
.logo em { color: var(--steel-2); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav a { font-size: .9rem; font-weight: 550; color: var(--body); transition: color .2s; }
.site-nav a:hover { color: var(--green); }
.site-nav .btn { padding: .6rem 1.1rem; font-size: .86rem; }
.hdr-toggle { display: none; }

/* ---- hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(5.5rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 8rem); background: linear-gradient(155deg, #0C0F13 0%, #1B2630 52%, #9FB3C8 130%); }
.hero:before { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(108deg, rgba(255,255,255,.03) 0 70px, rgba(255,255,255,.07) 70px 140px); -webkit-mask-image: radial-gradient(120% 100% at 70% 20%, #000, transparent 75%); mask-image: radial-gradient(120% 100% at 70% 20%, #000, transparent 75%); }
.hero:after { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 120%; background: radial-gradient(circle at center, rgba(230,236,242,.22), transparent 60%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #D7E0E8; margin-bottom: 1.2rem; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.02; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--green-bright); }
.hero-lead { margin-top: 1.3rem; font-size: 1.12rem; color: #CCD6DF; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-rating { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; font-size: .9rem; color: #C2CDD8; }
.stars { color: var(--gold); letter-spacing: .1em; }

/* hero proof card */
.hero-card { position: relative; z-index: 1; background: #fff; border-radius: var(--r-xl); padding: 1rem; box-shadow: 0 40px 90px rgba(0,0,0,.4); color: var(--ink); transform: rotate(1.4deg); }
.hero-photo { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, rgba(201,209,218,.18), rgba(12,21,32,.55)); }
.hero-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.30), transparent 55%); pointer-events: none; z-index: 2; }
/* the proof scene, a self-contained inline-SVG before/after dented panel
   (chrome/carbon), used in the hero + proof band. Real before/after dent photos
   drop in later. The <svg class="turf"> fills its container. */
.turf { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-photo .gps { position: absolute; right: 12px; top: 12px; z-index: 3; font-size: .68rem; font-weight: 700; color: #04181b; background: var(--green-bright); padding: .3rem .6rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.hero-card .hc-foot { display: flex; align-items: center; gap: .7rem; padding: .85rem .6rem .4rem; }
.hc-check { width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--steel); display: grid; place-items: center; flex: none; }
.hc-foot strong { font-family: var(--serif); font-size: 1.05rem; display: block; color: var(--ink); }
.hc-foot span { font-size: .8rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .hero-card { animation: floaty 7s var(--ease) infinite; } }
@keyframes floaty { 0%,100%{ transform: rotate(1.4deg) translateY(0); } 50%{ transform: rotate(1.4deg) translateY(-12px); } }

/* ---- trust strip ------------------------------------------------------ */
.trust { position: relative; z-index: 2; margin-top: -3rem; }
.trust-bar { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-bar div { padding: 1.5rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.trust-bar div:last-child { border-right: none; }
.trust-bar .n { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--steel); line-height: 1; }
.trust-bar .l { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

/* ---- sections --------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 3rem; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.08; color: var(--ink); margin-top: .6rem; letter-spacing: -.01em; }
.section-head h2 em { font-style: italic; color: var(--steel-2); }
.section-head p { margin-top: .9rem; font-size: 1.05rem; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-ic { width: 64px; height: 64px; border-radius: 14px; background: var(--green-soft); color: var(--steel); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc-ic svg { width: 34px; height: 34px; }
.svc h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.svc p { font-size: .92rem; margin-top: .5rem; }
.svc .from { display: inline-block; margin-top: .9rem; font-size: .82rem; font-weight: 700; color: var(--steel-2); }

/* proof band */
.proof { background: linear-gradient(160deg, #0C0F13, #1B2630); color: #fff; }
.proof-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.proof .eyebrow { color: var(--green-bright); }
.proof h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.08; margin-top: .6rem; letter-spacing: -.01em; }
.proof h2 em { font-style: italic; color: var(--green-bright); }
.proof p.lead { margin-top: 1.1rem; font-size: 1.08rem; color: #CCD6DF; max-width: 46ch; }
.proof-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.proof-list li { display: flex; gap: .8rem; align-items: flex-start; list-style: none; }
.proof-list .tick { width: 26px; height: 26px; border-radius: 50%; background: rgba(230,236,242,.18); color: var(--green-bright); display: grid; place-items: center; flex: none; margin-top: 2px; }
.proof-list .tick svg { width: 15px; height: 15px; }
.proof-list b { color: #fff; } .proof-list span { color: #C2CDD8; font-size: .94rem; }
.proof-visual { position: relative; }
.phone-shot { width: min(280px, 80%); margin: 0 auto; background: #0a1117; border: 9px solid #04080c; border-radius: 38px; padding: .8rem; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.phone-shot .ps-photo { aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; position: relative; background: linear-gradient(160deg, rgba(201,209,218,.18), rgba(12,21,32,.55)); }
.phone-shot .ps-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.30), transparent 55%); pointer-events: none; z-index: 2; }
.phone-shot .ps-gps { position: absolute; right: 10px; top: 10px; z-index: 3; font-size: .62rem; font-weight: 700; color: #04181b; background: var(--green-bright); padding: .2rem .5rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.phone-shot .ps-foot { color: #fff; padding: .8rem .4rem .2rem; }
.phone-shot .ps-foot strong { display: block; font-family: var(--serif); }
.phone-shot .ps-foot span { font-size: .78rem; color: #7E8B97; }

/* areas */
.areas { text-align: center; }
.area-pills { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.5rem; }
.area-pills span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem; font-weight: 600; font-size: .92rem; color: var(--ink); }

/* reviews */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; }
.rev .stars { font-size: 1rem; }
.rev p { margin-top: .8rem; color: var(--ink); font-size: 1rem; }
.rev .who { margin-top: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.rev .av { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.rev .who b { display: block; color: var(--ink); font-size: .92rem; }
.rev .who span { font-size: .8rem; color: var(--muted); }

/* quote */
.quote { background: var(--warm); }
.quote-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.quote-aside { background: linear-gradient(160deg, #1B2630, #46586C); color: #fff; padding: 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.quote-aside h2 { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.quote-aside p { margin-top: .9rem; color: #CCD6DF; }
.quote-aside .qa-li { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-size: .92rem; color: #EDF1F5; }
.quote-aside .qa-li svg { width: 18px; height: 18px; color: var(--green-bright); }
.quote-form { padding: 2.6rem; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qf-field { margin-bottom: 1rem; }
.qf-field label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.qf-field input, .qf-field select { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.qf-field input:focus, .qf-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.quote-form .btn { width: 100%; margin-top: .4rem; }
.qf-note { text-align: center; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.qf-success { text-align: center; padding: 1rem; }
.qf-success .big { width: 70px; height: 70px; border-radius: 50%; background: var(--green-soft); color: var(--steel); display: grid; place-items: center; margin: 0 auto 1rem; }
.qf-success .big svg { width: 34px; height: 34px; }
.qf-success h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.qf-success p { margin-top: .5rem; }

/* footer */
.site-footer { background: #0C0F13; color: #C2CDD8; padding: 3rem 0 2rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 30ch; }
.foot-brand .logo { color: #fff; }
.foot-brand p { margin-top: .8rem; font-size: .9rem; color: #7E8B97; }
.foot-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.foot-col h4 { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6E7C89; margin-bottom: .8rem; }
.foot-col a { display: block; font-size: .9rem; padding: .25rem 0; color: #C2CDD8; }
.foot-col a:hover { color: var(--green-bright); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: #6E7C89; }
.foot-bottom a { color: var(--green-bright); font-weight: 600; }

.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: .6rem; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); animation: tin .4s var(--ease) both; }
.toast svg { width: 18px; height: 18px; color: var(--green-bright); }
@keyframes tin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; } .hero-card { max-width: 380px; margin-top: 1rem; }
  .proof-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .quote-card { grid-template-columns: 1fr; } .quote-aside { padding: 2rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); } .trust-bar div:nth-child(2) { border-right: none; }
  .site-nav { position: fixed; inset: 60px 1rem auto 1rem; flex-direction: column; align-items: stretch; gap: .3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem; transform: translateY(-130%); transition: transform .3s var(--ease); }
  .site-nav.open { transform: none; }
  /* the mobile dropdown panel is solid white in both header states, keep links dark */
  .site-header .site-nav > a:not(.btn),
  .site-header.scrolled .site-nav > a:not(.btn) { color: var(--body); }
  .site-nav a { padding: .7rem .5rem; }
  .hdr-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); margin-left: auto; color: var(--ink); }
  .site-header:not(.scrolled) .hdr-toggle { color: #fff; border-color: rgba(255,255,255,.45); }
}
@media (max-width: 540px) {
  .svc-grid { grid-template-columns: 1fr; } .qf-row { grid-template-columns: 1fr; }
  .container { padding: 0 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .001ms !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }

/* No real Cam dent photos exist yet, the hero + proof scenes use the
   self-contained inline-SVG before/after dented panel (chrome on carbon). The
   hero keeps its decorative brushed-chrome stripe backdrop (.hero:before above);
   no stock photo is referenced. Real before/after dent photos drop in later. */
svg.turf { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── elevated icon tiles (showcase pass) ─── */
.svc-ic { border: 1px solid rgba(20,40,60,.07); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 -10px 18px -14px rgba(20,45,70,.35), 0 12px 24px -14px rgba(20,45,70,.5); }
.svc-ic, .svc:nth-child(even) .svc-ic { background-image: linear-gradient(155deg, rgba(255,255,255,.72), rgba(255,255,255,0) 62%) !important; }
.svc:hover .svc-ic { box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 16px 30px -12px rgba(20,45,70,.62); }

/* ── Mobile overflow hardening (responsive QA pass) ─────────────────────
   Keep the hero and every section inside the phone viewport: let the eyebrow
   wrap, let grid items shrink below their intrinsic content width (the long
   nowrap eyebrow was forcing the hero column ~500px wide and clipping it),
   and never allow a horizontal scroll. */
@media (max-width: 720px) {
  .hero-inner, .hero-copy, .hero-text, .proof-inner, .proof-copy,
  .quote-card, .quote-grid, .cta-inner { min-width: 0; }
  .hero-inner > *, .proof-inner > * { min-width: 0; max-width: 100%; }
  .hero-kicker, .eyebrow, .hero-rating { white-space: normal; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { white-space: normal; max-width: 100%; }
}
html, body { overflow-x: hidden; overflow-x: clip; }


@keyframes rvFail { to { opacity: 1; transform: none; } }

/* ===== Real PDR/hail photography (REPRESENTATIVE, operator's licensed Adobe
   Stock library, not a specific customer's job). Proof surfaces are now
   <img class="turf">; cover-fill them. The front-door hero gets a dramatic
   hail-dented hood behind a dark scrim so the white headline stays legible. ===== */
img.turf { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero {
  background:
    linear-gradient(150deg, rgba(12,15,19,.90) 0%, rgba(12,15,19,.62) 50%, rgba(27,38,48,.55) 100%),
    url("/_demo-photos/cams/cam-20-adobestock_1574420878.jpg") center/cover no-repeat #0C0F13;
}
