/* ============================================================
   Jarratt Web Services — main site stylesheet
   ============================================================ */

:root {
  --bg: #0B0F1C;
  --bg-deep: #05070d;
  --panel: #131A2E;
  --panel-light: #1A2338;
  --text: #F5F6FA;
  --text-soft: #9AA3B2;
  --accent: #3262BD;
  --accent-rgb: 50,98,189;
  --accent-hover: #3E72D0;
  --accent-bright: #6B96DE;
  --accent-deep: #163D7A;
  --line: rgba(255,255,255,0.12);
  --header-bg: rgba(11,15,28,0.92);
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --max-width: 1120px;
}

/* ---------- Light theme ----------
   Toggled via data-theme="light" on <html> (see initThemeToggle in script.js).
   Every component below already reads colour from these tokens, so the
   override cascades site-wide without needing per-component light rules. */
:root[data-theme="light"] {
  --bg: #F4F5F9;
  --bg-deep: #E7E9F0;
  --panel: #FFFFFF;
  --panel-light: #EEF0F6;
  --text: #12151F;
  --text-soft: #565F72;
  --accent: #3262BD;
  --accent-rgb: 50,98,189;
  --accent-hover: #3E72D0;
  --accent-bright: #2753AD;
  --accent-deep: #163D7A;
  --line: rgba(11,15,28,0.12);
  --header-bg: rgba(244,245,249,0.9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Keyboard focus - on-brand ring for anyone tabbing through the site,
   instead of leaving it to whatever the browser default happens to be. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0,0,0,0.32); }
:root[data-theme="light"] .site-header.is-scrolled { box-shadow: 0 8px 28px rgba(11,15,28,0.12); }

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  max-width: 100%;
}
.brand-icon { height: 28px; width: auto; margin-right: 8px; }
.site-footer .brand-icon { height: 44px; margin-right: 10px; }
.brand .name-white { color: var(--text); }
.brand .name-blue { color: var(--accent-bright); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links li { flex-shrink: 0; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta).active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-bright);
}
.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-links a.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Theme toggle (injected by script.js so every page gets it
   from one shared source instead of editing every header) ----------
   .nav-right groups the hamburger, the toggle and nav-links so `.nav`'s
   space-between only splits [brand] from [everything else] - keeps the
   toggle visible next to the hamburger at every screen size. */
.nav-right { display: flex; align-items: center; gap: 20px; }
.theme-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.theme-toggle svg { width: 17px; height: 17px; }

/* Rev4 grew the nav from 4 links to 5 (added Web Applications) - tighten
   spacing before the mobile breakpoint kicks in, rather than letting it
   crowd/wrap at mid-width viewports. */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.86rem; }
}

/* Raised from 780px: with 6 links + a CTA button, items need room to
   never shrink/wrap (see .nav-links li flex-shrink:0 above) - measured
   the real content width and 900px is where it stops being tight enough
   to risk overflow, rather than picking a number and hoping. */
@media (max-width: 900px) {
  .nav-links a.active::after { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--panel);
    padding: 20px 24px;
    gap: 18px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(var(--accent-rgb), 0.16), transparent 60%),
    var(--bg);
}
.hero-inner { max-width: 760px; margin: 0 auto; }

/* ---------- Back navigation link ----------
   Injected by initBackButton() in script.js on every page except the
   homepage. Lives inside the hero section itself (first child, above
   hero-inner) so it shares the hero's own background/gradient instead
   of sitting in a separate flat strip above it. */
.back-nav { max-width: var(--max-width); margin: 0 auto 28px; padding: 0 24px; text-align: left; position: relative; z-index: 1; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--accent-bright); }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span.accent { color: var(--accent-bright); }
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.proof-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.proof-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
}
.proof-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .proof-strip { flex-direction: column; align-items: center; gap: 8px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Sections ---------- */

.section { padding: 90px 0; }
@media (min-width: 1024px) { .section { padding: 104px 0; } }
.section-alt { background: var(--panel); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* ---------- Highlights strip ---------- */

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .highlights-grid { grid-template-columns: 1fr; } }

.highlight-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
/* Not scoped to .highlight-card - .industry-card reuses the same badge
   (e.g. the homepage "Two ways I can help" cards) and needs the same
   styling. Pill-shaped rather than a fixed circle: a single digit still
   reads as a circle (min-width covers it), but longer labels like
   "Dashboards" grow outward with padding instead of overflowing a fixed
   46px circle. */
.icon-badge {
  width: fit-content;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  white-space: nowrap;
  margin: 0 auto 16px;
}
.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.highlight-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- Testimonials (shell only - see index.html comment,
   not populated until real client quotes exist) ---------- */

.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.testimonial-card p { font-size: 0.95rem; margin-bottom: 16px; }
.testimonial-card .role { font-size: 0.82rem; color: var(--text-soft); font-weight: 600; }

/* ---------- Feature / split rows ---------- */

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) { .split-row { grid-template-columns: 1fr; gap: 40px; } }

