/* ============================================================
   WESTLER LAKE ASSOCIATION — SHARED STYLESHEET
   All pages inherit from this file.
============================================================ */

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --carolina:    #6B9DB8;
  --carolina-lt: #A9C6D5;
  --carolina-dk: #4A7D99;
  --navy:        #1C2F48;
  --navy-deep:   #0E1C2D;
  --cream:       #F4EDD8;
  --cream-lt:    #FAF6EE;
  --tan:         #C0A472;
  --tan-dk:      #8A6540;
  --tan-md:      #A8835A;
  --text:        #271E0F;
  --text-muted:  #6A573C;
  --text-faint:  #9B8870;
  --border:      #D5BC90;
  --red-worn:    #7A3030;

  --f-fell: 'IM Fell English', Georgia, serif;
  --f-play: 'Playfair Display', Georgia, serif;
  --f-lato: 'Lato', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-lato);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   ROPE DIVIDER
============================================================ */
.rope-divider {
  width: 100%;
  height: 18px;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='18'%3E%3Cpath d='M0 9 Q7 1 14 9 Q21 17 28 9' stroke='%23C0A472' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 9 Q7 17 14 9 Q21 1 28 9' stroke='%238A6540' stroke-width='2' fill='none' stroke-linecap='round' stroke-dasharray='3 3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 28px 18px;
  flex-shrink: 0;
}
.rope-divider--navy     { background-color: var(--navy); }
.rope-divider--dark     { background-color: var(--navy-deep); }
.rope-divider--cream    { background-color: var(--cream); }

/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.announce-bar {
  background: var(--tan-dk);
  color: rgba(244,237,216,0.9);
  text-align: center;
  padding: 0.45rem 1rem;
  font-family: var(--f-lato);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.announce-bar a {
  color: var(--cream-lt);
  border-bottom: 1px solid rgba(244,237,216,0.4);
  margin-left: 0.5rem;
  transition: border-color 0.2s;
}
.announce-bar a:hover { border-color: var(--cream-lt); }

/* ============================================================
   HEADER / NAV
============================================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--tan);
  box-shadow: 0 2px 16px rgba(14,28,45,0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.7rem;
  color: var(--tan);
  line-height: 1;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: var(--f-fell);
  font-size: 1.15rem;
  color: var(--cream-lt);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-family: var(--f-lato);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.site-nav a {
  font-family: var(--f-lato);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,237,216,0.72);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  transition: color 0.18s, background 0.18s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cream-lt);
  background: rgba(255,255,255,0.07);
}
.site-nav a[aria-current="page"] {
  color: var(--tan);
}
.site-nav .nav-cta {
  background: var(--carolina-dk);
  color: var(--cream-lt) !important;
  margin-left: 0.4rem;
}
.site-nav .nav-cta:hover { background: var(--carolina); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream-lt);
  transition: all 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  font-family: var(--f-lato);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--carolina-dk);
  color: var(--cream-lt);
  border: 2px solid var(--carolina-dk);
}
.btn-primary:hover { background: var(--carolina); border-color: var(--carolina); }

.btn-ghost {
  background: transparent;
  color: var(--cream-lt);
  border: 2px solid rgba(244,237,216,0.45);
}
.btn-ghost:hover { border-color: var(--cream-lt); background: rgba(244,237,216,0.1); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream-lt); }

.btn-tan {
  background: var(--tan-dk);
  color: var(--cream-lt);
  border: 2px solid var(--tan-dk);
}
.btn-tan:hover { background: var(--tan-md); border-color: var(--tan-md); }

/* ============================================================
   SHARED SECTION TYPOGRAPHY
============================================================ */
.section-label {
  display: block;
  font-family: var(--f-lato);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--carolina-dk);
  margin-bottom: 0.5rem;
}
.section-heading {
  font-family: var(--f-play);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ============================================================
   PAGE HERO (inner pages — not home)
============================================================ */
.page-hero {
  background: var(--navy);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpath d='M0 12 Q30 4 60 12 Q90 20 120 12' stroke='rgba(107,157,184,0.07)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 24px;
  pointer-events: none;
}
.page-hero .section-label {
  color: var(--tan);
  position: relative;
}
.page-hero-title {
  font-family: var(--f-fell);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--cream-lt);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  position: relative;
}
.page-hero-sub {
  font-family: var(--f-fell);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(244,237,216,0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
}

/* ============================================================
   QUICK LINKS STRIP (home + reusable)
============================================================ */
.ql-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
}
.ql-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(192,164,114,0.18);
  transition: background 0.22s;
  cursor: pointer;
}
.ql-item:last-child { border-right: none; }
.ql-item:hover { background: rgba(107,157,184,0.14); }
.ql-icon { font-size: 1.9rem; margin-bottom: 0.7rem; color: var(--tan); line-height: 1; }
.ql-label {
  font-family: var(--f-lato);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-lt);
  margin-bottom: 0.3rem;
}
.ql-desc { font-size: 0.8rem; color: rgba(244,237,216,0.48); line-height: 1.45; }

