/* 
   WabaunseeSheriff.com Styles
   A modern, professional design for a county sheriff's office
*/

/* Base styles and variables */
:root {
  --primary-color: #2C3E50; /* Dark blue */
  --secondary-color: #3498DB; /* Bright blue */
  --accent-color: #F39C12; /* Orange accent */
  --light-color: #ECF0F1; /* Off-white */
  --dark-text: #2C3E50; /* Dark blue text */
  --light-text: #ECF0F1; /* Off-white text */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #f8f9fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

/* Header styles */
.header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--light-text);
}

.logo-text {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-text span {
  color: var(--accent-color);
}

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

nav ul li a {
  color: var(--light-text);
  font-weight: 600;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero section */
.hero {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 5rem 0;
  position: relative;
}

.hero::after {
  content: "";
  background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7));
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero span {
  color: var(--accent-color);
}

.hero p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  max-width: 700px;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--accent-color);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.secondary-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--light-text);
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--light-text);
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background-color: var(--light-text);
  color: var(--primary-color);
}

.button-group {
  display: flex;
  gap: 1rem;
}

/* Section styles */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-title p {
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.1rem;
}

/* Services section */
.services {
  background-color: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
  text-align: center;
  border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.service-title {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-description {
  margin-bottom: 1.5rem;
}

/* About section */
.about {
  background-color: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Team section */
.team {
  background-color: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-member {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.team-image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.team-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.team-description {
  padding: 0 1.5rem 1.5rem;
}

/* News/Resources section */
.resources {
  background-color: #f8f9fa;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.resource-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.resource-item h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.resource-links li {
  margin-bottom: 0.8rem;
}

/* Contact section */
.contact {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-info-item {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--accent-color);
}

.contact-text {
  flex: 1;
}

.contact-form {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--body-font);
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
}

/* Emergency CTA */
.emergency {
  background-color: var(--accent-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.emergency h2 {
  margin-bottom: 1rem;
}

.emergency-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 4rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

.footer-section ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--light-color);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-section address {
  font-style: normal;
  color: var(--light-color);
  opacity: 0.8;
  line-height: 1.8;
}

.footer-section address p {
  margin-bottom: 0.8rem;
}

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

/* Responsive */
@media (max-width: 991px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  nav.active {
    max-height: 300px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .resource-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .secondary-button {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
