/*
Theme Name: Wabash Detail Co
Theme URI: https://wabashdetailco.com
Author: Wabash Detail Co
Description: Custom SEO & GEO-optimized WordPress theme for Wabash Detail Co — mobile detailing in West Lafayette & Lafayette, IN.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: wabash-detail-co
*/

/* =========================================================
   BRAND COLORS (from Wabash Detail Co logo)
   Primary Blue:  #2563eb  (royal blue — W icon mid-tone)
   Brand Navy:    #1e3a8a  (deep navy — wordmark & gradient base)
   Bright Blue:   #3b82f6  (lighter highlight)
   Light Tint:    #eff6ff  (backgrounds, cards)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: #1a1a1a; background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: #0f172a; }
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.5rem,3.5vw,2.4rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.6rem); }
p  { margin-bottom: 1rem; }

/* LAYOUT */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 80px 0; }
.section--gray { background: #f7f8fa; }
.section--dark { background: #0f172a; color: #fff; }
.section--dark h2,.section--dark h3 { color: #fff; }
.text-center { text-align: center; }
.text-white  { color: #fff; }

/* BUTTONS */
.btn { display: inline-block; padding: 0.85rem 2rem; border-radius: 6px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s,transform 0.15s; border: none; }
.btn--primary { background: #2563eb; color: #fff; }
.btn--primary:hover { background: #1d4ed8; transform: translateY(-1px); text-decoration: none; }
.btn--outline { background: transparent; color: #2563eb; border: 2px solid #2563eb; }
.btn--outline:hover { background: #2563eb; color: #fff; text-decoration: none; }
.btn--white { background: #fff; color: #2563eb; }
.btn--white:hover { background: #eff6ff; text-decoration: none; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-logo { font-size: 1.3rem; font-weight: 800; color: #0f172a; text-decoration: none; }
.site-logo span { color: #2563eb; }
.site-nav ul { display: flex; gap: 2rem; align-items: center; }
.site-nav a { color: #1a1a1a; font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.site-nav a:hover { color: #2563eb; text-decoration: none; }
.site-nav .btn { padding: 0.55rem 1.4rem; font-size: 0.9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: #0f172a; transition: transform 0.25s; }

/* HERO */
.hero { background: linear-gradient(135deg, #0f172a 55%, #1e3a8a 100%); color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: url('assets/hero-bg.jpg') center/cover no-repeat; opacity: 0.15; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero__badge { display: inline-block; background: rgba(37,99,235,0.25); border: 1px solid #2563eb; color: #93c5fd; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 100px; margin-bottom: 1.2rem; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; color: #bfdbfe; max-width: 580px; margin-bottom: 2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust { margin-top: 3rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero__trust-item { display: flex; align-items: center; gap: 0.5rem; color: #bfdbfe; font-size: 0.9rem; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 2rem; transition: box-shadow 0.2s,transform 0.2s; }
.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }
.service-card__icon { width: 52px; height: 52px; background: #eff6ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; }
.service-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.service-card p  { color: #555; font-size: 0.95rem; margin-bottom: 0; }

/* TRUST / STATS */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2rem; margin-top: 3rem; text-align: center; }
.trust-item__number { font-size: 2.8rem; font-weight: 800; color: #2563eb; line-height: 1; }
.trust-item__label { color: #555; font-size: 0.95rem; margin-top: 0.25rem; }

/* FAQ */
.faq-list { margin-top: 2.5rem; max-width: 780px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 1.2rem 0; }
.faq-item summary { font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: #2563eb; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-top: 0.75rem; color: #444; font-size: 0.97rem; margin-bottom: 0; }

/* SERVICE AREA BANNER */
.area-banner { background: #2563eb; color: #fff; padding: 50px 0; text-align: center; }
.area-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.area-banner p  { color: #bfdbfe; max-width: 600px; margin: 0 auto 1.5rem; }

/* REVIEWS */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.review-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; }
.review-card__stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-card p { color: #444; font-style: italic; margin-bottom: 1rem; }
.review-card__author { font-weight: 600; font-size: 0.9rem; color: #0f172a; }
.review-card__location { font-size: 0.82rem; color: #888; }

/* PACKAGES */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.75rem; margin-top: 3rem; }
.package-card { border: 2px solid #e5e7eb; border-radius: 14px; padding: 2rem; position: relative; transition: border-color 0.2s,box-shadow 0.2s; }
.package-card--featured { border-color: #2563eb; box-shadow: 0 8px 32px rgba(37,99,235,0.14); }
.package-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #2563eb; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 1rem; border-radius: 100px; white-space: nowrap; }
.package-card h3 { margin-bottom: 0.4rem; }
.package-card__price { font-size: 2.2rem; font-weight: 800; color: #2563eb; margin: 0.75rem 0; }
.package-card__price span { font-size: 1rem; font-weight: 400; color: #888; }
.package-card ul { margin: 1rem 0 1.5rem; }
.package-card ul li { padding: 0.35rem 0; color: #444; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.package-card ul li::before { content: '✓'; color: #2563eb; font-weight: 700; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.contact-form input,.contact-form textarea,.contact-form select { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 0.97rem; font-family: inherit; margin-bottom: 1rem; transition: border-color 0.15s; background: #fff; }
.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; color: #333; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info-item__icon { width: 42px; height: 42px; background: #eff6ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.contact-info-item__text strong { display: block; font-size: 0.88rem; color: #888; margin-bottom: 0.1rem; }

/* ABOUT */
.about-hero { background: #f7f8fa; padding: 80px 0; }
.about-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-hero img { border-radius: 14px; }
.credentials-list { margin-top: 1.5rem; }
.credentials-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #e5e7eb; font-size: 0.97rem; }
.credentials-list li::before { content: '✓'; color: #2563eb; font-weight: 700; font-size: 1.1rem; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; padding: 70px 0 60px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p   { color: #bfdbfe; max-width: 550px; margin: 0 auto; }

/* FOOTER */
.site-footer { background: #0f172a; color: #9ca3af; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .site-logo { color: #fff; display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #9ca3af; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-nav ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 1rem; }
  .site-nav ul.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header .container { position: relative; }
  .hero { padding: 70px 0 60px; }
  .hero__ctas { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-hero .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .packages-grid,.services-grid,.reviews-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   INLINE BOOKING FORM (dark section)
   ========================================================= */
.booking-form-inline input,
.booking-form-inline select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #374151;
  border-radius: 8px;
  font-size: 0.97rem;
  font-family: inherit;
  background: #1f2937;
  color: #fff;
  transition: border-color 0.15s;
}
.booking-form-inline input::placeholder { color: #6b7280; }
.booking-form-inline input:focus,
.booking-form-inline select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.booking-form-inline label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: #d1d5db;
}
.booking-form-inline select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  color: #9ca3af;
}
.booking-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.booking-field { display: flex; flex-direction: column; }

/* Service checkboxes grid */
.booking-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.booking-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.2rem 0;
  background: transparent;
  border: none;
}
.booking-checkbox:hover {
  opacity: 0.8;
}
.booking-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.booking-checkbox input[type="checkbox"]:checked + span {
  color: #fff;
  font-weight: 600;
}
.booking-checkbox:has(input:checked) {
  opacity: 1;
}

@media (max-width: 600px) {
  .booking-row { grid-template-columns: 1fr; }
  .booking-checkboxes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .booking-checkboxes { grid-template-columns: 1fr; }
}
