/*
Theme Name: AFR OPES Africa
Theme URI: https://opesafrica.com
Author: OPES Group
Description: Dark, minimalist consultancy theme for AFR OPES Africa — energy, infrastructure, and policy advisory across Ghana and the wider African region.
Version: 1.0
Text Domain: opes-africa
*/

/* ============================================
   DESIGN TOKENS
   Background:      #0A0A0A  (near-black)
   Panel:            #141412  (raised panel)
   Line:             #262420  (hairline dividers)
   Text primary:     #EDEAE3  (warm off-white)
   Text muted:       #8C887F  (secondary text)
   Gold accent:      #B9975B  (muted antique gold — not neon)
   Gold dim:         #6E5A34  (gold at low opacity contexts)
   ============================================ */

:root {
  --bg: #0A0A0A;
  --panel: #141412;
  --line: #262420;
  --text: #EDEAE3;
  --muted: #8C887F;
  --gold: #B9975B;
  --gold-dim: #6E5A34;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 300; }
h3 { font-size: 1.35rem; font-weight: 400; }

p { color: var(--muted); font-weight: 300; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand span { color: var(--gold); }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.main-nav a:hover,
.main-nav a.current { color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 840px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--bg); display: none; flex-direction: column; padding: 40px 32px; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 1.6rem; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 110px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero p.lede {
  max-width: 620px;
  margin: 1.6rem auto 2.4rem;
  font-size: 1.08rem;
}
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 3.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Pillars / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-3 .card { background: var(--bg); padding: 44px 38px; }
.card .num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold-dim); margin-bottom: 1.2rem; letter-spacing: 0.05em;}
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.94rem; margin: 0; }

@media (max-width: 840px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Service list ---------- */
.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row .tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.4rem;
}
.service-row ul { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.service-row li {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.service-row li:first-child { border-top: none; }

@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project-card { background: var(--bg); padding: 40px; }
.project-card .status {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 4px 10px;
  margin-bottom: 1rem;
}
.project-card .status.planned { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); }
.project-card h3 { margin-bottom: 0.5rem; }
.project-card .loc { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.project-card p { font-size: 0.92rem; }

@media (max-width: 700px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Locations strip ---------- */
.locations {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 30px 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.locations strong { color: var(--gold); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-family: var(--sans); margin-bottom: 1.1rem; }
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); padding-top: 28px; border-top: 1px solid var(--line); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }
}

/* ---------- Philosophy callout ---------- */
.philosophy-block {
  border-left: 2px solid var(--gold-dim);
  padding: 4px 0 4px 30px;
  margin: 2.6rem 0 3.2rem;
}
.philosophy-block .eyebrow { margin-bottom: 0.6em; }
.philosophy-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
  margin: 0;
}

/* ---------- Contact form ---------- */
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.contact-form label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }

/* Accessibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