/* ============================================================
   EVENT CARDS (shared between home + events page)
============================================================ */
.event-card {
  background: var(--cream-lt);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(28,47,72,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}
.event-card:hover {
  box-shadow: 0 6px 24px rgba(28,47,72,0.13);
  transform: translateY(-2px);
}
.event-img {
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.event-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.event-img--poker { background: linear-gradient(145deg, #2E6080 0%, #1E4560 45%, #122D40 100%); }
.event-img--muck  { background: linear-gradient(145deg, #486030 0%, #304020 45%, #1E2812 100%); }
.event-img--general { background: linear-gradient(145deg, #3A5A7A 0%, #2A4060 45%, #1A2840 100%); }
.event-body { padding: 1.8rem; }
.event-badge {
  display: inline-block;
  font-family: var(--f-lato);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--carolina-dk);
  border: 1px solid var(--carolina);
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.8rem;
}
.event-title {
  font-family: var(--f-play);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.event-date {
  font-family: var(--f-lato);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan-dk);
  margin-bottom: 1rem;
}
.event-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.event-link {
  font-family: var(--f-lato);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 2px solid var(--carolina);
  padding-bottom: 0.1rem;
  transition: color 0.18s, border-color 0.18s;
}
.event-link:hover { color: var(--carolina-dk); border-color: var(--carolina-dk); }

/* ============================================================
   PENNANT BANNER
============================================================ */
.pennant-wrap {
  position: relative;
  height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 1.75rem 0 2.75rem;
}
.pennant-wrap::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%; transform: translateX(-50%);
  width: 500px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--tan-dk) 8%, var(--tan-dk) 92%, transparent 100%);
}
.pennant {
  width: 0; height: 0;
  margin: 0 4px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 44px solid var(--navy);
  flex-shrink: 0;
}
.pennant:nth-child(2)  { border-top-color: var(--carolina-dk); }
.pennant:nth-child(3)  { border-top-color: var(--tan-md); }
.pennant:nth-child(4)  { border-top-color: var(--red-worn); }
.pennant:nth-child(5)  { border-top-color: var(--navy); }
.pennant:nth-child(6)  { border-top-color: var(--carolina-dk); }
.pennant:nth-child(7)  { border-top-color: var(--tan-md); }
.pennant:nth-child(8)  { border-top-color: var(--red-worn); }
.pennant:nth-child(9)  { border-top-color: var(--navy); }
.pennant:nth-child(10) { border-top-color: var(--carolina-dk); }
.pennant:nth-child(11) { border-top-color: var(--tan-md); }
.pennant:nth-child(12) { border-top-color: var(--red-worn); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--navy-deep);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--tan-dk);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(192,164,114,0.14);
  margin-bottom: 1.75rem;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}
.footer-logo-icon { font-size: 1.5rem; color: var(--tan); }
.footer-logo-name { font-family: var(--f-fell); font-size: 1.3rem; color: var(--cream-lt); }
.footer-logo-sub {
  font-family: var(--f-lato);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.2rem;
}
.footer-brand-desc {
  font-size: 0.88rem;
  color: rgba(244,237,216,0.45);
  line-height: 1.75;
  max-width: 290px;
}
.footer-col-head {
  font-family: var(--f-lato);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(192,164,114,0.18);
}
.footer-links li { margin-bottom: 0.52rem; }
.footer-links a { font-size: 0.88rem; color: rgba(244,237,216,0.52); transition: color 0.18s; }
.footer-links a:hover { color: var(--cream-lt); }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  font-size: 0.87rem;
  color: rgba(244,237,216,0.52);
  line-height: 1.55;
}
.fc-icon { color: var(--tan); flex-shrink: 0; margin-top: 0.1rem; font-size: 0.85rem; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(192,164,114,0.14);
  border-bottom: 1px solid rgba(192,164,114,0.14);
  margin-bottom: 1.5rem;
}
.footer-social a {
  color: rgba(244,237,216,0.55);
  font-size: 1.3rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: rgba(244,237,216,0.95); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.footer-bottom p { font-size: 0.73rem; color: rgba(244,237,216,0.28); letter-spacing: 0.05em; }
.footer-bottom-anchor { font-size: 1.3rem; color: rgba(192,164,114,0.25); }
.footer-credit {
  padding-top: 1rem;
  border-top: 1px solid rgba(192,164,114,0.1);
  text-align: center;
  font-family: var(--f-lato);
  font-size: 0.7rem;
  color: rgba(244,237,216,0.45);
  letter-spacing: 0.06em;
}
.footer-credit a {
  color: rgba(244,237,216,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(192,164,114,0.3);
  transition: color 0.2s;
}
.footer-credit a:hover { color: rgba(244,237,216,1); }

/* ============================================================
   CARD GRID UTILITY (blog, shop, members)
============================================================ */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--f-lato);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--f-lato);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream-lt);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--carolina-dk);
  box-shadow: 0 0 0 3px rgba(74,125,153,0.15);
}
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 880px) {
  .ql-grid { grid-template-columns: repeat(2, 1fr); }
  .ql-item:nth-child(2) { border-right: none; }
  .ql-item:nth-child(1),
  .ql-item:nth-child(2) { border-bottom: 1px solid rgba(192,164,114,0.18); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { overflow: hidden; }
  .hero-video { width: 100%; height: 100vh; object-fit: cover; object-position: center center; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 73px;
    left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(192,164,114,0.2);
    padding: 1rem 0;
    z-index: 199;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.75rem 2rem; border-radius: 0; }
  .site-nav .nav-cta { margin: 0.5rem 2rem 0; display: block; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .pennant-wrap::before { width: 90%; }
}
