/* AllRiderz Website — Shared Styles */

:root {
  --brand-olive: #636B2F;
  --brand-olive-light: #7C8540;
  --brand-olive-dark: #4A5023;
  --cream: #F5F5F0;
  --white: #FFFFFF;
  --near-black: #1A1A1A;
  --gray-600: #4A4A4A;
  --gray-400: #9A9A9A;
  --gray-200: #E5E5E0;
  --gray-100: #F0F0ED;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--near-black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; }
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .container, .container-narrow { padding: 0 20px; }
}

/* Typography */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-olive);
  margin-bottom: 20px;
}
h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 8px;
}
.body-large { font-size: 19px; line-height: 1.55; color: var(--gray-600); }
.subhead { font-size: 19px; line-height: 1.55; color: var(--gray-600); margin-bottom: 40px; }
@media (max-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .body-large, .subhead { font-size: 17px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-olive);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 107, 47, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--brand-olive);
  border: 1.5px solid var(--brand-olive);
}
.btn-secondary:hover {
  background: var(--brand-olive);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--brand-olive);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-1px);
}
.btn-text {
  color: var(--brand-olive);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.btn-text:hover { gap: 10px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: 72px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 32px; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--gray-600); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--near-black); }
.nav-links a.active { font-weight: 600; }
.nav-cta .btn { height: 44px; font-size: 15px; }
.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--near-black);
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
}
@media (max-width: 600px) {
  .nav-cta .btn { height: 40px; padding: 0 16px; font-size: 14px; }
}

/* Email form */
.email-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin-bottom: 16px;
}
.email-form input {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  transition: border 0.2s;
}
.email-form input:focus {
  outline: none;
  border-color: var(--brand-olive);
  box-shadow: 0 0 0 3px rgba(99, 107, 47, 0.1);
}
.email-form-note { font-size: 14px; color: var(--gray-400); }
@media (max-width: 600px) {
  .email-form { flex-direction: column; }
}

/* Hero (generic) */
.hero {
  padding: 80px 0 120px;
  background: linear-gradient(180deg, var(--white) 0%, #FAFAF7 100%);
}
.hero-centered {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image-wrap { order: -1; }
}
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-600);
}
.trust-item svg { flex-shrink: 0; color: var(--brand-olive); }
.hero-image {
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #4A5023 0%, #7C8540 100%);
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-image-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.hero-image-badge-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--near-black);
}

/* Social proof strip */
.social-strip {
  padding: 48px 0;
  background: var(--cream);
  text-align: center;
}
.social-strip-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-bottom: 24px;
  font-weight: 600;
}
.social-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.5;
}
.social-logo {
  font-weight: 700;
  color: var(--gray-600);
  font-size: 18px;
  letter-spacing: 0.05em;
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
}
.step-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.step-card:hover {
  border-color: var(--brand-olive);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brand-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  font-family: 'DM Serif Display', serif;
}
.step-card p { color: var(--gray-600); }
.cta-center { text-align: center; margin-top: 48px; }

/* Detailed step (alternating two column) */
.step-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.step-detail:last-child { margin-bottom: 0; }
.step-detail.reverse .step-detail-text { order: 2; }
.step-detail.reverse .step-detail-image { order: 1; }
@media (max-width: 900px) {
  .step-detail { grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; }
  .step-detail.reverse .step-detail-text { order: 1; }
  .step-detail.reverse .step-detail-image { order: 2; }
}
.step-detail-image {
  aspect-ratio: 4/3;
  background: var(--cream);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gray-200);
}
.step-detail ul {
  list-style: none;
  margin-top: 24px;
}
.step-detail ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--gray-600);
  line-height: 1.55;
}
.step-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 2px;
  background: var(--brand-olive);
}

/* Values / feature grid */
.values-section { background: var(--cream); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.values-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) {
  .values-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
  .values-grid-4 { grid-template-columns: 1fr; }
}
.value-card {
  padding: 40px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.value-card-vertical {
  flex-direction: column;
  padding: 32px;
}
.value-card-vertical .value-icon { margin-bottom: 8px; }
@media (max-width: 500px) {
  .value-card { flex-direction: column; padding: 32px 24px; }
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-olive);
  flex-shrink: 0;
}
.value-card-vertical .value-icon { background: var(--white); border: 1px solid var(--gray-200); }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--gray-600); font-size: 16px; }

