/* ============================================================
   Auto Planet Wheels – Global Stylesheet
   Fixes: spacing, mobile responsiveness, layout consistency
   ============================================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; overflow-x: hidden; }

/* Material Symbols render fix */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* === RESPONSIVE CONTAINER === */
.apw-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 640px)  { .apw-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .apw-container { padding-left: 32px; padding-right: 32px; } }

/* === NAVIGATION === */
nav.site-nav { position: fixed; top: 0; width: 100%; z-index: 50; }
nav.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 16px;
  max-width: 1200px;
  margin: auto;
}
@media (min-width: 768px) { nav.site-nav .nav-inner { height: 80px; padding: 0 32px; } }

/* === HERO SECTION — Mobile === */
@media (max-width: 767px) {
  section.service-hero { height: auto !important; min-height: 380px; padding: 100px 16px 40px; }
  section.service-hero .hero-content { padding: 0; }
  section.service-hero h1 { font-size: 1.75rem !important; line-height: 1.25; }
  section.service-hero p { font-size: 0.875rem; }
  section.service-hero .hero-ctas { flex-direction: column; gap: 12px; }
  section.service-hero .hero-ctas a { width: 100%; justify-content: center; }
}

/* === TRUST BADGE STRIP — Fix negative margin on mobile === */
.trust-badge-strip {
  margin-top: 0;
}
@media (min-width: 768px) { .trust-badge-strip { margin-top: -32px; } }

/* === TWO-COLUMN SERVICE LAYOUT === */
@media (max-width: 767px) {
  .service-two-col { grid-template-columns: 1fr !important; }
  .service-sidebar { position: static !important; }
}

/* === HOMEPAGE HERO FORM === */
.hero-form input,
.hero-form select {
  border: 1px solid #e2e8f0 !important;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.hero-form input:focus,
.hero-form select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* === FOOTER === */
.site-footer { background: #f8fafc; border-top: 1px solid #e2e8f0; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 16px;
  max-width: 1200px;
  margin: auto;
}
@media (min-width: 640px)  { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); padding: 56px 24px; } }
@media (min-width: 1024px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; padding: 64px 32px; } }

.site-footer .footer-copy {
  border-top: 1px solid #e2e8f0;
  padding: 20px 16px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer .footer-copy {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 32px;
  }
}

/* === BLOG / GALLERY CARDS === */
@media (max-width: 639px) {
  .blog-grid, .gallery-grid { grid-template-columns: 1fr !important; }
}

/* === BUTTONS === */
.btn-hover { transition: all 0.25s ease; }
.btn-hover:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-hover:active { transform: scale(0.97); }

/* === FLOATING WA BUTTON === */
#floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
#floating-wa:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
#floating-wa .material-symbols-outlined { font-size: 28px; color: #fff; }

/* === MOBILE NAV OVERLAY === */
#mobile-menu { overflow-y: auto; }
#mobile-menu nav a, #mobile-menu nav div { font-size: 1rem; }

/* === TOAST NOTIFICATION === */
#apw-toast {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #001b3d;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}
#apw-toast.show { transform: translateY(0); opacity: 1; }
#apw-toast .material-symbols-outlined { color: #25D366; }

/* === SECTION SPACING FIX === */
@media (max-width: 767px) {
  section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .max-w-\[1200px\] { padding-left: 16px !important; padding-right: 16px !important; }
  .px-8 { padding-left: 16px !important; padding-right: 16px !important; }
  .gap-12 { gap: 32px !important; }
  .gap-16 { gap: 40px !important; }
  h1, .text-5xl, .text-4xl { font-size: 1.875rem !important; }
  h2, .text-h2 { font-size: 1.5rem !important; }
}

/* Ensure images don't overflow on mobile */
img { max-width: 100%; height: auto; }

/* Fix -mt-10 feature strip on mobile */
@media (max-width: 767px) {
  .-mt-10 { margin-top: 0 !important; }
  .mx-8 { margin-left: 0 !important; margin-right: 0 !important; border-radius: 0 !important; }
}
