/* =============================================================================
   MCC Lions Club — Community Commerce & Business Networking Program
   Self-contained, theme-token-based design system. All rules scoped to .cc-page.
   Reuses theme CSS variables (mcc.css :root) so type/color/spacing match site.
   ============================================================================= */

.cc-page .mcc-main { padding-top: 0; }

/* ---- Layout primitives ---------------------------------------------------- */
.cc-page .cc-container {
  width: 100%;
  max-width: var(--maxw, 1200px);
  margin: 0 auto;
  padding: 0 28px;
}
.cc-page .cc-section { padding: 96px 0; }
.cc-page .cc-section--tight { padding: 72px 0; }
.cc-page .cc-section--paper { background: var(--paper); }
.cc-page .cc-section--paper2 { background: var(--paper-2); }
.cc-page .cc-section--white { background: var(--card); }
.cc-page .cc-section--navy {
  background: var(--navy-deep);
  color: #fff;
}

/* ---- Typography ----------------------------------------------------------- */
.cc-page .cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.cc-page .cc-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.cc-page .cc-eyebrow.cc-center { justify-content: center; }
.cc-page .cc-section--navy .cc-eyebrow { color: var(--gold-soft); }
.cc-page .cc-section--navy .cc-eyebrow::before { background: var(--gold-soft); }

.cc-page .cc-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 700;
}
.cc-page .cc-section--navy .cc-h2 { color: #fff; }
.cc-page .cc-h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 700;
}
.cc-page .cc-lead {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--body);
  max-width: 760px;
  margin: 0;
}
.cc-page .cc-section--navy .cc-lead { color: rgba(255,255,255,0.82); }
.cc-page .cc-section-head { margin-bottom: 44px; }
.cc-page .cc-section-head.cc-center {
  text-align: center;
}
.cc-page .cc-section-head.cc-center .cc-lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons -------------------------------------------------------------- */
.cc-page .cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.2;
}
.cc-page .cc-btn--primary { background: var(--gold); color: var(--navy-deep); }
.cc-page .cc-btn--primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,169,58,.35);
}
.cc-page .cc-btn--navy { background: var(--navy); color: #fff; }
.cc-page .cc-btn--navy:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,36,99,.22);
}
.cc-page .cc-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cc-page .cc-btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}
.cc-page .cc-btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.cc-page .cc-btn--ghost:hover { border-color: var(--navy); background: var(--paper); }
.cc-page .cc-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cc-page .cc-btn-row.cc-center { justify-content: center; }

/* ---- Hero ----------------------------------------------------------------- */
.cc-page .cc-hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.cc-page .cc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 92px 28px 84px;
  text-align: center;
}
.cc-page .cc-hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 18px;
}
.cc-page .cc-hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--gold-soft);
  margin: 0 0 22px;
}
.cc-page .cc-hero-overview {
  font-size: 17px;
  line-height: 1.7;
  color: #FFFFFF;
  max-width: 680px;
  margin: 0 auto 34px;
}
.cc-page .cc-hero--sub .cc-hero-inner { padding: 88px 28px 72px; }
.cc-page .cc-hero--sub .cc-hero-title { font-size: clamp(30px, 5vw, 44px); }

/* ---- Statement (vision / mission intro) ----------------------------------- */
.cc-page .cc-statement {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.cc-page .cc-statement-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.cc-page .cc-section--navy .cc-statement-quote { color: #fff; }
.cc-page .cc-statement-quote .cc-accent { color: var(--gold-deep); }
.cc-page .cc-section--navy .cc-statement-quote .cc-accent { color: var(--gold-soft); }

/* ---- Grids ---------------------------------------------------------------- */
.cc-page .cc-grid { display: grid; gap: 26px; }
.cc-page .cc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cc-page .cc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cc-page .cc-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Icon chip ------------------------------------------------------------ */
.cc-page .cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212,169,58,0.12);
  color: var(--gold-deep);
  margin-bottom: 18px;
  flex: 0 0 auto;
}
.cc-page .cc-icon svg { width: 26px; height: 26px; }
.cc-page .cc-section--navy .cc-icon { background: rgba(212,169,58,0.18); color: var(--gold-soft); }

