/* ==========================================================
   Apex Detailing: modern restyle layer
   Loaded after style.css on every page. Remove the <link> to
   css/modern.css to go back to the old look.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
  --gutter: clamp(20px, 4vw, 56px);
  --display: "Barlow Condensed", "Barlow", sans-serif;
  --card-border: rgba(255, 255, 255, 0.07);
  --surface: #232429;
}

body { font-family: "Barlow", sans-serif; -webkit-font-smoothing: antialiased; }

/* ---------- Typography ---------- */
h1, h2, .heading {
  font-family: var(--display) !important;
  letter-spacing: 0.005em;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; }

/* ---------- Header: full width, slim, sticky ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(20, 21, 24, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border) !important;
}
.header .b-container {
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.header .border-start,
.header .border-end { border-left: 0 !important; border-right: 0 !important; }

.header .top-header { border-bottom: 1px solid var(--card-border); }
.header .top-header .p-3 { padding: 6px 0 !important; }
.header .top-header li { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.header .top-header li i { font-size: 13px !important; }
.header .top-header .icon-social { width: 30px; height: 30px; font-size: 13px; }

.header .navbar > .container-fluid { padding-left: 0; padding-right: 0; }
.header .logo-box { max-width: none; }
.header .logo-box img { width: 124px; height: 124px; max-width: none; margin: -30px 0 -30px -14px; }
.header .nav-link { font-size: 16px; font-weight: 500; }

@media (min-width: 992px) {
  .header .navbar-nav.my-lg-4 { margin-top: 14px !important; margin-bottom: 14px !important; }
  .header .offcanvas-body { align-items: center; }
  .header .offcanvas-body > .mt-3 { margin-top: 0 !important; }
  .header .nav-link { position: relative; }
  .header .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
  }
  .header .btn-cta-primary.btn-lg { padding: 10px 22px; font-size: 15px; }
}

/* ---------- Buttons ---------- */
.btn-cta-primary,
.btn-cta-secondary { border-radius: 999px; letter-spacing: 0.01em; }
.btn-cta-primary { box-shadow: 0 8px 24px -10px rgba(223, 59, 52, 0.7); }
.btn-cta-primary:hover,
.btn-cta-secondary:hover { transform: translateY(-1px); }

/* ---------- Home hero ---------- */
.hero {
  min-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 120px;
}
.hero.hero-bg::before {
  background: linear-gradient(90deg, rgba(14, 15, 18, 0.9) 0%, rgba(14, 15, 18, 0.6) 45%, rgba(14, 15, 18, 0.2) 100%);
}
.hero > .row { width: 100%; margin-left: 0; margin-right: 0; }
.hero .b-container { width: 100%; max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }
.hero .row.align-items-center { flex-direction: column; align-items: flex-start !important; }
.hero .row.align-items-center > [class*="col-xl-"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 640px;
}
.hero h1.text-center,
.hero h2.text-center,
.hero .text-center { text-align: left !important; }
.hero h1 {
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
}
.hero h1 + h2 {
  font-family: "Barlow", sans-serif !important;
  font-size: clamp(18px, 1.6vw, 22px) !important;
  color: var(--accent-color);
  margin-bottom: 18px;
}
.hero p { font-size: 18px; color: rgba(255, 255, 255, 0.8); max-width: 520px; }
.hero .mt-n280 { display: none; }

/* ---------- Inner page banners ---------- */
main > section.section:first-child[style*="background-image"] {
  min-height: 340px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
main > section.section:first-child[style*="background-image"] > .b-container { width: 100%; }
main > section.section:first-child[style*="background-image"] h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Section rhythm ---------- */
.section { padding-top: clamp(72px, 8vw, 110px); padding-bottom: clamp(72px, 8vw, 110px); }
.section + section.bg-color,
.section + section.padtop { padding-top: clamp(72px, 8vw, 110px); }

/* ---------- Cards ---------- */
.bg-secondary-color.rounded-4,
.bg-color.rounded-4,
.bg-accent-color-2.rounded-4 {
  background-color: var(--surface) !important;
  border: 1px solid var(--card-border);
  border-radius: 20px !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bg-secondary-color.rounded-4:hover,
.bg-color.rounded-4:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 59, 52, 0.45);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
.bg-primary-color.rounded-4 { border-radius: 20px !important; }

/* Images: soft, consistent corners */
.rounded-4 > img,
img.rounded-4 { border-radius: 20px !important; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--card-border); }

