/* =========================================================
   CRYSTAL BODY SHOP — CAR DETAILING PAGE
   Dedicated stylesheet for car-detailing-high-wycombe.html
   ========================================================= */

:root{
  --red:#e21b23;
  --red-dark:#b80f16;
  --black:#080b0f;
  --dark:#11161c;
  --text:#252b32;
  --muted:#68717b;
  --line:#e6e9ed;
  --white:#fff;
  --shadow:0 18px 55px rgba(0,0,0,.12);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:#f5f6f8;
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.7;
}

a{
  color:inherit;
}

img{
  max-width:100%;
}

/* =========================
   NAVIGATION
   ========================= */

.navbar{
  position:sticky;
  top:0;
  z-index:2000;
  min-height:78px;
  padding:10px 5%;
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid rgba(0,0,0,.08);
  box-shadow:0 7px 30px rgba(0,0,0,.07);
  backdrop-filter:blur(14px);
}

.navbar-brand{
  display:flex;
  align-items:center;
  margin-right:35px;
}

.navbar-brand .logo{
  width:auto;
  max-width:180px;
  max-height:58px;
  object-fit:contain;
}

.navbar-nav{
  align-items:center;
  gap:5px;
}

.navbar .nav-link{
  position:relative;
  padding:12px 15px!important;
  color:#171b20!important;
  font-size:13px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.navbar .nav-link:after{
  content:"";
  position:absolute;
  left:15px;
  right:15px;
  bottom:4px;
  height:2px;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .2s ease;
}

.navbar .nav-link:hover:after,
.navbar .nav-item.active .nav-link:after{
  transform:scaleX(1);
}

.navbar .dropdown-menu{
  min-width:280px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 18px 45px rgba(0,0,0,.14);
}

.navbar .dropdown-item{
  padding:11px 14px;
  border-radius:9px;
  font-size:13px;
  font-weight:700;
  white-space:normal;
}

.navbar .dropdown-item:hover{
  background:#fff0f1;
  color:var(--red);
}

.navbar-toggler{
  border:0!important;
  padding:8px 10px;
  outline:0!important;
}

.navbar-toggler:focus{
  box-shadow:none;
}

.btn22{
  width:50px;
  height:50px;
  margin-left:15px;
  padding:7px;
  border:0;
  border-radius:50%;
  background:#25d366;
  box-shadow:0 8px 22px rgba(37,211,102,.28);
  transition:transform .2s ease,box-shadow .2s ease;
}

.btn22:hover{
  transform:translateY(-2px) scale(1.04);
  box-shadow:0 12px 28px rgba(37,211,102,.35);
}

.btn22 a{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
}

.btn22 img{
  width:29px;
  height:29px;
  object-fit:contain;
}

/* =========================
   HERO
   ========================= */

.headerbg{
  position:relative;
  overflow:hidden;
  min-height:690px;
  padding:120px 7% 110px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 22%,rgba(226,27,35,.34),transparent 25%),
    radial-gradient(circle at 15% 80%,rgba(255,255,255,.06),transparent 28%),
    linear-gradient(125deg,#070a0e 0%,#11171e 55%,#080b0f 100%);
}

.headerbg:before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  right:-250px;
  top:-250px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
}

.headerbg:after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  left:-230px;
  bottom:-230px;
  border:1px solid rgba(226,27,35,.16);
  border-radius:50%;
}

.headerbg h1,
.headerbg h2,
.headerbg p,
.headerbg button{
  position:relative;
  z-index:2;
}

.headerbg h1{
  max-width:900px;
  margin:0 0 22px;
  font-size:clamp(42px,6vw,78px);
  line-height:.98;
  font-weight:950;
  letter-spacing:-.055em;
  text-transform:uppercase;
}

.headerbg h1:after{
  content:"";
  display:block;
  width:75px;
  height:5px;
  margin-top:28px;
  border-radius:10px;
  background:var(--red);
}

.headerbg h2{
  max-width:800px;
  margin:0 0 20px;
  color:#fff;
  font-size:clamp(22px,3vw,36px);
  line-height:1.2;
  font-weight:850;
}

.headerbg p{
  max-width:850px;
  margin:0 0 25px;
  color:#d8dde3;
  font-size:18px;
  line-height:1.8;
}

/* Existing book buttons */
.booknow2{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  margin:20px 0 10px;
  padding:0 28px;
  border:0;
  border-radius:10px;
  background:var(--red);
  box-shadow:0 12px 30px rgba(226,27,35,.25);
  transition:transform .2s ease,background .2s ease;
}

.booknow2:hover{
  background:var(--red-dark);
  transform:translateY(-2px);
}

.booknow2 a{
  color:#fff!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
}

/* =========================
   MAIN CONTENT
   ========================= */

.headerbg > h3,
.headerbg > h4,
.headerbg > p,
.headerbg > div{
  position:relative;
  z-index:2;
}

.headerbg > h3,
.headerbg > h4{
  max-width:1050px;
  margin:75px auto 15px;
  color:#fff;
}

.headerbg > h3{
  font-size:clamp(25px,3vw,38px);
  line-height:1.15;
  font-weight:900;
}

