/*
Theme Name: Busters Towing
Theme URI: https://www.busterstowing.com
Author: Custom Build
Description: A clean, dependency-free WordPress theme for Busters Towing. No page builders or extra plugins required.
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: busters-towing
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-primary:    #c8222a;   /* Busters red */
  --color-primary-dk: #a01820;
  --color-dark:       #1a1a1a;
  --color-dark-alt:   #222222;
  --color-mid:        #444444;
  --color-light:      #f5f5f5;
  --color-white:      #ffffff;
  --color-border:     #e0e0e0;
  --color-overlay:    rgba(0, 0, 0, 0.55);

  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Open Sans', Arial, sans-serif;

  --max-width: 1200px;
  --header-h:  80px;
  --topbar-h:  40px;
  --transition: 0.25s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dk); }

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

ul, ol { list-style: none; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 70px 0; }
.section-pad-sm { padding: 45px 0; }

.text-center { text-align: center; }
.text-white  { color: var(--color-white); }
.text-red    { color: var(--color-primary); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

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

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-title span { color: var(--color-primary); }

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto 35px;
}
.section-divider.left { margin: 0 0 35px; }

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: var(--color-dark-alt);
  color: #ccc;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-left { display: flex; align-items: center; gap: 24px; }

.topbar-left a {
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-left a:hover { color: var(--color-primary); }

.topbar-left .topbar-icon {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

.topbar-right {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aaa;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  height: var(--header-h);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo img { height: 52px; width: auto; }
.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-logo-text span { color: var(--color-primary); }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 4px; height: 100%; }

.primary-nav > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.primary-nav > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > li.current-menu-ancestor > a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 210px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
  border-top: 3px solid var(--color-primary);
}

.primary-nav > li:hover > .sub-menu,
.primary-nav > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li a {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}
.primary-nav .sub-menu li:last-child a { border-bottom: none; }
.primary-nav .sub-menu li a:hover { background: var(--color-light); color: var(--color-primary); }

/* Has children arrow */
.primary-nav > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open state */
.nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  overflow-y: auto;
  align-items: flex-start;
  padding: 20px 0;
  gap: 0;
  height: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.70) 40%, rgba(0,0,0,0.25) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  max-width: 700px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span { color: var(--color-primary); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider controls */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.hero-dot.active { background: var(--color-primary); transform: scale(1.3); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 1.3rem;
}
.hero-arrow:hover { background: var(--color-primary); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* =============================================
   VEHICLE SEARCH BAR
   ============================================= */
.vehicle-search-bar {
  background: var(--color-dark-alt);
  padding: 22px 0;
}

.vehicle-search-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.vehicle-search-bar label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
}

.vehicle-search-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 11px 16px;
  border: 2px solid #444;
  background: #333;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.vehicle-search-bar input[type="text"]::placeholder { color: #888; }
.vehicle-search-bar input[type="text"]:focus { border-color: var(--color-primary); }

.vehicle-search-hint {
  color: #888;
  font-size: 0.8rem;
  width: 100%;
  margin-top: -8px;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-section { background: var(--color-white); }

.service-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--color-white);
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.service-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-mid);
  margin-bottom: 20px;
  line-height: 1.65;
}

.service-card .btn { font-size: 0.8rem; padding: 10px 22px; }

/* =============================================
   COMMERCIAL BANNER (full-width image CTA)
   ============================================= */
.commercial-banner {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.commercial-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
}

.commercial-banner .banner-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 600px;
}

.commercial-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* =============================================
   ABOUT / THREE COLUMNS
   ============================================= */
.about-section { background: var(--color-light); }

.about-col h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.about-col p { font-size: 0.92rem; color: var(--color-mid); margin-bottom: 18px; }

/* =============================================
   NEWS / BLOG POSTS
   ============================================= */
.news-section { background: var(--color-white); }

.post-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); }

.post-card-img {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }

.post-date-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.post-date-badge .day { font-size: 1.6rem; display: block; }

.post-card-body { padding: 22px; }

