/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
  min-height: 100vh;
}

/* Header */
header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #1e3c72;
}

header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: #2a5298;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-logo {
    height: 50px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header h2 {
    font-size: 1rem;
  }
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
}

nav ul li {
  margin-right: 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

.store-buttons {
  display: flex;
  align-items: center;
  gap: 12px; /* space between logos */
}

.store-buttons a {
  text-decoration: none;
  border: 0;
  outline: 0;
  line-height: 0; /* kills any baseline/descender space */
  font-size: 0; /* kills any whitespace text-node width */
}

.store-buttons a img {
  display: block; /* kills baseline gap */
  border: 0;
  height: 50px; /* optional: unify size */
}

/* Image Container */
.image-container {
  display: block;
  text-align: center; /* centers image horizontally */
  margin: 2rem auto; /* adds nice vertical spacing */
}

.image-container img {
  max-width: 100%; /* makes image responsive */
  height: auto; /* preserves aspect ratio */
  display: inline-block; /* ensures proper centering */
}

/* Hero Section - Why You Need RideKey */
.hero-section {
  background: linear-gradient(135deg, #e64a19 0%, #d84315 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-section h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 400;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  min-width: 0; /* fix Safari/WebKit CSS Grid min-width auto bug */
}

.hero-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.hero-image-card img {
  width: 100%;
  max-width: 100%; /* belt-and-suspenders for Safari */
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-caption {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #d32f2f;
  text-shadow: none;
}

.hero-cta {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

.hero-cta h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta p {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0;
  opacity: 0.95;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }

  .hero-section h2 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .hero-image-card {
    padding: 1rem;
  }

  .hero-caption {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 1.25rem 1.5rem;
  }

  .hero-cta h3 {
    font-size: 1.4rem;
  }

  .hero-cta p {
    font-size: 1rem;
  }
}

/* Sections */
section {
  padding: 2.5rem;
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

section h2 {
  color: #1e3c72;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #2a5298;
  padding-bottom: 0.5rem;
}

section p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #555;
}

section ul,
section ol {
  padding-left: 1.5rem;
}

section li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: #555;
}

section ul li::marker {
  color: #2a5298;
  font-weight: bold;
}

section ol li::marker {
  color: #2a5298;
  font-weight: bold;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  font-family: inherit;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #2a5298;
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  border: none;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

form button:active {
  transform: translateY(0);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  margin-top: 3rem;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Coming Soon State for App Store Buttons */
.store-buttons a.coming-soon {
  position: relative;
  pointer-events: none;
  cursor: default;
}

.store-buttons a.coming-soon img {
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
}

.store-buttons a.coming-soon::after {
  content: "Coming Soon";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 60, 114, 0.95);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
