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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: white;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

header img {
  height: 60px;
  max-width: 100%;
}

/* Main */
main {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

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

/* Service Cards */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  text-decoration: none;
  background-color: white;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: #003366;
  min-height: 140px;
  position: relative;
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.service-card:hover img,
.service-card:focus img {
  transform: scale(1.05);
}

.service-card span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Footer */
footer {
  background-color: #ffffff;
  color: #003366;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-content a {
  color: #003366;
  text-decoration: underline;
}

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

/* Add to Home Screen Banner */
.install-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background-color: #003366;
  color: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: bottom 0.3s ease;
  z-index: 1000;
}

.install-banner.show {
  bottom: 0;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.banner-text {
  font-size: 0.9rem;
  flex: 1;
}

.banner-dismiss {
  background: transparent;
  border: 2px solid white;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.banner-dismiss:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hide banner on desktop */
@media (min-width: 769px) {
  .install-banner {
    display: none;
  }
}