.post-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.3;
}
.post-card-body h4 a { color: var(--color-dark); }
.post-card-body h4 a:hover { color: var(--color-primary); }

.post-card-body p { font-size: 0.875rem; color: var(--color-mid); }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--color-primary);
  padding: 50px 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  background: var(--color-dark);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, transparent 60%);
  opacity: 0.15;
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 10px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #aaa;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb .sep::before { content: '›'; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-dark-alt);
  padding: 60px 0 0;
  color: #aaa;
}

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

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.footer-logo { height: 55px; margin-bottom: 18px; }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #333;
  color: #aaa;
  border-radius: 2px;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--color-primary); color: var(--color-white); }

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '›';
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1;
}
.footer-links a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--color-primary); }

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-content { padding: 60px 0; }

.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 28px;
  color: var(--color-dark);
}
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content p  { margin-bottom: 16px; color: var(--color-mid); line-height: 1.75; }
.entry-content strong { color: var(--color-dark); }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; color: var(--color-mid); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.contact-info .info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-info .info-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info .info-icon svg { width: 18px; height: 18px; fill: white; }

.contact-info .info-text { font-size: 0.9rem; color: var(--color-mid); }
.contact-info .info-text strong { display: block; color: var(--color-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-heading); margin-bottom: 3px; }

/* Forms */
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 16px;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--color-primary); }

.contact-form textarea,
.wpcf7-form textarea { min-height: 130px; resize: vertical; }

.wpcf7-submit,
.contact-form button[type="submit"] {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 13px 36px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.wpcf7-submit:hover,
.contact-form button[type="submit"]:hover { background: var(--color-primary-dk); }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section { background: var(--color-dark); padding: 70px 0; }

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.5;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.93rem;
  color: #ccc;
  line-height: 1.75;
  margin-top: 30px;
  margin-bottom: 18px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

/* =============================================
   BLOG / ARCHIVE
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-dark);
  transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Single post */
.single-post { max-width: 760px; margin: 0 auto; }
.post-meta { font-size: 0.85rem; color: #888; margin-bottom: 24px; }
.post-meta span + span::before { content: ' · '; }
.post-thumbnail { margin-bottom: 32px; }
.post-thumbnail img { width: 100%; }

/* =============================================
   MAP EMBED
   ============================================= */
.map-section { height: 380px; }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =============================================
   SKIP TO CONTENT
   ============================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =============================================
   RESPONSIVE — TABLET  (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero-title        { font-size: 2.6rem; }
  .hero-content      { padding: 0 50px; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .grid-4            { grid-template-columns: repeat(2, 1fr); }
  .primary-nav > li > a { padding: 0 12px; font-size: .85rem; }
}

/* =============================================
   MOBILE NAV DRAWER
   The nav slides in from the right as a full-height
   drawer. JS toggles .nav-open on <body>.
   ============================================= */

/* Overlay behind the open drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-open .nav-overlay {
  display: block;
  opacity: 1;
}

/* The drawer itself */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;           /* hidden off-screen */
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-white);
  z-index: 1001;
  overflow-y: auto;
  transition: right .32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
}
.nav-open .mobile-drawer { right: 0; }

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--color-dark);
  flex-shrink: 0;
}
.drawer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: .04em;
}
.drawer-logo span { color: var(--color-primary); }
.drawer-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition);
}
.drawer-close:hover { color: var(--color-primary); }

