/* ===========================================================
   RJ Car Detailing — Demo Site
   Tokens
   =========================================================== */
:root{
  --ink: #0a0b0d;
  --surface: #131519;
  --surface-2: #1b1e24;
  --line: #2a2d34;

  --gold: #c9a14c;
  --gold-bright: #e8c77a;
  --gold-dim: #8a6f38;

  --chrome: #b9c0c8;
  --paper: #f4f2ec;
  --muted: #9a9fa8;
  --muted-2: #6c7078;

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 50px -20px rgba(0,0,0,.6);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection{ background: var(--gold); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ===== Typography ===== */
.eyebrow{
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow.center{ text-align:center; }

.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.section-title.center{ text-align:center; }

.section-sub{
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-sub.center{ text-align:center; }

h1{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--paper);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .ico{ width:18px; height:18px; fill: currentColor; flex-shrink:0; }

.btn-gold{
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  color: #201603;
  box-shadow: 0 10px 30px -10px rgba(201,161,76,.55);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(201,161,76,.7); }

.btn-ghost{
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-bright); }

.btn-lg{ padding: 16px 30px; font-size: 16px; }

/* ===========================================================
   Header
   =========================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,13,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 20px;
  height: 84px;
}
.brand{ display:flex; align-items:center; }
.brand-logo{ height: 46px; width:auto; }

.main-nav{
  display:flex;
  align-items:center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.main-nav a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--chrome);
  transition: color .2s var(--ease);
}
.main-nav a:hover{ color: var(--gold-bright); }

.nav-cta{ flex-shrink:0; }
.nav-toggle{ display:none; }

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  padding: 76px 0 90px;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(201,161,76,.16), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(201,161,76,.08), transparent 60%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items:center;
}
.hero-sub{
  color: var(--muted);
  font-size: 18px;
  max-width: 480px;
  margin: 0 0 34px;
}
.hero-actions{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-note{
  color: var(--muted-2);
  font-size: 14px;
  margin:0;
}

.hero-media{ position: relative; }
.hero-photo-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
}
.hero-photo-frame img{
  width:100%; height:100%; object-fit: cover;
}
.hero-tag{
  position:absolute;
  left: 20px;
  bottom: -20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* ===========================================================
   Services
   =========================================================== */
.services{ padding: 100px 0 90px; }
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.service-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover{
  transform: translateY(-4px);
  border-color: var(--gold-dim);
}
.service-icon{
  width: 46px; height:46px;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-icon svg{ width:100%; height:100%; }
.service-card h3{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--paper);
}
.service-card p{
  color: var(--muted);
  font-size: 14.5px;
  margin:0;
  line-height: 1.6;
}

/* ===========================================================
   Before / After Gallery — signature element
   =========================================================== */
.gallery{
  padding: 90px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.compare-list{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.compare{ display:flex; flex-direction: column; }
.compare-frame{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  user-select: none;
  -webkit-user-select: none;
}
.compare-frame img{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-base{ position:absolute; inset:0; }
.compare-reveal-wrap{
  position:absolute;
  inset:0;
  width: 50%;
  overflow:hidden;
  will-change: width;
}
.compare-reveal-wrap img{ width: var(--frame-w, 100%); max-width:none; height:100%; }

.compare-divider{
  position:absolute;
  top:0; bottom:0;
  left: 50%;
  width: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(232,199,122,.8);
  transform: translateX(-1px);
  pointer-events:none;
}
.compare-label{
  position:absolute;
  top: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10,11,13,.62);
  backdrop-filter: blur(4px);
  color: var(--paper);
  pointer-events:none;
}
.label-before{ left: 14px; }
.label-after{ right: 14px; color: var(--gold-bright); }

.compare-slider{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 16px 0 0;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  cursor: ew-resize;
}
.compare-slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: ew-resize;
}
.compare-slider::-moz-range-thumb{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: ew-resize;
}
.compare-caption{
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  text-align:center;
}

/* ===========================================================
   Recent Work strip
   =========================================================== */
.work{ padding: 100px 0 90px; }
.work-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.work-item{
  margin:0;
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
}
.work-item--tall{ grid-row: 1 / 3; }
.work-item img{ width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-item--tall img{ object-position: center 78%; }
.work-item:hover img{ transform: scale(1.05); }
.work-item figcaption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 30px 18px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  font-size: 13.5px;
  color: var(--paper);
  font-weight: 500;
}

/* ===========================================================
   About
   =========================================================== */
.about{ padding: 100px 0; }
.about-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items:center;
}
.about-media{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
}
.about-media img{ width:100%; height:100%; object-fit: cover; }
.about-copy p{
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 18px;
}
.about-points{
  list-style:none;
  margin: 26px 0 0;
  padding: 0;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.about-points li{
  color: var(--paper);
  font-size: 15px;
  padding-left: 26px;
  position: relative;
}
.about-points li::before{
  content: "";
  position:absolute;
  left:0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===========================================================
   CTA / Contact
   =========================================================== */
.cta{
  padding: 110px 0;
  text-align:center;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(201,161,76,.14), transparent 65%);
  border-top: 1px solid var(--line);
}
.cta-inner{ display:flex; flex-direction:column; align-items:center; }
.cta .btn{ margin-top: 10px; margin-bottom: 18px; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer{
  padding: 46px 0;
  border-top: 1px solid var(--line);
  text-align:center;
}
.footer-inner{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.footer-logo{ height: 34px; width:auto; opacity: .85; }
.footer-inner p{ color: var(--muted-2); font-size: 13.5px; margin:0; }
.footer-inner a{ color: var(--gold); font-size: 13.5px; }
.footer-inner a:hover{ color: var(--gold-bright); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; max-width: 420px; margin: 0 auto; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .compare-list{ grid-template-columns: 1fr; max-width: 440px; margin-left:auto; margin-right:auto; }
  .work-grid{ grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .work-item--tall{ grid-row: auto; grid-column: 1 / 3; aspect-ratio: 16/9; }
  .work-item{ aspect-ratio: 4/3; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-media{ max-width: 440px; margin: 0 auto; }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .main-nav.open{ max-height: 320px; }
  .main-nav a{
    width:100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta{ display:none; }
  .nav-toggle{
    display:flex;
    flex-direction: column;
    justify-content:center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor:pointer;
  }
  .nav-toggle span{
    display:block;
    height: 2px;
    width: 18px;
    margin: 0 auto;
    background: var(--paper);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 620px){
  .services-grid{ grid-template-columns: 1fr; }
  h1{ font-size: 38px; }
  .hero{ padding: 48px 0 64px; }
  .services, .work, .about{ padding: 70px 0; }
  .gallery{ padding: 64px 0; }
  .cta{ padding: 80px 0; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content:center; }
}
