/* ==========================================================================
   Template 15 — Woburn Cars Inspired Executive Design System
   Palette: Crisp White / Royal Navy / Bright Gold & Sapphire Accents
   Typography: Nunito Sans & Inter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette (Woburn Cars Executive aesthetics) */
  --primary: #14171d;
  /* Woburn Dark Charcoal */
  --primary-hover: #0d0e12;
  --primary-light: #f0f2f8;
  --nav-bg: #14171d;
  /* Dark Executive Header */
  --nav-bar-bg: #1b1f27;
  /* Navigation Bar Dark */

  --accent: #f7455cb4;
  /* Woburn Electric Red Accent */
  --accent-hover: #d90f17;
  --accent-subtle: #ffe5e6;

  --finance: #ff1e27;
  /* Finance Red Highlight */
  --finance-light: #fff1f2;
  --finance-bg: #d90f17;

  --ulez-green: #10b981;
  --ulez-bg: #d1fae5;
  --whatsapp: #25d366;

  /* Surfaces & Backgrounds */
  --bg-page: #14171d;
  /* Woburn Executive Dark Showroom Theme */
  --bg-surface: #1e222b;
  /* Deep Charcoal Cards & Panels */
  --bg-surface-light: #ffffff;
  /* Pure white for light elements */
  --bg-surface-alt: #262b36;
  --bg-dark: #0e1014;
  /* Dark footer & drawer */
  --bg-darker: #0a0b0e;
  --bg-card: #1e222b;
  --bg-input: #ffffff;

  /* Typography Colors */
  --text-heading: #ffffff;
  --text-body: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --text-white: #ffffff;
  --text-dark: #0f172a;

  /* Borders & Shadows */
  --border: #2e3545;
  --border-light: #e2e8f0;
  --border-form: #cbd5e1;
  --border-glow: rgba(255, 30, 39, 0.4);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 6px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 35px -10px rgba(0, 0, 0, 0.55);

  /* Fonts */
  --font: 'Nunito Sans', 'Inter', system-ui, sans-serif;
  --font-title: 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing & Radius */
  --border-radius-xl: 12px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-xs: 3px;

  --nav-height: 72px;
  --nav-bar-height: 48px;
  --bottom-bar-height: 0px;
  --container-max: 1240px;
}

/* ==========================================================================
   Reset & Core Layout
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--nav-height) + var(--nav-bar-height));
  padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991px) {
  :root {
    --bottom-bar-height: 64px;
  }

  body {
    padding-top: var(--nav-height);
  }

  /* The mobile bottom dock already has its own WhatsApp "Chat" entry,
     so the floating bubble would be a redundant, overlapping duplicate. */
  .whatsapp-bubble {
    display: none !important;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

h5 {
  font-size: 0.95rem;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-uppercase-sub {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: inline-block;
}

/* ==========================================================================
   Woburn Header Navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  z-index: 2100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-top-left,
.nav-top-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-hamburger {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.nav-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  transition: color 0.2s;
}

.nav-contact-item:hover {
  color: var(--accent);
}

.nav-icon-badge {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-circle-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-circle-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  max-height: 73px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-contact-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

@media (min-width: 992px) {
  .nav-contact-col {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}


.nav-address-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 700;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--border-radius-xs);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--accent);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-search-btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* Row 2: Navigation Links (Desktop) */
.nav-bar {
  display: none;
  background: var(--nav-bar-bg);
  height: var(--nav-bar-height);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-xs);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent);
  color: #ffffff;
}

.nav-link-cta {
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.4rem 1.1rem;
  border-radius: var(--border-radius-xs);
  font-weight: 800;
}

.nav-link-cta:hover {
  background: #ffffff;
  color: var(--primary) !important;
}

@media (min-width: 992px) {
  .nav-phone {
    display: flex;
  }

  .nav-bar {
    display: block;
  }

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

/* Mobile Slide-in Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-dark);
  color: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer-title {
  font-weight: 800;
  color: #fff;
}

.nav-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.drawer-link {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background: var(--border);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-finance {
  background: var(--finance);
  color: #ffffff;
}

.btn-finance:hover {
  background: #047857;
  color: #ffffff;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--border-radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-ulez {
  background: var(--ulez-bg);
  color: var(--ulez-green);
  border: 1px solid #bbf7d0;
}

.badge-vat {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Clean Vehicle Cards (Woburn Style)
   ========================================================================== */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

.vehicle-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.vehicle-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 64%;
  background: #e5e7eb;
  overflow: hidden;
}

.vehicle-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-card-img {
  transform: scale(1.04);
}

.vehicle-card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.vehicle-card-reg {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-xs);
  z-index: 2;
}

.vehicle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-xl), 0 0 15px rgba(255, 30, 39, 0.2);
}

.vehicle-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66%;
  overflow: hidden;
  background: #0f1217;
}

.vehicle-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-card-img {
  transform: scale(1.05);
}

.vehicle-card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.badge-reserved {
  background: #ff1e27;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* Woburn Cars Split Price Bar */
.price-tag-split {
  display: flex;
  width: 100%;
  min-height: 48px;
}

.price-tag-amount {
  flex: 1;
  background: #14171d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-tag-finance {
  flex: 1;
  background: #9c0006;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  text-align: center;
  line-height: 1.1;
}

.finance-rate-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.finance-rate-value {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 900;
}

.vehicle-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #1c2029;
}

.vehicle-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.vehicle-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.vehicle-specs-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: #14171d;
  padding: 0.65rem;
  border-radius: var(--border-radius-xs);
  margin-bottom: 1.15rem;
  border: 1px solid var(--border);
}

.spec-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-pill-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-pill-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
}

