/*
Theme Name: SPS Autocare
Theme URI: https://spsautocare.com
Author: SPS Autocare
Description: Premium Auto Detailing theme for SPS Autocare — Certified Detailers serving NH, MA, ME & VT.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sps-autocare
Tags: auto-detailing, business, one-page
*/

/* ══════════════════════════════════════
   GOOGLE FONTS IMPORT
══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ══════════════════════════════════════
   CUSTOM PROPERTIES
══════════════════════════════════════ */
:root {
  --sps-primary: #132f4c;
  --sps-dark:    #1e293b;
  --sps-black:   #010101;
  --sps-white:   #ffffff;
  --sps-surface: #111111;
  --sps-bg:      #fefefe;
  --sps-accent:  #132f4c;
  --sps-muted:   #242931;
  --sps-light:   #f1f5f9;
  --font-head:   'Barlow', sans-serif;
  --font-body:   'Inter', sans-serif;
}

/* ══════════════════════════════════════
   BASE / RESET
══════════════════════════════════════ */
body, span, p, li, a {
  font-family: var(--font-body);
  color: var(--sps-surface);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
}
/* .container {
  max-width: 1200px !important;
} */
/* ══════════════════════════════════════
   CONTACT INTRO SECTION
══════════════════════════════════════ */
.sps-contact-intro {
  position: relative;
  background: #181818;
  padding: 80px 0 60px;
  overflow: hidden;
}

/* Tyre track — top-right corner decoration */
.sps-tyre-track {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  transform: rotate(8deg);
}

.sps-tyre-track svg {
  width: 100%;
  height: 100%;
}

/* Section eyebrow label */
.sps-footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c62828;
  margin-bottom: 18px;
}

.sps-footer-eyebrow .label-squares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sps-footer-eyebrow .label-squares span {
  display: block;
  border-radius: 1px;
}

.sps-footer-eyebrow .label-squares span:nth-child(1),
.sps-footer-eyebrow .label-squares span:nth-child(4) {
  background: #c62828;
}

.sps-footer-eyebrow .label-squares span:nth-child(2),
.sps-footer-eyebrow .label-squares span:nth-child(3) {
  background: rgba(255, 255, 255, 0.7);
}

/* Contact section heading */
.sps-contact-heading {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  color: var(--sps-white);
  line-height: 1.1;
  margin: 0;
}

/* ══════════════════════════════════════
   CONTACT INFO CARDS
══════════════════════════════════════ */
.sps-contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #232323;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 20px;
  height: 100%;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}

.sps-contact-card--link:hover {
  background: #2a2a2a;
  border-color: rgba(230, 51, 18, 0.35);
}

/* Card icon circle */
.sps-cc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid #c62828;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c62828;
  font-size: 17px;
}

/* Card body */
.sps-cc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sps-cc-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.sps-cc-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Social icons row (inside "Follow us" card) */
.sps-social-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.sps-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.sps-social-btn:hover {
  background: #c62828;
  color: #fff !important;
}

/* ══════════════════════════════════════
   FOOTER — MAIN WRAPPER
══════════════════════════════════════ */
.sps-footer {
  background: #111111;
  padding: 60px 0 0;
}

/* ── Column headings ── */
.sps-footer-col-heading {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--sps-white);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

/* ── Nav link lists ── */
.sps-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sps-footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  transition: color 0.2s;
  display: inline-block;
}

.sps-footer-links a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  padding-left: 4px;
}

/* ── App column ── */
.sps-footer-app-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 20px;
}

.sps-app-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sps-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 16px;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
  max-width: 190px;
}

.sps-app-badge:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #252525;
}

.sps-app-badge i {
  font-size: 26px;
  color: var(--sps-white);
  flex-shrink: 0;
}

/* Store name text (small label + bold store name) */
.sps-app-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--sps-white);
}

.sps-app-badge span small {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Divider ── */
.sps-footer-hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 50px 0 0;
}

/* ══════════════════════════════════════
   FOOTER — COPYRIGHT BAR
══════════════════════════════════════ */
.sps-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.sps-footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.sps-footer-copy a {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Center logo */
.sps-footer-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.sps-footer-logo-link img,
.sps-footer-logo-link .custom-logo {
  width: 200px !important;
  max-width: none !important;
  filter: brightness(0) invert(1); /* white logo on dark background */
  opacity: 0.85;
  transition: opacity 0.2s;
}

.custom-logo-link img {
  /* width: 200px !important; */
  height: auto !important;
}

.sps-footer-logo-link:hover img,
.sps-footer-logo-link:hover .custom-logo {
  opacity: 1;
}

/* Fallback text logo (when no custom logo is set) */
.sps-footer-logo-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sps-footer-logo-text strong {
  color: #c62828;
}

/* ══════════════════════════════════════
   FLOATING BACK TO TOP BUTTON
══════════════════════════════════════ */
.sps-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  background: var(--sps-primary);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  /* Hidden by default — JS adds --visible modifier */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
}

.sps-back-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sps-back-top:hover {
  background: #c62828;
}

/* ══════════════════════════════════════
   RESPONSIVE OVERRIDES
══════════════════════════════════════ */

/* Tablet */
@media (max-width: 991px) {
  .sps-contact-intro { padding: 60px 0 40px; }
  .sps-footer        { padding-top: 40px; }

  /* Stack copyright bar vertically */
  .sps-footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .sps-contact-intro   { padding: 44px 0 32px; }
  .sps-contact-heading { font-size: clamp(26px, 7vw, 40px); }
  .sps-tyre-track      { width: 160px; height: 160px; }

  /* App badges side by side on small screens */
  .sps-app-badges { flex-direction: row; flex-wrap: wrap; }

  .sps-back-top { bottom: 20px; right: 20px; }
  .page-hero {
      min-height: 280px !important;
              padding-left: 16px;        padding-right: 16px;
  }
}