/* ====================================
   FreeFind USA - SSCI 591 Project 5
   Main Stylesheet
   ==================================== */

:root {
  --primary: #173b57;
  --secondary: #168a80;
  --accent: #e5a64b;
  --background: #f5f8fa;
  --white: #ffffff;
  --text: #253746;
  --muted: #64748b;
  --border: #dce5eb;
}

/* Global Settings */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: auto;
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 25px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.7px;
}

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

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navigation a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

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

/* Hero Section */

.hero {
  padding: 90px 6% 100px;
  background: linear-gradient(
    135deg,
    #173b57 0%,
    #1d566a 55%,
    #168a80 100%
  );
  color: var(--white);
}

.hero-content {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.eyebrow {
  color: #beece7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 25px;
}

.hero-description {
  max-width: 730px;
  margin: 0 auto 35px;
  font-size: 17px;
  color: #e2f0f2;
  line-height: 1.8;
}

.primary-button {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.primary-button:hover {
  background: #e1f5f2;
  transform: translateY(-2px);
}

/* Explore Events */

.explore-section {
  max-width: 1500px;
  margin: auto;
  padding: 70px 5%;
  scroll-margin-top: 85px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 36px;
  color: var(--primary);
  margin: 0 0 10px;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* ArcGIS Map Container */

.map-container {
  width: 100%;
  height: 680px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 45, 65, 0.08);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.map-note {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* About Section */

.about-section {
  background: var(--white);
  padding: 75px 6%;
  scroll-margin-top: 85px;
}

.about-content {
  max-width: 850px;
  margin: auto;
}

.about-content h2 {
  color: var(--primary);
  font-size: 34px;
  margin: 0 0 24px;
}

.about-content p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 18px;
}

/* Footer */

.site-footer {
  background: #102c42;
  color: #d3e2eb;
  text-align: center;
  padding: 30px 20px;
}

.site-footer p {
  margin: 5px 0;
  font-size: 13px;
}

/* Responsive Design */

@media (max-width: 768px) {

  .header-content {
    flex-direction: column;
    padding: 15px 5%;
    gap: 12px;
  }

  .logo {
    font-size: 23px;
  }

  .navigation {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navigation a {
    font-size: 13px;
  }

  .hero {
    padding: 65px 6%;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .hero-description {
    font-size: 15px;
  }

  .explore-section {
    padding: 45px 3%;
    scroll-margin-top: 125px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .map-container {
    height: 75vh;
    min-height: 520px;
    border-radius: 8px;
  }

  .about-section {
    padding: 50px 6%;
    scroll-margin-top: 125px;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .about-content p {
    font-size: 15px;
  }
}

/* Small Mobile Screens */

@media (max-width: 480px) {

  .navigation {
    gap: 14px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero-description {
    font-size: 14px;
  }

  .primary-button {
    width: 100%;
    max-width: 260px;
  }

  .map-container {
    height: 78vh;
    min-height: 500px;
  }
}