/* ══════════════════════════════════════════════
   NCMCA Site — Shared Stylesheet
   ══════════════════════════════════════════════ */

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

:root {
  --navy:        #1b2d4f;
  --navy-light:  #243d6a;
  --navy-dark:   #111e33;
  --gold:        #c9952a;
  --gold-light:  #e8b84b;
  --cream:       #faf8f4;
  --gray:        #f0ede8;
  --border:      #e5e0d8;
  --text:        #1e1e1e;
  --muted:       #5a5a5a;
  --white:       #ffffff;
  --radius:      6px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
.section-label {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}
.section-subtitle {
  font-family: Arial, sans-serif;
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: 0.75rem; }

/* ── Top Bar ── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: rgba(255,255,255,0.8); transition: color 0.15s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-actions { display: flex; gap: 10px; }
.topbar-actions a {
  background: var(--gold);
  color: var(--white) !important;
  padding: 3px 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.74rem;
  transition: background 0.15s;
}
.topbar-actions a:hover { background: var(--gold-light) !important; }

/* ── Navigation ── */
.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo-text strong {
  display: block;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.nav-logo-text small {
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links li a {
  font-family: Arial, sans-serif;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--navy);
  padding: 7px 11px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.nav-links li a:hover,
.nav-links li a.active { background: var(--gray); color: var(--gold); }
.nav-links li.nav-cta a {
  background: var(--gold);
  color: var(--white);
  padding: 7px 16px;
}
.nav-links li.nav-cta a:hover { background: var(--gold-light); color: var(--white); }

/* ── Page Hero Banner ── */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 40%, rgba(27,45,79,0.7));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 48px));
  height: 3px;
  background: var(--gold);
}
.breadcrumb {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { margin: 0 6px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag {
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; font-weight: 400; }
.card p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── Photo Grid (Gallery) ── */
.photo-grid {
  display: grid;
  gap: 8px;
}
.photo-grid-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid-4 { grid-template-columns: repeat(4, 1fr); }
.photo-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--navy-dark);
  cursor: pointer;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  display: block;
}
.photo-item:hover img { transform: scale(1.04); opacity: 0.88; }
.photo-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-item:hover .photo-item-caption { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed;
  top: 18px; right: 24px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none; border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  text-align: center;
}

/* ── Stat Bar ── */
.stat-bar {
  background: var(--navy);
  color: var(--white);
}
.stat-bar .container {
  display: flex;
  gap: 0;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.2rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Cert Level Cards ── */
.cert-level {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.cert-level-tag {
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.cert-level h4 { font-size: 1.1rem; color: var(--navy); font-weight: 400; margin-bottom: 8px; }
.cert-level p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── Event Cards ── */
.event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.event-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.event-date { text-align: center; flex-shrink: 0; width: 54px; }
.event-month {
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 3px 0;
  border-radius: 3px 3px 0 0;
}
.event-day {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  border: 1px solid var(--border);
  border-top: none;
  padding: 6px 0;
  border-radius: 0 0 3px 3px;
}
.event-info h4 { font-size: 0.95rem; color: var(--navy); font-weight: 400; margin-bottom: 4px; line-height: 1.35; }
.event-info .event-meta { font-family: Arial, sans-serif; font-size: 0.78rem; color: var(--muted); }
.event-type {
  display: inline-block;
  margin-top: 7px;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 9px;
  border-radius: 50px;
}

/* ── CTA Banner ── */
.cta-band {
  background: var(--gold);
  padding: 56px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--navy); font-weight: 400; margin-bottom: 8px; }
.cta-band p { font-family: Arial, sans-serif; font-size: 0.95rem; color: rgba(27,45,79,0.75); max-width: 500px; line-height: 1.65; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 18px;
  margin-top: 16px;
}
.footer-contact { font-family: Arial, sans-serif; font-size: 0.83rem; line-height: 1.9; }
.footer-contact a { color: var(--gold-light); }
.footer-logo { height: 52px; width: auto; }
.footer-col h5 {
  font-family: Arial, sans-serif;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-family: Arial, sans-serif; font-size: 0.77rem; color: rgba(255,255,255,0.3); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar-actions { flex-wrap: wrap; }
  .nav-links { display: none; }
  .photo-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-bar .container { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .cta-band .container { flex-direction: column; }
}
