/* =========================================================
   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: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -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; }

/* ---------- Topbar (contact + social) ---------- */
.topbar { background: var(--brown); padding: 7px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 1320px; }
.topbar-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: #E9DFCF; transition: color 0.15s ease; }
.topbar-phone:hover { color: var(--gold-light); }
.topbar-phone svg { flex-shrink: 0; }
.social-links { display: flex; align-items: center; gap: 8px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-icon:hover { background: var(--gold); color: var(--white); }
@media (max-width: 480px) {
  .topbar-phone span { display: none; }
}

/* ---------- 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: flex-start;
  height: 78px;
  max-width: 1320px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: 48px; flex-shrink: 0; }
.brand-badge {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.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: auto; }

.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; }

.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-dropdown-caret {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; margin: 0;
  background: none; border: none; cursor: pointer; color: inherit;
  flex-shrink: 0;
}
.nav-dropdown-caret::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.65; transition: transform 0.15s ease;
}
.nav-item:hover .nav-dropdown-caret::after, .nav-item:focus-within .nav-dropdown-caret::after, .nav-item.open .nav-dropdown-caret::after {
  transform: rotate(225deg); margin-top: 4px;
}
.nav-dropdown {
  position: absolute; top: 100%; left: 0; padding-top: 12px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 120;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-inner {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(43,29,18,0.12); min-width: 200px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-dropdown-inner a { padding: 9px 12px; border-radius: 6px; border-bottom: none; white-space: nowrap; }
.nav-dropdown-inner a:hover { background: var(--cream); color: var(--gold); border-color: transparent; }

/* ---------- Policy paper document listings ----------
   Layout follows the brand's fixed document-row pattern: one document per
   row, full width, cover thumbnail on the left and title/description/link
   on the right, vertically centered against the cover. Rows stack top to
   bottom in upload order -- do not switch this back to a multi-column grid. */
.doc-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card.doc-card { display: flex; flex-direction: row; align-items: center; padding: 0; overflow: hidden; }
.doc-cover { display: block; position: relative; width: 150px; flex-shrink: 0; aspect-ratio: 5 / 6; background: var(--brown-light); overflow: hidden; }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.doc-card:hover .doc-cover img { transform: scale(1.03); }
.doc-card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.doc-card-body .btn { align-self: flex-start; }
.doc-card h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.35; }
.doc-card p { margin: 0 0 14px; font-size: 0.88rem; color: var(--text-muted); max-width: 640px; }
.doc-card p:empty { display: none; }
.doc-empty-msg { display: none; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 480px) {
  .card.doc-card { flex-direction: column; align-items: stretch; }
  .doc-cover { width: 100%; }
}

/* ---------- Latest Policy Papers (home page card) ----------
   Auto-generated by admin/includes/pagetpl.php's
   regenerate_latest_policy_docs_home() every time a document is uploaded,
   replaced or removed anywhere on the site (whether through the Policy
   Papers upload flow or a page's own "+Add Item" editor) — do not hand-edit
   the list markup between the AUTO markers on index.html, it will be
   overwritten on the next save. */
.latest-docs-card { max-width: 900px; margin: 0 auto; }
.latest-docs-head h3 { margin: 0 0 6px; }
.latest-docs-head p { margin: 0; }
.latest-docs-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.latest-doc-row {
  display: flex; align-items: center; gap: 16px;
  padding: 10px; border-radius: 10px; text-decoration: none; color: inherit;
  background: var(--white); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.latest-doc-row:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.latest-doc-cover { width: 44px; height: 54px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--brown-light); }
.latest-doc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-doc-info { flex: 1; min-width: 0; }
.latest-doc-title { display: block; font-weight: 600; font-size: 0.95rem; color: var(--brown); line-height: 1.35; }
.latest-doc-cat { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.latest-doc-arrow { flex-shrink: 0; font-size: 0.82rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
@media (max-width: 560px) {
  .latest-doc-row { flex-wrap: wrap; }
  .latest-doc-arrow { margin-left: 60px; }
}

/* ---------- Inline content photo ----------
   For illustrative photos/diagrams inside a page's body copy (as opposed to
   the page hero background or a policy-document cover). Reusable across any
   page via the same data-edit-img + <p> caption pattern. */
.content-photo { max-width: 900px; margin: 0 auto; }
.content-photo img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-card); display: block; }
.content-photo-caption { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); text-align: center; }

/* ---------- 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; }

/* Page-hero with a photo background: dark brown gradient overlay keeps the
   white heading/lede text readable over any photo. Set --hero-photo inline
   on the .page-hero element to swap the image per page. */
.page-hero--photo {
  background-image: linear-gradient(160deg, var(--hero-overlay-1, rgba(59,36,21,0.62)) 0%, var(--hero-overlay-2, rgba(28,17,10,0.72)) 100%), var(--hero-photo);
  background-size: cover;
  background-position: var(--hero-pos, center);
  padding: 110px 0 96px;
}
.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); }
.grid-5 { grid-template-columns: repeat(5, 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); }

