/* =========================================================
   Reline Paintless Dent Repair, Calgary
   Concept: a line that dents, then straightens, the brand
   mark and every divider trace that same before/after arc.
   Bold safety-yellow on near-black, industrial and confident.
   ========================================================= */

:root {
  --bg:        #0a0a0b;
  --bg-2:      #141416;
  --surface:   #19191c;
  --surface-2: #202023;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.18);

  --text:      #f5f5f2;
  --muted:     #a9a9ae;
  --muted-2:   #77777d;

  --yellow:      #ffc51f;
  --yellow-deep: #e6ab00;
  --yellow-ink:  #221a00; /* text-on-yellow */

  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --maxw: 1220px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,0.7);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; color: #fff; text-transform: uppercase; }
.h-xl { font-size: clamp(2.5rem, 5.6vw, 4.3rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.h-md { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { color: var(--muted); }
.text-yellow { color: var(--yellow); }

.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.eyebrow.center { justify-content: center; }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--display); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { color: var(--yellow-ink); background: var(--yellow); box-shadow: 0 14px 30px -14px rgba(255,197,31,0.55); }
.btn-primary:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 18px 36px -14px rgba(255,255,255,0.35); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.btn-outline:hover { transform: translateY(-3px); border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-dark { color: #fff; border-color: rgba(255,255,255,0.18); background: var(--surface-2); }
.btn-dark:hover { transform: translateY(-3px); border-color: var(--yellow); color: var(--yellow); }

/* ---------- utility bar + header ---------- */
.utility-bar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0; flex-wrap: wrap; gap: 0.4rem; }
.utility-bar a { color: var(--muted); transition: color .25s var(--ease); }
.utility-bar a:hover { color: var(--yellow); }
.utility-bar .u-left { display: flex; gap: 0.5rem; flex-wrap: wrap; color: var(--muted-2); }
.utility-bar strong { color: var(--yellow); font-weight: 700; }
.utility-bar .u-right { display: flex; align-items: center; gap: 1rem; color: var(--muted-2); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(10,10,11,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(0,0,0,0.8); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; color: #fff; text-transform: uppercase; }
.brand .mark { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.brand .mark svg { width: 24px; height: 24px; }
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); }

.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-links a { padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-family: var(--display); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); transition: color .25s var(--ease), background .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.06); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); position: relative; flex: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: #fff; border-radius: 2px; transform: translate(-50%,-50%); transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle span::before { transform: translate(-50%,-7px); }
.nav-toggle span::after { transform: translate(-50%,5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%,-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,6,7,0.97) 0%, rgba(6,6,7,0.92) 34%, rgba(6,6,7,0.6) 56%, rgba(6,6,7,0.18) 76%, rgba(6,6,7,0.02) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(4rem, 9vw, 6rem) 0 clamp(6rem, 10vw, 8rem); }
.hero-copy { max-width: 640px; }
.hero h1 { margin: 1rem 0 1.3rem; }
.hero h1 .line2 { display: block; -webkit-text-stroke: 0; }
.hero .lead { color: rgba(255,255,255,0.8); font-size: 1.02rem; margin-bottom: 0.4rem; }
.hero .services-strip { font-family: var(--display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; color: var(--text); margin-bottom: 1.8rem; }
.hero .services-strip span { color: var(--yellow); margin: 0 0.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* diagonal section transitions */
.diag-bottom { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
.diag-top-bottom { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%); }
.diag-top { clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 100%); }

/* ---------- guarantee bar ---------- */
.guarantee { background: var(--bg-2); padding: clamp(3rem, 6vw, 4rem) 0; margin-top: -1px; }
.guarantee .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.guarantee .left { display: flex; align-items: center; gap: 1.3rem; }
.guarantee .ico { flex: none; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,197,31,0.12); border: 1px solid rgba(255,197,31,0.3); display: grid; place-items: center; color: var(--yellow); }
.guarantee .ico svg { width: 28px; height: 28px; }
.guarantee h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.guarantee p { max-width: 46ch; }
.guarantee strong { color: #fff; }

/* ---------- services ---------- */
.services-section { background: var(--bg-2); background-image: radial-gradient(60% 50% at 15% 0%, rgba(255,197,31,0.06), transparent 60%); }
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.service-card { position: relative; border: 2px solid var(--yellow); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.6; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.9); transition: transform .6s var(--ease), filter .6s var(--ease); }
.service-card:hover img { transform: scale(1.08); filter: brightness(0.38) saturate(0.9); }
.service-card::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.82) 100%); }
.service-card .content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 1.6rem 1.2rem; }
.service-card .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; color: var(--yellow-ink); margin-bottom: auto; margin-top: 0.4rem; }
.service-card .ico svg { width: 27px; height: 27px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.service-card p { color: rgba(255,255,255,0.68); font-size: 0.85rem; }

/* ---------- before / after compare slider ---------- */
.compare-wrap { max-width: 820px; margin-inline: auto; }
.compare {
  position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--line-2); box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y;
  background: var(--surface);
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before-wrap { position: absolute; inset: 0; clip-path: polygon(0 0, var(--pos, 50%) 0, var(--pos, 50%) 100%, 0 100%); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: var(--yellow); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.4); }
.compare-handle {
  position: absolute; top: 50%; left: var(--pos, 50%); width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--bg); transform: translate(-50%,-50%);
  display: grid; place-items: center; color: var(--yellow-ink); pointer-events: none;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.6);
}
.compare-handle svg { width: 24px; height: 24px; }
.compare-tag { position: absolute; top: 1rem; z-index: 2; font-family: var(--display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4rem 0.85rem; border-radius: 999px; pointer-events: none; }
.compare-tag.before { left: 1rem; background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.compare-tag.after { right: 1rem; background: var(--yellow); color: var(--yellow-ink); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; z-index: 3; }
.compare-caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.compare-caption p { font-size: 0.9rem; margin: 0; }
.compare-hint { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted-2); }
.compare-hint svg { width: 16px; height: 16px; color: var(--yellow); }

/* ---------- hail stat band ---------- */
.hail-band { position: relative; color: #fff; overflow: hidden; }
.hail-band .band-bg { position: absolute; inset: 0; }
.hail-band .band-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); }
.hail-band .band-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(8,8,9,0.88), rgba(8,8,9,0.93)); }
.hail-band .container { position: relative; z-index: 1; }
.hail-band .stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem,4vw,3rem); color: var(--yellow); }
.hail-band .stat .lbl { color: rgba(255,255,255,0.72); margin-top: 0.3rem; font-size: 0.92rem; }