/* Pricing grids: even rows, equal-height cards */
.row.g-4 > [class*="col-"].d-flex { margin-top: var(--bs-gutter-y) !important; }
.row.g-4 > [class*="col-"].d-flex > .rounded-4 { margin-top: 0 !important; height: 100%; width: 100%; }
.row.g-4 > [class*="col-"].d-flex > .rounded-4 .btn { margin-top: auto; }

/* Condensed display font needs tighter leading */
h1 { line-height: 1.02; }
h2 { line-height: 1.08; }

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
  .hero { min-height: 0; padding: 120px 0 80px; }
  .breadcrumb { justify-content: center; font-size: 14px; }
  .breadcrumb a, .breadcrumb-item { font-size: 14px; }
  .row.g-4 > [class*="col-"].d-flex > .rounded-4.px-5 { padding-left: 24px !important; padding-right: 24px !important; }
  main > section.section:first-child[style*="background-image"] { min-height: 260px; }
}

/* ---------- Bigger logo ---------- */
.header .logo-box img { width: 168px !important; height: 168px !important; margin: -44px 0 -44px -18px !important; }
@media (max-width: 991.98px) {
  .header .logo-box img { width: 140px !important; height: 140px !important; margin: -38px 0 -38px -16px !important; }
}

/* ---------- Home about: video fills its half ---------- */
.about-home .about-media { position: relative; }
.about-home .about-media video {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 24px !important;
  display: block;
}
.about-badge {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(20, 21, 24, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: #fff;
}
.about-badge-stars { color: #FFC83D; letter-spacing: 2px; font-size: 16px; }
@media (max-width: 1199.98px) {
  .about-home .about-media video { min-height: 0; height: 460px; margin-bottom: 40px !important; }
  .about-badge { left: 28px; bottom: 60px; }
}
@media (max-width: 575.98px) {
  .about-home .about-media video { height: 380px; }
}

/* ---------- Booking CTA band ---------- */
.cta-band { background: transparent !important; }
.cta-band > .b-container {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse at 15% 110%, rgba(223, 59, 52, 0.45), transparent 55%),
    linear-gradient(100deg, rgba(14, 15, 18, 0.94) 0%, rgba(14, 15, 18, 0.78) 55%, rgba(14, 15, 18, 0.55) 100%),
    url("../images/ceramic-coated-lexus-rx-ottawa.jpg") center 60% / cover no-repeat;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.cta-band h2 { font-size: clamp(34px, 4.2vw, 56px); text-transform: uppercase; }
.cta-band p { color: rgba(255, 255, 255, 0.82); font-size: 18px; }

/* About video: match the text column height on desktop */
@media (min-width: 1200px) {
  .about-home .about-media { min-height: 560px; height: 100%; }
  .about-home .about-media video { position: absolute; inset: 0 calc(var(--bs-gutter-x) * .5); width: calc(100% - var(--bs-gutter-x)); height: 100%; min-height: 0; }
  .about-badge { left: calc(var(--bs-gutter-x) * .5 + 28px); bottom: 28px; }
}

/* Footer logo: bigger, cropped to the wordmark */
.footer-logo-box { height: auto !important; }
.footer-logo-box img { width: 180px !important; height: 180px !important; max-width: none; margin: -48px 0 -44px -22px; }

/* ==========================================================
   Hero quote wizard
   ========================================================== */
@media (min-width: 1200px) {
  .hero .row.align-items-center {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 430px;
    column-gap: clamp(32px, 5vw, 96px);
    align-items: center !important;
  }
  .hero .row.align-items-center > [class*="col-xl-"] { grid-column: 1; max-width: 640px; }
  .hero .hero-quote-col { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 1199.98px) {
  .hero .hero-quote-col { width: 100%; max-width: 560px; margin-top: 36px; }
}
.hero-quote-col { padding: 0 calc(var(--bs-gutter-x) * .5); }

.quote-card {
  position: relative;
  background: rgba(22, 23, 27, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  min-height: 420px;
}
.qw-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qw-step { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.qw-back {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
@media (hover: hover) { .qw-back:hover { border-color: var(--primary-color); color: var(--primary-color); } }
.qw-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 18px; }
.qw-bar span { display: block; height: 100%; background: var(--primary-color); border-radius: 4px; transition: width .35s ease; }
.qw-title { font-family: var(--display) !important; font-size: 30px; font-weight: 700; text-transform: uppercase; margin: 0 0 14px; line-height: 1.05; }
.qw-price {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(223, 59, 52, 0.14); border: 1px solid rgba(223, 59, 52, 0.4);
  font-size: 14px; color: #fff;
}
.qw-price strong { color: var(--accent-color); }
.qw-grid { display: grid; gap: 10px; }
.qw-cols-2 { grid-template-columns: 1fr 1fr; }
.qw-cols-1 { grid-template-columns: 1fr; }
.qw-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; min-height: 52px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); color: #fff;
  font-size: 15px; font-weight: 600; text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.qw-opt i { color: var(--primary-color); font-size: 18px; }
@media (hover: hover) { .qw-opt:hover { border-color: rgba(223,59,52,.6); background: rgba(223,59,52,.08); transform: translateY(-1px); } }
.qw-opt.is-on { border-color: var(--primary-color); background: rgba(223,59,52,.16); }
.qw-hint { color: rgba(255,255,255,.7); font-size: 15px; margin: -4px 0 12px; }
.qw-form { display: grid; gap: 10px; }
.qw-input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #fff; font-size: 16px; outline: none;
}
.qw-input::placeholder { color: rgba(255,255,255,.45); }
.qw-input:focus { border-color: var(--primary-color); background: rgba(255,255,255,.06); }
.qw-fine { font-size: 13px; color: rgba(255,255,255,.55); margin: 2px 0 0; text-align: center; }
.qw-error { font-size: 14px; color: var(--accent-color); margin: 0; text-align: center; }
.qw-error a { font-size: 14px; }
.qw-done { text-align: center; padding-top: 30px; }
.qw-check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-color); color: #fff; font-size: 32px;
}
.qw-anim { animation: qwIn .3s ease both; }
@keyframes qwIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) {
  .quote-card { padding: 20px; min-height: 0; }
  .qw-title { font-size: 26px; }
}