/* Two feature-lists side by side (not a text block + a list) read as one
   continuous checklist once they stack on mobile - the 40px gap above
   looks like an odd hole in the middle of it. Zero it out here; the list
   items' own padding already gives the same rhythm as any other row. */
@media (max-width: 820px) { .split-row.split-row--lists { gap: 0; } }

.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}
.feature-list h4 { font-size: 0.98rem; margin-bottom: 3px; }
.feature-list p { font-size: 0.86rem; color: var(--text-soft); }

/* ---------- Process steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
}
.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-bright);
  opacity: 0.4;
  margin-bottom: 10px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--text-soft); }

.home-process { margin-top: 88px; }
.home-process .section-header { margin-bottom: 40px; }
.home-process-link { text-align: center; margin-top: 30px; font-weight: 600; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--accent-bright);
  background: var(--panel-light);
}
.price-card .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-bright);
  color: #0B0F1C;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 14px;
}
.price-card .amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.price-card .amount span {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}
.price-card .price-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  flex-grow: 1;
}
.price-card ul li {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}

/* ---------- Add-ons (reuses .price-card, laid out 2-up) ---------- */

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .addons-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.addons-grid .price-card .amount { font-size: 2rem; }

/* Inline text link that needs to visibly read as clickable, unlike the
   site's usual blend-in-until-hover links (e.g. a partner credit link). */
.link-accent { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.link-accent:hover { color: var(--accent); }

/* ---------- Demo cards ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 780px) { .demo-grid { grid-template-columns: 1fr; } }

.demo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-preview {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.demo-preview.cafe-theme {
  background: linear-gradient(135deg, #2b2015 0%, #14100b 100%);
}
.demo-preview.pub-theme {
  background: linear-gradient(135deg, #1c130a 0%, #0d0906 100%);
}
.demo-preview.electrician-theme {
  background: linear-gradient(135deg, #10233f 0%, #060d18 100%);
}
.demo-preview.construction-theme {
  background: linear-gradient(135deg, #2b2a28 0%, #121110 100%);
}
.demo-preview.salon-theme {
  background: linear-gradient(135deg, #4a3238 0%, #201519 100%);
}
.demo-preview.barber-theme {
  background: linear-gradient(135deg, #1c2b23 0%, #0c1310 100%);
}
.demo-preview .preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.demo-preview .preview-img ~ .preview-mark {
  position: relative;
}
.demo-preview:has(.preview-img)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.demo-preview .preview-mark {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(245,246,250,0.85);
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.demo-preview .preview-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0,0,0,0.45);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.demo-body { padding: 26px 26px 28px; flex-grow: 1; display: flex; flex-direction: column; }
.demo-body h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; }
.demo-body p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 20px; flex-grow: 1; }
.demo-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.demo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Industry cards ---------- */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .industries-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* 2-up variant (homepage "Two ways I can help") - a full rule set rather
   than an inline override, so it still collapses to 1 column on mobile
   (an inline style would out-specificity the media query above and never
   collapse). */
.industries-grid--2up { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 700px) { .industries-grid--2up { grid-template-columns: 1fr; max-width: 420px; } }

.industry-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}
.industry-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 10px; }
.industry-card p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 24px; flex-grow: 1; }
.industry-card.coming-soon { opacity: 0.55; }
.industry-card .badge-soon {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--panel-light);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Contact / Forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info-card .row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-info-card .row .value { font-size: 0.98rem; }
.contact-info-card .row .value a:hover { color: var(--accent-bright); }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-bright);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Contact form feedback ---------- */

.form-feedback {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-feedback-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80;
}
.form-feedback-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item h4 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.9rem; color: var(--text-soft); }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(var(--accent-rgb), 0.28), transparent 70%),
    var(--panel);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
  color: var(--text);
}
.cta-band p { color: var(--text-soft); margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }
/* --text / --bg flip with the theme, so the primary button is light-on-dark
   in dark mode and dark-on-light in light mode without a second rule. */
.cta-band .btn-primary { background: var(--text); color: var(--bg); }
.cta-band .btn-primary:hover { background: var(--accent-hover); color: #fff; }
@media (max-width: 480px) {
  .cta-band { padding: 44px 22px; }
  .cta-band .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--accent-bright); }
/* Inline links mid-sentence (e.g. town names in the "Based in" paragraph) -
   override the block display above so they sit in the flow of the text. */