/* ---------- process steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step .n { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--yellow); line-height: 1; }
.step h3 { font-size: 1.1rem; margin: 0.7rem 0 0.4rem; }

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--yellow); box-shadow: var(--shadow); }
.split-media img { aspect-ratio: 5/4; object-fit: cover; }
.checklist { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text); }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 6px; background: rgba(255,197,31,0.14); border: 1px solid rgba(255,197,31,0.3); display: grid; place-items: center; color: var(--yellow); margin-top: 0.1rem; }
.checklist .tick svg { width: 14px; height: 14px; }

/* ---------- testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.quote .stars { color: var(--yellow); letter-spacing: 0.15em; margin-bottom: 0.9rem; }
.quote blockquote { font-size: 1.02rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.3rem; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--yellow-ink); flex: none; }
.quote .who .name { font-weight: 700; font-size: 0.94rem; color: #fff; }
.quote .who .role { font-size: 0.82rem; color: var(--muted-2); }

/* ---------- CTA ---------- */
.cta-panel { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); padding: clamp(2.4rem, 6vw, 4.2rem); text-align: center; }
.cta-panel h2 { margin-bottom: 0.6rem; }
.cta-panel p { max-width: 52ch; margin-inline: auto; font-size: 1.05rem; }
.cta-panel .hero-actions { justify-content: center; margin-top: 1.8rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.2rem,5vw,4.5rem); align-items: start; }
.info-list { list-style: none; display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm); background: rgba(255,197,31,0.1); border: 1px solid rgba(255,197,31,0.28); display: grid; place-items: center; color: var(--yellow); }
.info-list .ico svg { width: 21px; height: 21px; }
.info-list .k { font-weight: 700; font-size: 0.95rem; color: #fff; }
.info-list .v { color: var(--muted); font-size: 0.94rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.45rem; color: #fff; }
.field input, .field select, .field textarea { width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,197,31,0.18); }
.field textarea { resize: vertical; min-height: 120px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field.row .field { margin: 0; }
.form .err { color: #ff8a65; font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff6b4a; }
.field.invalid .err { display: block; }
.form-note { margin-top: 0.4rem; font-size: 0.84rem; }
.form-success { display: none; align-items: center; gap: 0.7rem; margin-top: 1.2rem; background: rgba(255,197,31,0.1); border: 1px solid rgba(255,197,31,0.35); color: var(--yellow); padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; }
.form-success.show { display: flex; }
.map { margin-top: 1.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 16/8; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.5) invert(0.92) contrast(0.9); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2rem; padding: clamp(3rem,6vw,4.5rem) 0 2.5rem; }
.footer-grid h4 { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--muted); font-size: 0.95rem; transition: color .25s var(--ease); }
.footer-grid a:hover { color: var(--yellow); }
.footer-about p { margin: 1rem 0 1.2rem; font-size: 0.94rem; max-width: 32ch; }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: all .3s var(--ease); }
.socials a:hover { color: var(--yellow-ink); background: var(--yellow); border-color: var(--yellow); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted-2); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guarantee .wrap { justify-content: center; text-align: center; }
  .guarantee .left { flex-direction: column; }
}
@media (max-width: 860px) {
  .utility-bar .u-left span:nth-child(2) { display: none; }
  .nav-links { position: fixed; inset: 82px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 1rem 1.3rem 1.6rem; background: var(--bg); box-shadow: var(--shadow); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 1rem; }
  .nav-toggle { display: grid; place-items: center; }
  .nav .btn-primary.nav-cta-btn { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; }
  .compare-handle { width: 44px; height: 44px; }
  .utility-bar .u-right span { display: none; }
}
