/* ========================================
   East Sacto Auto Services
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #1a5632;
  --brand-light: #e8f5ee;
  --brand-dark: #0f3a20;
  --accent: #d4a017;
  --accent-light: #fef8e7;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-warm: #fafaf7;
  --bg-section: #f5f4f0;
  --border: #e5e4e0;
  --border-light: #eeede9;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', 'Inter', -apple-system, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-nav {
  padding: 8px 20px;
  font-size: 0.875rem;
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand);
  border-radius: var(--radius-sm);
}
.btn-nav:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff !important; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  font-family: var(--font-display);
}
.nav-logo:hover { color: var(--text); }
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
}
.logo-icon svg { width: 20px; height: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-section); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--bg-warm) 50%, var(--accent-light) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(26,86,50,.06) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(212,160,23,.06) 0%, transparent 50%);
}
.hero-inner { position: relative; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(26,86,50,.1);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; gap: 16px; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}
.stars svg { width: 18px; height: 18px; }

/* --- Trust Bar --- */
.trust-bar {
  padding: 0;
  margin-top: -1px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  border-right: 1px solid var(--border-light);
}
.trust-item:last-child { border-right: none; }
.trust-item svg {
  flex-shrink: 0;
  color: var(--brand);
}
.trust-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-header p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.05rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}

/* --- Services --- */
.services { background: var(--bg-section); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
  transform: translateY(-2px);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- About --- */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-content p:last-of-type { margin-bottom: 32px; }
.about-stats {
  display: flex;
  gap: 40px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.about-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 400px;
  background: linear-gradient(135deg, var(--brand-light), var(--bg-section));
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  color: var(--brand);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}
.about-image-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- Reviews --- */
.reviews { background: var(--bg-section); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-sm); }
.review-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.review-stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.review-stars svg { width: 18px; height: 18px; }
.review-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: normal;
}
.review-card cite {
  display: block;
  font-style: normal;
}
.review-card cite strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}
.review-card cite span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.reviews-cta {
  text-align: center;
  margin-top: 32px;
}

/* --- Hours & Location --- */
.hours-location { background: var(--bg); }
.hl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.hours-card, .location-card {
  padding: 40px;
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.hours-card h2, .location-card h2 { margin-bottom: 24px; }
.hours-table { margin-bottom: 16px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.today { background: var(--brand-light); margin: 0 -12px; padding: 12px; border-radius: var(--radius-sm); }
.hours-row.today .hours-day { font-weight: 700; color: var(--brand); }
.hours-row.closed .hours-time { color: var(--text-muted); }
.hours-day { font-weight: 600; font-size: 0.9rem; }
.hours-time { font-size: 0.85rem; color: var(--text-secondary); text-align: right; }
.hours-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

.map-embed { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; }
.location-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-style: normal;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.location-address svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.location-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.location-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
}

/* --- Contact --- */
.contact { background: var(--bg-section); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 12px; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
}
.contact-method:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--text); }
.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.contact-method strong { display: block; font-size: 1rem; }
.contact-method span { font-size: 0.85rem; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,86,50,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: var(--text);
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-display);
}
.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--brand);
}
.footer-brand .logo-icon svg { width: 16px; height: 16px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,.4); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); }
  .btn-nav { text-align: center; margin-top: 8px; }

  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }

  .section { padding: 60px 0; }

  .services-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { order: -1; }
  .about-image-placeholder { height: 250px; }

  .reviews-grid { grid-template-columns: 1fr; }

  .hl-grid { grid-template-columns: 1fr; gap: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; }
  .trust-item:last-child { border-bottom: none; }
  .about-stats { gap: 24px; }
  .stat-number { font-size: 1.75rem; }
  .hours-card, .location-card { padding: 24px; }
  .contact-form-wrap { padding: 24px; }
}
