/* Base styles (mobile-first) */
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  background: #f6f7fb;
  color: #0e1320;
  scroll-behavior: smooth;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

section {
  padding: 40px 16px;
}

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
  color: #333;
}

/* Navigation */
nav {
  background: #fff;
  border-bottom: 1px solid #e9edf4;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 15px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, #0284c7);
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 16px;
  background: #fff;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1rem;
  color: #4b5563;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Story / Differentiators */
.story {
  background: #f9fafb;
  border-radius: 12px;
  padding: 40px 20px;
}

.differentiators .card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.differentiators .card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.differentiators h3 {
  margin: 8px 0;
  font-size: 18px;
}

/* How It Works */
.how-it-works ol.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  counter-reset: step;
}

.how-it-works ol.steps li {
  counter-increment: step;
  margin-bottom: 18px;
  padding-left: 36px;
  position: relative;
}

.how-it-works ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Trust Section */
.trust {
  text-align: center;
}

.trust .badges {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust .badges img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.trust .guarantee {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  color: #2563eb;
}

/* Features */
.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.features-list li {
  list-style: none;
  padding: 20px;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.features-list h3 {
  margin-bottom: 8px;
}

/* Testimonials */
.social-proof {
  background: #f9fafb;
  border-radius: 12px;
  padding: 40px 20px;
}

.testimonial-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.testimonial {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.testimonial .author {
  margin-top: 10px;
  font-size: 14px;
  color: #6a7282;
}

/* CTA */
.cta {
  text-align: center;
  background: #2563eb;
  color: #fff;
  padding: 60px 20px;
  border-radius: 12px;
}

.cta h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.cta p {
  margin-bottom: 24px;
  color: #e5e7eb;
}

.cta a {
  background: #fff;
  color: #2563eb;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.cta .urgency {
  margin-top: 12px;
  font-size: 14px;
  color: #b91c1c;
  font-weight: 600;
}

.guarantee {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #d1d5db;
}

/* Form */
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#form {
  scroll-margin-top: 73px; /* adjust this to match your nav height */
}

form {
  display: grid;
  gap: 16px;
}

form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form label {
  font-weight: 500;
  margin-bottom: 4px;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

form button:hover {
  background: #1e40af;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #2563eb;
}

.faq p {
  margin-top: 8px;
  color: #374151;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #6a7282;
}

/* Sticky CTA on Mobile */
@media (max-width: 768px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2563eb;
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 600;
    z-index: 999;
  }
  .sticky-cta a {
    color: #fff;
    text-decoration: none;
  }
}

/* --------------------
   Responsive Breakpoints
-------------------- */

/* Tablet ≥768px */
@media (min-width: 768px) {
  nav a {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .differentiators .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta h2 {
    font-size: 2rem;
  }
}

/* Desktop ≥1024px */
@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-text {
    flex: 1;
    max-width: 500px;
  }
  .hero-image {
    flex: 1;
  }

  .hero {
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .differentiators .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }

  .features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .cta {
    padding: 100px 40px;
  }

  .cta h2 {
    font-size: 2.4rem;
  }
}

/* --------------------
   Google Reviews Styles
-------------------- */

.google-reviews-container {
  margin: 30px 0;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.google-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-summary .stars {
  color: #fbbc04;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-summary .rating-text {
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease-in-out;
  padding: 0 40px;
}

.review-card {
  min-width: 100%;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.review-card .review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card .author-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eaed;
}

.review-card .author-info {
  flex: 1;
}

.review-card .author-name {
  font-weight: 600;
  font-size: 14px;
  color: #202124;
  margin: 0 0 2px 0;
}

.review-card .review-date {
  font-size: 12px;
  color: #5f6368;
}

.review-card .review-rating {
  color: #fbbc04;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.review-card .review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #202124;
  margin: 0;
}

.review-card .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #5f6368;
  margin-top: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #5f6368;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: #fff;
  color: #202124;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadce0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: #4285f4;
  width: 24px;
  border-radius: 4px;
}

.carousel-dot:hover {
  background: #5f6368;
}

.review-loading {
  text-align: center;
  padding: 40px 20px;
  color: #5f6368;
}

/* Tablet and Desktop: Show 3 reviews at once */
@media (min-width: 768px) {
  .reviews-track {
    padding: 0;
  }

  .review-card {
    min-width: calc((100% - 40px) / 3);
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

/* Mobile: Show 1 review at a time */
@media (max-width: 767px) {
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
