/* ============================================
   NMGC — Nemadji Men's Golf Club
   Main Stylesheet
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background: #fff;
  font-size: 16px;
  line-height: 1.75;
}

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

/* --- Colors --- */
:root {
  --green:       #7e9d10;
  --green-dark:  #5a7200;
  --green-light: #e8f5d0;
  --dark:        #2a2a2a;
  --darker:      #1a1a1a;
  --gray:        #f5f5f5;
  --border:      #e0e0e0;
  --text-muted:  #555;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  background: var(--darker);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--green);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

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

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.6rem;
  color: #aaa;
  font-weight: 400;
  display: block;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

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

.nav-links > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #ccc;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}

.nav-links > li > a.active {
  color: var(--green);
}

/* Dropdown */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--dark);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  min-width: 200px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 100;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.dropdown-menu.touch-open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.45rem 1rem;
  color: #ccc;
  font-size: 0.85rem;
  transition: background 0.1s, color 0.1s;
}

.dropdown-menu a:hover {
  background: rgba(126,157,16,0.15);
  color: var(--green);
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #aaa;
  border-radius: 2px;
  display: block;
  transition: all 0.2s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--darker);
  border-top: 1px solid #333;
  padding: 1rem 1.5rem;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: #ccc;
  font-size: 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-divider {
  border: none;
  border-top: 2px solid var(--green);
  margin: 0.75rem 0;
}
.mobile-nav a:hover { color: var(--green); }
.mobile-nav a.active { color: var(--green); font-weight: 700; }

.mobile-nav-group { margin-bottom: 0.5rem; }
.mobile-nav-label {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 800;
  padding: 0.5rem 0 0.25rem;
}