/* Hero + wizard: keep content above the bottom fade, fit in one screen */
.hero > .row.z-1 { z-index: 3 !important; }
@media (min-width: 1200px) {
  .hero { padding: 40px 0 70px; }
  .hero h1 { font-size: clamp(46px, 4.6vw, 74px); }
  .hero .row.align-items-center { row-gap: 0; }
  .hero .row.align-items-center > .col-xl-7 { align-self: end; }
  .hero .row.align-items-center > .col-xl-5 { align-self: start; }
  .quote-card { padding: 22px 22px 20px; min-height: 0; }
  .qw-title { font-size: 27px; margin-bottom: 12px; }
  .qw-opt { min-height: 48px; padding: 11px 13px; }
  .qw-bar { margin-bottom: 14px; }
}

/* Remove the giant outlined "PROJECT" words and the gap they leave */
.big-title { display: none !important; }

/* Leftover empty hero row was pushing content down */
.hero > .row.mt-n280 { display: none !important; }

/* ---------- Phones: never scroll sideways ---------- */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 575.98px) {
  .hero-buttons { flex-wrap: wrap; gap: 10px; width: 100%; }
  .hero-buttons a {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    padding: 12px 10px;
    font-size: 15px;
    line-height: 1.2;
  }
  .hero .row.align-items-center > [class*="col-xl-"],
  .hero .hero-quote-col { max-width: 100%; }
  .qw-cols-2 .qw-opt { min-width: 0; }
}
@media (max-width: 575.98px) {
  .hero-buttons { align-items: stretch; }
  .hero-buttons a { display: flex; align-items: center; justify-content: center; text-align: center; }
}