.footer-grid a.footer-inline { display: inline; margin-bottom: 0; }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ============================================================
   REVISION 2 ADDITIONS
   Everything below this line is new for the revision 2 preview:
   scroll reveal, WhatsApp button, sticky mobile CTA bar, and the
   two interactive widgets (search preview + before/after slider).
   ============================================================ */

/* ---------- Scroll reveal ---------- */
.section.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.section.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .section.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- WhatsApp click-to-chat ---------- */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 60;
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { display: block; }
.whatsapp-fab-label {
  position: absolute;
  right: 66px;
  bottom: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px 10px 2px 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.whatsapp-fab:hover .whatsapp-fab-label,
.whatsapp-fab:focus-visible .whatsapp-fab-label {
  opacity: 1;
  transform: translateX(0);
}
/* keep clear of the sticky mobile CTA bar so they don't overlap */
@media (max-width: 780px) {
  .whatsapp-fab { bottom: 84px; }
}

/* ---------- Sticky mobile "Get a Quote" bar ---------- */
.sticky-quote-bar { display: none; }
@media (max-width: 780px) {
  .sticky-quote-bar {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 55;
    background: var(--accent);
    border-radius: 999px;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  }
  .sticky-quote-bar a {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
  }
  /* stop the fixed bar AND the WhatsApp bubble (which sits above it) from
     hiding content at the end of the page - the bubble's top edge is the
     taller of the two, so clearance is sized to that. */
  body { padding-bottom: 160px; }
}

.tool-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 28px;
}
.tool-panel:last-child { margin-bottom: 0; }
.tool-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.tool-panel > p.tool-desc {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

/* ============================================================
   Google search preview widget
   ============================================================ */
.gsp-controls {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px;
}
.gsp-input-group {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--panel-light); border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px;
}
.gsp-input-group svg { flex-shrink: 0; opacity: 0.6; }
.gsp-input-group input {
  background: none; border: none; outline: none; color: var(--text); font-size: 0.95rem; width: 100%;
  font-family: var(--font-body);
}
.gsp-input-group input::placeholder { color: var(--text-soft); }
.segmented { display: flex; flex-wrap: wrap; background: var(--panel-light); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button {
  border: none; background: none; color: var(--text-soft); font-size: 0.82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: var(--font-body); transition: background .15s, color .15s;
}
.segmented button.active { background: var(--accent); color: #fff; }

.gsp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .gsp-compare { grid-template-columns: 1fr; } }
.gsp-compare > div { display: flex; flex-direction: column; }
.gsp-compare .serp-card { flex: 1; }
.gsp-label {
  display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.gsp-label.bad { color: #E0975A; }
.gsp-label.good { color: #3DBD7D; }
.gsp-label .pip { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* authentic google-result look, intentionally light regardless of theme */
.serp-card {
  background: #fff; border-radius: 12px; padding: 18px 18px 16px; font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06); min-height: 168px;
}
.serp-favrow { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.serp-fav { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.serp-site { font-size: 0.8rem; color: #202124; }
.serp-url { font-size: 0.76rem; color: #4d5156; }
.serp-title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; margin: 2px 0 6px; font-weight: 400; }
.serp-card.muted .serp-title { color: #3c4043; font-weight: 600; }
.serp-desc { color: #4d5156; font-size: 0.86rem; line-height: 1.5; }
.serp-sitelinks { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.serp-sitelinks a { color: #1a0dab; font-size: 0.83rem; }
.serp-badrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.serp-badge {
  font-size: 0.7rem; font-weight: 600; color: #8a6d3b; background: #fdf3e3; border: 1px solid #f0e0bd;
  padding: 3px 9px; border-radius: 999px;
}
/* ---------- Free instant audit tool ---------- */
.audit-q { margin-bottom: 22px; }
.audit-q:last-child { margin-bottom: 0; }
.audit-q-text { font-weight: 600; margin-bottom: 10px; }
.audit-options { flex-wrap: wrap; width: 100%; }
.audit-options button { flex: 1; min-width: 90px; }
.audit-result { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.audit-score-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--panel-light);
  overflow: hidden;
  margin-bottom: 10px;
}
.audit-score-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E0975A, var(--accent));
  transition: width 0.3s ease;
}
.audit-score-label { font-size: 0.9rem; color: var(--text-soft); font-weight: 600; margin-bottom: 14px; }
.audit-feedback { color: var(--text-soft); font-size: 0.94rem; line-height: 1.6; margin-bottom: 18px; min-height: 1.6em; }

.gsp-callout {
  margin-top: 18px; font-size: 0.85rem; color: var(--text-soft); background: var(--panel-light);
  border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px;
}
.gsp-callout strong { color: var(--text); }

/* ============================================================
   Before / after drag slider
   ============================================================ */
.baf {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16/10;
  width: 65%;
  margin: 0 auto;
}
.baf-layer { position: absolute; inset: 0; }
.baf-after { clip-path: inset(0 0 0 var(--baf-pos, 50%)); }
.baf-mock { width: 100%; height: 100%; display: flex; flex-direction: column; }
.baf-mock .top {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.baf-before .baf-mock { background: linear-gradient(160deg,#1d2333,#0d1120); }
.baf-after .baf-mock { background: linear-gradient(160deg,#0e1830,#08101f); }
.baf-dot { width: 9px; height: 9px; border-radius: 50%; }
.baf-chip {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
}
.baf-before .baf-chip { background: rgba(224,151,90,0.16); color: #E0975A; }
.baf-after .baf-chip { background: rgba(61,189,125,0.12); color: #3DBD7D; }
.baf-body { flex: 1; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.baf-body h3 { font-family: var(--font-heading); font-size: 1.15rem; color: #fff; }
.baf-body p { font-size: 0.82rem; color: rgba(255,255,255,0.65); max-width: 300px; }
.baf-fb-post {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 10px 12px; font-size: 0.72rem; color: rgba(255,255,255,0.55); max-width: 260px;
}
.baf-linklist { display: flex; gap: 8px; flex-wrap: wrap; }
.baf-linklist span {
  font-size: 0.7rem; font-weight: 600; color: #fff; background: rgba(255,255,255,0.1);
  padding: 5px 11px; border-radius: 999px;
}
.baf-linklist.on span { background: var(--accent); }
/* the "after" layer is revealed on the RIGHT of the handle, so its content
   is mirrored to sit against the right edge - otherwise it would be
   clipped away along with the left portion of its own box. */
.baf-after .top { justify-content: flex-end; }
.baf-after .baf-body { align-items: flex-end; text-align: right; }
.baf-after .baf-body p { margin-left: auto; }
.baf-after .baf-linklist { justify-content: flex-end; }
.baf-handle {
  position: absolute; top: 0; bottom: 0; left: var(--baf-pos, 50%); width: 0;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.baf-handle::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.85); }
.baf-grip {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35); pointer-events: none;
}
.baf-range {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.baf-labels {
  display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.78rem; color: var(--text-soft);
  width: 65%; margin-left: auto; margin-right: auto;
}
/* mobile: 16/10 is too short once the box gets this narrow, clipping the
   text inside - taller ratio + full width + tighter padding/type fixes it. */
@media (max-width: 600px) {
  .baf { aspect-ratio: 3/4; width: 100%; }
  .baf-labels { width: 100%; }
  .baf-body { padding: 16px; gap: 8px; }
  .baf-body h3 { font-size: 1rem; }
  .baf-body p { font-size: 0.78rem; line-height: 1.4; }
  .baf-fb-post { padding: 8px 10px; font-size: 0.7rem; }
  .baf-linklist span { font-size: 0.66rem; padding: 4px 9px; }
  .tool-panel { padding: 20px; }
}

/* ============================================================
   Homepage interactive widgets: missed-customer cost calculator
   and live menu-item demo
   ============================================================ */

/* ---------- Cost calculator ---------- */
.cost-calc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 780px) { .cost-calc-grid { grid-template-columns: 1fr; gap: 28px; } }

.cc-live { color: var(--accent-bright); font-weight: 700; }

.cost-calc-controls input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  margin-top: 8px;
  cursor: pointer;
}
.cost-calc-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-bright);
  cursor: pointer;
}
.cost-calc-controls input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: none;
  box-shadow: 0 0 0 1px var(--accent-bright);
  cursor: pointer;
}

.cost-calc-result {
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.cost-calc-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 10px;
}
.cost-calc-amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-bright);
  margin-bottom: 8px;
}
.cost-calc-sub { font-size: 0.9rem; color: var(--text-soft); }
.cost-calc-sub strong { color: var(--text); }

.cc-disclaimer {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ---------- Live menu-item demo ---------- */
.menu-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) { .menu-demo { grid-template-columns: 1fr; gap: 28px; } }

.menu-demo-card {
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.menu-demo-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.menu-demo-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  border-bottom: 1px dashed var(--line);
}
.menu-demo-row:last-child { border-bottom: none; }
.menu-demo-row.menu-demo-live {
  color: var(--text);
  font-weight: 700;
  background: rgba(var(--accent-rgb), 0.16);
  margin: 4px -14px 0;
  padding: 10px 14px;
  border-radius: 8px;
  border-bottom: none;
  transition: background 0.15s ease;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}
