/*
Theme Name: JEF
Theme URI: https://jamaicaemployers.com
Author: Jamaica Employers' Federation
Author URI: https://jamaicaemployers.com
Description: Custom theme for the Jamaica Employers' Federation. Includes Home, About JEF, Executive Council, and Convention 2026 page templates with the JEF brand design system (gold/green/black palette, EB Garamond + DM Sans).
Version: 1.0.0
License: Proprietary
Text Domain: jef
*/

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

/* ====== BRAND TOKENS ====== */
:root {
  --black:    #000000;
  --black2:   #111111;
  --black3:   #1A1A1A;
  --gold:     #FED100;
  --gold-dk:  #D4AE00;
  --green:    #009B3A;
  --green-dk: #007A2D;
  --green-lt: #E8F7EE;
  --white:    #FFFFFF;
  --offwhite: #F9F9F9;
  --gray:     #555555;
  --gray-lt:  #F2F2F2;
  --border:   #E0E0E0;
  --orange:   #F36A2A;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'DM Sans', sans-serif;
}

body { font-family: var(--font-sans); color: var(--black3); background: var(--white); font-size: 16px; line-height: 1.6; }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

/* ====== UTILITY BAR ====== */
.util-bar {
  background: var(--black);
  padding: 8px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(254,209,0,0.15);
}
.util-bar a { color: rgba(255,255,255,0.55); text-decoration: none; margin-left: 20px; transition: color 0.15s; }
.util-bar a:hover { color: var(--gold); }
.util-links { display: flex; }

/* ====== NAVBAR ====== */
nav.jef-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 1; min-width: 0; }
.logo-img { height: 52px; width: auto; display: block; object-fit: contain; }
.logo-text { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
.logo-text p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 36px; color: var(--black3); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; margin: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; font-weight: 400; color: var(--black3);
  text-decoration: none; padding: 8px 14px; border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--gray-lt); color: var(--black); }
.nav-links a.active,
.nav-links li.current-menu-item a { color: var(--black); font-weight: 500; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--white); border-top: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 99; padding: 8px 0 24px;
  flex-direction: column; max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-size: 15px; color: var(--black3); text-decoration: none;
  padding: 13px 24px; border-bottom: 1px solid var(--border); font-weight: 400;
}
.mobile-drawer a:last-of-type { border-bottom: none; }

/* ====== FOOTER ====== */
footer.jef-footer { background: #0A0A0A; color: rgba(255,255,255,0.45); padding: 60px 48px 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo-img { height: 64px; width: auto; display: block; object-fit: contain; }
.footer-about { font-size: 13px; line-height: 1.7; font-weight: 300; max-width: 280px; }
.footer-contact { margin-top: 20px; font-size: 12px; line-height: 1.8; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none; margin-bottom: 8px; transition: color 0.15s; font-weight: 300; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: var(--gold); }

/* ====== SHARED BUTTONS ====== */
.btn-primary {
  background: var(--green); color: var(--white);
  padding: 13px 28px; font-size: 14px; font-weight: 500;
  border-radius: 3px; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  display: inline-block; font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--green-dk); transform: translateY(-1px); }
.btn-ghost {
  color: rgba(255,255,255,0.8); padding: 13px 24px;
  font-size: 14px; font-weight: 400;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 3px;
  text-decoration: none; transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-black {
  background: var(--black); color: var(--white);
  padding: 13px 32px; font-size: 14px; font-weight: 500;
  border-radius: 3px; text-decoration: none; white-space: nowrap;
  display: inline-block; transition: background 0.15s; font-family: var(--font-sans);
}
.btn-black:hover { background: #222; }

/* ====== SHARED SECTION HEADER PATTERNS ====== */
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.section-title { font-family: var(--font-serif); font-size: 36px; font-weight: 400; color: var(--black); line-height: 1.25; margin-bottom: 16px; }
.section-sub { font-size: 15px; color: var(--gray); max-width: 560px; line-height: 1.7; font-weight: 300; margin-bottom: 48px; }

/* ====== ADMIN BAR OFFSET (logged-in users only) ====== */
/* WP admin bar is 32px tall normally, 46px on screens ≤782px */
.admin-bar .mobile-drawer { top: calc(72px + 32px); }
@media (max-width: 782px) {
  .admin-bar .mobile-drawer { top: calc(72px + 46px); }
}
@media (max-width: 560px) {
  .admin-bar .mobile-drawer { top: calc(60px + 46px); }
}

/* ====== RESPONSIVE NAV ====== */
@media (max-width: 1280px) {
  .logo-text p { font-size: 22px; letter-spacing: 0.05em; }
  nav.jef-nav { padding: 0 32px; }
  .nav-links a { font-size: 13px; padding: 8px 10px; }
}
@media (max-width: 1100px) {
  nav.jef-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .util-bar { padding: 8px 20px; }
  .util-bar > span { display: none; }
  nav.jef-nav { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.jef-footer { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 560px) {
  .util-bar { display: none; }
  nav.jef-nav { height: 60px; padding: 0 12px; }
  .mobile-drawer { top: 60px; }
  .logo-img { height: 40px; }
  .logo-text p { font-size: 14px; letter-spacing: 0.03em; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  footer.jef-footer { padding: 40px 16px 20px; }
}
