/*
Theme Name: CRCC Nigeria
Theme URI: https://crcc.org.ng
Author: CRCC
Description: Official theme for the College of Risk, Compliance and Controls
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: crcc
*/

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

:root {
  --navy: #0B1E3D;
  --deep: #061225;
  --gold: #C9972A;
  --gold-light: #E8B84B;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --mid: #8896A7;
  --border: rgba(201,151,42,0.25);
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--deep); color: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ─── NAV ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(6,18,37,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-branding { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1rem; color: var(--deep);
}
.brand-name { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.main-navigation ul { display: flex; gap: 2.5rem; list-style: none; }
.main-navigation a { color: var(--mid); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.main-navigation a:hover, .main-navigation .current-menu-item a { color: var(--gold-light); }
.header-cta {
  background: var(--gold); color: var(--deep); border: none;
  padding: 0.6rem 1.5rem; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.875rem;
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.header-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold); color: var(--deep); border: none;
  padding: 0.9rem 2rem; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,151,42,0.3); }
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(245,240,232,0.25); padding: 0.9rem 2rem; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* ─── SECTION BASE ─── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 6rem 4rem; }
.section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.15; color: var(--white); margin-bottom: 1.5rem; }
.section-title em { color: var(--gold); font-style: italic; }
.gold-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.3; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 10rem 4rem 5rem; background: var(--navy); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,151,42,0.07) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.05; }
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero p { color: var(--mid); font-size: 1.1rem; line-height: 1.75; max-width: 600px; margin-top: 1.25rem; }

/* ─── HOMEPAGE HERO ─── */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding: 7rem 4rem 4rem; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 75% 50%, rgba(201,151,42,0.08) 0%, transparent 70%), linear-gradient(160deg, var(--deep) 40%, #0d2448 100%); }
.hero-grid { position: absolute; inset: 0; opacity: 0.04; background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(201,151,42,0.12); border: 1px solid var(--border); border-radius: 100px; padding: 0.35rem 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 2rem; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.05; color: var(--white); margin-bottom: 1.5rem; }
.hero-title span { color: var(--gold); font-style: italic; }
.hero-description { font-size: 1.1rem; line-height: 1.75; color: var(--mid); max-width: 560px; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--mid); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

/* ─── ABOUT PAGE ─── */
.about-body { background: var(--deep); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-text p { color: #9AAFC4; line-height: 1.85; font-size: 1rem; margin-bottom: 1.25rem; }
.feature-card { background: linear-gradient(135deg, rgba(201,151,42,0.1), rgba(201,151,42,0.02)); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; margin-bottom: 1.25rem; }
.feature-card:last-child { margin-bottom: 0; }
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold); margin-bottom: 0.5rem; }
.feature-card p { color: var(--mid); line-height: 1.7; font-size: 0.9rem; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.value-item { background: var(--navy); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.5rem; }
.value-item h4 { color: var(--gold-light); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.value-item p { color: var(--mid); font-size: 0.8rem; line-height: 1.6; }

/* ─── PROGRAMMES PAGE ─── */
.programmes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.programme-card {
  background: var(--navy); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 2.5rem 2rem; transition: all 0.3s;
  position: relative; overflow: hidden; text-decoration: none; display: block; cursor: pointer;
}
.programme-card::before { content: ''; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(135deg, rgba(201,151,42,0.08) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; }
.programme-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.programme-card:hover::before { opacity: 1; }
.programme-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(201,151,42,0.12); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.programme-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 0.75rem; }
.programme-card p { color: var(--mid); font-size: 0.875rem; line-height: 1.7; }
.programme-tag { display: inline-block; margin-top: 1.25rem; background: rgba(201,151,42,0.12); border: 1px solid var(--border); color: var(--gold-light); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 100px; }
.programme-arrow { position: absolute; bottom: 1.5rem; right: 1.5rem; color: var(--gold); font-size: 1.25rem; opacity: 0; transition: all 0.3s; transform: translateX(-6px); }
.programme-card:hover .programme-arrow { opacity: 1; transform: translateX(0); }

/* ─── SINGLE PROGRAMME PAGE ─── */
.programme-single { background: var(--deep); }
.programme-single .section-inner { max-width: 900px; }
.programme-content { color: #9AAFC4; line-height: 1.85; font-size: 1.05rem; }
.programme-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--cream); margin: 2.5rem 0 1rem; }
.programme-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold-light); margin: 2rem 0 0.75rem; }
.programme-content p { margin-bottom: 1.25rem; }
.programme-content ul { margin: 0 0 1.25rem 1.5rem; }
.programme-content ul li { margin-bottom: 0.5rem; }
.programme-content a { color: var(--gold-light); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-size: 0.875rem; text-decoration: none; margin-bottom: 2rem; transition: gap 0.2s; }
.back-link:hover { gap: 0.75rem; color: var(--gold-light); }

