@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* ===============================
   GLOBAL
   =============================== */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #1f2937;

  /* ✅ FIXED BACKGROUND — replace with your new image filename */
  background-image: url("Website.jpg.jpeg");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  background-attachment: scroll;
}

/* ===============================
   HEADER
   =============================== */

.header {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: white;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.header nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.header nav a:hover {
  opacity: 1;
}

/* ===============================
   HERO
   =============================== */

.hero {
  text-align: center;
  padding: 70px 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  opacity: 0.85;
}

.hero-buttons {
  margin-top: 25px;
}

.hero-buttons button {
  padding: 14px 22px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin: 8px;
}

.primary {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: white;
}

.secondary {
  background: white;
  color: #1d4ed8;
  border: 1px solid #1d4ed8;
}

/* ===============================
   SECTIONS
   =============================== */

.section {
  padding: 40px 30px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* ===============================
   FEATURED ISSUES
   =============================== */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.featured {
  height: 120px;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  font-size: 20px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.featured:hover {
  transform: scale(1.03);
}

/* Colors */
.water { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.road { background: linear-gradient(135deg, #334155, #0f172a); }
.garbage { background: linear-gradient(135deg, #16a34a, #166534); }
.police { background: linear-gradient(135deg, #7c3aed, #4c1d95); }

/* ===============================
   ICON SHADOW EFFECT
   =============================== */

.featured .bg-icon {
  position: absolute;
  font-size: 90px;
  opacity: 0.15;
  right: 15px;
  bottom: -10px;
}

/* ===============================
   ALL CITY ISSUES GRID
   =============================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  padding: 20px;
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: 0.25s ease;
  font-weight: 600;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  margin-top: 50px;
  text-align: center;
  padding: 22px;
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* ===============================
   FORMS
   =============================== */

.form-card {
  max-width: 520px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-card input,
.form-card select,
.form-card textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
}

/* ===============================
   BUTTONS
   =============================== */

.primary.full {
  padding: 18px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}

.danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
}

/* ===============================
   LINKS
   =============================== */

a.card,
a.featured {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ================= FINAL MOBILE FIX ================= */

@media (max-width: 768px) {

  .featured-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .featured {
    height: 84px;
    font-size: 17px;
    border-radius: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 16px;
    border-radius: 12px;
  }

  .footer {
    font-size: 14px;
    padding: 16px;
  }
}