/* ============================================================
   AGAWAM SISTER CITY COMMISSION — style.css
   Primary:  #409150  |  Accent: #CD2C2F
   Fonts:    Playfair Display (headings) / Open Sans (body)
   ============================================================ */


/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #222222;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}


/* ============================================================
   UTILITY — CONTAINER
   ============================================================ */

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================================
   UTILITY — FADE-IN-UP SCROLL ANIMATION
   ============================================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.15s;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   HEADER SECTION
   ============================================================ */

#main-header {
  width: 100%;
  height: 120px;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ebebeb;
  transition: box-shadow 0.3s ease;
}

#main-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo {
  height: 58px;
  width: auto;
}

/* Desktop nav (email link only) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-email {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: #409150;
  transition: color 0.2s ease;
}

.nav-email:hover {
  color: #CD2C2F;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #222222;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

#hero {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
}

/* Slideshow slides */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2000ms ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Dark gradient overlay for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

/* Hero text content */
.hero-content {
  position: absolute;
  bottom: 90px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 58px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}

.hero-sub {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Green accent stripe at bottom of hero */
.hero-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(
    90deg,
    #409150 0%,
    #409150 33.3%,
    #ffffff 33.3%,
    #ffffff 66.6%,
    #CD2C2F 66.6%,
    #CD2C2F 100%
  );
  z-index: 3;
}


/* ============================================================
   SECTION 1: INTRO BAND
   ============================================================ */

#intro-band {
  width: 100%;
  background-color: #f4f1ec;
  padding: 70px 0;
  border-bottom: 4px solid #409150;
}

.intro-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.intro-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: #1a1a1a;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.intro-body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.8;
  color: #444444;
}


/* ============================================================
   SECTION 2: MISSION
   ============================================================ */

#mission {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 0;
}

/* Seals row */
.seals-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 48px;
}

.seal-img {
  height: 192px;
  width: auto;
}

.arrows-img {
  height: 80px;
  width: auto;
  opacity: 0.65;
}

/* Section title */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
}

/* Mission lead */
.mission-lead {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  color: #555555;
  text-align: center;
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 50px;
}

/* Mission grid — 2 columns */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.mission-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background-color: #409150;
  color: #ffffff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.mission-item p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  color: #333333;
}


/* ============================================================
   SECTION 3: EVENT
   ============================================================ */

#event {
  width: 100%;
  background-color: #f9f9f7;
  padding: 80px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.event-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.event-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #409150;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.event-text p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 16px;
}

.event-text p.event-stay-tuned {
  font-weight: 700;
  font-style: italic;
  color: #222222;
  margin-top: 8px;
}

.event-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   SECTION 4: PARALLAX
   ============================================================ */

#parallax-section {
  position: relative;
  width: 100%;
  height: 650px;
  background-image: url('images/parallax.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.parallax-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 14px;
}

.parallax-sub {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}


/* ============================================================
   SECTION 5: CALLOUT
   ============================================================ */

#callout {
  width: 100%;
  background-color: #409150;
  padding: 80px 0;
}

.callout-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.callout-text {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.btn-callout {
  display: inline-block;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 14px 44px;
  border-radius: 3px;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-callout:hover {
  background-color: #ffffff;
  color: #409150;
}


/* ============================================================
   COPYRIGHT FOOTER BAR
   ============================================================ */

#copyright-bar {
  width: 100%;
  background-color: #111111;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

#copyright-bar p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #888888;
}

#copyright-bar a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #aaaaaa;
  transition: color 0.2s ease;
}

#copyright-bar a:hover {
  color: #ffffff;
}


/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {

  .hero-content h1 {
    font-size: 46px;
  }

  .hero-sub {
    font-size: 19px;
  }

  .section-title {
    font-size: 32px;
  }

  .mission-grid {
    gap: 22px 36px;
  }

  .event-inner {
    gap: 40px;
  }

  .seal-img {
    height: 160px;
  }

}


/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Header */
  #main-header {
    height: 74px;
  }

  .logo {
    height: 40px;
  }

  /* Hide desktop nav, show hamburger */
  .main-nav {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 24px 20px;
    border-top: 2px solid #409150;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-email {
    font-size: 16px;
    padding: 10px 0;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  #hero {
    height: 380px;
  }

  .hero-content {
    bottom: 60px;
  }

  .hero-content h1 {
    font-size: 32px;
    letter-spacing: 0.01em;
  }

  .hero-sub {
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  /* Intro band */
  #intro-band {
    padding: 50px 0;
  }

  .intro-headline {
    font-size: 16px;
  }

  .intro-body {
    font-size: 15px;
  }

  /* Mission */
  #mission {
    padding: 60px 0;
  }

  .seals-row {
    gap: 18px;
    margin-bottom: 36px;
  }

  .seal-img {
    height: 128px;
  }

  .arrows-img {
    height: 58px;
  }

  .section-title {
    font-size: 28px;
  }

  .mission-lead {
    font-size: 16px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* Event */
  #event {
    padding: 60px 0;
  }

  .event-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .event-text h2 {
    font-size: 22px;
  }

  /* Parallax — disable fixed attachment on mobile (iOS issue) */
  #parallax-section {
    height: 420px;
    background-attachment: scroll;
  }

  .parallax-label {
    font-size: 30px;
  }

  .parallax-sub {
    font-size: 16px;
  }

  /* Callout */
  #callout {
    padding: 60px 0;
  }

  .callout-text {
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .btn-callout {
    font-size: 15px;
    padding: 13px 36px;
  }

  /* Footer */
  #copyright-bar {
    padding: 24px 0;
  }

}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {

  #hero {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

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

  .section-title {
    font-size: 24px;
  }

  .seal-img {
    height: 102px;
  }

  .arrows-img {
    height: 45px;
  }

  .parallax-label {
    font-size: 24px;
  }

  .event-text h2 {
    font-size: 19px;
  }

}
