/*
Theme Name: SMP Motorworks
Theme URI: https://www.smpmotorworks.com/
Author: SMP Motorworks
Description: Custom one-page theme for SMP Motorworks, an auto body shop in Staten Island, NY. Includes local SEO markup, click-to-call, and lead capture form.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: smp-motorworks
*/

:root {
  --primary: #1a2b4a;
  --accent: #d62828;
  --light: #f4f5f7;
  --gray: #6b7280;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { color: #222; line-height: 1.6; }

/* Top bar — phone always visible (click-to-call) */
.topbar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}
.topbar a { color: #fff; text-decoration: none; }

.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; }
.logo span { color: var(--accent); }
.nav nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.nav nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav nav a:hover { color: var(--accent); }
.nav nav .nav-cta {
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
}
.nav nav .nav-cta:hover { background: #b81f1f; color: #fff; }

.hero {
  background: linear-gradient(rgba(10,20,40,0.7), rgba(10,20,40,0.7)),
    url('https://images.unsplash.com/photo-1632823469850-1b7b1e8b7af3?auto=format&fit=crop&w=1600&q=60') center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; max-width: 850px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.2rem; margin-bottom: 12px; color: #e5e7eb; }
.hero .trust-line { font-size: 1rem; color: #fbbf24; font-weight: 600; margin-bottom: 28px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.btn:hover { background: #b81f1f; }
.btn-outline {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  margin-left: 12px;
}
.btn-outline:hover { background: #fff; color: var(--primary); }

/* Trust badges strip */
.badges {
  background: var(--light);
  border-bottom: 1px solid #e5e7eb;
}
.badges-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}
.badges-inner div::before { content: "✓ "; color: var(--accent); font-weight: 800; }

.smp-section { padding: 70px 20px; max-width: 1100px; margin: 0 auto; }
.smp-section h2, .full-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.subtitle { text-align: center; color: var(--gray); margin-bottom: 50px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--light);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 10px; color: var(--primary); }
.service-card p { color: var(--gray); font-size: 0.95rem; }

/* About */
.full-section { padding: 70px 20px; }
.about { background: var(--light); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-content img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 320px;
}
.about-content h2 { text-align: left; }
.about-content p { color: var(--gray); margin-bottom: 16px; }
.stats { display: flex; gap: 40px; margin-top: 24px; }
.stat h3 { font-size: 2rem; color: var(--accent); }
.stat p { font-size: 0.9rem; color: var(--gray); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Testimonials */
.testimonials { background: var(--primary); color: #fff; }
.testimonials h2 { color: #fff; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.08);
  padding: 26px;
  border-radius: 10px;
}
.testimonial-card .stars { color: #fbbf24; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card p.quote { font-style: italic; margin-bottom: 14px; }
.testimonial-card p.name { font-weight: 700; color: var(--accent); }
.review-cta { text-align: center; margin-top: 36px; }
.review-cta a { color: #fbbf24; font-weight: 700; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 22px 0;
}
.faq-item h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; }
.faq-item p { color: var(--gray); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info p { margin-bottom: 14px; color: var(--gray); }
.contact-info strong { color: var(--primary); }
.contact-info a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-info .map {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  border: 0;
  margin-top: 20px;
}
.contact-grid form { display: flex; flex-direction: column; gap: 14px; }
.contact-grid input, .contact-grid select, .contact-grid textarea {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.contact-grid textarea { resize: vertical; min-height: 110px; }
.contact-grid form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.contact-grid form button:hover { background: #b81f1f; }
.form-note { font-size: 0.85rem; color: var(--gray); text-align: center; }

.site-footer {
  background: var(--primary);
  color: #cbd5e1;
  padding: 40px 20px 24px;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 24px;
}
.site-footer h4 { color: #fff; margin-bottom: 10px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; max-width: 1100px; margin: 0 auto; }

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
}
.mobile-call-bar a {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
}
.mobile-call-bar .call { background: var(--accent); }
.mobile-call-bar .estimate { background: var(--primary); }

/* Page-builder content area (Elementor renders inside this) */
.smp-page-content { min-height: 40vh; }
.smp-full-width { width: 100%; }

/* Hide WordPress admin bar overlap fix */
body.admin-bar .site-header { top: 32px; }

@media (max-width: 768px) {
  .nav nav ul { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 70px 20px; }
  .about-content, .contact-grid { grid-template-columns: 1fr; }
  .about-content img { height: 220px; }
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 52px; }
  body.admin-bar .site-header { top: 0; }
}
