/* SWIRE Website Styles */

/* Variables */
:root {
  --primary-color: #4BBFBF; /* Teal */
  --secondary-color: #A6D785; /* Green */
  --accent-color: #F79862; /* Orange */
  --neutral-color: #F5EFD9; /* Cream */
  --dark-color: #0F2D40; /* Dark Navy */
  --white: #ffffff;
  --light-gray: #f4f4f4;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

/* Base Styles */
body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

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

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 1rem;
}

/* Logo text removed as requested */

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  padding: 0.75rem;
  position: relative;
  display: block;
  min-height: 44px;
  min-width: 44px;
  line-height: 44px;
  text-align: center;
}

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

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
  min-height: 44px;
  min-width: 44px;
  padding: 10px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(15, 45, 64, 0.7), rgba(15, 45, 64, 0.7)), url('https://mkeygbwm.manus.space/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 8rem 0;
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

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

.btn-primary:hover {
  background-color: #3aa8a8;
  color: var(--white);
}

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

.btn-secondary:hover {
  background-color: #e58752;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Sections */
.section {
  padding: 5rem 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;
  width: 50%;
  height: 3px;
  bottom: 0;
  left: 25%;
  background-color: var(--primary-color);
}

/* About Section */
.about {
  background-color: var(--light-gray);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.mission-vision-purpose {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.mission, .vision, .purpose {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission h3, .vision h3, .purpose h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary-color);
}

/* Events Section */
.events {
  background-color: var(--neutral-color);
}

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-date {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 700;
}

.event-content {
  padding: 1.5rem;
}

/* Get Involved Section */
.get-involved-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.get-involved-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.get-involved-card:hover {
  transform: translateY(-5px);
}

.get-involved-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--primary-color);
  color: var(--white);
}

.testimonials .section-title h2 {
  color: var(--white);
}

.testimonials .section-title h2::after {
  background-color: var(--white);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

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

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: var(--font-main);
  min-height: 44px;
}

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

/* Sheriff Gratitude Section */
.sheriff-gratitude {
  background-color: var(--light-gray);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sheriff-gratitude-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.sheriff-gratitude-text {
  flex: 2;
  min-width: 300px;
}

.sheriff-gratitude-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.sheriff-gratitude-image {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.sheriff-gratitude-image img {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 200px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 300px;
}

.footer-logo img {
  height: 80px;
  margin-bottom: 1rem;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

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

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

.footer-links ul li a {
  color: var(--medium-gray);
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
  min-width: 44px;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-newsletter {
  flex: 1;
  min-width: 300px;
}

.footer-newsletter h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 4px 0 0 4px;
  min-height: 44px;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

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

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 0.5rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.5rem 0;
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hero {
    padding: 5rem 0;
    margin-top: 120px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .sheriff-gratitude-content {
    flex-direction: column;
  }
  
  .sheriff-gratitude-image {
    order: -1;
  }
  
  /* Improve touch targets in mobile view */
  .btn {
    padding: 12px 20px;
  }
  
  .get-involved-card {
    padding: 1.5rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 15px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
    min-height: 44px;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    padding: 0.75rem;
    min-height: 44px;
  }
  
  /* Adjust spacing for better mobile experience */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .mission, .vision, .purpose {
    padding: 1.5rem;
  }
  
  /* Fix potential overflow issues */
  img {
    height: auto;
    max-width: 100%;
  }
  
  /* Ensure content is readable */
  p {
    font-size: 16px;
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */
  input, textarea, select, button {
    font-size: 16px; /* Prevent zoom on focus */
  }
  
  body {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
  }
}
