/* PH Detailing - phcardetailing.co.uk */

:root {
  --black: #07090d;
  --charcoal: #12161d;
  --panel: #161b24;
  --blue: #1466e8;
  --blue-bright: #3aa0ff;
  --chrome: #c9cfd8;
  --chrome-dim: #8b93a1;
  --white: #f4f6f9;
  --radius: 14px;
  --maxw: 1180px;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fixed branded backdrop behind the whole template */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(20, 102, 232, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(58, 160, 255, 0.10), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #0a0e15 0%, var(--black) 55%, #05070a 100%);
}

img { max-width: 100%; display: block; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; color: var(--chrome); }

.accent { color: var(--blue-bright); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: 64px 0; }

.panel {
  background: linear-gradient(180deg, rgba(22,27,36,0.92), rgba(18,22,29,0.92));
  border: 1px solid rgba(201,207,216,0.12);
  border-radius: var(--radius);
  padding: 28px;
}

.lead { color: var(--chrome); font-size: 1.08rem; max-width: 68ch; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,9,13,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58,160,255,0.18);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.nav .brand:hover { text-decoration: none; }
.nav .brand img { width: 46px; height: 46px; border-radius: 8px; }
.nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin-left: auto;
  align-items: center;
}
.nav ul a {
  color: var(--chrome);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--blue-bright); text-decoration: none; }
.nav .call {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}
.nav .call:hover { color: var(--blue-bright); text-decoration: none; }

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(20,102,232,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(58,160,255,0.5); text-decoration: none; color: #fff; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--blue-bright);
  color: var(--blue-bright);
  box-shadow: none;
}

#navToggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(201,207,216,0.3);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.4rem;
  padding: 4px 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  #navToggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; }
  .nav ul a { display: block; padding: 10px 6px; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 64px;
  text-align: center;
}
.hero-media {
  max-width: 620px;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(58,160,255,0.25);
  box-shadow: 0 10px 60px rgba(20,102,232,0.25);
}
.hero-media video, .hero-media img { width: 100%; height: auto; }
.hero .tagline {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome);
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  margin: 10px 0 6px;
}
.hero .sub {
  color: var(--chrome-dim);
  max-width: 56ch;
  margin: 0 auto 26px;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track figure {
  flex: 0 0 min(78%, 640px);
  scroll-snap-align: center;
  margin: 0;
}
.carousel-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(201,207,216,0.14);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7,9,13,0.72);
  border: 1px solid rgba(58,160,255,0.4);
  color: var(--white);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn:hover { background: var(--blue); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ---------- Cards / services ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(22,27,36,0.95), rgba(16,20,27,0.95));
  border: 1px solid rgba(201,207,216,0.12);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(58,160,255,0.45); transform: translateY(-3px); }
.card h3 { color: var(--white); margin-bottom: 8px; }
.card .price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--blue-bright);
  margin: 10px 0 6px;
}
.card p { color: var(--chrome-dim); font-size: 0.97rem; }
.card ul { color: var(--chrome-dim); font-size: 0.95rem; padding-left: 20px; margin-top: 8px; }
.price-note { color: var(--chrome-dim); font-size: 0.9rem; margin-top: 18px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201,207,216,0.12);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4,5,8,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  border-radius: 10px;
  border: 1px solid rgba(58,160,255,0.3);
}
.lightbox .lb-caption { color: var(--chrome); margin-top: 12px; font-size: 0.95rem; text-align: center; }
.lightbox button {
  position: absolute;
  background: rgba(18,22,29,0.85);
  border: 1px solid rgba(201,207,216,0.25);
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox button:hover { background: var(--blue); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Before / After ---------- */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(201,207,216,0.15);
  aspect-ratio: 4 / 3;
  touch-action: none;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--blue-bright);
  cursor: ew-resize;
}
.ba-handle::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--blue);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.ba-label {
  position: absolute;
  top: 12px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: rgba(7,9,13,0.75);
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--chrome);
}
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; color: var(--blue-bright); }

/* ---------- Video facade ---------- */
.video-facade {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(58,160,255,0.25);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: var(--charcoal);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 40px rgba(20,102,232,0.6);
  transition: transform 0.15s ease;
}
.video-facade .play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Forms ---------- */
form label {
  display: block;
  font-size: 0.9rem;
  color: var(--chrome);
  margin: 16px 0 6px;
  font-weight: 500;
}
form input, form select, form textarea {
  width: 100%;
  background: rgba(7,9,13,0.7);
  border: 1px solid rgba(201,207,216,0.22);
  border-radius: 8px;
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(58,160,255,0.18);
}
form .btn { margin-top: 22px; }

/* ---------- Misc sections ---------- */
.strip {
  background: linear-gradient(90deg, rgba(20,102,232,0.16), rgba(58,160,255,0.06));
  border-top: 1px solid rgba(58,160,255,0.25);
  border-bottom: 1px solid rgba(58,160,255,0.25);
  text-align: center;
  padding: 40px 20px;
}
.strip h2 { margin-bottom: 8px; }
.strip p { color: var(--chrome); margin-bottom: 18px; }

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.areas li {
  background: rgba(22,27,36,0.9);
  border: 1px solid rgba(201,207,216,0.15);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--chrome);
}

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--chrome); }
.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--blue-bright);
  font-weight: 700;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid rgba(58,160,255,0.2);
  background: rgba(5,7,10,0.9);
  padding: 48px 0 28px;
  margin-top: 40px;
  font-size: 0.94rem;
  color: var(--chrome-dim);
}
footer.site .grid { margin-bottom: 30px; }
footer.site h3 { font-size: 1rem; margin-bottom: 12px; color: var(--white); }
footer.site ul { list-style: none; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--chrome-dim); }
footer.site a:hover { color: var(--blue-bright); }
.footer-bottom {
  border-top: 1px solid rgba(201,207,216,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
.socials { display: flex; gap: 14px; align-items: center; }
.socials a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,207,216,0.25);
  border-radius: 50%;
  color: var(--chrome);
}
.socials a:hover { border-color: var(--blue-bright); color: var(--blue-bright); text-decoration: none; }
.socials a[data-pending] { opacity: 0.35; pointer-events: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Booking embed */
#cal-embed { min-height: 620px; border-radius: var(--radius); overflow: hidden; }
.booking-fallback { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .gallery-grid img { transition: none; }
}
