/* ============================================================
   Internet Golf Society — Main Stylesheet
   ============================================================ */

:root {
  --green-dark:   #1a3a2a;
  --green-mid:    #2d5a3d;
  --green-light:  #4a8a5a;
  --green-accent: #5cad6f;
  --gold:         #c9a84c;
  --cream:        #f5f0e8;
  --white:        #ffffff;
  --gray-light:   #f0ede6;
  --gray-mid:     #a0998a;
  --text-dark:    #1e2820;
  --text-body:    #3a3a3a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-accent); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green-dark);
  margin-bottom: 14px;
}
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border-radius: 2px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .35s, box-shadow .35s;
  height: 70px;
}
#navbar.scrolled {
  background: rgba(26, 58, 42, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  background: rgba(255,255,255,0.92);
  border-radius: 6px;
  padding: 3px 6px;
  transition: opacity .2s;
}
.nav-logo-img:hover { opacity: .8; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('photos/wolf.png') center center / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 30, 18, 0.65) 0%,
    rgba(10, 30, 18, 0.45) 60%,
    rgba(10, 30, 18, 0.7) 100%
  );
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}
.hero-logo {
  height: 130px;
  width: auto;
  margin: 0 auto 28px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 10px 16px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s, transform .2s;
}
.hero-btn:hover {
  background: #e0bf6a;
  color: var(--green-dark);
  transform: translateY(-2px);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--green-dark);
  margin-bottom: 20px;
  line-height: 1.75;
}
.about-text p {
  margin-bottom: 16px;
  color: var(--text-body);
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e0ddd5;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--green-mid);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 4px;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.photo-caption {
  text-align: center;
  font-size: .82rem;
  color: var(--gray-mid);
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================
   HOW WE PLAY
   ============================================================ */
.how-we-play {
  padding: 100px 0;
  background: var(--cream);
}
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.play-card {
  text-align: center;
  padding: 44px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e5e0d5;
  transition: box-shadow .3s, transform .3s;
}
.play-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.play-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.play-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.play-card p {
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ============================================================
   COURSES
   ============================================================ */
.courses {
  padding: 100px 0;
  background: var(--green-dark);
}
.courses .section-header h2 { color: var(--white); }
.courses .section-sub { color: rgba(255,255,255,0.6); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(255,255,255,0.08);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.course-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.course-info {
  padding: 22px 24px 26px;
}
.course-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.course-info p {
  font-size: .9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding: 100px 0;
  background: var(--gray-light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
  background: #c8c0b0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 42, 0);
  transition: background .3s;
}
.gallery-item:hover::after {
  background: rgba(26, 58, 42, 0.25);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 28px;
  font-size: 2.2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: var(--radius);
  opacity: .7;
  transition: opacity .2s, background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 100px 0;
  background: var(--white);
}
.contact-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.contact-card {
  text-align: center;
  padding: 44px 32px;
  border: 1px solid #e5e0d5;
  border-radius: var(--radius);
  transition: box-shadow .3s, transform .3s;
}
.contact-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.contact-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: block;
}
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.contact-card p {
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.65;
}
.contact-card a {
  color: var(--green-mid);
  font-weight: 600;
}
.contact-card a:hover { color: var(--green-accent); }
.contact-email {
  margin-top: 10px;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  padding: 60px 24px;
  text-align: center;
}
.footer-logo {
  height: 70px;
  width: auto;
  margin: 0 auto 14px;
  background: rgba(255,255,255,0.88);
  border-radius: 8px;
  padding: 6px 10px;
}
.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: .82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .play-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-content { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(26, 58, 42, 0.98);
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .courses-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { gap: 24px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