/* ---- Card base ------------------------------------------------------------ */
.cc-page .cc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cc-page .cc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.cc-page .cc-card p { color: var(--body); font-size: 15px; line-height: 1.65; margin: 0; }

/* Mission item (compact icon row) */
.cc-page .cc-mission-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.cc-page .cc-mission-item .cc-icon { margin-bottom: 0; width: 46px; height: 46px; }
.cc-page .cc-mission-item .cc-icon svg { width: 22px; height: 22px; }
.cc-page .cc-mission-item h3 { font-size: 16px; margin: 4px 0 0; font-family: var(--sans); font-weight: 700; color: var(--ink); }

/* Audience card (centered) */
.cc-page .cc-aud-card { text-align: center; padding: 28px 20px; }
.cc-page .cc-aud-card .cc-icon { margin: 0 auto 16px; }
.cc-page .cc-aud-card h3 { font-size: 15.5px; font-family: var(--sans); font-weight: 700; margin: 0; color: var(--ink); }

/* Feature card (linked) */
.cc-page a.cc-feature {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cc-page a.cc-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.cc-page a.cc-feature:hover::before { transform: scaleX(1); }
.cc-page a.cc-feature .cc-feature-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cc-page a.cc-feature .cc-feature-link::after { content: "\2192"; transition: transform var(--transition); }
.cc-page a.cc-feature:hover .cc-feature-link::after { transform: translateX(4px); }

/* Benefit card (premium) */
.cc-page .cc-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cc-page .cc-benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cc-page .cc-benefit .cc-icon { margin-bottom: 0; width: 44px; height: 44px; }
.cc-page .cc-benefit .cc-icon svg { width: 22px; height: 22px; }
.cc-page .cc-benefit h3 { font-size: 16px; font-family: var(--sans); font-weight: 700; margin: 2px 0 4px; color: var(--ink); }
.cc-page .cc-benefit p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Project card (visual, colored top accent) */
.cc-page .cc-project {
  position: relative;
  text-align: center;
  padding-top: 34px;
  overflow: hidden;
}
.cc-page .cc-project .cc-project-bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.cc-page .cc-project .cc-icon { margin: 0 auto 16px; background: rgba(10,36,99,0.06); color: var(--navy); }
.cc-page .cc-project h3 { font-size: 17px; }

/* ---- Stat band ------------------------------------------------------------ */
.cc-page .cc-stat { text-align: center; padding: 20px; }
.cc-page .cc-stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  color: var(--gold-soft);
  display: block;
}
.cc-page .cc-stat-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
}

