/* ============================================
   GALATIA CHURCH RAILROAD CLUB — Main Stylesheet
   Colors: Navy #0d1f3c | Green #1a3d1a | Gold #c9a227 | Cream #f5f0e8
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Oswald:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #0d1f3c;
  --navy2: #152b52;
  --green: #1a3d1a;
  --green2:#22521e;
  --gold:  #c9a227;
  --gold2: #e8bf3a;
  --cream: #f5f0e8;
  --parchment: #e8dfc8;
  --dark-text: #1a1205;
  --light-text: #f5f0e8;
  --border-gold: 2px solid var(--gold);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  text-align: center;
  color: var(--parchment);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  display: block;
  height: 1px;
  width: 60px;
  background: var(--gold);
}

.section-divider span {
  color: var(--gold);
  font-size: 1.1rem;
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 31, 60, 0.97);
  border-bottom: 2px solid var(--gold);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  backdrop-filter: blur(6px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .club-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-logo-text .church-name {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,31,60,0.2) 0%, rgba(13,31,60,0.7) 70%, rgba(13,31,60,1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 860px;
}

.hero-logo {
  width: 180px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.7));
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.8);
  margin-bottom: 0.3rem;
}

.hero-subtitle-banner {
  display: inline-block;
  background: var(--green);
  border: 2px solid var(--gold);
  padding: 0.35rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-transform: uppercase;
  margin: 0.5rem 0 1.2rem;
}

.hero-pillars {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-scripture {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--parchment);
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

.hero-scripture cite {
  display: block;
  font-style: normal;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 0.4rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: rgba(245,240,232,0.1);
  transform: translateY(-1px);
}

/* --- Pillars Section --- */
.pillars-section {
  background: var(--navy2);
  padding: 5rem 1.5rem;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.pillar-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 4px;
  background: rgba(13,31,60,0.5);
  transition: border-color 0.3s, transform 0.3s;
}

.pillar-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.pillar-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--parchment);
  opacity: 0.85;
}

/* --- About Section --- */
.about-section {
  padding: 5rem 1.5rem;
  background: var(--navy);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  border: 3px solid var(--gold);
  display: block;
}

.about-image-caption {
  background: var(--green);
  border: 1px solid var(--gold);
  padding: 0.5rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-align: center;
}

.about-text .section-title,
.about-text .section-divider,
.about-text .section-subtitle {
  text-align: left;
}

.about-text .section-divider {
  justify-content: flex-start;
}

.about-text .section-divider::after {
  width: 120px;
}

.about-text p {
  color: var(--parchment);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.highlight-box {
  background: var(--green);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
}

/* --- Gallery Preview --- */
.gallery-section {
  padding: 5rem 1.5rem;
  background: var(--navy2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(201,162,39,0.25);
  border-radius: 3px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, filter 0.3s;
  filter: brightness(0.9);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-transform: uppercase;
}

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

/* --- Mission Banner --- */
.mission-banner {
  background: var(--green);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.mission-banner h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.4;
}

.mission-banner h2 span {
  color: var(--gold);
}

.mission-motto {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 1rem;
}

/* --- Contact / Info Section --- */
.info-section {
  padding: 5rem 1.5rem;
  background: var(--navy);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 4px;
}

.info-card .info-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.info-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.info-card p, .info-card a {
  font-size: 0.95rem;
  color: var(--parchment);
  text-decoration: none;
  line-height: 1.6;
}

.info-card a:hover {
  color: var(--gold);
}

/* --- Footer --- */
footer {
  background: #060f1e;
  border-top: 3px solid var(--gold);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-logo {
  width: 80px;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

.footer-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.footer-church {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--parchment);
  opacity: 0.45;
  border-top: 1px solid rgba(201,162,39,0.2);
  padding-top: 1.2rem;
  margin-top: 0.5rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/tracks-bg.jpg') center/cover no-repeat;
  opacity: 0.08;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  font-size: 1rem;
}

/* --- Gallery Full Page --- */
.gallery-full {
  padding: 4rem 1.5rem;
  background: var(--navy);
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,15,30,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid var(--gold);
  border-radius: 3px;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover { color: var(--gold); }

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,31,60,0.9);
  border: 1px solid var(--gold);
  padding: 0.5rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-align: center;
  border-radius: 3px;
}

/* --- Contact Page --- */
.contact-section {
  padding: 4rem 1.5rem 5rem;
  background: var(--navy);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-details h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

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

.contact-item .ci-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item .ci-text strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact-item .ci-text span,
.contact-item .ci-text a {
  font-size: 0.95rem;
  color: var(--parchment);
  text-decoration: none;
  line-height: 1.6;
}

.contact-item .ci-text a:hover { color: var(--gold); }

.map-embed {
  border: 2px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
  filter: invert(0.85) hue-rotate(180deg);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--gold);
    gap: 0.3rem;
  }

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

  .hamburger {
    display: flex;
  }

  .hero-logo {
    width: 130px;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
  }

  .about-text .section-title,
  .about-text .section-divider,
  .about-text .section-subtitle {
    text-align: center;
  }

  .about-text .section-divider {
    justify-content: center;
  }
}
