/*
Theme Name: SG Truck Repair
Theme URI: https://sgtruckrepair.com
Author: SG Truck Repair
Author URI: https://sgtruckrepair.com
Description: Custom WordPress theme for SG Truck Repair — 24/7 Semi Truck & Trailer Repair in Lancaster, TX. SEO-optimized, mobile-responsive, fast-loading.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sg-truck-repair
Tags: one-column, custom-logo, full-width-template
*/

/* ─── CSS RESET & VARIABLES ─── */
:root {
  --sg-black: #0A0A0A;
  --sg-dark: #141414;
  --sg-charcoal: #1C1C1E;
  --sg-steel: #2A2A2E;
  --sg-orange: #FF6A00;
  --sg-orange-dark: #E05E00;
  --sg-orange-glow: #FF8C33;
  --sg-yellow: #FFB800;
  --sg-white: #F5F5F0;
  --sg-gray: #8A8A8A;
  --sg-light-gray: #CCCCCC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--sg-black);
  color: var(--sg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── TOPBAR ─── */
.topbar {
  background: var(--sg-orange);
  color: var(--sg-black);
  padding: 8px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.topbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.topbar svg { flex-shrink: 0; }
.topbar a { color: inherit; text-decoration: underline; font-weight: 700; }

/* ─── HEADER ─── */
.site-header {
  background: var(--sg-dark);
  border-bottom: 3px solid var(--sg-orange);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon {
  width: 52px; height: 52px;
  background: var(--sg-orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--sg-black);
  letter-spacing: 1px;
}
.logo-text h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--sg-white);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
}
.logo-text span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  color: var(--sg-orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: var(--sg-light-gray);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--sg-white); background: rgba(255,106,0,0.15); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sg-orange);
  color: var(--sg-black);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.header-cta:hover { background: var(--sg-orange-glow); transform: translateY(-1px); }

/* ─── MOBILE MENU ─── */
.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--sg-steel);
  color: var(--sg-white);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sg-black) 0%, #1a1000 50%, var(--sg-black) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,106,0,0.03) 40px, rgba(255,106,0,0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,106,0,0.03) 40px, rgba(255,106,0,0.03) 41px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,106,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,106,0,0.15);
  border: 1px solid rgba(255,106,0,0.4);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease;
}
.hero-badge .pulse {
  width: 10px; height: 10px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-badge span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sg-orange-glow);
}

.hero h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 8px;
  animation: fadeInUp 0.6s ease 0.15s both;
}
.hero h2 .highlight {
  color: var(--sg-orange);
  position: relative;
  display: inline-block;
}
.hero h2 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sg-orange);
  opacity: 0.4;
}
.hero-sub {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  color: var(--sg-gray);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero p.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--sg-light-gray);
  max-width: 580px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.45s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.6s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sg-orange);
  color: var(--sg-black);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--sg-orange-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,106,0,0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--sg-white);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--sg-steel);
  transition: all 0.25s;
}
.btn-secondary:hover {
  border-color: var(--sg-orange);
  color: var(--sg-orange);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--sg-dark);
  border-top: 1px solid var(--sg-steel);
  border-bottom: 1px solid var(--sg-steel);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--sg-steel);
}
.trust-item:last-child { border-right: none; }
.trust-number {
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--sg-orange);
  line-height: 1;
  margin-bottom: 4px;
}
.trust-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sg-gray);
  font-weight: 600;
}

/* ─── SECTIONS ─── */
section { padding: 80px 0; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--sg-orange);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--sg-gray);
  max-width: 600px;
  line-height: 1.6;
}

/* ─── SERVICES ─── */
.services { background: var(--sg-black); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  background: var(--sg-dark);
  border: 1px solid var(--sg-steel);
  border-radius: 6px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sg-orange);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(255,106,0,0.3);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(255,106,0,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--sg-orange);
}
.service-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 15px;
  color: var(--sg-gray);
  line-height: 1.6;
}

