/* =============================================
   KERB & POLISH · STYLESHEET (UptoData demo)
   Palette: deep navy, cream, gold (bright gold on navy only; dark gold for text on cream)
   ============================================= */
:root {
  --ink: #14212b;
  --ink-2: #1e2d3a;
  --cream: #f3efe6;
  --paper: #fbfaf6;
  --gold: #d4ae5a;        /* on navy only (7.8:1); never as text on cream (1.8:1) */
  --gold-light: #e6c983;  /* on navy (10.2:1) */
  --gold-text: #75580f;   /* gold text on cream/paper (5.8:1 / 6.4:1) */
  --text: #26313a;
  --muted: #555b61;       /* 6.0:1 on cream */
  --line: #e0d8c6;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --bar-h: 34px;
  --nav-h: 72px;
  --pad: clamp(4rem, 9vw, 7rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --focus: var(--ink);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--ink); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
h2 em, h1 em { font-style: italic; font-weight: 500; }
h3 { font-size: 1.2rem; }
p + p { margin-top: 1rem; }

/* --- FOCUS (visible everywhere; gold on dark areas) --- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
#nav, .mobile-menu, #hero, .section-dark, .footer, .demo-bar, .chat-panel, .chat-pill, .lightbox, .guarantee { --focus: var(--gold-light); }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 0.75rem 1rem; font-weight: 600;
}
.skip-link:focus-visible { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.section-light { background: var(--paper); padding: var(--pad) 0; }
.section-cream { background: var(--cream); padding: var(--pad) 0; }
.section-dark  { background: var(--ink); color: var(--cream); padding: var(--pad) 0; }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.6rem; }
.label-on-dark { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.05rem; }
.small-note { font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; }
.small-note.center { text-align: center; }

/* --- DEMO BAR --- */
.demo-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 101; height: var(--bar-h);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #0b131a; color: rgba(243,239,230,0.88); font-size: 0.8rem;
  border-bottom: 1px solid rgba(212,174,90,0.25);
}
.demo-bar a { color: var(--gold-light); display: inline-flex; align-items: center; min-height: var(--bar-h); text-decoration: underline; text-underline-offset: 3px; }
.demo-bar a:hover { color: #fff; }

/* --- NAV --- */
#nav { position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 100; height: var(--nav-h); transition: background 0.3s ease, top 0.3s ease, box-shadow 0.3s ease; }
#nav.scrolled { top: 0; background: rgba(20,33,43,0.97); box-shadow: 0 1px 0 rgba(212,174,90,0.25); }
/* Menu open: the nav moves to the top and sits ABOVE the demo bar (z 101),
   so the close button is never covered (the Hollin & Hem post-launch fix, built in from the start). */
#nav.menu-open { z-index: 102; top: 0; background: rgba(20,33,43,0.99); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; color: var(--cream); }
.logo-main { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.amp { color: var(--gold); font-style: italic; font-weight: 500; }
.logo-sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; font-size: 0.9rem; color: rgba(243,239,230,0.92); text-decoration: none; }
.nav-links a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 5px; }
.nav-links .nav-cta { border: 1px solid var(--gold); color: var(--gold-light); margin-left: 0.5rem; padding: 0 1.1rem; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--ink); text-decoration: none; }
.burger { display: none; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--cream); transition: transform 0.25s ease, opacity 0.2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: #0f1820; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.mobile-menu ul { text-align: center; }
.mobile-menu a { display: inline-flex; align-items: center; min-height: 56px; padding: 0 1rem; font-family: var(--font-head); font-size: 1.55rem; color: var(--cream); text-decoration: none; }
.mobile-menu a:hover { color: var(--gold-light); }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.6rem; font: 600 0.95rem/1.2 var(--font-body); letter-spacing: 0.02em; text-decoration: none; text-align: center; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(243,239,230,0.75); color: var(--cream); }
.btn-ghost:hover { background: rgba(243,239,230,0.12); border-color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #2a3f50; }
.btn.full { width: 100%; }

/* --- HERO --- */
#hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-bg, .hero-bg picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,19,26,0.7) 0, rgba(11,19,26,0) 180px),
  linear-gradient(90deg, rgba(11,19,26,0.93) 0%, rgba(11,19,26,0.8) 40%, rgba(11,19,26,0.35) 72%, rgba(11,19,26,0.15) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: calc(var(--bar-h) + var(--nav-h) + 2rem) var(--gutter) 4rem; }
.hero-content > * { max-width: 600px; }
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.3rem, 5.6vw, 4.2rem); color: var(--cream); margin-bottom: 1.25rem; }
.hero-title em { color: var(--gold-light); }
.hero-tagline { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: rgba(243,239,230,0.93); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- SERVICES --- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.6rem; }
.service-card h3 { font-size: 1.35rem; }
.service-time { font-size: 0.9rem; font-weight: 600; color: var(--gold-text); margin: 0.3rem 0 0.75rem; }
.service-sum { color: var(--text); }
.ticks { margin: 1rem 0; flex: 1; }
.ticks li { position: relative; padding: 0.4rem 0 0.4rem 1.6rem; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ''; position: absolute; left: 0.2rem; top: 0.85rem; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg); }
.card-note { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--muted); }
.service-price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin: 0.25rem 0 1rem; }
.service-price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--muted); }

