/**
 * OnTime CMS Plumbing & Heating Solutions
 * Luxury Engineering Design System & Core Stylesheet
 */

:root {
  /* gastecsolutions.com Inspired Design Tokens (Boiler & Heating Specialist) */
  --color-surface-base: #000000;         /* Deep Black Base */
  --color-surface-muted: #f8fafc;        /* Soft Clean Light Surface */
  --color-surface-muted-dark: #262626;   /* GasTec Dark Charcoal Surface */
  --color-surface-raised: #111827;       /* Rich Engineering Dark */
  --color-surface-card: #ffffff;
  --color-surface-bg: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-surface-strong: #dc2626;       /* OnTime CMS Signature Red Accent */

  --color-border-default: #e5e7eb;
  --color-border-strong: #9a8a78;        /* Signature GasTec Warm Taupe / Bronze */
  --color-border-dark: #374151;
  --color-border-focus: #dc2626;

  /* Typography Colors */
  --color-text-primary: #0f172a;         /* Deep Contrast Charcoal Black */
  --color-text-secondary: #334155;       /* High-Readability Slate Dark Grey */
  --color-text-tertiary: #64748b;        /* Muted Grey */
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-inverse: #ffffff;
  --color-text-main: #0f172a;
  --color-text-body: #334155;
  --color-text-white: #ffffff;

  /* Accents */
  --color-accent-bronze: #9a8a78;        /* GasTec Warm Bronze */
  --color-accent-flame: #dc2626;         /* OnTime CMS Red */
  --color-accent-flame-hover: #b91c1c;
  --color-accent-blue: #2563eb;
  --color-accent-blue-hover: #1d4ed8;
  --color-amber-gold: #f59e0b;
  --color-checkatrade-green: #008542;

  /* Primary Dark Aliases */
  --color-primary-dark: #0f172a;
  --color-surface-dark: #0f172a;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 80px;

  /* Typography Scale (Raleway Primary) */
  --font-family: 'Raleway', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-headings: 'Raleway', sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --text-5xl: 42px;

  /* Radius Tokens (Structured, Non-Bubbly) */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows & Motion (GasTec Specifications) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.09);
  --shadow-xl: -8px -7px 20px 0px rgba(0, 0, 0, 0.08);

  --motion-instant: 200ms ease;
  --motion-fast: 250ms ease;
  --motion-normal: 400ms ease;

  --container-width: 1280px;
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-surface-bg);
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 150ms ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-flame { color: var(--color-accent-flame); }
.text-gold { color: var(--color-amber-gold); }
.text-green { color: var(--color-checkatrade-green); }
.text-white { color: var(--color-text-white); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Section Spacing */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section-sm {
  padding-top: 50px;
  padding-bottom: 50px;
}
.section-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--color-text-white);
}
.section-alt {
  background-color: var(--color-surface-alt);
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-accent-flame);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.section-tag.tag-blue {
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-accent-blue);
  border-color: rgba(2, 132, 199, 0.2);
}
.section-title {
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.section-dark .section-subtitle {
  color: var(--color-text-light);
}

/* Buttons - Structured, Elegant, High-Contrast (gastecsolutions.com aesthetic) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-headings);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: var(--text-sm);
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--motion-fast);
  text-align: center;
  white-space: nowrap;
}
.btn-sm {
  padding: 9px 18px;
  font-size: var(--text-xs);
  border-radius: var(--radius-xs);
}
.btn-lg {
  padding: 16px 34px;
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--color-surface-strong);
  color: #ffffff;
  border-color: var(--color-surface-strong);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}
.btn-primary:hover {
  background-color: var(--color-accent-flame-hover);
  border-color: var(--color-accent-flame-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.btn-secondary {
  background-color: #000000;
  color: #ffffff;
  border-color: var(--color-border-strong);
}
.btn-secondary:hover {
  background-color: var(--color-surface-muted-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-white {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid var(--color-border-default);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background-color: var(--color-surface-muted);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--color-surface-strong);
  border-color: var(--color-surface-strong);
}
.btn-outline-primary:hover {
  background-color: var(--color-surface-strong);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #128c7e;
  color: #ffffff;
  border-color: #128c7e;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.28);
}
.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   TOP BAR (CHECKATRADE CORPORATE STANDARD)
   ========================================================================== */
.site-topbar {
  background-color: var(--color-surface-raised);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 0;
}
.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}
.topbar-item-highlight {
  color: #ffffff;
}
.topbar-item-highlight:hover {
  color: #facc15;
}
.topbar-item-checkatrade {
  color: #4ade80;
}
.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot-yellow { background: #facc15; box-shadow: 0 0 6px rgba(250, 204, 21, 0.6); }
.dot-red { background: #ff3f3f; }
.dot-green { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.topbar-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}
.topbar-coverage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 11.5px;
}
.topbar-emergency-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 12px;
}
.topbar-emergency-link strong {
  color: #f87171;
  letter-spacing: 0.02em;
}
.topbar-emergency-link:hover {
  background: var(--color-accent-flame);
  border-color: var(--color-accent-flame);
  color: #ffffff;
}
.topbar-emergency-link:hover strong {
  color: #ffffff;
}

