/* Modern CSS for Darrenwood Residents Association */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #f39c12;
  --accent-color: #e74c3c;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --text-color: #333;
  --light-text: #f8f9fa;
  --font-main: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

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

@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Header and Navigation */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 10px 15px;
  margin: -10px -15px -10px 0;
  touch-action: manipulation;
  position: relative;
  right: 5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

nav a:hover {
  color: var(--secondary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.active::after {
  width: 100%;
}

/* Banner */
.banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 1rem;
}

.banner-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
  font-size: 1.5rem;
  max-width: 800px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Logo Section */
.partners {
  padding: 3rem 0;
  background-color: white;
}

.partners-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.partner-logo:hover {
  transform: scale(1.05);
}

.darrenwood-logo {
  max-width: 300px;
}

.ra-logo {
  max-width: 75px;
}

.papa-logo {
  max-width: 200px;
}

/* Content Sections */
.section {
  margin: 3rem 0;
  padding: 2.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-content ul {
  list-style-position: outside;
  margin-left: 1.5rem;
}

.section-content li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

/* Document Downloads */
.documents {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.document-link {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
}

.document-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.document-link i {
  margin-right: 0.5rem;
}

/* Updates Page */
.updates-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.update-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.update-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.update-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.update-month {
  font-size: 1.3rem;
  margin: 0;
}

.update-date {
  font-size: 0.9rem;
  opacity: 0.8;
}

.update-content {
  padding: 1.5rem;
  background-color: white;
}

.update-content p {
  margin-bottom: 1rem;
}

.update-content ul {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Utility Classes */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
}

/* Contact section */
.contact-button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

#contact-dra {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
}

#contact-dra:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Image error handling */
.img-load-error {
  border: 1px dashed #ccc;
  min-height: 50px;
  min-width: 100px;
  background-color: #f8f8f8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .banner-title {
    font-size: 2.5rem;
  }
  
  .banner-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 101;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    z-index: 100;
  }
  
  nav.active {
    max-height: 600px;
    overflow-y: auto;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }
  
  nav a {
    display: block;
    padding: 0.8rem 0;
  }
  
  .banner {
    height: 300px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .banner {
    height: 250px;
  }
  
  .banner-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .logo-container {
    gap: 1.5rem;
  }
  
  .darrenwood-logo {
    max-width: 200px;
  }
}