/* =========================================================================
   Footer area copied from Template 8 (frontend.css) — partners strip,
   "Used Cars in <city>" SEO strip and main footer. Rules below the
   "copied" line are verbatim from Template 8, in the same order.
   ========================================================================= */

/* Template 8 theme values and font, scoped to the footer area only */
.partners-section,
.seo-links-container,
.main-footer {
  --primary: #555555;
  --primary-hover: #444444;
  --bg-dark: #111111;
  --bg-darker: #0a0a0a;
  --bg-light: #f9f9f9;
  --text-main: #333333;
  --text-light: #f4f4f4;
  --border-color: #eaeaea;
  font-family: var(--font);
}

/* Template 8's global reset and element styles, limited to the footer area */
.partners-section *, .seo-links-container *, .main-footer * { margin: 0; padding: 0; box-sizing: border-box; }
.partners-section h3, .main-footer h3 { font-family: var(--font); font-weight: 700; line-height: inherit; }
.partners-section a, .seo-links-container a, .main-footer a { text-decoration: none; color: inherit; transition: color 0.2s; }
.partners-section a:hover, .seo-links-container a:hover, .main-footer a:hover { color: inherit; }
.partners-section img { display: inline; max-width: none; }

/* ---- copied from Template 8 ---- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: #bbb;
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #777;
}

.partners-section {
  padding: 3rem 5%;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.partners-section h3 {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partners-slider {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.partners-slider img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.partners-slider img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.main-footer {
  background-color: #1a1a1a;
  color: #a0a0a0;
  font-family: var(--font);
  padding: 2rem 2% 1rem 2%;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #333;
}

/* Column 1: Contact Icons */
.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: #fff;
}

/* Column 2: Hours Table */
.footer-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.09rem 0;
  border-bottom: 1px solid #2a2a2a;
  align-items: center;
}

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

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

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

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

/* Column 3: Quick Links */
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.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.09rem 0;
  transition: color 0.2s;
}

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

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

/* Bottom Company Info */
.footer-company-info {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-company-info h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-company-meta {
  border-bottom: 1px solid #333;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #888;
}

.footer-company-meta span {
  color: #a0a0a0;
}

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

.footer-company-disclosure {
  font-size: 0.75rem;
  color: #777;
  line-height: 1.8;
  white-space: pre-wrap;
  /* honors line breaks from textarea */
}

/* Footer Bottom Layout */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.seo-links-container {
  background: var(--bg-dark);
  padding: 1.5rem 2%;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  text-align: center;
}

.seo-links-container .seo-heading {
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-family: var(--font);
}

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

.seo-links-grid a {
  display: block;
  break-inside: avoid;
  background: transparent;
  color: #999;
  padding: 0.08rem 0;
  font-size: 0.82rem;
  transition: color 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}

.seo-links-grid a::before {
  content: '› ';
  color: var(--primary);
  font-weight: bold;
}

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

/* ---- Template 8 responsive rules for these sections ---- */
@media (max-width: 768px) {
  .partners-section,
  .seo-links-container {
    padding: 1rem 2% !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .seo-links-grid {
    column-count: 2 !important;
  }

  .footer-col {
    padding-right: 0 !important;
    margin-bottom: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .seo-links-grid {
    column-count: 3;
  }
}

@media (max-width: 480px) {
  .seo-links-grid {
    column-count: 2 !important;
  }

  .seo-links-container {
    padding: 1rem 5%;
  }
}