/* Drawer call strip */
.drawer-call {
  background: var(--color-primary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.drawer-call svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }
.drawer-call-text { color: #fff; font-size: .82rem; line-height: 1.3; }
.drawer-call-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: .04em;
}

/* Drawer nav items */
.drawer-nav { flex: 1; padding: 8px 0; }
.drawer-nav li { border-bottom: 1px solid var(--color-border); }
.drawer-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-dark);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.drawer-nav > li > a:hover,
.drawer-nav > li.current-menu-item > a { color: var(--color-primary); background: #fafafa; }

/* Sub-menu toggle chevron */
.drawer-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.drawer-chevron svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.drawer-nav li.open .drawer-chevron { transform: rotate(180deg); }

/* Drawer sub-menus */
.drawer-nav .sub-menu {
  display: none;
  background: #f8f8f8;
  padding: 4px 0;
}
.drawer-nav li.open > .sub-menu { display: block; }
.drawer-nav .sub-menu li { border-bottom: 1px solid #eee; }
.drawer-nav .sub-menu li:last-child { border-bottom: none; }
.drawer-nav .sub-menu a {
  display: block;
  padding: 12px 20px 12px 36px;
  font-size: .875rem;
  color: var(--color-mid);
  text-decoration: none;
  transition: color var(--transition);
}
.drawer-nav .sub-menu a:hover { color: var(--color-primary); }

/* Drawer footer social */
.drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.drawer-footer p { font-size: .78rem; color: #aaa; margin-bottom: 10px; text-align: center; }
.drawer-social { display: flex; justify-content: center; gap: 12px; }
.drawer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--color-dark); color: #aaa; border-radius: 2px;
  text-decoration: none; transition: background var(--transition), color var(--transition);
}
.drawer-social a svg { width: 18px; height: 18px; fill: currentColor; }
.drawer-social a:hover { background: var(--color-primary); color: #fff; }

/* =============================================
   RESPONSIVE — MOBILE  (≤768px)
   ============================================= */
@media (max-width: 768px) {
  :root { --header-h: 60px; --topbar-h: 36px; }

  /* Topbar: phone only, no tagline */
  .topbar-right  { display: none; }
  .topbar-left a + a { display: none; }   /* hide email, keep phone */
  .topbar { font-size: .8rem; }

  /* Header: logo left, hamburger right */
  .primary-nav { display: none; }          /* desktop nav hidden */
  .nav-toggle  { display: flex; }

  /* Hero */
  .hero-slider  { height: 100svh; max-height: 560px; min-height: 380px; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-title   { font-size: 1.9rem; line-height: 1.15; }
  .hero-subtitle { font-size: .9rem; max-width: 100%; }
  .hero-ctas    { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { text-align: center; padding: 14px 20px; font-size: .9rem; }
  .hero-arrow   { display: none; }          /* arrows too small on phones */
  .hero-dots    { bottom: 16px; }

  /* Sections */
  .section-pad    { padding: 44px 0; }
  .section-pad-sm { padding: 28px 0; }
  .section-title  { font-size: 1.55rem; }
  .container      { padding: 0 18px; }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; }
  .blog-grid  { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Service cards: horizontal layout on mobile */
  .service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 20px;
  }
  .service-card img,
  .service-card > div:first-child { /* icon wrapper */
    width: 56px; height: 56px;
    margin: 0;
    flex-shrink: 0;
  }
  .service-card .btn { margin-top: 12px; display: inline-block; font-size: .78rem; padding: 9px 18px; }

  /* Vehicle search */
  .vehicle-search-bar { padding: 16px 0; }
  .vehicle-search-bar .container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .vehicle-search-bar label { font-size: .88rem; }
  .vehicle-search-bar input[type="text"] { min-width: 0; }
  .vehicle-search-hint { font-size: .75rem; }

  /* Commercial banner */
  .commercial-banner { min-height: 240px; }
  .commercial-banner h2 { font-size: 1.7rem; }

  /* Post cards */
  .post-card-img { height: 180px; }

  /* CTA banner */
  .cta-banner h2 { font-size: 1.5rem; margin-bottom: 16px; }

  /* Page header */
  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 1.7rem; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer */
  .footer-bottom { font-size: .78rem; }

  /* Buttons */
  .btn { padding: 12px 24px; }
}

/* =============================================
   RESPONSIVE — SMALL PHONES  (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .hero-slider { max-height: 480px; }
  .hero-tagline { font-size: .75rem; letter-spacing: .15em; }
  .hero-title  { font-size: 1.65rem; }
  .section-title { font-size: 1.35rem; }
  .container { padding: 0 14px; }

  .page-header h1 { font-size: 1.4rem; }

  /* Make forms finger-friendly */
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea,
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form textarea { padding: 14px; font-size: 1rem; }

  .wpcf7-submit,
  .contact-form button[type="submit"] { width: 100%; padding: 15px; }

  /* Service card compact */
  .service-card { padding: 16px; gap: 12px; }
  .service-card img,
  .service-card > div:first-child { width: 46px; height: 46px; }
  .service-card h3 { font-size: 1rem; }

  /* Footer social bigger tap targets */
  .footer-social a { width: 44px; height: 44px; }
  .drawer-social a { width: 44px; height: 44px; }

  /* Pagination */
  .pagination a, .pagination span { width: 34px; height: 34px; font-size: .82rem; }
}

/* =============================================
   RESPONSIVE — TINY PHONES  (≤375px)
   ============================================= */
@media (max-width: 375px) {
  .hero-title  { font-size: 1.45rem; }
  .hero-ctas .btn { font-size: .82rem; padding: 13px 16px; }
  .section-title { font-size: 1.2rem; }
  .commercial-banner h2 { font-size: 1.4rem; }
  .cta-banner h2 { font-size: 1.25rem; }
  .topbar { font-size: .75rem; }
  .topbar-icon { width: 12px !important; height: 12px !important; }
}

/* =============================================
   FLOATING CALL BUTTON (mobile only)
   Shows bottom-right, links directly to phone.
   ============================================= */
.fab-call {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(200,34,42,.45);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: fab-pulse 2.8s ease-in-out infinite;
  transition: transform .2s ease, background .2s ease;
}
.fab-call:hover,
.fab-call:focus { transform: scale(1.08); background: var(--color-primary-dk); outline: none; }
.fab-call svg { width: 26px; height: 26px; fill: #fff; }

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(200,34,42,.45); }
  50%       { box-shadow: 0 4px 28px rgba(200,34,42,.75); }
}

@media (max-width: 768px) {
  .fab-call { display: flex; }
}

/* =============================================
   MOBILE NAV (hamburger open state — legacy
   kept for non-drawer fallback)
   ============================================= */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Prevent body scroll when drawer open */
body.nav-open { overflow: hidden; }

/* =============================================
   TOUCH / TAP TARGET IMPROVEMENTS
   ============================================= */
@media (hover: none) and (pointer: coarse) {
  /* Minimum 44px tap targets everywhere */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav > li > a { min-height: 44px; }
  .footer-links a { min-height: 40px; }
  .hero-dot { width: 14px; height: 14px; }

  /* Remove hover effects that look broken on touch */
  .service-card:hover { transform: none; box-shadow: none; }
  .post-card:hover .post-card-img img { transform: none; }
}

/* =============================================
   WORDPRESS CORE CLASSES
   ============================================= */
.alignleft  { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { margin: 0 auto 20px; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: #888; text-align: center; margin-top: 6px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* ==============================================
   SERVICE / POST PLACEHOLDERS & NOTICES
   ============================================= */
.service-icon-placeholder {
  width: 90px; height: 90px;
  background: var(--color-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  flex-shrink: 0;
}
.service-icon-placeholder svg { width: 40px; height: 40px; fill: var(--color-primary); }

.post-img-placeholder {
  width: 100%; height: 100%;
  background: var(--color-light);
  display: flex; align-items: center; justify-content: center;
}
.post-img-placeholder svg { width: 48px; height: 48px; fill: #ccc; }

.no-content-notice {
  text-align: center; color: #888;
  padding: 30px; grid-column: 1 / -1; font-size: .95rem;
}
.no-content-notice a { color: var(--color-primary); }

/* Mobile: service card icon sizes */
@media (max-width: 768px) {
  .service-icon-placeholder { width: 56px; height: 56px; margin: 0; }
  .service-icon-placeholder svg { width: 28px; height: 28px; }
}