/* --- PRICES --- */
.table-wrap { background: var(--paper); border: 1px solid var(--line); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--ink); color: var(--cream); font-size: 0.95rem; }
.price-table thead th span, .price-table tbody th span { display: block; font-weight: 400; font-size: 0.82rem; }
.price-table thead th span { color: rgba(243,239,230,0.85); }
.price-table tbody th { font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); }
.price-table tbody th span { font-family: var(--font-body); color: var(--muted); margin-top: 0.15rem; }
.price-table td { font-weight: 600; color: var(--ink); white-space: nowrap; }
.price-table td.td-wide { white-space: normal; font-weight: 400; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.guarantee { margin-top: 1.5rem; background: var(--ink); color: var(--cream); padding: 1.5rem 1.6rem; border-left: 4px solid var(--gold); }
.guarantee h3 { color: var(--gold-light); margin-bottom: 0.4rem; }

/* --- WHAT WE NEED --- */
.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.need-item { background: var(--cream); padding: 1.5rem; border-left: 3px solid var(--gold-text); }
.need-item h3 { margin-bottom: 0.4rem; }

/* --- PROCESS --- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.step { background: var(--ink-2); border-top: 2px solid var(--gold); padding: 1.5rem; }
.step-num { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 0.75rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: rgba(243,239,230,0.9); font-size: 0.95rem; }
.step a { color: var(--gold-light); text-underline-offset: 3px; }

/* --- GALLERY (captions always visible; each photo is a real button) --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery-item { margin: 0; background: var(--cream); }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-open:focus-visible { outline-offset: -3px; outline-color: var(--gold-light); box-shadow: inset 0 0 0 6px var(--ink); }
.gallery-item figcaption { padding: 0.75rem 0.9rem 0.9rem; font-size: 0.875rem; color: var(--muted); }
.gallery-item figcaption strong { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* --- LIGHTBOX --- */
.lightbox { margin: auto; padding: 0; border: 0; background: var(--ink); color: var(--cream); max-width: min(92vw, 640px); }
.lightbox::backdrop { background: rgba(8,13,18,0.88); }
.lightbox img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.lb-caption { padding: 0.75rem 1rem; font-size: 0.95rem; }
.lb-close { position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; background: rgba(20,33,43,0.85); color: var(--cream); border: 1px solid rgba(212,174,90,0.6); border-radius: 50%; cursor: pointer; }

/* --- REVIEWS CAROUSEL --- */
#reviews .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.carousel { position: relative; max-width: 760px; margin: 0 auto; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 0.75rem; }
.car-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); border: 1px solid #8c8577; border-radius: 50%; cursor: pointer; }
.car-btn:hover { background: #fff; border-color: var(--ink); }
.car-pause .i-play { display: none; }
.car-pause[data-paused="true"] .i-play { display: block; }
.car-pause[data-paused="true"] .i-pause { display: none; }
.quote-card { margin: 0; background: var(--paper); border-left: 3px solid var(--gold-text); padding: 1.75rem; min-height: 11rem; }
.quote-card blockquote { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); margin-bottom: 1rem; }
.quote-card figcaption { font-weight: 600; }
.quote-card figcaption span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.carousel-dots { display: flex; justify-content: center; gap: 0.25rem; margin-top: 0.75rem; }
.carousel-dots button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.carousel-dots span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; }
.carousel-dots button[aria-current="true"] span { background: var(--ink); }

