/*
Theme Name: Big 5 Capital
Theme URI: https://big5capital.com/
Author: Big 5 Capital
Description: Premium, cinematic corporate WordPress theme for Big 5 Capital. Built from scratch around an African digital-economy visual identity.
Version: 1.1.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: big5-capital
*/

:root {
  --b5-black: #070707;
  --b5-charcoal: #111111;
  --b5-panel: #171717;
  --b5-white: #f5f3ee;
  --b5-muted: #aaa8a1;
  --b5-gold: #d7a62a;
  --b5-gold-light: #f0c85b;
  --b5-line: rgba(255,255,255,.12);
  --b5-max: 1240px;
  --b5-radius: 2px;
  --b5-ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--b5-black);
  color: var(--b5-white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--b5-max)); margin-inline: auto; }
.gold { color: var(--b5-gold-light); }

/* Header */
.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 92px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--b5-gold);
  color: var(--b5-gold-light);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(45deg);
}
.brand-mark span { transform: rotate(-45deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 15px; letter-spacing: .18em; font-weight: 700; }
.brand-tagline { margin-top: 6px; font-size: 8px; letter-spacing: .24em; color: rgba(255,255,255,.62); }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.86);
  transition: color .25s ease;
}
.primary-nav a:hover { color: var(--b5-gold-light); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.text-link { font-size: 13px; color: rgba(255,255,255,.85); }
.menu-toggle { display:none; background:none; border:0; color:white; cursor:pointer; padding:8px; }
.menu-toggle span { display:block; width:25px; height:1px; background:#fff; margin:6px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .25s var(--b5-ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  border-color: var(--b5-gold);
  background: var(--b5-gold);
  color: #090909;
}
.btn-gold:hover { background: var(--b5-gold-light); border-color: var(--b5-gold-light); }
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #090909 url("assets/images/johannesburg-hero.png") center center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.70) 38%, rgba(0,0,0,.18) 78%, rgba(0,0,0,.32) 100%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, transparent 42%, rgba(0,0,0,.25) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--b5-black));
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; width: min(760px, 100%); }
.eyebrow {
  margin: 0 0 20px;
  color: var(--b5-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.2vw, 108px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 em { color: var(--b5-gold-light); font-style: normal; }
.hero-lead {
  max-width: 650px;
  margin: 30px 0 34px;
  color: rgba(255,255,255,.80);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hero-meta {
  position: absolute;
  z-index: 2;
  bottom: 45px;
  right: 0;
  display: flex;
  gap: 34px;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* General sections */
.section { padding: 125px 0; }
.section-dark { background: var(--b5-black); }
.section-panel { background: var(--b5-charcoal); }
.section-head { max-width: 850px; margin-bottom: 65px; }
.section-head .eyebrow { margin-bottom: 15px; }
.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.section-intro {
  margin: 25px 0 0;
  max-width: 680px;
  color: var(--b5-muted);
  font-size: 17px;
}
.pillars {
  display:grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--b5-line);
  border-bottom: 1px solid var(--b5-line);
}
.pillar {
  padding: 45px 38px 48px;
  min-height: 280px;
  border-right: 1px solid var(--b5-line);
}
.pillar:last-child { border-right:0; }
.pillar-num { color: var(--b5-gold); font-size:11px; letter-spacing:.2em; }
.pillar h3 {
  margin: 48px 0 12px;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}
.pillar p { margin:0; color:var(--b5-muted); font-size:14px; }

/* Africa feature */
.feature {
  position: relative;
  min-height: 680px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.58) 48%, rgba(0,0,0,.18) 100%),
    url("assets/images/africa-next-chapter.png") center 56% / cover no-repeat;
}
.feature-content { position:relative; z-index:2; padding:100px 0; max-width:850px; }
.feature .section-title { font-size:clamp(46px,6vw,86px); }
.feature p { max-width:650px; color:rgba(255,255,255,.75); font-size:18px; margin:28px 0 0; }

/* Focus */
.focus-grid {
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:1px;
  background:var(--b5-line);
  border:1px solid var(--b5-line);
}
.focus-card {
  position:relative;
  min-height:320px;
  padding:38px;
  background:var(--b5-charcoal);
  overflow:hidden;
  transition:background .3s ease;
}
.focus-card:hover { background:#1b1b1b; }
.focus-card::after {
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-70px;
  bottom:-80px;
  border:1px solid rgba(215,166,42,.22);
  border-radius:50%;
}
.focus-number { color:var(--b5-gold); font-size:11px; letter-spacing:.2em; }
.focus-card h3 { margin:70px 0 12px; font-family:Georgia,serif; font-weight:400; font-size:34px; }
.focus-card p { margin:0; max-width:470px; color:var(--b5-muted); font-size:14px; }

/* Statement */
.statement { padding: 140px 0; border-top:1px solid var(--b5-line); border-bottom:1px solid var(--b5-line); }
.statement-inner { display:grid; grid-template-columns: .55fr 1fr; gap:70px; align-items:start; }
.statement h2 { margin:0; font-family:Georgia,serif; font-size:clamp(42px,5vw,70px); font-weight:400; line-height:1.03; }
.statement-copy { color:var(--b5-muted); font-size:18px; max-width:650px; }
.statement-copy p:first-child { margin-top:0; }

/* Global */
.global {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 80% 50%, rgba(215,166,42,.12), transparent 28%),
    var(--b5-charcoal);
}
.global::before {
  content:"AFRICA";
  position:absolute;
  right:-80px;
  bottom:-90px;
  color:rgba(255,255,255,.025);
  font-size:240px;
  font-weight:800;
  letter-spacing:-.08em;
}
.global-content { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.global-map {
  min-height:450px;
  display:grid;
  place-items:center;
  border:1px solid var(--b5-line);
  background:
    radial-gradient(circle, rgba(215,166,42,.16) 0 1px, transparent 1.5px) 0 0 / 22px 22px;
}
.africa-mark {
  width:210px;
  height:260px;
  clip-path: polygon(45% 0,58% 7%,61% 18%,73% 27%,70% 39%,84% 51%,72% 62%,75% 77%,61% 88%,52% 100%,42% 87%,31% 82%,28% 69%,17% 60%,23% 48%,12% 38%,25% 26%,29% 13%);
  background:linear-gradient(145deg, rgba(240,200,91,.95), rgba(215,166,42,.35));
  filter:drop-shadow(0 0 40px rgba(215,166,42,.18));
}
.global h2 { margin:0; font-family:Georgia,serif; font-weight:400; font-size:clamp(45px,5vw,75px); line-height:1.03; }
.global p { color:var(--b5-muted); font-size:17px; max-width:560px; margin:28px 0 32px; }

/* Insights */
.insights-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.insight-card {
  min-height:320px;
  padding:30px;
  border:1px solid var(--b5-line);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform .3s var(--b5-ease), border-color .3s ease;
}
.insight-card:hover { transform:translateY(-5px); border-color:rgba(215,166,42,.5); }
.insight-type { color:var(--b5-gold); font-size:10px; text-transform:uppercase; letter-spacing:.18em; }
.insight-card h3 { margin:20px 0 0; font-family:Georgia,serif; font-size:28px; line-height:1.15; font-weight:400; }
.insight-bottom { color:var(--b5-muted); font-size:11px; letter-spacing:.1em; text-transform:uppercase; }

/* CTA */
.final-cta {
  position:relative;
  padding:150px 0;
  text-align:center;
  overflow:hidden;
  background:
    linear-gradient(rgba(0,0,0,.70), rgba(0,0,0,.88)),
    url("assets/images/johannesburg-hero.png") center / cover no-repeat;
}
.final-cta .section-title { max-width:900px; margin:0 auto; }
.final-cta p { max-width:620px; margin:25px auto 34px; color:rgba(255,255,255,.70); }

/* Footer */
.site-footer { border-top:1px solid var(--b5-line); background:#050505; }
.footer-main { padding:75px 0; display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:50px; }
.footer-brand p { max-width:340px; color:var(--b5-muted); font-size:13px; }
.footer-title { margin:0 0 20px; color:var(--b5-gold-light); font-size:10px; letter-spacing:.2em; text-transform:uppercase; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.footer-links a { color:var(--b5-muted); font-size:13px; }
.footer-links a:hover { color:#fff; }
.footer-bottom { border-top:1px solid var(--b5-line); padding:22px 0; display:flex; justify-content:space-between; gap:20px; color:#707070; font-size:11px; }

/* Pages / content */
.page-hero { padding:180px 0 100px; border-bottom:1px solid var(--b5-line); background:linear-gradient(180deg,#161616,#070707); }
.page-hero h1 { margin:0; font-family:Georgia,serif; font-weight:400; font-size:clamp(52px,7vw,92px); line-height:1; }
.content-wrap { padding:90px 0 130px; }
.prose { max-width:820px; color:#c2c0ba; font-size:17px; }
.prose h2, .prose h3 { color:#fff; font-family:Georgia,serif; font-weight:400; }
.prose h2 { font-size:42px; margin-top:65px; }
.prose h3 { font-size:28px; margin-top:45px; }
.prose a { color:var(--b5-gold-light); text-decoration:underline; text-underline-offset:3px; }

/* WordPress */
.wp-block-button__link { border-radius:999px !important; }
.alignwide { max-width:var(--b5-max); margin-left:auto; margin-right:auto; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.admin-bar .site-header { top:32px; }

@media (max-width: 1050px) {
  .primary-nav ul { gap:20px; }
  .header-actions .text-link { display:none; }
  .footer-main { grid-template-columns:1fr 1fr; }
}
@media (max-width: 820px) {
  .container { width:min(calc(100% - 34px),var(--b5-max)); }
  .site-header { height:78px; }
  .menu-toggle { display:block; }
  .primary-nav {
    position:fixed; inset:78px 0 0; background:rgba(5,5,5,.98);
    padding:30px 24px; transform:translateX(100%); transition:transform .3s var(--b5-ease);
  }
  .primary-nav.is-open { transform:translateX(0); }
  .primary-nav ul { flex-direction:column; gap:0; }
  .primary-nav li { border-bottom:1px solid var(--b5-line); }
  .primary-nav a { display:block; padding:18px 0; font-size:17px; }
  .header-actions { display:none; }
  .hero { min-height:760px; background-position:64% center; }
  .hero::before { background:linear-gradient(90deg,rgba(0,0,0,.93),rgba(0,0,0,.65)); }
  .hero-content { padding-top:80px; }
  .hero-meta { display:none; }
  .section { padding:90px 0; }
  .pillars, .focus-grid, .global-content, .statement-inner { grid-template-columns:1fr; }
  .pillar { border-right:0; border-bottom:1px solid var(--b5-line); min-height:auto; padding:35px 24px; }
  .pillar:last-child { border-bottom:0; }
  .pillar h3 { margin-top:28px; }
  .focus-card { min-height:270px; }
  .feature { min-height:600px; }
  .feature-content { padding:70px 0; }
  .global-map { min-height:330px; }
  .insights-grid { grid-template-columns:1fr; }
  .insight-card { min-height:260px; }
  .footer-main { grid-template-columns:1fr 1fr; gap:35px 25px; }
  .footer-brand { grid-column:1/-1; }
}
@media (max-width: 520px) {
  .brand-mark { width:34px; height:34px; font-size:15px; }
  .brand-name { font-size:13px; }
  .brand-tagline { font-size:7px; }
  .hero h1 { font-size:51px; }
  .hero-lead { font-size:15px; }
  .btn { min-height:45px; padding:0 19px; }
  .footer-main { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; }
  .admin-bar .site-header { top:46px; }
}


/* === Big 5 Capital v1.1 refinements === */
.btn-small { min-height: 42px; padding-inline: 20px; font-size: 10px; }
.brand .custom-logo-link { display:flex; align-items:center; }
.brand .custom-logo { max-height:54px; width:auto; }
.hero-overlay { position:absolute; inset:0; z-index:1; }
.hero-scroll { position:absolute; z-index:3; left:50%; bottom:38px; transform:translateX(-50%); color:rgba(255,255,255,.55); font-size:9px; letter-spacing:.18em; text-transform:uppercase; display:flex; flex-direction:column; align-items:center; gap:9px; }
.hero-scroll span { width:1px; height:34px; background:var(--b5-gold); animation:scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3; transform:scaleY(.6); transform-origin:top} 50%{opacity:1; transform:scaleY(1)} }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .8s var(--b5-ease), transform .8s var(--b5-ease); }
.reveal.is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .reveal { opacity:1; transform:none; }
}

.page-hero-image {
  min-height:620px;
  display:flex;
  align-items:flex-end;
  background:
    linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.32)),
    url("assets/images/johannesburg-hero.png") center / cover no-repeat;
}
.page-hero-image .container { padding-bottom:90px; }
.two-column { display:grid; grid-template-columns:.9fr 1.1fr; gap:100px; align-items:start; }
.prose { color:#c2c0ba; font-size:17px; line-height:1.85; }
.prose p { margin:0 0 24px; }
.principles { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--b5-line); }
.principles > div { padding:40px 30px; border-right:1px solid var(--b5-line); }
.principles > div:last-child { border-right:0; }
.principles span { color:var(--b5-gold); font-size:10px; letter-spacing:.2em; }
.principles h3 { margin:55px 0 10px; font-family:Georgia,serif; font-size:30px; font-weight:400; }
.principles p { color:var(--b5-muted); font-size:14px; margin:0; }
.service-list { border-top:1px solid var(--b5-line); }
.service-list article { display:grid; grid-template-columns:110px 1fr; gap:30px; padding:48px 0; border-bottom:1px solid var(--b5-line); }
.service-list article > span { color:var(--b5-gold); font-size:11px; letter-spacing:.2em; }
.service-list h2 { margin:0 0 10px; font-family:Georgia,serif; font-size:38px; font-weight:400; }
.service-list p { max-width:700px; color:var(--b5-muted); margin:0; }
.short-feature { min-height:560px; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:100px; align-items:start; }
.contact-details { border-top:1px solid var(--b5-line); }
.contact-details > div { display:flex; flex-direction:column; gap:8px; padding:25px 0; border-bottom:1px solid var(--b5-line); }
.contact-label { color:var(--b5-gold); font-size:10px; text-transform:uppercase; letter-spacing:.2em; }
.contact-details a, .contact-details span:last-child { font-size:18px; }
.contact-note { max-width:850px; }
.contact-note p:last-child { max-width:650px; color:var(--b5-muted); font-size:17px; }
.insight-excerpt { color:var(--b5-muted); font-size:13px; margin:18px 0 0; line-height:1.6; }
.global-map { position:relative; }
.map-label { position:absolute; font-size:9px; letter-spacing:.25em; color:rgba(255,255,255,.4); }
.map-label-1 { left:16%; top:22%; color:var(--b5-gold); }
.map-label-2 { right:12%; bottom:25%; }
.skip-link:focus { position:fixed; z-index:9999; top:10px; left:10px; width:auto; height:auto; padding:10px 15px; margin:0; clip:auto; background:#fff; color:#000; }

@media (max-width:820px) {
  .hero-scroll { display:none; }
  .page-hero-image { min-height:520px; }
  .two-column, .contact-grid { grid-template-columns:1fr; gap:45px; }
  .principles { grid-template-columns:1fr; }
  .principles > div { border-right:0; border-bottom:1px solid var(--b5-line); }
  .principles > div:last-child { border-bottom:0; }
  .service-list article { grid-template-columns:55px 1fr; gap:15px; }
  .service-list h2 { font-size:30px; }
}

/* === Hero alignment correction === */
.hero-content {
  width: min(780px, 100%);
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-lead,
.hero-content .hero-actions {
  text-align: left;
}
.hero-content h1 {
  max-width: 760px;
}
.hero-lead {
  max-width: 610px;
}
.hero-actions {
  justify-content: flex-start;
}

/* === Hero left gutter correction === */
.hero-content {
  margin-left: max(24px, calc((100vw - var(--b5-max)) / 2));
  margin-right: 0;
  width: min(780px, calc(100% - max(24px, calc((100vw - var(--b5-max)) / 2)) - 24px));
}
@media (max-width: 820px) {
  .hero-content {
    margin-left: 0;
    margin-right: auto;
    width: 100%;
  }
}

/* === Footer uses WordPress Site Identity logo === */
.footer-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.footer-brand .custom-logo {
  width: auto;
  max-width: 280px;
  max-height: 70px;
  object-fit: contain;
}
