/*
Theme Name: African Miners
Theme URI: https://am.farm2pot.org/
Author: African Miners
Description: Elementor-ready theme for African Miners (gold mining and trading). Lightweight classic theme with Elementor Theme Builder locations (header, footer, single, archive), a built-in fallback header and footer, and a one-click starter setup that creates the site pages and menu on activation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: african-miners
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, full-width-template, elementor
*/

:root {
  --am-bg: #12100d;
  --am-bg-2: #1a1712;
  --am-panel: #221e17;
  --am-line: rgba(212, 166, 58, .22);
  --am-gold: #d4a63a;
  --am-gold-hi: #f0cf7a;
  --am-text: #f3ead6;
  --am-muted: #b9ae98;
  --am-head: "Playfair Display", Georgia, serif;
  --am-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --am-radius: 6px;
}

/* Make Elementor's global kit follow the theme palette and fonts */
body[class*="elementor-kit-"] {
  --e-global-color-primary: #f3ead6;
  --e-global-color-secondary: #b9ae98;
  --e-global-color-text: #b9ae98;
  --e-global-color-accent: #d4a63a;
  --e-global-typography-primary-font-family: "Playfair Display";
  --e-global-typography-secondary-font-family: "Playfair Display";
  --e-global-typography-text-font-family: "Inter";
  --e-global-typography-accent-font-family: "Inter";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--am-bg);
  color: var(--am-muted);
  font-family: var(--am-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--am-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--am-gold-hi); }
