/*
Theme Name: Prime Detailing UK
Author: Prime Detailing UK
Version: 1.0
*/

/* ---------- Base ---------- */
:root{
  --bg: #0b0b0b;
  --panel: #000;
  --text: #f5f5f5;
  --muted: rgba(255,255,255,.8);
  --muted2: rgba(255,255,255,.65);
  --brand: #e60000;
  --brand-dark: #b50000;
  --max: 1200px;
  --radius: 8px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; }

/* ---------- Header / Nav ---------- */
.site-header{
  background: var(--panel);
  border-bottom: none;          /* removes the red line */
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo h1{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.nav-menu{
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-menu a{
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 8px 6px;
  display: inline-block;
}

.nav-menu a:hover{
  color: var(--brand);
}

/* Dropdown support (if you add sub-menus later) */
.nav-menu li{ position: relative; }
.nav-menu .sub-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #111;
  border-radius: var(--radius);
  padding: 8px 0;
  margin: 10px 0 0 0;
  list-style: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  z-index: 99999;
}
.nav-menu li:hover > .sub-menu{ display: block; }
.nav-menu .sub-menu a{
  display: block;
  padding: 10px 16px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.nav-menu .sub-menu a:hover{
  background: rgba(230,0,0,.15);
  color: #fff;
}

/* ---------- Hero ---------- */
section.hero{
  text-align: center;
  padding: clamp(80px, 10vw, 130px) 20px;
}

section.hero h1{
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand);
}

section.hero p{
  margin: 14px 0 0 0;
  font-size: 18px;
  color: var(--muted);
}

.btn{
  display: inline-block;
  margin-top: 26px;
  padding: 14px 32px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(230,0,0,.25);
}

.btn:hover{
  background: var(--brand-dark);
}

.trust-text{
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted2);
}

/* ---------- Sections ---------- */
section.section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

section.section h2{
  margin: 0 0 14px 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

section.section p{
  margin: 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer{
  background: var(--panel);
  text-align: center;
  padding: 20px;
  color: var(--muted2);
}

/* ---------- Mobile tweaks ---------- */
/* Mobile header/menu */
@media (max-width: 700px){

  .main-nav{
    width: 100%;
  }

  .nav-menu{
    flex-wrap: wrap;
    gap: 12px 14px;
  }

  section.hero p{ font-size: 16px; }
}


/* ---------- Services Cards ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.service-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}

.service-icon{
  font-size: 26px;
  margin-bottom: 10px;
}

.service-card h3{
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.service-card p{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.5;
}

.services-cta{
  margin-top: 22px;
}

/* Responsive */
@media (max-width: 1000px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; }
}


.service-card{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Services: always visible + responsive */
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 1000px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* ---------- Contact (CTA area) ---------- */
.contact-sub{
  margin: 0 0 18px 0;
  color: var(--muted);
}

.contact-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-btn{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  display: block;
}

.contact-btn span{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
}

.contact-btn:hover{
  border-color: rgba(230,0,0,0.35);
  transform: translateY(-2px);
  transition: 0.2s ease;
}

/* Make WhatsApp look slightly different (still on-brand) */
.contact-btn.whatsapp{
  border-color: rgba(255,255,255,0.18);
}

.contact-note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.80);
}

/* Responsive */
@media (max-width: 900px){
  .contact-actions{ grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.review-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}

.review-stars{
  color: var(--brand);
  letter-spacing: 2px;
  font-weight: 900;
  margin-bottom: 10px;
}

.review-text{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.6;
}

.review-name{
  margin-top: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}

.reviews-cta{
  margin-top: 22px;
}

@media (max-width: 900px){
  .reviews-grid{ grid-template-columns: 1fr; }
}

/* ---------- Sticky WhatsApp Button ---------- */
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.whatsapp-float:hover{
  transform: scale(1.05);
}

/* Slightly bigger on mobile */
@media (max-width: 700px){
  .whatsapp-float{
    width: 62px;
    height: 62px;
    font-size: 30px;
  }
}

@media (max-width: 700px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-menu{
    flex-wrap: wrap;
    gap: 12px 14px;
  }
}

/* ===== Header CTA: Get a Quote ===== */
.nav-menu .nav-cta > a{
  background: #e60000;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(230,0,0,0.35);
}

.nav-menu .nav-cta > a:hover{
  background: #b50000;
  color: #ffffff !important;
}

/* ===== Logo sizing & glow ===== */
.logo-img{
  height: 56px;              /* desktop size */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(230,0,0,0.35));
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* Subtle hover polish (desktop only) */
@media (hover: hover){
  .logo-link:hover .logo-img{
    filter: drop-shadow(0 0 10px rgba(230,0,0,0.55));
    transform: translateY(-1px);
  }
}

/* Mobile: slightly smaller so header stays tidy */
@media (max-width: 700px){
  .logo-img{
    height: 42px;
  }
}

/* ===== Header logo (image only) ===== */
.logo{
  display: flex;
  align-items: center;
}

.logo-link{
  display: inline-flex;
  align-items: center;
}

.logo-img{
  height: 60px;                 /* desktop presence */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(230,0,0,0.35));
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* Hover polish */
@media (hover: hover){
  .logo-link:hover .logo-img{
    filter: drop-shadow(0 0 10px rgba(230,0,0,0.55));
    transform: translateY(-1px);
  }
}

/* Mobile sizing */
@media (max-width: 700px){
  .logo-img{
    height: 44px;
  }
}

/* Logo-only header */
.logo-link{
  display: inline-flex;
  align-items: center;
}

.logo-img{
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(230,0,0,0.35));
}

@media (max-width: 700px){
  .logo-img{ height: 46px; }
}

/* ===== Prominent logo ===== */
.logo-img{
  height: 86px !important;   /* bigger on desktop */
  width: auto !important;
  display: block !important;
  filter:
    drop-shadow(0 0 10px rgba(230,0,0,0.45))
    drop-shadow(0 0 20px rgba(230,0,0,0.25)) !important;
}

@media (max-width: 900px){
  .logo-img{ height: 56px !important; }
}

/* ===== Header layout: logo left, menu centered, CTA right ===== */
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: auto 1fr auto !important; /* logo | menu | CTA */
  align-items: center !important;
  column-gap: 24px;
}