/* ---- Event card ----------------------------------------------------------- */
.cc-page .cc-event {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cc-page .cc-event:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cc-page .cc-event-top {
  background: var(--navy);
  color: #fff;
  padding: 22px 24px;
}
.cc-page .cc-event-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold-soft);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.cc-page .cc-event-top h3 { color: #fff; margin: 0; font-size: 19px; }
.cc-page .cc-event-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cc-page .cc-event-body p { color: var(--body); font-size: 15px; line-height: 1.65; margin: 0; }
.cc-page .cc-event-meta { font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.cc-page .cc-event-meta span { display: flex; align-items: center; gap: 8px; }
.cc-page .cc-event-meta svg { width: 16px; height: 16px; color: var(--gold-deep); flex: 0 0 auto; }

/* ---- Tier (sponsorship) cards --------------------------------------------- */
.cc-page .cc-tier {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cc-page .cc-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cc-page .cc-tier--featured { border-color: var(--gold); box-shadow: var(--shadow-md); }
.cc-page .cc-tier-flag {
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
  background: var(--gold-soft);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.cc-page .cc-tier-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.cc-page .cc-tier-price { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.cc-page .cc-tier-price small { font-size: 14px; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.cc-page .cc-tier .cc-btn { margin-top: 22px; }

/* ---- Course / workshop cards ---------------------------------------------- */
.cc-page .cc-course { display: flex; flex-direction: column; }
.cc-page .cc-course .cc-course-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.cc-page .cc-course h3 { font-size: 18px; }

/* ---- Plain checkmark list ------------------------------------------------- */
.cc-page .cc-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cc-page .cc-checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}
.cc-page .cc-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  background: rgba(212,169,58,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-page .cc-section--navy .cc-checklist li { color: rgba(255,255,255,0.85); }
.cc-page .cc-section--navy .cc-checklist li::before { color: var(--gold-soft); background: rgba(212,169,58,0.2); }

/* ---- Final CTA band ------------------------------------------------------- */
.cc-page .cc-cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cc-page .cc-cta .cc-h2 { color: #fff; }
.cc-page .cc-cta p { color: rgba(255,255,255,0.82); font-size: 17px; line-height: 1.7; margin: 0 0 30px; }

/* ---- Sponsorship comparison table ----------------------------------------- */
.cc-page .cc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cc-page table.cc-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
.cc-page table.cc-table th,
.cc-page table.cc-table td { padding: 16px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.cc-page table.cc-table thead th { background: var(--navy); color: #fff; font-weight: 700; font-family: var(--sans); }
.cc-page table.cc-table tbody tr:last-child td { border-bottom: none; }
.cc-page table.cc-table tbody tr:nth-child(even) td { background: var(--paper); }
.cc-page table.cc-table td:first-child { font-weight: 700; color: var(--ink); }

/* ---- Scroll reveal -------------------------------------------------------- */
.cc-page .cc-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.cc-page .cc-reveal.cc-visible { opacity: 1; transform: none; }
.cc-page .cc-reveal-d1 { transition-delay: .08s; }
.cc-page .cc-reveal-d2 { transition-delay: .16s; }
.cc-page .cc-reveal-d3 { transition-delay: .24s; }

/* ---- Modal ---------------------------------------------------------------- */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,24,67,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100000;
}
.cc-modal-overlay.cc-modal-active { display: flex; }
.cc-modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.cc-modal-head { padding: 30px 32px 18px; border-bottom: 1px solid var(--line); }
.cc-modal-head h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.cc-modal-head p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.cc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  background: var(--paper);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--body);
  cursor: pointer;
  transition: all var(--transition);
}
.cc-modal-close:hover { background: var(--line); color: var(--ink); }
.cc-modal-form { padding: 24px 32px 32px; display: grid; gap: 16px; }
.cc-field { display: grid; gap: 6px; }
.cc-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.cc-field label .cc-req { color: #b42318; }
.cc-field input,
.cc-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cc-field input:focus,
.cc-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,169,58,0.18);
}
.cc-field textarea { resize: vertical; min-height: 96px; }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-form-message { font-size: 14px; line-height: 1.5; margin: 0; }
.cc-form-message:empty { display: none; }
.cc-form-message-success { color: #1a7f37; }
.cc-form-message-error { color: #b42318; }
.cc-modal-form .cc-btn { width: 100%; }

/* ---- Focus visibility (a11y) ---------------------------------------------- */
.cc-page a:focus-visible,
.cc-page button:focus-visible,
.cc-modal a:focus-visible,
.cc-modal button:focus-visible,
.cc-modal input:focus-visible,
.cc-modal textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .cc-page .cc-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cc-page .cc-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .cc-page .cc-section { padding: 64px 0; }
  .cc-page .cc-grid-2,
  .cc-page .cc-grid-3,
  .cc-page .cc-grid-4 { grid-template-columns: 1fr; }
  .cc-page .cc-hero-inner { padding: 84px 22px 70px; }
  .cc-page .cc-btn-row { flex-direction: column; }
  .cc-page .cc-btn-row .cc-btn { width: 100%; }
  .cc-page .cc-section-head { margin-bottom: 32px; }
  .cc-modal-head, .cc-modal-form { padding-left: 22px; padding-right: 22px; }
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cc-page .cc-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cc-page * { scroll-behavior: auto !important; }
  .cc-page .cc-card:hover,
  .cc-page .cc-event:hover,
  .cc-page .cc-tier:hover,
  .cc-page .cc-benefit:hover,
  .cc-page .cc-btn:hover { transform: none !important; }
}
