/* [Business Name] car detailing: concept by Quoll Digital.
   Every effect here has a Squarespace 7.1 match (see SQUARESPACE_BUILD_SHEET.md).
   Mobile-first: base rules are for phones, min-width queries add the rest. */

:root {
  /* The 5 Squarespace palette colours */
  --c-darkest: #06080c;   /* Darkest */
  --c-dark: #0d1524;      /* Dark accent (midnight) */
  --c-accent: #1f66f0;    /* Accent (electric blue) */
  --c-light: #c7cfda;     /* Light accent (chrome) */
  --c-lightest: #f3f5f8;  /* Lightest */

  /* Derived (Squarespace sets these per colour theme) */
  --c-accent-text: #7aa8ff;       /* accent used as text on dark */
  --c-muted: #93a0b4;             /* small text on dark */
  --c-line: rgba(199, 207, 218, .14);
  --c-ink: #0d1524;               /* text on light sections */
  --c-ink-muted: #4a5568;

  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1200px;
  --radius: 6px;
  --top-h: 96px; /* banner + header, kept clear on page headers */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden must win over display rules like .form { display: grid } */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--c-darkest);
  color: var(--c-light);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent-text); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  color: var(--c-lightest);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.75rem, 11vw, 6rem); }
h2 { font-size: clamp(2.1rem, 7vw, 3.5rem); }
h3 { font-size: 1.6rem; line-height: 1.1; }
p { margin: 0 0 1em; }
.eyebrow {
  display: block;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent-text);
  margin-bottom: .9rem;
}
.lede { font-size: 1.08rem; max-width: 38rem; }
.note { font-size: .82rem; color: var(--c-muted); }
.ph { color: var(--c-accent-text); } /* marks placeholder text */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: 72px 0; }
.section--dark { background: var(--c-dark); }
.section--light { background: var(--c-lightest); color: var(--c-ink-muted); }
.section--light h2, .section--light h3 { color: var(--c-ink); }
.section--light .eyebrow { color: var(--c-accent); }
.section--light .note { color: var(--c-ink-muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons (Squarespace: Primary = solid, Secondary = outline) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 14px 28px;
  border: 1.5px solid var(--c-accent); border-radius: var(--radius);
  background: var(--c-accent); color: #fff;
  font: 600 .9rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); background: #3a7cff; border-color: #3a7cff; box-shadow: 0 10px 24px -10px rgba(31, 102, 240, .8); }
.btn--ghost { background: transparent; border-color: var(--c-lightest); color: var(--c-lightest); }
.btn--ghost:hover { background: var(--c-lightest); border-color: var(--c-lightest); color: var(--c-darkest); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.link-arrow { color: var(--c-accent-text); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Concept banner (Squarespace: Announcement Bar) + header ---------- */
.site-top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .35s ease; }
.site-top.is-hidden { transform: translateY(-100%); }
.concept-bar {
  background: var(--c-accent); color: #fff;
  font-size: .75rem; font-weight: 500; line-height: 1.3;
  text-align: center; padding: 7px var(--gutter);
}
.site-header { transition: background-color .3s ease; }
.site-top.is-solid .site-header, .site-top.menu-open .site-header { background: var(--c-darkest); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo {
  font-family: var(--f-head); font-weight: 600; font-size: 1.35rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--c-lightest);
  white-space: nowrap;
}
.nav { display: none; }
.header-cta { display: none; }
.menu-btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span { display: block; height: 2px; background: var(--c-lightest); transition: transform .3s ease, opacity .3s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu {
  display: none; background: var(--c-darkest);
  height: calc(100vh - 92px); height: calc(100dvh - 92px); overflow-y: auto;
  padding: 24px var(--gutter) 40px;
}
.menu-open .mobile-menu { display: block; }
.mobile-menu a:not(.btn) {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line);
  font-family: var(--f-head); font-size: 2rem; font-weight: 600; text-transform: uppercase;
  text-decoration: none; color: var(--c-lightest);
}
.mobile-menu a[aria-current="page"] { color: var(--c-accent-text); }
.mobile-menu .btn { width: 100%; margin-top: 28px; }

/* ---------- Page headers + hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--c-darkest);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 56px; }
.hero h1 { max-width: 12ch; }
.hero .lede { color: var(--c-lightest); }
.page-head {
  position: relative; overflow: hidden; background: var(--c-darkest);
  min-height: 56vh; display: flex; align-items: flex-end;
}
.page-head .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 48px; }
.page-head .lede { color: var(--c-lightest); }

/* Background media layer. Videos and images are pre-darkened files, so no overlay is needed
   (Squarespace video backgrounds have no confirmed overlay setting). */
.bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg video, .bg img { width: 100%; height: 100%; object-fit: cover; }
/* Image backgrounds only: Squarespace Background > Overlay Opacity 50% (overlay colour = Darkest) */
.bg--overlay::after { content: ""; position: absolute; inset: 0; background: rgba(6, 8, 12, .5); }
/* Parallax (Squarespace: Image Effect > Parallax). JS moves .parallax-img on scroll. */
.parallax-img { position: absolute; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; }
.parallax-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 32px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { padding: 18px 20px; border: 1px solid #d9dee6; border-radius: var(--radius); background: #fff; }
.points strong { display: block; font-family: var(--f-head); font-size: 1.35rem; text-transform: uppercase; color: var(--c-ink); line-height: 1.1; margin-bottom: 4px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; margin-top: 36px; }
.cards--flush { margin-top: 0; }
.card { display: flex; flex-direction: column; background: var(--c-darkest); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; }
.price { font-family: var(--f-head); font-size: 1.5rem; font-weight: 600; color: var(--c-lightest); margin-bottom: 10px; }
.price small { font-family: var(--f-body); font-size: .8rem; font-weight: 500; color: var(--c-muted); text-transform: none; letter-spacing: 0; }

/* ---------- Before / after (Squarespace: two Image blocks with captions) ---------- */
.ba-set { display: grid; gap: 40px; margin-top: 36px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-pair figure { margin: 0; min-width: 0; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ba-pair figcaption {
  margin-top: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted);
}
.ba-pair figure:last-child figcaption { color: var(--c-accent-text); }
.ba-title { font-family: var(--f-head); font-size: 1.3rem; text-transform: uppercase; color: var(--c-lightest); margin: 0 0 12px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 24px 22px 22px 84px; background: #fff; border: 1px solid #d9dee6; border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 18px;
  font-family: var(--f-head); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--c-accent);
}
.steps h3 { color: var(--c-ink); margin-bottom: .3em; }
.steps p { margin: 0; }

/* ---------- Review placeholder (Squarespace: Quote block) ---------- */
.review { max-width: 46rem; margin: 0 auto; text-align: center; }
.review blockquote {
  margin: 0; font-family: var(--f-head); font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.1;
  text-transform: uppercase; color: var(--c-lightest);
}
.review cite { display: block; margin-top: 18px; font-style: normal; color: var(--c-muted); }
.placeholder-tag {
  display: inline-block; margin-top: 20px; padding: 6px 12px; border: 1px dashed var(--c-muted); border-radius: var(--radius);
  font-size: .75rem; color: var(--c-muted);
}

/* ---------- Video / image CTA bands ---------- */
.band { position: relative; overflow: hidden; padding: 110px 0; background: var(--c-darkest); }
.band .wrap { position: relative; z-index: 2; }

/* ---------- Packages (Services) ---------- */
.pkg-list { list-style: none; margin: 0 0 22px; padding: 0; }
.pkg-list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--c-line); }
.pkg-list li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px;
  border-left: 2px solid var(--c-accent-text); border-bottom: 2px solid var(--c-accent-text); transform: rotate(-45deg);
}
.ceramic { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.ceramic-panel {
  max-width: 34rem; padding: 28px 24px; border-radius: var(--radius);
  background: rgba(6, 8, 12, .78); border: 1px solid var(--c-line);
}
.ceramic-panel .price { font-size: 1.9rem; }

/* ---------- FAQ (Squarespace: Accordion block) ---------- */
.faq { max-width: 52rem; margin: 32px auto 0; border-top: 1px solid #d9dee6; }
.faq details { border-bottom: 1px solid #d9dee6; }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0;
  font-family: var(--f-head); font-size: 1.4rem; font-weight: 600; text-transform: uppercase; line-height: 1.15; color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 2rem; font-weight: 400; color: var(--c-accent); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 44rem; }

/* ---------- Gallery (Squarespace: Gallery section, Grid: Simple, lightbox on) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius); cursor: pointer;
  background: transparent; border: 1.5px solid var(--c-line); color: var(--c-light);
  font: 600 .82rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.filter:hover { border-color: var(--c-light); }
.filter[aria-pressed="true"] { background: var(--c-lightest); border-color: var(--c-lightest); color: var(--c-darkest); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-item { margin: 0; min-width: 0; }
.grid-item[hidden] { display: none; }
.grid-note { margin-top: 20px; }
.grid-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.grid-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s ease; }
.grid-item button:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(6, 8, 12, .96); }
.lightbox.open { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 12px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius); }
.lightbox p { margin: 14px 0 0; color: var(--c-light); font-size: .9rem; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(243, 245, 248, .1); color: var(--c-lightest); font-size: 1.6rem; line-height: 48px;
}
.lb-btn:hover { background: rgba(243, 245, 248, .22); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.field label span { font-weight: 400; color: var(--c-ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--f-body); color: var(--c-ink);
  background: #fff; border: 1.5px solid #cdd4de; border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(31, 102, 240, .18); }
.form .btn { justify-self: start; }
.form-done { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--c-accent); }
.form-done h3 { color: var(--c-ink); }
.info-block { padding: 24px 0; border-top: 1px solid #d9dee6; }
.info-block:first-child { border-top: 0; padding-top: 0; }
.info-block h3 { color: var(--c-ink); font-size: 1.35rem; margin-bottom: .4em; }
.info-block p { margin: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px solid #e6e9ee; }
.hours td:last-child { text-align: right; }
.map-ph {
  margin-top: 8px; aspect-ratio: 16 / 10; border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #e9edf2 0 12px, #f3f5f8 12px 24px);
  border: 1.5px dashed #aab4c2; color: var(--c-ink-muted); font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-darkest); border-top: 1px solid var(--c-line); padding: 56px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; }
.site-footer .logo { display: inline-block; margin-bottom: 10px; }
.site-footer h4 { margin: 0 0 10px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-lightest); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: .8rem; color: var(--c-muted); }

/* ---------- Scroll reveal: Squarespace Site Styles > Animations > Slide ----------
   Only hidden when JS is running (html.js), so content never stays invisible. */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .parallax-img { transform: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .ba-set { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 84px 24px 26px; }
  .steps li::before { top: 24px; left: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .ceramic-panel { padding: 40px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  :root { --top-h: 112px; }
  .header-inner { height: 80px; }
  .menu-btn, .mobile-menu, .menu-open .mobile-menu { display: none; }
  .nav { display: flex; gap: 34px; }
  .nav a { position: relative; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--c-light); padding: 6px 0; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-accent-text); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--c-lightest); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; min-height: 44px; padding: 12px 22px; }
  .hero .wrap { padding-bottom: 96px; }
  .page-head { min-height: 62vh; }
  .page-head .wrap { padding-bottom: 72px; }
  .intro-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; }
  .form { grid-template-columns: 1fr 1fr; }
  .field--full, .form .btn { grid-column: 1 / -1; }
  .band { padding: 160px 0; }
}
