:root {
  --color-red: #d71920;
  --color-red-dark: #b0141a;
  --color-red-light: #fef2f2;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-bg-light: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e5e5e5;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-primary: #d71920;
  --color-primary-hover: #b0141a;
  --color-accent: #d71920;
  --color-success: #16a34a;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --container: 1200px;
  /* Space for fixed site header (top bar + navbar) — updated in breakpoints below */
  --site-header-offset: 7.25rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--site-header-offset);
  scroll-padding-top: calc(var(--site-header-offset) + 0.5rem);
}

a { color: var(--color-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-red-dark); }

img { max-width: 100%; height: auto; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.text-center { text-align: center; }
.link-red { color: var(--color-red); font-weight: 600; }
.link-red:hover { color: var(--color-red-dark); }

/* Header — fixed on all pages (red bar + navbar stay visible while scrolling) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.top-bar {
  background: var(--color-red);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}

.top-phone { color: #fff; font-weight: 600; }
.top-phone:hover { color: #fff; opacity: 0.9; }
.top-hours { opacity: 0.95; }

.navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
  background: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo:hover { opacity: 0.9; }

.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
}

.logo-img-horizontal {
  height: 52px;
  max-width: min(220px, 42vw);
}

.logo-img-stacked {
  height: auto;
  max-height: 110px;
  width: auto;
  max-width: 100px;
}

.logo-img-wrap-light {
  display: inline-block;
  background: #fff;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  line-height: 0;
}

.logo-footer {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.logo-footer .logo-img-stacked {
  max-height: 95px;
  max-width: 85px;
}

.btn-nav-call {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.1rem;
  flex: 1;
  justify-content: center;
  position: relative;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0.2rem;
  transition: color 0.25s ease;
}

.nav-links a.active {
  color: var(--color-red);
}

.nav-links a:hover {
  color: var(--color-red);
}

/* Sliding active underline indicator */
.nav-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 3px;
  background: var(--color-red);
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.nav-actions { display: flex; gap: 0.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: #fff;
}

.btn-outline {
  border-color: var(--color-red);
  color: var(--color-red);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-red);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-red);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--color-bg-alt);
  color: var(--color-red-dark);
}