/* ---------- Phones: hero looks like the original (centered, full photo) ---------- */
@media (max-width: 767.98px) {
  .hero { padding: 70px 0 40px; }
  /* photo only behind the headline area, not stretched down behind the quote card */
  .hero.hero-bg .hero-media {
    height: 560px;
    bottom: auto;
    object-position: center 38%;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
  .hero.hero-bg::before { background: rgba(0, 0, 0, 0.5); height: 560px; bottom: auto; }
  .hero.hero-bg::after { display: none; }

  .hero h1.text-center,
  .hero h2.text-center,
  .hero .text-center { text-align: center !important; }
  .hero h1 {
    font-family: "Barlow", sans-serif !important;
    text-transform: none;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.2;
  }
  .hero h1 + h2 { color: #fff; font-size: 22px !important; margin-bottom: 10px; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 16px; }
  .hero .row.align-items-center { align-items: center !important; }
  .hero-buttons { justify-content: center; }
  .hero .hero-quote-col { margin-left: auto; margin-right: auto; margin-top: 56px; }
}

/* ---------- Mobile menu fix ----------
   backdrop-filter on the header trapped the slide-out menu inside it.
   Below 992px: solid header, and keep it (and its menu) above Bootstrap's dark backdrop. */
@media (max-width: 991.98px) {
  .header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #141518;
    z-index: 1046;
  }
  .header .offcanvas { z-index: 1047; }
}
@media (max-width: 991.98px) {
  .header .offcanvas-body { flex-direction: column !important; padding: 8px 24px 32px; }
  .header .offcanvas .nav-link { font-size: 22px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .header .offcanvas .nav-link.active::after { display: none; }
  .header .offcanvas-body > .mt-3 { margin-top: 28px !important; width: 100%; }
  .header .offcanvas-body .btn-cta-primary.d-none { display: block !important; margin-left: 0 !important; text-align: center; }
}
@media (max-width: 991.98px) {
  .header .offcanvas .nav-item > .d-flex > .nav-link { flex: 1; }
}

/* About page: stats box no longer overlaps the "Project Showcase" heading */
.section.mb-n90 { margin-bottom: 0 !important; padding-bottom: 48px !important; }
.qw-select { appearance: none; -webkit-appearance: none; color: rgba(255,255,255,.7);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.qw-select option { color: #111; }

/* ==========================================================
   Service pages (ceramic coating, interior, paint correction)
   ========================================================== */
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc-list li { position: relative; padding-left: 28px; }
.svc-list li::before {
  content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px;
  color: var(--primary-color); font-size: 17px;
}
@media (min-width: 768px) { .svc-cols { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

.step-card {
  height: 100%; padding: 26px 22px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--card-border);
}
.step-num {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1;
  color: var(--primary-color); margin-bottom: 12px;
}

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-pair figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-pair figcaption {
  position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(20, 21, 24, 0.8); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ba-pair figure:last-child figcaption { background: var(--primary-color); }

/* ---- Quote wizard: photo upload + AI estimate ---- */
.qw-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qw-thumb, .qw-add { position: relative; aspect-ratio: 1; border-radius: 12px; }
.qw-thumb { background: #222 center/cover no-repeat; border: 1px solid rgba(255,255,255,.12); }
.qw-thumb-x {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.qw-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed rgba(255,255,255,.3); background: rgba(255,255,255,.03); color: #fff;
  font-size: 12px; font-weight: 600;
}
.qw-add i { font-size: 22px; color: var(--primary-color); }
@media (hover: hover) { .qw-add:hover { border-color: var(--primary-color); background: rgba(223,59,52,.08); } }
.qw-skip { display: block; width: 100%; margin-top: 8px; background: none; border: 0; color: rgba(255,255,255,.6); font-size: 14px; text-decoration: underline; }
.qw-skip[hidden] { display: none; }
.qw-estimate {
  margin: 4px 0 12px; padding: 18px; border-radius: 16px;
  background: rgba(223,59,52,.12); border: 1px solid rgba(223,59,52,.45);
  display: flex; flex-direction: column; gap: 4px;
}
.qw-est-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.65); }
.qw-est-price { font-family: var(--display); font-size: 38px; line-height: 1.05; color: var(--accent-color); }
.qw-est-pkg { font-size: 15px; font-weight: 600; }
.qw-est-msg { font-size: 15px; color: rgba(255,255,255,.8); margin: 6px 0 0; }

/* ---- Quote wizard: AI loading screen ---- */
.qw-loading { text-align: center; padding-top: 24px; }
.qw-spinner {
  position: relative; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 28px;
}
.qw-spinner::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1); border-top-color: var(--primary-color);
  animation: qwSpin 1s linear infinite;
}
.qw-spinner i { animation: qwPulse 1.6s ease-in-out infinite; }
.qw-load-msg { min-height: 24px; margin: 0 0 16px; }
.qw-load-bar { margin: 0 0 14px; }
.qw-load-bar span { width: 0; transition: width .4s linear; }
@keyframes qwSpin { to { transform: rotate(360deg); } }
@keyframes qwPulse { 50% { transform: scale(1.15); opacity: .7; } }
