/* =========================================================
   Ghana Resource Research & Media Consult — Site Stylesheet
   Earth-tone brand system: cocoa brown / gold / forest green / river teal
   ========================================================= */

:root {
  --brown: #3B2415;
  --brown-light: #5A3A26;
  --brown-lighter: #7A5540;
  --gold: #C6932F;
  --gold-light: #E0B463;
  --green: #3F6B4B;
  --green-light: #EAF1EC;
  --teal: #2E6E62;
  --teal-light: #E7F1EF;
  --cream: #F4F1EC;
  --white: #FFFFFF;
  --text-dark: #2B1D12;
  --text-muted: #6B5A48;
  --border-soft: #E7E0D3;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 24px rgba(43, 29, 18, 0.08);
  --shadow-card-hover: 0 10px 32px rgba(43, 29, 18, 0.14);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brown);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--sm { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section--brown { background: var(--brown); color: var(--white); }
.section--brown h1, .section--brown h2, .section--brown h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--cream);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--brown .eyebrow { background: rgba(255,255,255,0.08); }

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 10px;
}
.section--brown .lede { color: #E9DFCF; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: #B07F24; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(198,147,47,0.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-outline-dark:hover { background: var(--brown); color: var(--white); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
  max-width: 1320px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--brown); line-height: 1.2; max-width: 190px; white-space: normal; }

.nav-links { display: flex; align-items: center; gap: 19px; }
.nav-links a {
  font-size: 0.87rem; font-weight: 600; color: var(--text-dark);
  padding: 6px 1px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap; flex-shrink: 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-color: var(--gold); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brown); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brown) 0%, #2C1B10 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(198,147,47,0.18), transparent 40%),
                     radial-gradient(circle at 10% 90%, rgba(46,110,98,0.22), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero .lede { color: #E9DFCF; font-size: 1.15rem; max-width: 640px; }

.page-hero {
  background: linear-gradient(160deg, var(--brown) 0%, #2C1B10 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: #E9DFCF; }
.breadcrumb { font-size: 0.85rem; color: #C9B79A; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Pillar row (icon strip) ---------- */
.pillar-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 34px 0; }
.pillar-row.center { justify-content: center; }

/* ---------- Icon circle ---------- */
.icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle img { width: 32px; height: 32px; }
.icon-circle--lg { width: 78px; height: 78px; }
.icon-circle--lg img { width: 40px; height: 40px; }
.icon-circle--sm { width: 50px; height: 50px; }
.icon-circle--sm img { width: 24px; height: 24px; }
.bg-gold { background: var(--gold); }
.bg-brown { background: var(--brown); }
.bg-green { background: var(--green); }
.bg-teal { background: var(--teal); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--text-dark); font-size: 0.95rem; }
.card--dark { background: var(--brown-light); color: var(--white); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: #F1E6D2; }

.card-icon-row { display: flex; gap: 18px; align-items: flex-start; }
.card-icon-row h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card-icon-row p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Stat / fact tiles ---------- */
.fact-tile {
  display: flex; align-items: center; gap: 18px;
  background: var(--cream); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-card);
}
.fact-tile .big { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--brown); }
.fact-tile .small { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Timeline (Our Approach) ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; margin-top: 50px; }
.timeline::before {
  content: "";
  position: absolute; top: 39px; left: 8%; right: 8%; height: 2px;
  background-image: linear-gradient(to right, var(--gold) 50%, transparent 50%);
  background-size: 16px 2px;
}
.timeline-step { text-align: center; position: relative; }
.timeline-step .icon-circle { margin: 0 auto; position: relative; }
.timeline-step .step-num {
  position: absolute; top: -6px; right: calc(50% - 44px);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--brown);
}
.timeline-step h4 { margin: 18px 0 8px; font-size: 1rem; color: var(--brown); font-family: var(--font-head); }
.timeline-step p { font-size: 0.87rem; color: var(--text-muted); }

/* ---------- Badge tag ---------- */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--teal); padding: 5px 14px; border-radius: 999px; }

