/* =========================
   EPZ Auto Detailing (vanilla)
   ========================= */

/* Quick edit knobs */
:root{
  --bg: #0b0f16;
  --bg2:#0f1624;
  --text:#f5f7ff;
  --muted:#b7c0d6;
  --card:#121b2c;
  --card2:#0f1624;
  --border: rgba(255,255,255,.10);
  --accent:#ffd166;
  --accent2:#ffb703;
  --shadow: 0 18px 60px rgba(0,0,0,.45);

  /* Replace this with your own image path or URL */
  --hero-image: url("../img/Hero_picture.jpg");
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1000px 500px at 20% 0%, rgba(255,209,102,.12), transparent 60%),
              radial-gradient(900px 600px at 70% 10%, rgba(0,153,255,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), #070a10);
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(7,10,16,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(255,209,102,.16), rgba(255,183,3,.10));
  border:1px solid rgba(255,209,102,.35);
  font-weight:800;
  letter-spacing:.08em;
}

.brand-name{ font-weight:800; line-height:1.1; }
.brand-sub{ font-size:12px; color:var(--muted); }

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav a{ font-size:14px; color:var(--muted); }
.nav a:hover{ color:var(--text); }

.hamburger{
  display:none;
  width:46px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.hamburger span{
  display:block;
  height:2px;
  width:18px;
  margin:4px auto;
  background: rgba(255,255,255,.85);
  border-radius:2px;
}

.mobile-nav{
  border-top: 1px solid var(--border);
  background: rgba(7,10,16,.75);
}
.mobile-nav .container{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 0 18px;
}
.mobile-nav a{ color:var(--muted); }
.mobile-nav a:hover{ color:var(--text); }

/* Hero */
.hero{
  position:relative;
  padding:62px 0 34px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05);
  transform: none;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(7,10,16,.84), rgba(7,10,16,.40) 55%, rgba(7,10,16,.82)),
    linear-gradient(180deg, rgba(7,10,16,.35), rgba(7,10,16,.95));
}
.hero-inner{ position:relative; }

.hero-card{
  width:min(640px, 100%);
  padding:28px 26px;
  border-radius:22px;
  background: rgba(18,27,44,.70);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.hero-card h1{
  margin:0 0 6px;
  font-size:34px;
  letter-spacing:-.02em;
}
.hero-card h2{
  margin:0 0 12px;
  font-size:20px;
  font-weight:650;
  color: rgba(255,255,255,.92);
}
.hero-sub{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.5;
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}

.note{
  margin:10px 0 0;
  color: rgba(255,255,255,.72);
  font-size:12px;
}
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
  background: rgba(0,0,0,.25);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
}

/* Sections */
.section{ padding:56px 0; }
.section-alt{ background: linear-gradient(180deg, transparent, rgba(255,255,255,.03), transparent); }
.section-title{
  margin:0 0 22px;
  font-size:28px;
  letter-spacing:-.02em;
}
.lead{
  margin:0 0 26px;
  color:var(--muted);
  line-height:1.7;
  max-width: 72ch;
}

.grid{
  display:grid;
  gap:16px;
}

.steps{
  grid-template-columns: repeat(3, 1fr);
}

.step{
  padding:18px 16px;
  border-radius:18px;
  background: rgba(18,27,44,.45);
  border:1px solid var(--border);
}
.icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: rgba(255,209,102,.14);
  border: 1px solid rgba(255,209,102,.30);
  margin-bottom:10px;
  font-weight:800;
}
.step h4{ margin:0 0 6px; font-size:16px; }
.step p{ margin:0; color:var(--muted); line-height:1.6; font-size:14px; }

/* Cards */
.cards{ grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(18,27,44,.55);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.20);

  display: flex;
  flex-direction: column;
}

.card ul{
  margin: 12px 0 14px;
  padding-left: 18px;
  color: rgba(255,255,255,.88);
  line-height:1.7;
  font-size:14px;
}
.card-topline{
  font-weight:850;
  font-size:18px;
  letter-spacing:-.01em;
}
.muted{ color: var(--muted); margin:10px 0 0; }
.price{ margin:0 0 14px; color: rgba(255,255,255,.90); }

.featured{
  border-color: rgba(255,209,102,.32);
  background: linear-gradient(180deg, rgba(255,209,102,.10), rgba(18,27,44,.55));
}
.badge{
  position:absolute;
  top:14px;
  right:14px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,209,102,.18);
  border:1px solid rgba(255,209,102,.35);
  color: rgba(255,255,255,.92);
}

/* Pillars */
.pillars{ grid-template-columns: repeat(3, 1fr); }
.pillar{
  padding:18px 16px;
  border-radius:18px;
  background: rgba(18,27,44,.45);
  border:1px solid var(--border);
}
.pillar-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background: rgba(0,153,255,.14);
  border: 1px solid rgba(0,153,255,.28);
  margin-bottom:10px;
}
.pillar h4{ margin:0 0 6px; font-size:16px; }
.pillar p{ margin:0; color:var(--muted); line-height:1.6; font-size:14px; }

.center{ text-align:center; margin-top:26px; }
.fineprint{ margin:12px 0 0; color: var(--muted); font-size:13px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:14px;
  padding:12px 16px;
  border: 1px solid transparent;
  font-weight:750;
  font-size:14px;
  cursor:pointer;
  user-select:none;
}
.btn-sm{ padding:10px 12px; border-radius:12px; }
.btn-lg{ padding:14px 18px; border-radius:16px; font-size:15px; }

.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111827;
  border-color: rgba(0,0,0,.10);
}
.btn-primary:hover{ filter: brightness(.98); }

.btn-ghost{
  background: rgba(255,255,255,.05);
  border-color: var(--border);
  color: rgba(255,255,255,.92);
}
.btn-ghost:hover{ background: rgba(255,255,255,.07); }

.card-footer {
  margin-top: auto; /* 👈 THIS does the magic */
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.back-btn {
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}


/* Footer */
.footer{
  padding:26px 0;
  border-top: 1px solid var(--border);
  background: rgba(7,10,16,.60);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer-brand{ font-weight:850; }
.footer-muted{ color:var(--muted); font-size:13px; margin-top:4px; }
.footer-links{ display:flex; gap:14px; color:var(--muted); font-size:14px; }
.footer-links a:hover{ color:var(--text); }

/* Responsive */
@media (max-width: 920px){
  .steps, .cards, .pillars{ grid-template-columns: 1fr; }
  .hero{ padding:48px 0 22px; }
  .hero-card h1{ font-size:30px; }
  .nav{ display:none; }
  .hamburger{ display:inline-block; }
}

/* Videos section */
.videos {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.02),
    transparent
  );
}

.video-grid {
  grid-template-columns: repeat(3, 1fr);
}

.video-card {
  background: rgba(18,27,44,.55);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.video-caption {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 920px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}


/* Car Gallery Slider */
.car-slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(18,27,44,.55);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.slider-track {
  position: relative;
}

.slider-image {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slider-image.active {
  display: block;
}

/* Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(7,10,16,.65);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
}

.slider-btn:hover {
  background: rgba(7,10,16,.85);
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }


/* Shrink gallery size */
#gallery-area .car-slider {
  max-width: 60%;          /* 👈 ~40% smaller */
  margin: 0 auto;          /* center it */
}

/* On mobile, let it be wider so it’s usable */
@media (max-width: 768px) {
  #gallery-area .car-slider {
    max-width: 100%;
  }
}
