/* ============================================================
   NCLA — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --navy:       #1a2e4a;
  --navy2:      #223a5e;
  --gold:       #c8962e;
  --gold2:      #e8b84b;
  --cream:      #f9f6f0;
  --white:      #ffffff;
  --gray-light: #f0ede8;
  --gray:       #888888;
  --text:       #1c1c1c;
  --text-muted: #555555;
  --border:     #d4cfc7;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 19px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--navy);
}

a { color: var(--navy); }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* ---- TOPBAR ---- */
#topbar {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  padding: 7px 24px;
  text-align: center;
}

/* ---- NAV ---- */
nav {
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 14px 0;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.nav-logo-text small {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 13px;
  border-radius: 6px;
  transition: .15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--gray-light); color: var(--gold); }
.nav-links a.active { background: var(--navy); color: var(--white); }
.nav-links a.btn-join {
  background: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  margin-left: 6px;
}
.nav-links a.btn-join:hover { background: var(--gold2); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
  font-size: 28px;
  color: var(--navy);
}

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 90px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.02) 0px,
    rgba(255,255,255,.02) 1px,
    transparent 1px,
    transparent 40px
  );
}
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  color: #fff;
  margin-bottom: 18px;
}
.hero p {
  font-size: clamp(18px, 2.5vw, 22px);
  opacity: .88;
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: .15s;
  line-height: 1;
}
.btn-gold  { background: var(--gold);  color: #fff; }
.btn-gold:hover  { background: var(--gold2); color: #fff; }
.btn-navy  { background: var(--navy);  color: #fff; }
.btn-navy:hover  { background: var(--navy2); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-sm { font-size: 15px; padding: 10px 22px; }

/* ---- LAYOUT ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 70px 0; }
.section-sm { padding: 40px 0; }

.section-header { margin-bottom: 44px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 42px); }
.section-header .lead { font-size: 20px; color: var(--text-muted); margin-top: 10px; }
.gold-bar { width: 60px; height: 4px; background: var(--gold); border-radius: 2px; margin: 14px 0; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
}
.card + .card { margin-top: 20px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ---- QUICK LINKS ---- */
.quick-links {
  max-width: 1140px;
  margin: -48px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.quick-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
  text-decoration: none;
  display: block;
  color: var(--navy);
}
.quick-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--navy); }
.quick-card .icon { font-size: 38px; margin-bottom: 10px; }
.quick-card h3 { font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 700; }

/* ---- OFFICER CARDS ---- */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.officer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.officer-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  margin: 0 auto 14px;
}
.officer-name  { font-weight: 700; font-size: 17px; color: var(--navy); }
.officer-title { font-size: 14px; color: var(--gold); font-weight: 600; margin-top: 4px; }

/* ---- MEMBERSHIP TIERS ---- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin: 32px 0;
}
.tier-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.tier-card.featured { border-color: var(--gold); }
.tier-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.tier-card h3 { font-size: 22px; margin-bottom: 8px; }
.tier-price { font-size: 34px; font-weight: 700; color: var(--gold); margin: 12px 0; }
.tier-price small { font-size: 16px; color: var(--gray); font-weight: 400; }
.tier-card ul { list-style: none; margin-top: 16px; }
.tier-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-muted);
}
.tier-card ul li:last-child { border-bottom: none; }
.tier-card ul li::before { content: '✓ '; color: var(--gold); font-weight: 700; }

/* ---- FORMS ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full  { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: 'Source Sans 3', sans-serif;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.required { color: #c0392b; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 4px; }
.radio-group { display: flex; gap: 24px; margin-top: 6px; }
.radio-group label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 400; font-size: 18px; cursor: pointer;
}

/* ---- ALERTS ---- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 17px;
  margin: 20px 0;
}
.alert-info  { background: #e8f4fd; border-left: 4px solid #2196f3; color: #1a5276; }
.alert-warn  { background: #fef9e7; border-left: 4px solid #f39c12; color: #7d6608; }
.alert-success { background: #eafaf1; border-left: 4px solid #27ae60; color: #1e8449; }
.alert-error { background: #fdedec; border-left: 4px solid #e74c3c; color: #922b21; }

/* ---- SCHEDULE ---- */
.schedule-day h4 {
  font-size: 20px;
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.schedule-item {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 17px;
}
.schedule-time { font-weight: 700; color: var(--gold); min-width: 130px; flex-shrink: 0; }

/* ---- BOOTH MAP ---- */
.booth-map-wrap { overflow-x: auto; }
.booth-map {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  min-width: 500px;
  margin: 20px 0;
}
.booth {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .15s;
}
.booth.available { background: #e8f5e9; border-color: #4caf50; color: #1b5e20; }
.booth.taken     { background: #ffebee; border-color: #ef5350; color: #b71c1c; cursor: default; }
.booth.pending   { background: #fff8e1; border-color: #ffc107; color: #7d6608; cursor: default; }
.booth.available:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.booth-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0; }
.booth-legend-item { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.legend-dot { width: 16px; height: 16px; border-radius: 4px; border: 2px solid; }

/* ---- DIRECTORY ---- */
.dir-search { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.dir-search input  { flex: 1; min-width: 200px; }
.dir-search select { width: 200px; }
.dir-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dir-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}
.dir-name { font-size: 20px; font-weight: 700; color: var(--navy); }
.dir-loc  { font-size: 15px; color: var(--gray); margin: 4px 0; }
.dir-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  background: var(--gray-light);
  color: var(--navy);
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ---- NEWS ---- */
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-bottom: 22px; }
.news-date  { font-size: 13px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { font-size: 22px; margin: 8px 0 10px; }
.news-card p  { color: var(--text-muted); font-size: 17px; }

/* ---- STAT BOXES ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.stat-box .num { font-size: 44px; font-weight: 800; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat-box .lbl { font-size: 15px; color: var(--text-muted); margin-top: 6px; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 28px; cursor: pointer;
  color: var(--gray);
  line-height: 1;
}
.modal-close:hover { color: var(--navy); }
.modal h2 { margin-bottom: 20px; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: #fff;
  margin-top: 80px;
  padding: 60px 24px 30px;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 { font-size: 18px; color: var(--gold2); margin-bottom: 16px; }
.footer-col p,
.footer-col a {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 2;
  text-decoration: none;
  display: block;
}
.footer-col a:hover { color: var(--gold2); }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.35);
}

/* ---- PAGE HEADER ---- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 52px 24px;
}
.page-header h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); }
.page-header p  { font-size: 19px; opacity: .8; margin-top: 10px; }

/* ---- TOAST ---- */
#toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--navy);
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  z-index: 2000;
  transform: translateY(80px);
  opacity: 0;
  transition: .3s;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-left: 4px solid #27ae60; }
#toast.error   { border-left: 4px solid #e74c3c; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid  { grid-template-columns: 1fr; }
  .form-full  { grid-column: 1; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px; border-bottom: 3px solid var(--gold); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 18px; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; flex-wrap: wrap; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .booth-map  { grid-template-columns: repeat(5, 1fr); }
  .dir-search select { width: 100%; }
  .hero { padding: 60px 24px 80px; }
}