/* Service grid (3x3) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
}
.service-card:hover {
  border-color: var(--brand-olive);
  transform: translateY(-2px);
}
.service-emoji { font-size: 32px; margin-bottom: 12px; display: block; }
.service-card-title { font-weight: 600; font-size: 15px; color: var(--near-black); }

/* Featured mechanics */
.mechanics-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .mechanics-scroll {
    grid-template-columns: repeat(3, 280px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    gap: 16px;
  }
  .mechanic-card { scroll-snap-align: start; }
}
.mechanic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.mechanic-card:hover {
  border-color: var(--brand-olive);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.mechanic-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.mechanic-body { padding: 24px; }
.mechanic-name { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.mechanic-location { font-size: 14px; color: var(--gray-400); margin-bottom: 12px; }
.mechanic-rating {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px; font-size: 14px; color: var(--gray-600);
}
.mechanic-rating strong { color: var(--near-black); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 12px; padding: 4px 10px;
  background: var(--cream); color: var(--brand-olive);
  border-radius: 100px; font-weight: 500;
}
.mechanic-quote {
  font-size: 14px; color: var(--gray-600);
  font-style: italic; line-height: 1.5;
}

/* Testimonial */
.testimonial-section { background: var(--cream); }
.testimonial-card { max-width: 820px; margin: 0 auto; text-align: center; }
.testimonial-quote {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; line-height: 1.3;
  color: var(--near-black);
  margin-bottom: 32px; font-weight: 400;
}
@media (max-width: 600px) {
  .testimonial-quote { font-size: 24px; }
}
.testimonial-author {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-olive), var(--brand-olive-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 600; font-size: 18px;
}
.testimonial-meta { text-align: left; font-size: 15px; }
.testimonial-meta strong { display: block; color: var(--near-black); }
.testimonial-meta span { color: var(--gray-400); font-size: 14px; }

/* Provider banner (olive) */
.provider-section {
  background: var(--brand-olive);
  color: var(--white);
  padding: 100px 0;
}
.provider-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .provider-grid { grid-template-columns: 1fr; gap: 32px; }
}
.provider-section h2 { color: var(--white); }
.provider-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px; line-height: 1.55;
}
.provider-cta {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
}
.provider-cta .note {
  font-size: 14px; color: rgba(255, 255, 255, 0.7);
}

/* FAQ */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%; padding: 24px 0;
  background: none; border: none;
  font-family: inherit; font-size: 19px; font-weight: 600;
  color: var(--near-black); text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer;
}
.faq-question:hover { color: var(--brand-olive); }
.faq-icon { color: var(--brand-olive); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--gray-600); font-size: 17px; line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 0 24px 0;
}

/* Final CTA */
.final-cta { background: var(--cream); text-align: center; }
.final-cta-wrap { max-width: 680px; margin: 0 auto; }
.final-cta .email-form { margin: 32px auto 16px; }

/* Generic split layout (About page, etc.) */
.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
}
.split-image {
  aspect-ratio: 4/5;
  background: var(--cream);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) {
  .split-image { position: static; aspect-ratio: 16/10; }
}
.split-text p { color: var(--gray-600); margin-bottom: 20px; font-size: 18px; line-height: 1.7; }
.split-text p:first-child { color: var(--near-black); font-size: 22px; font-weight: 500; }
.split-text .signature {
  margin-top: 32px;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--brand-olive);
}

/* Beliefs grid */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .beliefs-grid { grid-template-columns: 1fr; }
}
.belief-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
}
.belief-card h3 { margin-bottom: 12px; }
.belief-card p { color: var(--gray-600); }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: center;
}
.contact-card:hover {
  border-color: var(--brand-olive);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.contact-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-olive);
  margin-bottom: 20px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--gray-600); margin-bottom: 16px; font-size: 15px; }
.contact-card a.email-link {
  color: var(--brand-olive);
  font-weight: 600;
  font-size: 15px;
}
.contact-card a.email-link:hover { text-decoration: underline; }

/* Generic contact/signup form */
.contact-form {
  max-width: 560px; margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}
@media (max-width: 600px) {
  .contact-form { padding: 28px 20px; }
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--near-black);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  transition: border 0.2s;
}
.form-field textarea {
  height: 140px;
  padding: 14px 16px;
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand-olive);
  box-shadow: 0 0 0 3px rgba(99, 107, 47, 0.1);
}
.form-field .btn { width: 100%; }

/* Pricing card */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px;
  background: var(--white);
  border: 2px solid var(--brand-olive);
  border-radius: 20px;
  text-align: center;
}
@media (max-width: 600px) {
  .pricing-card { padding: 32px 24px; }
}
.pricing-card h3 { font-size: 32px; margin-bottom: 12px; }
.pricing-card p.lead { color: var(--gray-600); margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--gray-600);
  font-size: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--brand-olive);
  font-weight: 700;
}

/* Page hero (for inner pages) */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
}
.page-hero .container-narrow { padding-top: 24px; }

/* Footer */
footer {
  background: var(--near-black);
  color: var(--white);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--brand-olive); }
.footer-col h4 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.8); font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-col .email-form {
  margin: 0;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}
.footer-col .email-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  height: 44px;
}
.footer-col .email-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-col .email-form .btn { height: 44px; }
.footer-col .sub-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-links { display: flex; gap: 24px; }