/* ─── FACULTY PAGE ─── */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.faculty-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 1.75rem 1.5rem; transition: all 0.25s; cursor: pointer;
  position: relative;
}
.faculty-card:hover { border-color: var(--border); background: rgba(201,151,42,0.05); transform: translateY(-3px); }
.faculty-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #7B5A1A); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; overflow: hidden; flex-shrink: 0; }
.faculty-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; display: block; }.faculty-card h4 { font-size: 0.925rem; font-weight: 600; color: var(--cream); margin-bottom: 0.35rem; line-height: 1.3; }
.faculty-card .faculty-role { font-size: 0.78rem; color: var(--gold-light); margin-bottom: 0.5rem; font-weight: 500; }
.faculty-card p { font-size: 0.78rem; color: var(--mid); line-height: 1.5; }
.faculty-card .view-profile { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* ─── FACULTY MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,18,37,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 20px; padding: 3rem; max-width: 700px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  transform: translateY(20px) scale(0.98); transition: transform 0.3s;
  position: relative;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--mid); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(201,151,42,0.15); color: var(--gold); border-color: var(--border); }
.modal-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.modal-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #7B5A1A); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.5rem; color: var(--white); flex-shrink: 0; overflow: hidden; }
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; display: block; }.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--cream); margin-bottom: 0.35rem; }
.modal-header .modal-role { color: var(--gold-light); font-size: 0.875rem; font-weight: 500; }
.modal-credentials { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.modal-cred { background: rgba(201,151,42,0.1); border: 1px solid var(--border); color: var(--gold-light); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px; }
.modal-bio { color: #9AAFC4; font-size: 0.95rem; line-height: 1.85; }
.modal-bio p { margin-bottom: 1rem; }
.modal-bio p:last-child { margin-bottom: 0; }

/* ─── CTA / CONTACT ─── */
.cta-section { background: linear-gradient(135deg, #0d2448 0%, var(--deep) 100%); position: relative; overflow: hidden; text-align: center; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(201,151,42,0.08) 0%, transparent 70%); }
.cta-section .section-inner { position: relative; z-index: 2; max-width: 720px; }
.cta-section p { color: var(--mid); font-size: 1rem; line-height: 1.75; margin-bottom: 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.site-footer { background: var(--deep); border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 4rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--cream); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.8rem; color: var(--mid); max-width: 280px; line-height: 1.65; }
.footer-links { display: flex; gap: 4rem; }
.footer-col h5 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 0.6rem; }
.footer-col ul a { color: var(--mid); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.78rem; color: #4B5E73; }

/* ─── ANIMATIONS ─── */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ─── WP CONTENT ─── */
.wp-content { color: #9AAFC4; line-height: 1.85; }
.wp-content h1, .wp-content h2, .wp-content h3 { font-family: 'Playfair Display', serif; color: var(--cream); margin-bottom: 0.75rem; }
.wp-content h2 { font-size: 1.8rem; margin-top: 2.5rem; }
.wp-content h3 { font-size: 1.3rem; color: var(--gold-light); margin-top: 2rem; }
.wp-content p { margin-bottom: 1.25rem; }
.wp-content ul { margin: 0 0 1.25rem 1.5rem; }
.wp-content ul li { margin-bottom: 0.5rem; }
.wp-content a { color: var(--gold-light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.5rem; }
  .main-navigation, .header-cta { display: none; }
  .section-inner { padding: 4rem 1.5rem; }
  .hero-section { padding: 6rem 1.5rem 3rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .programmes-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2rem; flex-wrap: wrap; }
  .site-footer { padding: 3rem 1.5rem 2rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .modal-box { padding: 2rem; }
  .modal-header { flex-direction: column; align-items: flex-start; }
}
