/*
 * Global Styles for Voices of Uptown
 * This stylesheet defines the core styling for the landing page and
 * supporting views. It focuses on clarity, accessibility and
 * adaptability across different screen sizes. Feel free to tweak
 * colours or spacing to better match the Uptown aesthetic.
 */

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

html,
body {
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

/* Container helper */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  background-color: #1c3f60; /* dark blue backdrop */
  color: #ffffff;
  padding: 4rem 0;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  margin-right: 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-buttons .btn {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #00a8a8; /* teal */
  color: #fff;
}
.btn-primary:hover {
  background-color: #008989;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #00a8a8;
  color: #00a8a8;
}
.btn-secondary:hover {
  background-color: #00a8a8;
  color: #fff;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
}

/* Docket Info Section */
.docket-info {
  background-color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}
.docket-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1c3f60;
}
.docket-info p {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.docket-info .stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.docket-info .stat {
  flex: 1;
  min-width: 150px;
  margin: 0.5rem;
  background-color: #f0f7fc;
  padding: 1.5rem;
  border-radius: 8px;
}
.docket-info .stat span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #00a8a8;
}
.docket-info .stat p {
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}

/* Communities Section */
.communities-section {
  background-color: #f5f9fc;
  padding: 4rem 0;
}
.communities-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1c3f60;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.community-card {
  position: relative;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  transition: transform 0.3s ease;
}
.community-card:hover {
  transform: translateY(-5px);
}

/* Example gradient backgrounds per community */
.community-card.bankers {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
}
.community-card.hillcrest {
  background: linear-gradient(135deg, #56ab2f, #a8e063);
}
.community-card.medical {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.community-card.middletown {
  background: linear-gradient(135deg, #ce9ffc, #7367f0);
}
.community-card.mission {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.community-name {
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 1;
}

/* Footer */
footer {
  background-color: #1c3f60;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
footer .tagline {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
footer .attribution {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
footer .social-icons a {
  margin: 0 0.5rem;
  display: inline-block;
}
footer .social-icons img {
  width: 24px;
  height: 24px;
}

/* Utilities */
.btn {
  cursor: pointer;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-top: 2rem;
  }
}

/* Subheader used on internal pages like submit and docket */
.subheader {
  background-color: #1c3f60;
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.subheader h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.subheader p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* Submission form styling */
.submission-form-section {
  padding: 2rem 0 4rem;
  background-color: #ffffff;
}
.submission-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #f5f9fc;
  padding: 2rem;
  border-radius: 8px;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.form-group textarea {
  resize: vertical;
}
.success-message {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
}

/* Table styling for docket and community pages */
.docket-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}
.docket-table th,
.docket-table td {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.docket-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}
.docket-table tr:nth-child(even) {
  background-color: #f9f9f9;
}