a.card { display: block; text-decoration: none; color: inherit; }
a.card.card-icon-row { display: flex; }
.card-arrow { display: inline-block; margin-top: 16px; color: var(--gold); font-weight: 700; font-size: 0.9rem; }

/* ---------- 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; }
a.fact-tile { text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; }
a.fact-tile:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-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; }
.region-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.region-links a { font-size: 0.78rem; font-weight: 600; color: var(--brown); border: 1.5px solid var(--gold); padding: 5px 14px; border-radius: 999px; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.region-links a:hover { background: var(--gold); color: var(--white); }

/* ---------- 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-5 { grid-template-columns: repeat(3, 1fr); }
  .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; }
  .nav-item { flex-wrap: wrap; align-items: center; width: 100%; gap: 6px; }
  .nav-dropdown-caret { width: 32px; height: 32px; }
  .nav-dropdown-caret::after { margin-top: 0; transform: rotate(45deg); }
  .nav-item.open .nav-dropdown-caret::after { transform: rotate(225deg); }
  /* On touch/mobile, only an explicit tap (the .open class, toggled by JS)
     reveals the submenu — hover/focus-within are ignored here so it never
     appears open by default. */
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    padding-top: 0; padding-left: 14px; transition: none;
    flex-basis: 100%; width: 100%;
    display: none;
  }
  .nav-item.open .nav-dropdown { display: block; padding-top: 6px; }
  .nav-dropdown-inner { background: none; border: none; box-shadow: none; padding: 0; gap: 10px; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .doc-list { 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; }

/* Hero slide with its own full-bleed photo background (set --hero-photo /
   --hero-pos inline per slide, same convention as .page-hero--photo). */
.hero-slide--photo {
  background-image: linear-gradient(160deg, rgba(59,36,21,0.68) 0%, rgba(20,12,7,0.84) 100%), var(--hero-photo);
  background-size: cover;
  background-position: var(--hero-pos, center);
}
.hero-slide-grid--photo { grid-template-columns: 1fr; max-width: 640px; }

.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); }


/* ---------------------------------------------------------------------
   Floating "Share this page" widget (see .share-float markup, repeated
   identically on every page right after <body>). Desktop: slim vertical
   pill pinned to the left edge, vertically centered. Mobile: collapses
   to a horizontal row pinned bottom-right so it never covers content.
--------------------------------------------------------------------- */
.share-float {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 12px 8px;
  box-shadow: 0 4px 18px rgba(36,21,9,0.18);
}
.share-float-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 2px;
}
.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--brown);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  text-decoration: none;
  flex: none;
}
.share-btn svg {
  width: 16px;
  height: 16px;
}
.share-btn:hover,
.share-btn:focus-visible {
  background: var(--gold);
  color: #fff;
  transform: scale(1.08);
}
.share-btn.share-copy.copied {
  background: var(--green);
  color: #fff;
}

@media (max-width: 780px) {
  .share-float {
    left: auto;
    right: 10px;
    top: auto;
    bottom: 16px;
    transform: none;
    flex-direction: row;
    padding: 8px 10px;
  }
  .share-float-label {
    display: none;
  }
}


/* ---------------------------------------------------------------------
   Per-publication share button + popover, sitting beside the Download
   PDF button inside each policy-paper document card's action row.
--------------------------------------------------------------------- */
.doc-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  position: relative;
  flex-wrap: wrap;
}
.doc-card-actions .btn {
  align-self: center;
}
.doc-share {
  position: relative;
  display: inline-flex;
}
.doc-share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--brown);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  flex: none;
}
.doc-share-btn svg {
  width: 15px;
  height: 15px;
}
.doc-share-btn:hover,
.doc-share-btn:focus-visible {
  background: var(--gold);
  color: #fff;
}
.doc-share-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 4px 16px rgba(36,21,9,0.18);
  z-index: 30;
}
.doc-share-menu[hidden] {
  display: none;
}
.doc-share-menu .share-btn {
  width: 28px;
  height: 28px;
}
.doc-share-menu .share-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 480px) {
  .doc-share-menu {
    left: auto;
    right: 0;
  }
}

/* Lightbox: click-to-expand for content photos (excludes hero, slider, video thumbnails, and linked doc covers) */
img.lightbox-enabled {
  cursor: zoom-in;
}
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox-overlay.is-open {
  display: flex;
}
.lightbox-overlay .lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: lightboxZoomIn 0.18s ease-out;
}
@keyframes lightboxZoomIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.22);
}
body.lightbox-lock {
  overflow: hidden;
}

/* Fix: .card-icon-row p (color: var(--text-muted)) was overriding .card--dark p's light
   text color for dark-variant icon-row cards (e.g. homepage "We Produce"/"We Support"),
   making body copy nearly invisible against the dark card background. */
.card--dark.card-icon-row p { color: #F1E6D2; }
