/*
Theme Name: Zach's Automotive
Theme URI: https://zachs-automotive.com
Author: Zach's Automotive
Author URI: https://zachs-automotive.com
Description: Custom WordPress theme for Zach's Automotive — a locally owned auto repair shop in Milton, FL. Features a bold, dark industrial design with sections for services, reviews, and contact info.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zachs-automotive
Tags: automotive, business, dark, one-page, custom-colors, custom-logo, responsive-layout
*/

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

:root {
  --red:          #C0392B;
  --red-dark:     #96281B;
  --red-light:    #E74C3C;
  --charcoal:     #1A1A1A;
  --dark:         #111111;
  --mid:          #2C2C2C;
  --steel:        #3D3D3D;
  --silver:       #7F8C8D;
  --light-silver: #BDC3C7;
  --white:        #FFFFFF;
  --gold:         #D4A017;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.section-sub {
  color: var(--silver);
  font-size: 1rem;
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 2rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192,57,43,0.3);
  height: 70px;
}

#site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
}

.site-logo span { color: var(--red); }

.site-logo img {
  height: 44px;
  width: auto;
}

#primary-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

#primary-navigation a {
  color: var(--light-silver);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

#primary-navigation a:hover { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: 3px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--red-light) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.4) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.5);
  color: var(--red-light);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge .star { color: var(--gold); }

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--light-silver);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-silver);
}

.trust-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

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

.services-header { margin-bottom: 4rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.06);
}

.service-card {
  background: var(--charcoal);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.2s;
  transform-origin: bottom;
}

.service-card:hover { background: var(--mid); }
.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(192,57,43,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

.service-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  transition: color 0.2s;
}

.service-link:hover { color: var(--red-light); }

.services-footer { margin-top: 3rem; text-align: center; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--red-dark);
  padding: 3rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ============================================================
   WHY / ABOUT
   ============================================================ */
.why-section { background: var(--dark); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-image-wrap { position: relative; }

.why-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  filter: brightness(0.85);
}

.why-stat {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--red);
  padding: 1.5rem 2rem;
  border-radius: 3px;
  text-align: center;
}

.why-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 1;
  display: block;
}

.why-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.why-features { margin-top: 2.5rem; }

.why-feature {
  border-left: 2px solid rgba(192,57,43,0.3);
  padding: 1.2rem 0 1.2rem 1.5rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.why-feature:hover { border-color: var(--red); }

.why-feature h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.why-feature p {
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section { background: var(--charcoal); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2rem;
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.review-text {
  color: var(--light-silver);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.review-author {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-date {
  font-size: 0.8rem;
  color: var(--silver);
  margin-top: 0.2rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner p {
  color: var(--silver);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT / FOOTER INFO
   ============================================================ */
.contact-section {
  background: var(--dark);
  padding: 5rem 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

.contact-brand .brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.contact-brand .brand-name span { color: var(--red); }

.contact-brand p {
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}

.contact-col ul li {
  color: var(--silver);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.contact-col ul li a {
  color: var(--silver);
  transition: color 0.2s;
}

.contact-col ul li a:hover { color: var(--white); }

.hours-label {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}

/* ============================================================
   FOOTER BAR
   ============================================================ */
#site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 2rem;
}

.footer-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#site-footer p {
  color: var(--steel);
  font-size: 0.8rem;
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; }
  .why-image-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #primary-navigation { display: none; }
  #primary-navigation.is-open { display: block; }
  #primary-navigation.is-open ul {
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(17,17,17,0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(192,57,43,0.3);
  }
  .menu-toggle { display: block; }
}

@media (max-width: 640px) {
  #site-header .header-inner { padding: 0 1rem; }
  section { padding: 4rem 1rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-bar-inner { flex-direction: column; text-align: center; }
}