.headerbg > h4{
  font-size:clamp(21px,2.5vw,30px);
  font-weight:850;
}

.headerbg > p{
  max-width:1050px;
  margin-left:auto;
  margin-right:auto;
  color:#d5dbe1;
  font-size:17px;
}

.headerbg > h3 + p,
.headerbg > h4 + p{
  margin-top:8px;
}

/* =========================
   GALLERY
   ========================= */

.gallery{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:25px;
  width:min(1180px,94%);
  margin:70px auto 40px;
  padding:24px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  background:rgba(255,255,255,.055);
  box-shadow:0 25px 70px rgba(0,0,0,.25);
}

.minimap{
  min-width:0;
}

.preview{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
  max-height:700px;
  overflow:auto;
  padding-right:5px;
}

.item-preview{
  overflow:hidden;
  aspect-ratio:1/1;
  border-radius:10px;
  border:2px solid transparent;
  background:#151a20;
  transition:border-color .2s ease,transform .2s ease;
}

.item-preview:hover{
  border-color:var(--red);
  transform:translateY(-2px);
}

.item-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.images{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.item{
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 38px rgba(0,0,0,.18);
}

.item-img{
  overflow:hidden;
  aspect-ratio:4/3;
  background:#101419;
}

.item-img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}

.item:hover .item-img img{
  transform:scale(1.045);
}

.item-copy{
  min-height:12px;
}

/* =========================
   VIDEO
   ========================= */

.headerbg video{
  display:block;
  width:min(100%,520px)!important;
  height:auto!important;
  margin:35px auto;
  border-radius:18px;
  background:#000;
  box-shadow:0 20px 55px rgba(0,0,0,.28);
}

/* =========================
   MAP
   ========================= */

body > iframe,
iframe[src*="google.com/maps"]{
  display:block;
  width:100%!important;
  height:480px!important;
  border:0!important;
  margin:0;
}

/* =========================
   FOOTER
   ========================= */

body > div:last-child{
  padding:30px 20px;
  text-align:center;
  background:#070a0e;
  color:#aeb5bd;
}

body > div:last-child p{
  margin:0;
  font-size:13px;
}

/* =========================
   MOBILE
   ========================= */

@media(max-width:991px){
  .navbar{
    min-height:70px;
    padding:8px 18px;
  }

  .navbar-brand .logo{
    max-width:150px;
    max-height:50px;
  }

  .navbar-collapse{
    margin-top:10px;
    padding:10px 0 15px;
    border-top:1px solid var(--line);
  }

  .navbar-nav{
    align-items:stretch;
    gap:0;
  }

  .navbar .nav-link{
    padding:13px 8px!important;
  }

  .navbar .nav-link:after{
    display:none;
  }

  .navbar .dropdown-menu{
    border:0;
    box-shadow:none;
    background:#f7f8fa;
  }

  .btn22{
    margin:10px 0 0;
  }

  .headerbg{
    min-height:auto;
    padding:75px 22px 80px;
  }

  .headerbg h1{
    font-size:clamp(38px,10vw,60px);
  }

  .headerbg p{
    font-size:16px;
  }

  .gallery{
    grid-template-columns:1fr;
    width:calc(100% - 28px);
    padding:14px;
    margin-top:50px;
  }

  .preview{
    grid-template-columns:repeat(5,1fr);
    max-height:none;
  }

  .images{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px){
  body{
    overflow-x:hidden;
  }

  .navbar-brand .logo{
    max-width:135px;
    max-height:46px;
  }

  .headerbg{
    padding:58px 17px 65px;
  }

  .headerbg h1{
    font-size:38px;
    letter-spacing:-.045em;
  }

  .headerbg h1:after{
    width:55px;
    height:4px;
    margin-top:21px;
  }

  .headerbg h2{
    font-size:23px;
  }

  .headerbg p{
    font-size:15.5px;
    line-height:1.7;
  }

  .headerbg > h3,
  .headerbg > h4{
    margin-top:55px;
    font-size:25px;
  }

  .gallery{
    width:calc(100% - 22px);
    margin-top:40px;
    border-radius:17px;
  }

  .preview{
    display:flex;
    gap:7px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:5px;
  }

  .item-preview{
    flex:0 0 70px;
    width:70px;
    height:70px;
  }

  .images{
    grid-template-columns:1fr;
    gap:14px;
  }

  .booknow2{
    min-height:50px;
    padding:0 23px;
  }

  .headerbg video{
    width:100%!important;
    margin:25px auto;
  }

  body > iframe,
  iframe[src*="google.com/maps"]{
    height:380px!important;
  }
}

/* =========================
   FIXED MOBILE WHATSAPP
   Uses the existing .btn22 HTML.
   ========================= */

@media(max-width:700px){
  .navbar .btn22{
    position:fixed!important;
    right:15px!important;
    bottom:15px!important;
    z-index:5000!important;
    width:60px!important;
    height:60px!important;
    margin:0!important;
    border-radius:50%!important;
    padding:8px!important;
  }

  .navbar .btn22 img{
    width:34px!important;
    height:34px!important;
  }
}