/* --- BOOK / CONTACT --- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-details { margin-top: 1.5rem; }
.contact-details div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
.contact-details dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); padding-top: 0.15rem; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; margin: -0.6rem 0; color: var(--ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-form { background: var(--cream); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); }
.form-demo { font-size: 0.875rem; background: #fff; border-left: 3px solid var(--gold-text); padding: 0.6rem 0.8rem; margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; font: inherit; color: var(--text); background: #fff; border: 1px solid #8c8577; border-radius: 2px; }
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.form-group [aria-invalid="true"] { border-color: #a3192d; }
.field-error { display: block; color: #a3192d; font-size: 0.875rem; margin-top: 0.3rem; }
.field-error:empty { display: none; }
.field-hint { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.form-note:empty { display: none; }
.form-note { margin-top: 1rem; padding: 0.8rem 1rem; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-weight: 600; }

/* --- TERMS ACCORDION --- */
.accordion { border-top: 1px solid var(--line); }
.accordion h3 { font-family: var(--font-body); font-size: 1rem; }
.acc-btn { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.25rem; font: 600 1rem var(--font-body); color: var(--ink); text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.acc-btn::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--gold-text); }
.acc-btn[aria-expanded="true"]::after { content: '\2212'; }
.acc-btn:hover { color: #2a3f50; text-decoration: underline; text-underline-offset: 4px; }
.acc-panel { padding: 0.9rem 0.25rem 1.2rem; border-bottom: 1px solid var(--line); }

/* --- FOOTER --- */
.footer { background: #0f1820; color: #b9b3a6; padding: 3.5rem 0 calc(5.5rem + var(--safe-bottom)); font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; color: var(--cream); text-underline-offset: 4px; }
.footer-small { grid-column: 1 / -1; border-top: 1px solid #26323c; padding-top: 1.25rem; }
.footer-small p + p { margin-top: 0.5rem; }
.footer-demo a { color: var(--gold-light); display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* --- CHAT --- */
.chat-pill { position: fixed; right: 1.5rem; bottom: calc(1.5rem + var(--safe-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.2rem; background: var(--ink); color: var(--cream); border: 1px solid var(--gold); border-radius: 999px; font: 600 0.92rem var(--font-body); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.25); transition: background 0.2s ease; }
.chat-pill svg { color: var(--gold-light); }
.chat-pill:hover { background: #2a3f50; }
.chat-pill[aria-expanded="true"] { display: none; }
.chat-panel { position: fixed; right: 1.5rem; bottom: calc(1.5rem + var(--safe-bottom)); z-index: 95; width: 370px; height: min(560px, calc(100vh - 6rem)); display: flex; flex-direction: column; background: var(--ink); color: var(--cream); border: 1px solid rgba(212,174,90,0.5); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.75rem 0.75rem 1rem; border-bottom: 1px solid rgba(212,174,90,0.35); }
.chat-head strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--gold-light); }
.chat-status { display: block; font-size: 0.78rem; color: rgba(243,239,230,0.82); }
.chat-close { width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; background: none; border: 0; color: var(--cream); cursor: pointer; }
.chat-close:hover { color: var(--gold-light); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 0.65rem 0.85rem; font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--ink-2); border-left: 2px solid var(--gold); }
.msg.user { align-self: flex-end; background: var(--cream); color: var(--ink); }
.msg.typing { display: inline-flex; gap: 4px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.chat-suggest button { min-height: 44px; padding: 0.5rem 0.9rem; text-align: left; font: 0.88rem var(--font-body); background: none; color: var(--gold-light); border: 1px solid rgba(212,174,90,0.6); border-radius: 999px; cursor: pointer; }
.chat-suggest button:hover { background: rgba(212,174,90,0.15); color: #fff; }
.chat-input { display: flex; border-top: 1px solid rgba(212,174,90,0.35); }
.chat-input input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; font: 0.95rem var(--font-body); background: var(--ink); color: var(--cream); border: 0; }
.chat-input input::placeholder { color: rgba(243,239,230,0.68); }
.chat-input input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.chat-input button { width: 52px; background: var(--gold); color: var(--ink); border: 0; cursor: pointer; }
.chat-input button:hover { background: var(--gold-light); }
.chat-input button:disabled { opacity: 0.6; cursor: wait; }
.chat-foot { padding: 0.45rem 1rem 0.6rem; font-size: 0.75rem; color: rgba(243,239,230,0.78); }

/* --- REVEAL (opacity + small vertical move only; off with reduced motion) --- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* --- RESPONSIVE --- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .need-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  /* Price table becomes one card per service */
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { border-bottom: 0; padding: 0.45rem 1.1rem; }
  .price-table td[data-label] { display: flex; justify-content: space-between; gap: 1rem; }
  .price-table td[data-label]::before { content: attr(data-label) " car"; font-weight: 400; color: var(--muted); }
}
@media (max-width: 600px) {
  :root { --bar-h: 44px; }
  .demo-bar { font-size: 0.75rem; }
  .demo-bar > span { display: none; }
  .demo-bar a::before { content: 'Demo site by UptoData · '; color: rgba(243,239,230,0.88); white-space: pre; }
  .hero-overlay { background: linear-gradient(180deg, rgba(11,19,26,0.55) 0%, rgba(11,19,26,0.82) 45%, rgba(11,19,26,0.94) 100%); }
  #hero { align-items: flex-end; }
  .hero-content { padding-bottom: 5.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-card { padding: 1.25rem 1.1rem; }
  .gallery-item figcaption { padding: 0.6rem 0.65rem 0.75rem; font-size: 0.8rem; }
  .gallery-item figcaption strong { font-size: 0.95rem; }
  .contact-details div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .chat-pill { right: 1rem; bottom: calc(1rem + var(--safe-bottom)); }
  .chat-panel { right: 0.5rem; left: 0.5rem; bottom: calc(0.5rem + var(--safe-bottom)); width: auto; height: min(560px, calc(100svh - 5rem)); }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .msg.typing span { animation: none; opacity: 0.8; }
}