.vehicle-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.was-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.main-price {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-heading);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

.form-group {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-heading);
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-heading);
  background-color: var(--bg-input);
  border: 1px solid var(--border-form);
  border-radius: var(--border-radius-xs);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 2.2rem;
}

/* ==========================================================================
   Toasts & Cookies
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--border-radius-xs);
  font-size: 0.88rem;
  border-left: 4px solid var(--accent);
}

#cookie-banner {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 20px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--bg-dark);
  color: #fff;
  padding: 1.1rem 1.35rem;
  border-radius: var(--border-radius);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

@media (max-width: 576px) {
  #cookie-banner {
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  #cookie-banner > div:last-child {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Mobile Bottom Dock & WhatsApp
   ========================================================================== */

.whatsapp-bubble {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 16px + env(safe-area-inset-bottom, 0px));
  left: 20px !important;
  right: auto !important;
  width: 52px;
  height: 52px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  z-index: 9999;
}

/* Hide floating chat widgets while the cookie banner is open so they don't
   sit on top of its text/buttons at any viewport width. */
body.cookie-banner-open .whatsapp-bubble,
body.cookie-banner-open #dg-launcher,
body.cookie-banner-open #dg-prompt {
  display: none !important;
}

/* The DealerGate chatbot widget (widget.js) positions its launcher button
   and greeting tooltip with fixed offsets that don't know about our mobile
   bottom nav bar, so on phones it sits on top of the "Chat" tab. Nudge it
   up above the bar to match the WhatsApp bubble. */
@media (max-width: 991px) {
  #dg-launcher {
    bottom: calc(var(--bottom-bar-height) + 16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #dg-prompt {
    bottom: calc(var(--bottom-bar-height) + 28px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--primary);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #d1d5db;
  font-size: 0.68rem;
  font-weight: 700;
}

.mobile-bottom-item.active {
  color: var(--accent-gold);
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .whatsapp-bubble {
    bottom: 24px;
    left: 24px !important;
    right: auto !important;
  }
}



/* ==========================================================================
   Template 9 Footer & SEO Links
   ========================================================================== */

/* SEO Links Container */
.seo-links-container {
  background: #14171d;
  padding: 2rem 2%;
  border-top: 2px solid #ff1e27;
  border-bottom: 2px solid #ff1e27;
  text-align: center;
}

.seo-links-container .seo-heading {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  font-family: var(--font-title);
}

.seo-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.seo-links-grid a {
  display: block;
  color: #94a3b8;
  padding: 0.15rem 0;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.seo-links-grid a::before {
  content: '› ';
  color: #ff1e27;
  font-weight: bold;
}

.seo-links-grid a:hover {
  color: #ffffff;
}

/* Template 9 Main Footer */
.main-footer {
  background-color: #11141a;
  color: #a0a0a0;
  padding: 3rem 5% 1.5rem 5%;
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 3.5rem;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid #262b36;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #262b36;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer-contact-item svg {
  margin-top: 0.2rem;
  color: #ff1e27;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid #1e232e;
  align-items: center;
  font-size: 0.85rem;
}

.footer-hours-row:last-of-type {
  border-bottom: none;
}

.footer-hours-row .day-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
}

.footer-hours-row svg {
  color: #ff1e27;
  width: 16px;
  height: 16px;
}

.footer-hours-text {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li {
  border-bottom: 1px solid #1e232e;
}

.footer-link-list li:last-child {
  border-bottom: none;
}

.footer-link-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0a0a0;
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.2s;
  font-size: 0.88rem;
}

.footer-link-list a:hover {
  color: #ffffff;
}

.footer-link-list a::before {
  content: '>';
  font-family: monospace;
  font-weight: bold;
  font-size: 0.8rem;
  color: #ff1e27;
}

.footer-company-info {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-company-info h3 {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.footer-company-meta {
  border-bottom: 1px solid #262b36;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-company-meta span {
  color: #ffffff;
  font-weight: 700;
}

.footer-company-meta .separator {
  margin: 0 0.8rem;
  color: #ff1e27;
}

.footer-company-disclosure {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #262b36;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-top {
    padding: 0 1rem;
  }

  .nav-logo-img {
    max-height: 52px;
  }

  .nav-logo-text {
    font-size: 1.6rem;
  }

  .social-circle-link {
    display: none;
  }
}

@media (max-width: 576px) {
  .nav-top {
    padding: 0 0.75rem;
  }

  .nav-top-left {
    gap: 0.65rem;
  }

  .nav-top-right {
    gap: 0.5rem;
  }

  .nav-contact-col {
    gap: 0.15rem;
  }

  .nav-contact-item {
    font-size: 0.8rem;
  }

  .nav-address-item {
    font-size: 0.72rem;
  }

  /* Mobile: hide address text, keep only the location pin icon */
  .nav-address-item > span:last-child {
    display: none;
  }

  .nav-address-item .nav-icon-badge {
    display: flex;
  }

  /* Mobile: hide phone number text, keep only the call icon */
  .nav-contact-item:not(.nav-address-item) > span:last-child {
    display: none;
  }

  /* Mobile: center the logo in the header regardless of hamburger/icon widths */
  .nav-logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-logo-img {
    max-height: 42px;
  }

  .nav-logo-text {
    font-size: 1.35rem;
  }

  .hero-container {
    padding: 2.25rem 0.85rem;
  }

  .hero-heading {
    font-size: 1.85rem;
  }

  .woburn-search-box {
    padding: 1rem 0.85rem;
  }

  .woburn-search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .partx-slashed-content-wrap {
    padding: 2.25rem 1.15rem;
  }

  .partx-slashed-box {
    padding: 1.25rem;
  }
}