/* ─── WHY US ─── */
.why-us { background: var(--sg-dark); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.why-features { display: flex; flex-direction: column; gap: 24px; }
.why-feature { display: flex; gap: 18px; align-items: flex-start; }
.why-feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(255,106,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-orange);
  margin-top: 2px;
}
.why-feature h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.why-feature p { font-size: 15px; color: var(--sg-gray); line-height: 1.5; }

.why-cta-box {
  background: var(--sg-charcoal);
  border: 2px solid var(--sg-orange);
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
}
.why-cta-box .emergency-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sg-orange);
  font-weight: 700;
  margin-bottom: 12px;
}
.why-cta-box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.why-cta-box p { color: var(--sg-gray); margin-bottom: 28px; font-size: 16px; line-height: 1.5; }
.phone-big {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--sg-orange);
  text-decoration: none;
  margin-bottom: 24px;
  letter-spacing: 2px;
  transition: color 0.2s;
}
.phone-big:hover { color: var(--sg-orange-glow); }

/* ─── BRANDS ─── */
.brands {
  background: var(--sg-black);
  border-top: 1px solid var(--sg-steel);
  border-bottom: 1px solid var(--sg-steel);
  padding: 48px 0;
  text-align: center;
}
.brands .section-label { margin-bottom: 28px; }
.brand-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.brand-tag {
  background: var(--sg-dark);
  border: 1px solid var(--sg-steel);
  padding: 10px 22px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sg-light-gray);
  transition: all 0.2s;
}
.brand-tag:hover { border-color: var(--sg-orange); color: var(--sg-orange); }

/* ─── AREAS ─── */
.areas { background: var(--sg-dark); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.area-item {
  background: var(--sg-charcoal);
  border: 1px solid var(--sg-steel);
  padding: 16px 20px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.2s;
}
.area-item:hover { border-color: var(--sg-orange); color: var(--sg-orange); }
.area-item .pin { color: var(--sg-orange); margin-right: 6px; }

/* ─── FAQ ─── */
.faq { background: var(--sg-black); }
.faq-list { margin-top: 40px; max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--sg-steel); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sg-white);
}
.faq-question:hover { color: var(--sg-orange); }
.faq-question .arrow {
  font-size: 22px;
  color: var(--sg-orange);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question .arrow { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding-bottom: 24px;
  font-size: 16px;
  color: var(--sg-gray);
  line-height: 1.7;
}
.faq-answer a { color: var(--sg-orange); }

/* ─── CTA ─── */
.cta-section {
  background: linear-gradient(135deg, var(--sg-orange-dark) 0%, var(--sg-orange) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(0,0,0,0.05) 20px, rgba(0,0,0,0.05) 40px);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sg-black);
  line-height: 1.1;
  margin-bottom: 12px;
}
.cta-section p { font-size: 18px; color: rgba(0,0,0,0.7); margin-bottom: 32px; }
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sg-black);
  color: var(--sg-orange);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  padding: 20px 44px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.25s;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* ─── MAP ─── */
.map-section { background: var(--sg-dark); padding: 0; }
.map-wrapper { display: grid; grid-template-columns: 1fr 1fr; }
.map-info {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.info-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.info-row svg { color: var(--sg-orange); flex-shrink: 0; margin-top: 2px; }
.info-row p { font-size: 16px; line-height: 1.5; }
.info-row a { color: var(--sg-orange); text-decoration: none; font-weight: 600; }
.info-row a:hover { text-decoration: underline; }
.map-embed { min-height: 420px; background: var(--sg-charcoal); }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--sg-black);
  border-top: 1px solid var(--sg-steel);
  padding: 48px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.footer-brand p { color: var(--sg-gray); font-size: 14px; max-width: 340px; line-height: 1.6; }
.footer-links h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sg-orange);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  color: var(--sg-gray);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sg-orange); }
.footer-bottom {
  border-top: 1px solid var(--sg-steel);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--sg-gray);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-wrapper { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--sg-steel); }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--sg-dark);
    padding: 16px 0;
    order: 10;
  }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--sg-steel); }
  .trust-item:last-child { border-bottom: none; }
  .hero { min-height: 70vh; }
  .map-info { padding: 40px 24px; }
  .phone-big { font-size: 32px; }
  .why-cta-box { padding: 32px 24px; }
}
