/* ========================================
   J&B Shine Services — Design Tokens
   ======================================== */
:root {
  --navy: #0F2A47;
  --navy-deep: #081A2E;
  --white: #FFFFFF;
  --blue: #2E90D9;
  --blue-dark: #1D6FB0;
  --foam: #EAF4FB;
  --slate: #5B6B7C;
  --slate-light: #8A9BAC;
  --line: #D7E6F2;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 6px;
  --shadow-soft: 0 12px 32px rgba(15, 42, 71, 0.10);
  --shadow-hard: 0 4px 12px rgba(15, 42, 71, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { color: var(--slate); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; scroll-margin-top: 90px; }
.section--tight { padding: 64px 0; }
.section--foam { background: var(--foam); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #C6D7E6; }

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .trust-bar__row { justify-content: center; text-align: center; }
  .cta-band { flex-direction: column; align-items: stretch; }
  .cta-band .btn { justify-content: center; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-hard);
}
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

.btn--outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

/* ========================================
   Header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 42px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--blue-dark); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 73px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .brand span { font-size: 1.05rem; }
  .nav-cta { display: inline-flex; margin-top: 4px; }
  .header-actions .btn--primary { display: none; }
}

.nav-cta { display: none; }

/* ========================================
   Hero + Reveal Signature
   ======================================== */
.hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--foam) 0%, var(--white) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero__badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero p.lede {
  font-size: 1.15rem;
  margin: 22px 0 32px;
  max-width: 46ch;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.reveal {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  user-select: none;
  cursor: ew-resize;
}
.reveal__side {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
}
.reveal__side--dirty {
  background-image: url('assets/hero-before-dirty.jpg');
  background-size: cover;
  background-position: center;
}
.reveal__side--clean {
  background-image: url('assets/hero-after-clean.jpg');
  background-size: cover;
  background-position: center;
}
.reveal__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.28);
  padding: 6px 12px;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  transition: opacity 0.25s ease;
}
.reveal__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.reveal.is-demo .reveal__clip,
.reveal.is-demo .reveal__handle {
  transition: width 1.05s cubic-bezier(0.45, 0, 0.55, 1), left 1.05s cubic-bezier(0.45, 0, 0.55, 1);
}
.reveal__handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(15,42,71,0.15);
  transform: translateX(-50%);
}
.reveal__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-hard);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reveal__grip svg { width: 20px; height: 20px; color: var(--navy); }
.reveal__hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-top: 12px;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__grid--solo {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hero__grid--solo .hero__eyebrow-row,
.hero__grid--solo .hero__ctas {
  justify-content: center;
}
.hero__grid--solo p.lede {
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Trust bar
   ======================================== */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-bar__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.trust-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ========================================
   Service cards
   ======================================== */
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--foam);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; color: var(--blue-dark); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 16px; }
.card__price {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.card__link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

/* ========================================
   Photo placeholder (for real project photos)
   ======================================== */
.photo-slot {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--foam);
  border: 1.5px dashed var(--slate-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  padding: 20px;
}
.photo-slot__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
  max-width: 22ch;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ========================================
   Why J&B — side-by-side before/after
   ======================================== */
.why-compare__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.why-compare__img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.why-compare__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-compare__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.32);
  padding: 5px 11px;
  border-radius: 4px;
  z-index: 2;
}
.why-compare__caption {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 14px;
  text-align: center;
}
@media (max-width: 560px) {
  .why-compare__pair { grid-template-columns: 1fr; }
}

/* ========================================
   Service area
   ======================================== */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.area-chip {
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
}

/* ========================================
   Testimonial
   ======================================== */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}
.testimonial cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate);
}

/* ========================================
   CTA band
   ======================================== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h2 { margin-bottom: 6px; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--navy-deep);
  color: #A9BFD3;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 32px; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Page hero (interior pages)
   ======================================== */
.page-hero {
  padding: 64px 0 56px;
  background: var(--navy);
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: #C6D7E6; max-width: 60ch; margin-top: 14px; }

/* ========================================
   Forms
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.owners-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .owners-grid { grid-template-columns: 1fr; max-width: 380px; }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
}
.form-status--success { color: #1E7A3A; }
.form-status--error { color: #B3261E; }

/* honeypot field */
.hp-field { position: absolute; left: -9999px; opacity: 0; }