/* ==========================================================================
   MAIN HEADER (ELEGANT CORPORATE)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 200ms ease;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}
.site-logo img {
  height: 74px;
  max-height: 76px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-weight: 700;
  font-size: 14.5px;
  color: #1e293b;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-accent-flame);
}
.nav-link.active {
  color: var(--color-accent-flame);
  background-color: #fef2f2;
}

/* Services Dropdown */
.nav-item-has-children {
  position: relative;
}
.dropdown-chevron {
  transition: transform 200ms ease;
}
.nav-item-has-children:hover .dropdown-chevron {
  transform: rotate(180deg);
}
.nav-item-has-children:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1010;
}
.dropdown-category-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 6px 12px 2px 12px;
}
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease;
}
.nav-dropdown a strong {
  font-size: 13.5px;
  color: #0f172a;
  line-height: 1.25;
}
.nav-dropdown a span {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.nav-dropdown a:hover {
  background-color: #f8fafc;
}
.nav-dropdown a:hover strong {
  color: var(--color-accent-flame);
}

/* Header Action Right (Phone Pill + Quote CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Distinctive Single-Line Phone Pill */
.header-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 200ms ease;
}
.header-phone-pill:hover {
  background: #ffffff;
  border-color: var(--color-accent-flame);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.15);
  transform: translateY(-1px);
}
.phone-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--color-accent-flame);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.phone-pill-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.phone-pill-number {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.header-actions .btn-quote {
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: var(--radius-full);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text-main);
}

@media (max-width: 1140px) {
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
  }
  .header-actions .btn-quote {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-topbar {
    display: none !important;
  }
  .header-wrapper {
    height: 60px;
  }
  .site-logo img {
    height: 36px;
    max-width: 160px;
  }
  .header-phone-pill {
    display: none !important;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 10000;
  box-shadow: -10px 0 25px rgba(0,0,0,0.2);
  transition: right 300ms ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-main);
}
.mobile-drawer-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-drawer-links a {
  font-size: var(--text-base);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
}
.mobile-drawer-links a:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent-flame);
}
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   STICKY MOBILE BOTTOM BAR
   ========================================================================== */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #0f172a;
  border-top: 2px solid #1e293b;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25);
}
.sticky-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sticky-btn-call {
  background-color: var(--color-accent-flame);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}
.sticky-btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .sticky-mobile-bar {
    display: block;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #000000;
  color: #94a3b8;
  padding-top: 70px;
  padding-bottom: 36px;
  border-top: 1px solid var(--color-border-strong);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 20px;
}
.footer-brand-pills {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer-brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-brand-pill.pill-checkatrade {
  color: #4ade80;
}
.footer-brand-pill.pill-google {
  color: #38bdf8;
}
.footer-brand-pill:hover {
  background: #1f2937;
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}
.footer-col-title {
  color: #ffffff;
  font-family: var(--font-family-headings);
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-border-strong);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: var(--text-sm);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: var(--text-sm);
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent-flame);
}

/* Trust Badges Bar in Footer */
.footer-trust-strip {
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  padding: 24px 0;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-trust-title {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 52px;
  box-sizing: border-box;
}
.footer-badge-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.footer-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.footer-badge-text strong {
  font-size: 11.5px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.footer-badge-text span {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--text-xs);
  color: #64748b;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive Footer (Tablets & Mobile) */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 48px;
    padding-bottom: 96px; /* Space for fixed sticky mobile bottom bar */
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
    margin-bottom: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-top > div:nth-child(4) {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 14px;
    margin-bottom: 16px;
  }
  .footer-brand-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .footer-brand-pill {
    padding: 10px 8px;
    font-size: 11.5px;
    text-align: center;
  }
  .footer-col-title {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .footer-links {
    gap: 8px;
  }
  .footer-links a {
    font-size: 13px;
    padding: 2px 0;
  }
  .footer-trust-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px 0;
    margin-bottom: 24px;
    text-align: center;
  }
  .footer-trust-title {
    font-size: 12.5px;
  }
  .footer-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }
  .footer-badge-link {
    justify-content: center;
    padding: 8px 10px;
    min-height: 52px;
  }
  .footer-badge-gas-safe img {
    height: 42px !important;
    width: 42px !important;
  }
  .footer-badge-gas-safe .footer-badge-text strong {
    font-size: 11px !important;
  }
  .footer-badge-gas-safe .footer-badge-text span {
    font-size: 10px !important;
  }
  .footer-badge-text strong {
    font-size: 10.5px;
  }
  .footer-badge-text span {
    font-size: 9.5px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 14px;
  }
  .footer-badges {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .footer-badge-link {
    padding: 6px 8px;
    gap: 6px;
  }
  .footer-badge-link img {
    max-height: 28px !important;
  }
  .footer-brand-pills {
    grid-template-columns: 1fr;
  }
}



/* Homepage heading: compact size on mobile only. */
@media (max-width: 768px) {
  .hero-section .hero-content h1 {
    font-size: 2rem;
  }
}