.main-nav{
  justify-self: center !important;
}

.nav-menu{
  justify-content: center !important;
}

/* Put the CTA on the far right */
.nav-menu .nav-cta{
  margin-left: 18px;
}

/* On smaller screens, allow wrapping nicely */
@media (max-width: 900px){
  .header-inner{
    grid-template-columns: auto 1fr !important;
    grid-template-areas:
      "logo cta"
      "menu menu";
    row-gap: 10px;
  }

  .logo{ grid-area: logo; }
  .main-nav{ grid-area: menu; justify-self: start !important; }
  .nav-menu{ justify-content: flex-start !important; flex-wrap: wrap; }

  .nav-menu .nav-cta{
    grid-area: cta;
    justify-self: end;
    margin-left: 0;
  }
}

/* ===== Before/After slider (Hero) ===== */
.ba-wrap{
  max-width: 980px;
  margin: 0 auto 18px auto;
}

.ba-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;  /* keeps it responsive */
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.ba-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-before{
  position: absolute;
  inset: 0;
  width: 55%; /* default start */
  overflow: hidden;
}

.ba-handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 2px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.0);
}

.ba-handle::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.ba-handle::after{
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
}

.ba-range{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;          /* invisible but draggable */
  cursor: ew-resize;
}

.ba-labels{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 13px;
}

.hero-sub{
  margin: 18px 0 0 0;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
}

@media (max-width: 700px){
  .ba-slider{ border-radius: 14px; }
  .hero-sub{ font-size: 16px; }
}

/* ===== Reduce before/after slider size by ~20% ===== */
.ba-wrap{
  transform: scale(0.8);
  transform-origin: top center;
  margin-top: -40px;     /* pulls content back up */
  margin-bottom: -20px;  /* removes extra space */
}

/* Mobile: reduce less so it stays usable */
@media (max-width: 700px){
  .ba-wrap{
    transform: scale(0.9);
    margin-top: -20px;
  }
}

/* ===== Global Font Setup ===== */

/* Body text (paragraphs, general copy) */
body {
  font-family: 'DM Serif Text', serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Headings, hero text, buttons, navigation */
h1, h2, h3, h4, h5, h6,
.nav-menu a,
.btn,
.hero-sub {
  font-family: 'Slackey', cursive;
  letter-spacing: 1px;
}

h1 {
  letter-spacing: 2px;
}

h2, h3 {
  letter-spacing: 1.5px;
}

.btn {
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