h1, h2, h3, h4, h5, h6 { font-family: var(--am-head); color: var(--am-text); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
body .elementor-widget-heading .elementor-heading-title { font-family: var(--am-head); }
body .elementor-widget-text-editor, body .elementor-widget-text-editor p { font-family: var(--am-body); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: var(--am-gold); color: #000; padding: 10px 16px; z-index: 10000; top: 8px; left: 8px; }
:focus-visible { outline: 2px solid var(--am-gold-hi); outline-offset: 3px; }

/* Buttons */
.am-btn, .wp-block-button__link, .elementor-button, input[type=submit] {
  display: inline-block;
  font-family: var(--am-body);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--am-radius);
  transition: background .2s, color .2s, border-color .2s;
}
.am-btn { background: var(--am-gold); color: #1a1405; padding: 12px 24px; border: 1px solid var(--am-gold); }
.am-btn:hover { background: var(--am-gold-hi); border-color: var(--am-gold-hi); color: #1a1405; }
.am-btn--ghost { background: transparent; color: var(--am-gold); }
.am-btn--ghost:hover { background: var(--am-gold); color: #1a1405; }
.elementor-button.am-ghost .elementor-button, .am-ghost .elementor-button { background: transparent !important; border: 1px solid var(--am-gold); color: var(--am-gold) !important; }
.am-ghost .elementor-button:hover { background: var(--am-gold) !important; color: #1a1405 !important; }

/* Header */
.am-header { position: sticky; top: 0; z-index: 999; background: rgba(18,16,13,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--am-line); }
.admin-bar .am-header { top: 32px; }
.am-header__inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.am-brand { display: flex; align-items: center; gap: 12px; color: var(--am-text); }
.am-brand:hover { color: var(--am-text); }
.am-brand .custom-logo { max-height: 46px; width: auto; }
.am-brand__mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--am-gold); color: var(--am-gold); font-family: var(--am-head); font-weight: 700; }
.am-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.am-brand__name { font-family: var(--am-head); font-weight: 700; letter-spacing: .12em; font-size: 17px; }
.am-brand__tag { font-size: 11px; color: var(--am-muted); letter-spacing: .08em; }
.am-nav { margin-left: auto; }
.am-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.am-nav li { position: relative; }
.am-nav a { display: block; padding: 10px 12px; color: var(--am-text); font-size: 14.5px; font-weight: 500; }
.am-nav a:hover, .am-nav .current-menu-item > a { color: var(--am-gold); }
.am-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 7px; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.am-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--am-bg-2); border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 8px; display: none; flex-direction: column; gap: 0; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.am-nav li:hover > .sub-menu, .am-nav li:focus-within > .sub-menu { display: flex; }
.am-nav .sub-menu a { padding: 9px 12px; border-radius: 4px; }
.am-nav .sub-menu a:hover { background: rgba(212,166,58,.1); }
.am-header__cta { white-space: nowrap; }
.am-toggle { display: none; background: none; border: 1px solid var(--am-line); color: var(--am-text); border-radius: var(--am-radius); padding: 8px 12px; font: inherit; cursor: pointer; margin-left: auto; }

/* Footer */
.am-footer { background: #0c0a08; border-top: 1px solid var(--am-line); color: var(--am-muted); font-size: 15px; }
.am-footer__grid { max-width: 1240px; margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.am-footer h3 { font-size: 17px; margin-bottom: 14px; }
.am-footer ul { list-style: none; margin: 0; padding: 0; }
.am-footer li { margin: 0 0 8px; }
.am-footer a { color: var(--am-muted); }
.am-footer a:hover { color: var(--am-gold-hi); }
.am-footer__about p { max-width: 38ch; margin-top: 14px; }
.am-footer__bottom { border-top: 1px solid var(--am-line); }
.am-footer__bottom-inner { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; }
.am-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.am-footer__legal li { margin: 0; }

/* Content (non-Elementor pages) */
.am-main { min-height: 50vh; }
.am-container { max-width: 860px; margin: 0 auto; padding: 72px 24px; }
.am-container--wide { max-width: 1100px; }
.am-entry-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4em; }
.am-entry-meta { color: var(--am-muted); font-size: 14px; margin-bottom: 24px; }
.am-post-card { padding: 28px 0; border-bottom: 1px solid var(--am-line); }
.am-post-card h2 { font-size: 1.6rem; margin-bottom: .3em; }
.am-main.is-elementor .am-container { max-width: none; padding: 0; }
.entry-content > * + * { margin-top: 1.1em; }
input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select {
  width: 100%; background: var(--am-bg-2); color: var(--am-text); border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 12px 14px; font: inherit;
}
input[type=submit] { background: var(--am-gold); color: #1a1405; border: 0; padding: 13px 26px; cursor: pointer; }

/* Elementor helpers used by the starter home template */
.am-eyebrow { color: var(--am-gold); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.am-stat p { margin: 0; }
.am-stat .am-stat__label { color: var(--am-gold); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.am-stat .am-stat__value { color: var(--am-text); font-family: var(--am-head); font-size: 1.15rem; }
.am-card .elementor-image-box-img img { border-radius: var(--am-radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.am-card .elementor-image-box-title { color: var(--am-text); }
.am-card .elementor-image-box-description { color: var(--am-muted); }
.am-feature .elementor-icon { color: var(--am-gold); }
.am-feature .elementor-icon-box-title { color: var(--am-text); }
.am-step-num { font-family: var(--am-head); color: var(--am-gold); font-size: 2.2rem; line-height: 1; margin: 0 0 8px; }
.elementor-accordion .elementor-accordion-item { border-color: var(--am-line); }
.elementor-accordion .elementor-tab-title { color: var(--am-text); }
.elementor-accordion .elementor-tab-title.elementor-active, .elementor-accordion .elementor-tab-title:hover { color: var(--am-gold); }
.elementor-accordion .elementor-tab-content { color: var(--am-muted); border-color: var(--am-line); }

@media (max-width: 960px) {
  .am-toggle { display: block; }
  .am-header__cta { display: none; }
  .am-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--am-bg-2); border-bottom: 1px solid var(--am-line); margin: 0; padding: 12px 24px 20px; }
  .am-nav.is-open { display: block; }
  .am-nav ul { flex-direction: column; align-items: stretch; }
  .am-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; min-width: 0; }
  .am-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .am-footer__grid { grid-template-columns: 1fr; padding-top: 48px; }
}
@media (max-width: 782px) { .admin-bar .am-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