/* -----------------------------------------------------------------------------
   Live activity feed (homepage)
----------------------------------------------------------------------------- */
.live-feed-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: livePulse 2s infinite;
  vertical-align: 1px;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.live-feed {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.2s ease;
}
.feed-item:hover {
  border-color: var(--brand-olive);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.feed-avatar {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
}
.feed-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-olive);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.feed-body { flex: 1; min-width: 0; }
.feed-headline {
  font-size: 15px;
  color: var(--near-black);
  margin-bottom: 4px;
  line-height: 1.5;
}
.feed-service {
  color: var(--brand-olive);
  font-weight: 600;
}
.feed-summary {
  font-size: 14px;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.5;
}
.feed-meta {
  font-size: 13px;
  color: var(--gray-400);
}
@media (max-width: 600px) {
  .feed-item { padding: 16px; gap: 12px; }
  .feed-avatar { width: 40px; height: 40px; }
}

/* Support initials variant of mechanic card image (when Supabase provider has no avatar_url) */
.mechanic-image-initials {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--brand-olive) !important;
  color: var(--white);
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  letter-spacing: 2px;
}

/* -----------------------------------------------------------------------------
   Signup modal (post-submit coverage + waitlist capture)
----------------------------------------------------------------------------- */
body.signup-modal-open { overflow: hidden; }

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.signup-modal[hidden] { display: none; }

.signup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: signupFadeIn 0.2s ease-out;
}

.signup-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  animation: signupPanelIn 0.25s cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 500px) {
  .signup-modal-panel { padding: 40px 24px 28px; border-radius: 16px; }
}

@keyframes signupFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes signupPanelIn  {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.signup-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.signup-modal-close:hover {
  background: var(--gray-100);
  color: var(--near-black);
}

.signup-modal-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-olive);
  margin-bottom: 12px;
}
.signup-modal-panel h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--near-black);
}
.signup-modal-panel p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.signup-modal-panel p a { color: var(--brand-olive); font-weight: 600; }
.signup-modal-panel p a:hover { text-decoration: underline; }

.signup-modal-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 6px;
}
.signup-modal-form input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  transition: border 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}
.signup-modal-form input:focus {
  outline: none;
  border-color: var(--brand-olive);
  box-shadow: 0 0 0 3px rgba(99, 107, 47, 0.1);
}
.signup-modal-form .btn { width: 100%; }

.signup-modal-error {
  font-size: 14px;
  color: #b91c1c;
  margin-top: 12px;
  line-height: 1.5;
}

.signup-modal-skip {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--gray-400);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
}
.signup-modal-skip:hover { color: var(--near-black); }

.signup-modal-checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(99, 107, 47, 0.12);
  color: var(--brand-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
[data-step="success"] { text-align: center; }
[data-step="success"] .btn { margin-top: 8px; min-width: 160px; }

/* Submitting state for any top-level signup form */
form[data-signup] button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* ----------------------------------------------------------------------------
 * BLOG
 * ---------------------------------------------------------------------------- */

/* Index — grid of post cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: white;
  border: 1px solid var(--border, #e6e3dc);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20, 24, 28, 0.06);
  border-color: var(--brand-olive, #5e6b47);
}
.blog-card-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-olive, #5e6b47);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.blog-card p {
  color: var(--muted, #606468);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted, #606468);
  border-top: 1px solid var(--border, #e6e3dc);
  padding-top: 16px;
}
.blog-card-arrow { color: var(--brand-olive, #5e6b47); font-weight: 600; }

/* Post detail page */
.post-header {
  padding: 56px 0 40px;
  background: var(--cream, #f6f3ec);
  border-bottom: 1px solid var(--border, #e6e3dc);
}
.post-back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted, #606468);
  text-decoration: none;
  margin-bottom: 24px;
}
.post-back:hover { color: var(--brand-olive, #5e6b47); }
.post-header h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  margin: 12px 0 20px;
}
.post-excerpt {
  color: var(--muted, #606468);
  margin-bottom: 24px;
}
.post-meta {
  font-size: 14px;
  color: var(--muted, #606468);
  letter-spacing: 0.02em;
}

/* Post body — long-form prose */
.post-body { padding: 48px 0 24px; }
.post-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2c2d;
  margin: 0 0 20px;
}
.post-body h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 48px 0 16px;
}
.post-body h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
}
.post-body a {
  color: var(--brand-olive, #5e6b47);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Inline CTA */
.post-cta { padding: 32px 0 16px; }
.post-cta-card {
  background: var(--cream, #f6f3ec);
  border: 1px solid var(--border, #e6e3dc);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.post-cta-card h3 { margin: 0 0 8px; font-size: 22px; }
.post-cta-card p { margin: 0 0 20px; color: var(--muted, #606468); }

/* Prev / next */
.post-nav { padding: 32px 0 72px; }
.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border, #e6e3dc);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.post-nav-link:hover { border-color: var(--brand-olive, #5e6b47); }
.post-nav-link span { font-size: 13px; color: var(--muted, #606468); margin-bottom: 6px; }
.post-nav-link strong { font-size: 15px; line-height: 1.35; }
.post-nav-link.next { text-align: right; }

@media (max-width: 700px) {
  .post-nav-grid { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }
  .post-header { padding: 32px 0 24px; }
  .post-body { padding: 32px 0 16px; }
}
