/*
Theme Name: CRCJ Review
Theme URI: https://crcjreview.com
Author: Mahdi Bseiso
Description: Custom theme for CRCJ Review — Criminal Justice & Criminology platform.
Version: 2.1
*/

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

:root {
  --navy:      #1a2332;
  --charcoal:  #2c3e50;
  --gold:      #b8953e;
  --off-white: #f8f7f4;
  --text:      #3a3a3a;
  --text-light:#6b7280;
  --border:    #e2e0dc;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.4rem; margin-bottom: 0.5em; }
h2 { font-size: 1.6rem; margin-bottom: 0.4em; }
h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
p  { margin-bottom: 1.25em; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

/* ── Top Navigation ── */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.site-nav__brand:hover { color: var(--gold); }
.site-nav__links { list-style: none; display: flex; gap: 2rem; }
.site-nav__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav__links a:hover,
.site-nav__links .current-menu-item > a,
.site-nav__links .current_page_item > a {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
}
.hero__rule {
  width: 60px; height: 3px;
  background: var(--gold);
  border: none;
  margin: 1.5rem auto 1.2rem;
}
.hero__tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Site body layout: left sidebar + content ── */
.site-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ── Left sidebar / section nav ── */
.side-nav {
  flex: 0 0 180px;
  position: sticky;
  top: 80px;
}
.side-nav__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.side-nav ul { list-style: none; }
.side-nav ul li { margin-bottom: 0.15rem; }
.side-nav ul a {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.side-nav ul a:hover,
.side-nav ul .current-menu-item > a,
.side-nav ul .current_page_item > a {
  background: var(--navy);
  color: #fff;
}

/* Sub-menu indentation */
.side-nav .sub-menu {
  margin-left: 0.75rem;
  margin-top: 0.1rem;
  border-left: 2px solid var(--border);
  padding-left: 0.5rem;
}
.side-nav .sub-menu a {
  font-size: 0.84rem;
  color: var(--text-light);
  padding: 0.3rem 0.6rem;
}
.side-nav .sub-menu a:hover,
.side-nav .sub-menu .current-menu-item > a,
.side-nav .sub-menu .current_page_item > a {
  background: var(--navy);
  color: #fff;
}

/* ── Main content area ── */
.site-main {
  flex: 1;
  min-width: 0;
}

/* ── Section styling (homepage welcome) ── */
.section__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section__body {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--text);
}
.section__body p:last-child { margin-bottom: 0; }

/* ── About portrait ── */
.portrait-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}
.portrait {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.portrait-name {
  margin-top: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
}
.portrait-title {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ── Placeholder page ── */
.placeholder-page {
  padding: 3rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* ── Contact form ── */
.contact-form { max-width: 560px; }
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
  margin-top: 1.25rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button {
  margin-top: 1.5rem;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--charcoal); }
.contact-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.contact-notice.success { background: #f0faf0; color: #2d6a2d; border: 1px solid #b7dfb7; }
.contact-notice.error   { background: #fdf0f0; color: #8b2020; border: 1px solid #e8b0b0; }

/* ── Page title ── */
.page-title-bar {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.page-title-bar h1 {
  font-size: 2rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-body { flex-direction: column; gap: 0; padding-top: 2rem; }
  .side-nav  { position: static; flex: none; width: 100%; margin-bottom: 2rem; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .side-nav ul li { margin-bottom: 0; }
  .hero { padding: 3.5rem 1.2rem 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero__tagline { font-size: 1rem; }
  .site-nav__links { gap: 1.2rem; }
  .site-nav__links a { font-size: 0.8rem; }
}