/* ---------- Region / location cards ---------- */
.region-card { text-align: center; }
.region-card .icon-circle { margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #E9DFCF; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.3px; }
.footer-grid p, .footer-grid a { font-size: 0.88rem; color: #C9B79A; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: #A8916F;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name span { color: #C9B79A; }

/* ---------- Forms (Contact) ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--brown); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark); background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

.contact-info-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.contact-info-row .icon-circle { flex-shrink: 0; }
.contact-info-row h4 { font-size: 0.95rem; color: var(--brown); margin-bottom: 4px; }
.contact-info-row p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Divider dot list ---------- */
.dot-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--text-muted); font-size: 0.92rem; }
.dot-list .dot { color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #E1F0EC; margin-left: auto; margin-right: auto; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border-soft); transform: translateY(-130%); transition: transform 0.2s ease; box-shadow: 0 12px 24px rgba(43,29,18,0.1); }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }
  .brand-name { font-size: 0.85rem; max-width: 46vw; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .timeline { grid-template-columns: 1fr; }
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.photo-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.photo-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.photo-card figcaption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
}
.photo-card.wide { grid-column: span 2; }
.photo-card.wide img { height: 300px; }
.photo-credit {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted, #7a6f60);
  text-align: right;
}

@media (max-width: 900px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-card.wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-card.wide { grid-column: span 1; }
  .photo-card img, .photo-card.wide img { height: 220px; }
}

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  background: linear-gradient(160deg, var(--brown) 0%, #2C1B10 100%);
  overflow: hidden;
  border-top: 5px solid var(--gold);
  border-bottom: 5px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(198,147,47,0.25);
}
.hero-slider::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(198,147,47,0.18), transparent 40%),
                     radial-gradient(circle at 10% 90%, rgba(46,110,98,0.22), transparent 45%);
  pointer-events: none;
}
.hero-slider-track { position: relative; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 88px 0 96px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1),
              transform 0.85s cubic-bezier(0.4,0,0.2,1),
              visibility 0s linear 0.85s;
  z-index: 1;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1),
              transform 0.85s cubic-bezier(0.4,0,0.2,1);
  z-index: 2;
}
.hero-slide-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 50px; align-items: center; width: 100%;
}
.hero-slide-text .eyebrow,
.hero-slide-text h1,
.hero-slide-text .lede,
.hero-slide-text .btn-row {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.is-active .hero-slide-text .eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.hero-slide.is-active .hero-slide-text h1 { opacity: 1; transform: translateY(0); transition-delay: 0.23s; }
.hero-slide.is-active .hero-slide-text .lede { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.hero-slide.is-active .hero-slide-text .btn-row { opacity: 1; transform: translateY(0); transition-delay: 0.37s; }

.hero-slide-media {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.is-active .hero-slide-media { opacity: 1; transform: scale(1); transition-delay: 0.22s; }
.hero-slide-text .eyebrow { background: rgba(255,255,255,0.1); color: var(--gold-light); }
.hero-slide-text h1 { color: var(--white); max-width: 560px; font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
.hero-slide-text .lede { color: #E9DFCF; max-width: 520px; }

.media-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 55px rgba(0,0,0,0.35);
}

.video-facade {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(198,147,47,0.94); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.play-btn:hover { background: var(--gold); transform: translate(-50%,-50%) scale(1.08); }
.play-btn svg { margin-left: 3px; }
.video-caption { margin-top: 14px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.video-caption a { color: var(--teal); font-weight: 600; }
.video-caption a:hover { text-decoration: underline; }

.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 55px rgba(0,0,0,0.35); }
.photo-frame img { width: 100%; height: 320px; object-fit: cover; }

.region-chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.region-chip { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--white); border-radius: var(--radius-sm); padding: 18px 10px; }
.region-chip span { font-weight: 700; font-size: 0.83rem; color: var(--brown); }

.contact-chip-card .contact-info-row { margin-bottom: 20px; }
.contact-chip-card .contact-info-row:last-child { margin-bottom: 0; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,0.24); }
.slider-arrow--prev { left: 18px; }
.slider-arrow--next { right: 18px; }

.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0; transition: background 0.15s ease, transform 0.15s ease; }
.slider-dot.is-active { background: var(--gold); transform: scale(1.3); }

@media (max-width: 980px) {
  .hero-slide { padding: 60px 0 76px; }
  .hero-slide-grid { grid-template-columns: 1fr; }
  .hero-slide-text h1, .hero-slide-text .lede { max-width: 100%; }
  .hero-slide-media { max-width: 460px; }
  .slider-arrow { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 720px) {
  .hero-slide { padding: 52px 0 66px; }
  .slider-arrow { width: 38px; height: 38px; bottom: 14px; }
  .slider-dots { bottom: 26px; }
  .photo-frame img { height: 240px; }
}

/* Reusable media-card variant for use inside light sections (e.g. documentary film page) */
.section .media-card.video-card { box-shadow: var(--shadow-card); }
