/* ===========================
   RESET & BASE STYLES
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===========================
   STICKY REQUEST DELIVERY BUTTON
   =========================== */

.stat-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  background-color: #facc15;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.4rem .75rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  outline: 4px solid #fef08a;
}

/* Desktop: move button to top right */
@media (min-width: 1024px) {
  .stat-button {
    top: 1rem;
    bottom: auto;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Responsive button sizing */
@media (min-width: 640px) {
  .stat-button {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

.stat-button:hover {
  background-color: #fde047;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}


/* ===========================
   HERO SECTION
   =========================== */

.hero {
  position: relative;
  height: 600px;
  background-image: url('https://moto-med.com/images/header_1920x600_v04.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2.5rem;    /* Reduced from 5rem (half) */
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;
}

/* Desktop: restore original hero spacing */
@media (min-width: 640px) {
  .hero-overlay {
    padding-top: 3rem;
  }
}

.logo-box {
  background-color: #b91c1c;
  padding: 0.5rem 2rem;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  margin: 0 1rem;
}

.logo-box {
  background-color: #b91c1c;
  padding: 0.5rem 2rem;
  border: 1px solid #b91c1c;
  border-radius: 1.0rem;
  margin: 0 1rem;
  box-shadow: inset 0 0 0 4px #b91c1c,   /* Red layer */
              inset 0 0 0 8px #fff;      /* Inner white border */
}

.logo-box h1 {
  color: #fff;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 0.05em;
}

.serving-area {
  color: #fde047;
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Responsive hero text */
@media (max-width: 640px) {
  .logo-box h1 {
    font-size: 2rem;
  }
  
  .serving-area {
    font-size: 1rem;
  }
}

/* ===========================
   MAIN SECTION
   =========================== */

.main-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

.main-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #b91c1c;
  margin-bottom: 1.5rem;
}

.main-section p {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .main-section h2 {
    font-size: 1.875rem;
  }
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-section {
  background-color: #fff;
  padding: 3rem 0;
}

.services-grid {
  display: grid;
  gap: 2rem;
  text-align: left;
}

.service-card {
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.service-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: #b91c1c;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================
   COMPLIANCE SECTION
   =========================== */

.compliance-section {
  background-color: #f3f4f6;
  padding: 3rem 0;
}

.compliance-section .container {
  text-align: center;
}

.compliance-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 1rem;
}

.compliance-text {
  max-width: 48rem;
  margin: 0 auto 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.sealed-info {
  font-weight: 500;
  color: #374151;
}

.compliance-text .highlight {
  font-weight: 600;
}

/* ===========================
   RESPONSE LEVELS SECTION
   =========================== */

.response-levels-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.response-levels-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b91c1c;
  text-align: center;
  margin-bottom: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
}

.response-table {
  width: 100%;
  min-width: 100%;
  text-align: center;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border-collapse: collapse;
}

.response-table thead {
  background-color: #e5e7eb;
}

.response-table th {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  font-weight: 600;
}

.response-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
}

.response-table .code-name {
  font-weight: 700;
}

/* Code Color Rows */
.code-red {
  background-color: #dc2626;
  color: #fff;
}

.code-orange {
  background-color: #f97316;
  color: #fff;
}

.code-yellow {
  background-color: #facc15;
  color: #000;
}

.code-green {
  background-color: #22c55e;
  color: #fff;
}

.code-blue {
  background-color: #3b82f6;
  color: #fff;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background-color: #b91c1c;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-contacts {
  margin-top: 1rem;
}

.footer-contacts p {
  margin: 0.5rem 0;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}