.btn-outline-white {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-white { background: #fff; }
.section-light { background: var(--color-bg-alt); }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-red-light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-label {
  display: block;
  color: var(--color-red);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.section-header p { color: var(--color-muted); }
.section-cta { text-align: center; margin-top: 2rem; }

.title-center {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.title-left {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: 0.9rem; color: var(--color-red); }

.service-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.service-meta .price { color: var(--color-red); font-weight: 700; }
.service-meta .turnaround { color: var(--color-muted); }
.service-meta.large { font-size: 1rem; margin-bottom: 1.25rem; }

.problem-card a { font-weight: 600; color: var(--color-red); }

.testimonial-card footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-card footer span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.feature-list { list-style: none; margin-top: 1rem; }

.feature-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

.feature-list li strong { color: var(--color-text); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.align-center { align-items: center; }

.highlight-box {
  background: var(--color-red-light);
  border: 2px solid var(--color-red);
  border-radius: var(--radius);
  padding: 2rem;
}

.highlight-box h3 { margin-bottom: 0.75rem; color: var(--color-red); }
.highlight-box p { color: var(--color-muted); margin-bottom: 1rem; }

.steps .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  opacity: 0.4;
}

.steps h3 { margin: 0.5rem 0; font-size: 1rem; }
.steps p { font-size: 0.9rem; color: var(--color-muted); }

/* Page hero */
.page-hero {
  padding: 3rem 0;
  background: var(--color-red);
  color: #fff;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p { opacity: 0.95; }
.page-hero .section-label { color: rgba(255,255,255,0.85); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.15);
}

.field-error { color: var(--color-red); font-size: 0.85rem; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.sidebar-card h3 { margin-bottom: 1rem; color: var(--color-red); }
.sidebar-card p { margin-bottom: 0.75rem; color: var(--color-muted); }

.prose-wide { max-width: 720px; }
.prose { color: var(--color-muted); margin: 1.5rem 0; }

.category-block { margin-bottom: 3rem; }
.category-block h2 { margin-bottom: 0.5rem; font-family: var(--font-display); }
.category-block > p { color: var(--color-muted); margin-bottom: 1.5rem; }

/* CTA */
.cta-banner,
.cta-red {
  background: var(--color-red);
  color: #fff;
  text-align: center;
}

.cta-inner h2,
.cta-red h2 { font-family: var(--font-display); margin-bottom: 0.5rem; }

.cta-inner p,
.cta-red p { opacity: 0.95; margin-bottom: 1.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions.justify-center { justify-content: center; }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand .logo { color: #fff; }
.footer-brand .logo:hover { color: #fff; }
.footer-brand p { color: #999; margin-top: 1rem; font-size: 0.9rem; }

.site-footer h4 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #fff;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #999; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }

.footer-social-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
  align-items: center;
}

.footer-social-links li {
  margin: 0;
  flex-shrink: 0;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Facebook */
.facebook-icon {
  background: linear-gradient(135deg, #1877F2 0%, #0A66C2 100%);
}

.facebook-icon:hover {
  background: linear-gradient(135deg, #165AC7 0%, #084399 100%);
}

/* Instagram */
.instagram-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-icon:hover {
  background: linear-gradient(45deg, #f5a85e 0%, #ee8860 25%, #e75065 50%, #d94e88 75%, #c835aa 100%);
}

/* TikTok */
.tiktok-icon {
  background: #000000;
}

.tiktok-icon:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(37, 244, 238, 0.3);
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: all 0.3s ease;
}

.site-footer a:not(.btn) { color: #ccc; }
.site-footer a:not(.btn):hover { color: #fff; }

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid #333;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}

/* Messages */
.messages-bar { padding: 0.75rem 1rem; }
.alert {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.alert-success {
  background: #ecfdf5;
  border-color: var(--color-success);
  color: #166534;
}
.alert-error {
  background: #fef2f2;
  border-color: var(--color-red);
  color: #991b1b;
}

/* WhatsApp — fixed chat pill (logo + pre-filled message via shop.whatsapp_url) */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 190;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem 0.55rem 0.55rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.45),
    0 6px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  color: #fff;
  box-shadow:
    0 6px 24px rgba(37, 211, 102, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.whatsapp-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.whatsapp-float-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.whatsapp-float-label {
  white-space: nowrap;
  padding-right: 0.15rem;
}

.empty-note { color: var(--color-muted); grid-column: 1 / -1; }

.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
}

.blog-card h2 a { color: var(--color-text); }
.blog-card h2 a:hover { color: var(--color-red); }

.meta { font-size: 0.9rem; color: var(--color-muted); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .logo-img-horizontal {
    height: 42px;
    max-width: 160px;
  }

  :root {
    --site-header-offset: 8.35rem;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 0.5rem 0;
  }

  .top-hours {
    font-size: 0.72rem;
    line-height: 1.35;
    max-width: 100%;
  }

  .nav-toggle { display: flex; }

  .navbar {
    gap: 0.75rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
  }

  .nav-links.is-open { display: flex; }

  .nav-indicator {
    display: none !important;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .btn-nav-call {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
  }

  .nav-actions .btn-primary {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.95rem 0.5rem 0.5rem;
    font-size: 0.82rem;
  }

  .whatsapp-float-icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .whatsapp-float-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --site-header-offset: 7.15rem;
  }

  .top-hours {
    display: none;
  }

  .top-bar-inner::after {
    content: 'Camberley · Mon–Sat 9–6';
    font-size: 0.72rem;
    opacity: 0.9;
  }

  .nav-actions .btn-nav-call {
    display: none;
  }

  .navbar .nav-actions .btn-primary {
    padding: 0.5rem 0.85rem;
  }

  /* Compact circle on very small screens */
  .whatsapp-float-label {
    display: none;
  }

  .whatsapp-float {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-float-icon {
    width: 100%;
    height: 100%;
    background: transparent;
  }

  .whatsapp-float-icon svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}
