/* ===================================
   Treynor Recreation Area - styles.css
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2d5a27;
  --green-dark: #1e3d1a;
  --green-mid: #3a7030;
  --cream: #f5f0e8;
  --cream-dark: #ede7da;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-white-outline:hover { background: var(--white); color: var(--green-dark); }

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-green-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-green-outline:hover { background: var(--green); color: var(--white); }

/* === NAVIGATION === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 46, 15, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
}

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

.nav-links > li { position: relative; }

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  display: block;
  border-radius: 3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  min-width: 160px;
  list-style: none;
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-more:hover .dropdown { display: block; }
.dropdown li a { font-size: 0.75rem; padding: 8px 16px; }

.nav-phone {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-phone:hover { color: var(--white); }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--green-dark);
  z-index: 99;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 24px;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-drawer .drawer-phone {
  color: var(--gold, #c9a227);
  font-weight: 600;
  padding: 14px 24px;
  display: block;
  font-size: 0.95rem;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 85vh;
  background:
    linear-gradient(to bottom, rgba(10,25,8,0.45) 0%, rgba(10,25,8,0.35) 50%, rgba(10,25,8,0.65) 100%),
    url('hero.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

/* Subtle texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 60%, rgba(100,180,80,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(60,130,40,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === INFO BAR === */
.info-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  padding: 18px 40px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.88rem;
}

.info-bar-item .icon { font-size: 0.5rem; color: var(--green); }
.info-bar-item strong { color: var(--text); }
.info-bar-item a { color: var(--green); font-weight: 600; transition: color 0.2s; }
.info-bar-item a:hover { color: var(--green-dark); }

/* === ANNOUNCEMENT === */
.announcement {
  background: #fff9e6;
  border-top: 3px solid #c9a227;
  padding: 14px 24px;
  text-align: center;
  font-size: 0.88rem;
  color: #5a3e00;
}
.announcement a { color: var(--green); font-weight: 600; }

/* === CONTAINER === */
.container { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* === SECTION TYPOGRAPHY === */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.75;
}

section { padding: 80px 24px; }

/* === FEATURE CARDS === */
.features { background: var(--cream); padding: 80px 24px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  position: relative;
  height: 360px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

/* Photo placeholder with gradient */
.feature-card .card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.feature-card:hover .card-bg { transform: scale(1.04); }

.card-bg-golf {
  background: url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?w=800&q=80') center center / cover no-repeat;
}
.card-bg-clubhouse {
  background: url('clubhouse.jpg') center center / cover no-repeat;
}

.card-bg-membership {
  background: url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?w=800&q=80') center center / cover no-repeat;
}

.feature-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.feature-card .card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  color: var(--white);
}

.feature-card .card-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card .card-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-link {
  display: inline-block;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.card-link:hover { border-color: var(--white); }

/* === THE COURSE === */
.course { background: var(--white); }

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

.course-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
}

.stat-box {
  text-align: center;
  padding: 20px 12px;
  background: var(--cream);
  border-radius: 4px;
  border-top: 3px solid var(--green);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.course-photo {
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
}

/* === EVENTS === */
.events { background: var(--cream-dark); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.event-card {
  position: relative;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
}

.event-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.4s;
}

.event-card:hover .event-card-bg { transform: scale(1.04); }

.event-bg-1 { background: url('https://images.unsplash.com/photo-1606574489982-61c9e3f9e4a4?w=800&q=80') center center / cover no-repeat; }
.event-bg-2 { background: #1e3d1a; }
.event-bg-3 { background: #2a1810; }

.event-card .event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.event-card .event-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--white);
}

.event-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.event-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.event-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  line-height: 1.5;
}

.event-learn-more {
  display: inline-block;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 5px 14px;
  border-radius: 2px;
  transition: all 0.2s;
}
.event-learn-more:hover { background: var(--white); color: var(--green-dark); }

/* === CTA BANNER === */
.cta-banner {
  background:
    linear-gradient(rgba(18, 45, 15, 0.92), rgba(18, 45, 15, 0.92)),
    linear-gradient(135deg, #1e3d1a 0%, #2d5a27 100%);
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === MEMBERSHIP SECTION === */
.membership-section {
  background: var(--white);
  padding: 80px 24px;
  text-align: center;
}

/* === RATES === */
.rates-section {
  background: var(--cream);
  padding: 80px 24px;
  text-align: center;
}

/* === FOOTER === */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.6);
  padding: 56px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.75; max-width: 300px; }

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

/* === MOBILE === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-hamburger { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { height: 300px; }
  .events-grid { grid-template-columns: 1fr; }
  .event-card { height: 240px; }
  .course-inner { grid-template-columns: 1fr; gap: 36px; }
  .course-stats { grid-template-columns: repeat(2, 1fr); }
  .course-photo { height: 280px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .info-bar { gap: 20px; padding: 16px 20px; }
}

@media (max-width: 600px) {
  section { padding: 56px 20px; }
  .hero { min-height: 75vh; padding: 60px 20px 60px; }
}