.mobile-nav-group a {
  padding-left: 0.75rem;
  font-size: 0.85rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(160deg, #1a2a10 0%, #2e4a1a 60%, #1e3a14 100%);
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  max-width: 520px;
  margin-bottom: 0;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.site-nav .btn {
  padding: 0.55rem 1.1rem !important;
  font-size: 0.8rem !important;
  min-height: unset !important;
  width: auto !important;
  background: white !important;
  color: #2a4a10 !important;
}

.site-nav .btn svg {
  width: 24px;
  height: 24px;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.card-header {
  background: var(--gray);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border);
}

.card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
}

.card-body { padding: 1rem; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============================================
   LEAGUE TILES
   ============================================ */
.league-tile {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.league-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.league-tile-bar {
  height: 8px;
}

.league-tile-body {
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.league-tile-day {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.league-tile-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
}

.league-tile-arrow {
  font-size: 1.3rem;
  color: #ccc;
  transition: color 0.15s, transform 0.15s;
}

.league-tile:hover .league-tile-arrow {
  color: var(--green);
  transform: translateX(3px);
}

/* ============================================
   PDF DOWNLOAD ROWS
   ============================================ */
.pdf-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: #f0f7e8;
  border: 1.5px solid #c8de98;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
  min-height: 64px;
  cursor: pointer;
}

.pdf-row:last-child { margin-bottom: 0; }
.pdf-row:hover { background: #e4f0d4; border-color: #a8c878; }

.pdf-icon {
  width: 6px;
  height: 40px;
  background: #e05050;
  border-radius: 3px;
  flex-shrink: 0;
}

.pdf-info { flex: 1; }

.pdf-name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
}

.pdf-sub {
  font-size: 0.78rem;
  color: #555;
}

.pdf-dl {
  width: 32px;
  height: 32px;
  background: #7e9d10;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-left: auto;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement {
  background: #1e3a14;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.announcement-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.announcement-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8cf6e;
  margin-bottom: 0.3rem;
}

.announcement-text {
  font-size: 1rem;
  color: white;
  line-height: 1.6;
  font-weight: 500;
}

/* ============================================
   COMMISSIONER BAR
   ============================================ */
.commissioner-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gray);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  flex-wrap: wrap;
}

.commissioner-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.commissioner-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

.commissioner-links {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ============================================
   COURSE REDIRECT BANNER
   ============================================ */
.course-banner {
  background: var(--green-light);
  border: 1.5px solid #b8cf6e;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.course-banner-icon { font-size: 1.5rem; }
.course-banner-text { flex: 1; }
.course-banner-title { font-weight: 700; color: #2a4a10; font-size: 0.95rem; }
.course-banner-sub { font-size: 0.8rem; color: #5a7a30; }

/* ============================================
   EXTERNAL LINK ROW
   ============================================ */
.ext-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0f7ff;
  border: 1.5px solid #b0ccf0;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.ext-row:last-child { margin-bottom: 0; }
.ext-row:hover { background: #e4f0ff; }
.ext-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #3a5fc8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ext-name { font-size: 0.875rem; font-weight: 700; color: #1a3a80; }
.ext-sub { font-size: 0.72rem; color: var(--text-muted); }
.ext-arrow { margin-left: auto; font-size: 0.9rem; color: #3a5fc8; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #222;
  background: white;
  transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--darker);
  color: #aaa;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: #888;
  padding: 0.2rem 0;
  transition: color 0.1s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================
   UTILITY
   ============================================ */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-green { background: var(--green-light); color: #3a6000; }
.tag-blue  { background: #e0ecff; color: #1a3a80; }
.tag-amber { background: #fff4d0; color: #7a4e00; }
.tag-muted { background: #eee; color: #888; }

.section-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2a4a10;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
.hero-logo-mobile { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hide-mobile { display: none; }

  .section-club-docs > .card     { border-left: 5px solid #7e9d10; }
  .section-minutes > .card       { border-left: 5px solid #3a6080; }
  .section-course > .card        { border-left: 5px solid #c8a830; }
  .section-handicap > .card      { border-left: 5px solid #8a5a20; }
  .section-links > .card         { border-left: 5px solid #2a7a5a; }

  .hero-logo-mobile {
    display: block;
    width: 100%;
    margin-top: -45px;
    margin-bottom: calc(1.25rem - 60px);
    clip-path: inset(45px 0 60px);
  }

  .hero .hero-label,
  .hero h1,
  .hero-sub { display: none; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .hero { padding: 1rem 1.25rem 0.75rem; background-image: none !important; background: #faf7f2 !important; }
  .hero-overlay { display: none; }

  .page-content { padding: 1.25rem 0.85rem; gap: 1.25rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  .commissioner-bar { flex-direction: column; align-items: flex-start; }
  .commissioner-links { margin-left: 0; width: 100%; }
  .commissioner-links .btn { flex: 1; justify-content: center; font-size: 1rem; padding: 0.85rem 1rem; }

  .course-banner { flex-direction: column; text-align: center; }

  .pdf-row { padding: 1rem; min-height: 64px; }
  .pdf-name { font-size: 1.05rem; }
  .pdf-dl { width: 36px; height: 36px; font-size: 1.1rem; }

  .card-body { padding: 0.85rem; }
  .card-header { padding: 0.75rem 0.85rem; }

  .section-label { font-size: 1rem; }

  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; padding: 0.6rem 1rem; font-size: 0.875rem; }

  .mobile-nav a { padding: 0.85rem 0; font-size: 1rem; }
  .mobile-nav-label { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  transition: background 0.15s;
}

.back-to-top:hover { background: var(--green-dark); }
.back-to-top.visible { display: flex; }

/* Logo image in nav */
.nav-logo img {
  height: 42px;
  width: auto;
  background: white;
  border-radius: 6px;
  padding: 3px 8px;
}

/* ============================================
   EVENTS CALENDAR
   ============================================ */
.events-month { border-bottom: 1px solid #eee; }
.events-month:last-child { border-bottom: none; }
.events-month-header {
  background: #f5f5f5;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7e9d10;
  border-bottom: 1px solid #eee;
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.event-row:last-child { border-bottom: none; }

.event-date {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  min-width: 130px;
  flex-shrink: 0;
  font-family: 'Courier Prime', monospace;
}

.event-name {
  font-size: 1rem;
  color: #222;
}

.event-note {
  font-size: 0.72rem;
  color: #7e9d10;
  font-weight: 600;
  display: block;
}

.event-schedule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin-top: 0.35rem;
}

.event-schedule-item {
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
}

.event-schedule-time {
  font-weight: 800;
  color: #1a1a1a;
  margin-right: 0.2rem;
}

.event-schedule-sep {
  font-size: 0.72rem;
  color: #ccc;
}

.event-highlight {
  font-weight: 700;
  color: #2a4a10;
}

@media (max-width: 480px) {
  .event-row { flex-direction: column; gap: 0.15rem; }
  .event-date { min-width: unset; }
}
