/* Color palette */
:root {
  --cream: #f5f5dc;
  --brown: #8b5c2a;
  --green: #1e824c;
  --black: #222;
  --white: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Additional fix for any potential header overflow */
body > * {
  max-width: 100vw;
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  /* Ensure main content doesn't overlap header */
  margin-top: 0;
  padding-top: 0;
  /* Ensure main doesn't interfere with mega menu */
  z-index: 1;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Container for consistent layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: hidden;
}

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

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

/* Header styles are now handled in mega-menu.css */

/* Responsive header styles are now handled in mega-menu.css */

/* Navigation styles are now handled in mega-menu.css */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--brown) 100%);
  color: var(--cream);
  padding: 3rem 1rem;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensure hero doesn't overlap header */
  position: relative;
  z-index: 1;
  margin-top: 0;
}

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

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mission {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-align: center;
  min-width: 140px;
}

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

.btn-brown:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-green:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 3rem 1rem;
  text-align: center;
}

.section-cream {
  background: var(--cream);
  color: var(--black);
}

.section-brown {
  background: var(--brown);
  color: var(--cream);
}

.section-green {
  background: var(--green);
  color: var(--cream);
}

.section-black {
  background: var(--black);
  color: var(--cream);
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.section p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.section ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section ul li {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.section ul li:hover {
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 245, 220, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Modern Footer Layout */
.footer {
  background: var(--brown);
  color: var(--cream);
  padding: 2.5rem 1rem 1.2rem 1rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-col h3, .footer-col h4 {
  color: var(--cream);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.footer-col p {
  margin-bottom: 1.2rem;
  opacity: 0.95;
}
.footer-links-group {
  margin-bottom: 1.2rem;
}
.footer-links-group h4 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}
.footer-links-group ul,
.footer-contact-list,
.footer-coverage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem 0;
}
.footer-links-group ul li,
.footer-contact-list li,
.footer-coverage-list li {
  margin-bottom: 0.5rem;
  font-size: 0.97rem;
}
.footer-links-group ul li a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.92;
  transition: color 0.2s;
}
.footer-links-group ul li a:hover {
  color: var(--green);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.footer-social-icon {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--cream);
  opacity: 0.9;
}

.footer-social-icon:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.footer-social-icon:hover svg {
    opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.98rem;
}
.footer-legal-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.97rem;
  transition: color 0.2s, opacity 0.2s;
}
.footer-legal-links a:hover {
  color: var(--green);
  opacity: 1;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .footer-col {
    margin-bottom: 1.5rem;
  }
  .footer-bottom {
    font-size: 0.95rem;
  }
}

/* Responsive Design */

/* Large screens (desktops) */
@media (min-width: 1200px) {
  .section {
    padding: 5rem 4rem;
  }
  
  .hero {
    padding: 6rem 4rem;
  }
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {
  .hero {
    padding: 3rem 1.5rem;
    min-height: 60vh;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
}

/* Small screens (mobile landscape) */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
    min-height: 50vh;
  }
  
  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .section ul {
    grid-template-columns: 1fr;
  }
  
  /* Fix horizontal scroll issues */
  .horizontal-scroll {
    overflow-x: visible;
    overflow-y: visible;
  }
}

/* Extra small screens (mobile portrait) */
@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 0.5rem;
    min-height: 40vh;
  }
  
  .section {
    padding: 1.5rem 0.5rem;
  }
  
  .contact-form {
    padding: 0 1rem;
  }
  
  /* Ensure no horizontal scroll on mobile */
  .horizontal-scroll {
    overflow-x: visible;
    overflow-y: visible;
  }
  
  .container {
    overflow-x: hidden;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .flag-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 40vh;
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .mission {
    font-size: 1.1rem;
  }
}

/* Accessibility and keyboard navigation */
.keyboard-navigation *:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Visually hidden labels for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--black);
  color: var(--cream);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-content h1 {
    text-shadow: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .section ul li:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero {
    background: var(--black);
  }
  
  .btn {
    border: 2px solid var(--cream);
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .contact-form {
    display: none;
  }
  
  .hero {
    background: none;
    color: var(--black);
  }
  
  .section {
    page-break-inside: avoid;
  }
} 