/* =========================================================
   AH GROUP (Holding) — additional components
   Loaded after style.css. Reuses the same design tokens.
   ========================================================= */

/* WordPress turns flag emoji into <img class="emoji"> (Twemoji) on the live site —
   real cross-platform flag images. Our global style-dequeue removes WP's own emoji
   sizing, so restore it: render each flag at 1em of its container (matches the
   original emoji size everywhere — nav, footer, presence, company cards, contact). */
img.emoji {
  display: inline-block !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 .06em !important;
  vertical-align: -.1em !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Logo coin — circular AH Group emblem on light backgrounds */
.logo-coin { width: 240px; max-width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(210,162,76,.35); }
.logo-coin img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Soft gold halo behind hero content */
.hero-coin { position: absolute; right: 4%; top: 46%; transform: translateY(-50%); width: 420px; height: 420px; border-radius: 50%; opacity: .9;
  background: radial-gradient(circle, rgba(210,162,76,.16), transparent 60%); pointer-events: none; z-index: 1; }

/* ---------- Global presence ---------- */
.presence-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.presence-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.presence-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.presence-card .flag { font-size: 42px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.presence-card .country { font-family: var(--f-head); font-weight: 700; font-size: 16px; margin-top: 14px; color: var(--ink); }
.presence-card .cos { color: var(--muted); font-size: 12.5px; margin-top: 5px; letter-spacing: .02em; }
.bg-navy .presence-card, .bg-cream.on-navy .presence-card { }
.presence-grid.on-dark .presence-card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.10); }
.presence-grid.on-dark .country { color: #fff; }
.presence-grid.on-dark .cos { color: rgba(245,239,225,.62); }

/* ---------- Flag chip + monogram on company cards ---------- */
.company-card .flag-chip { position: absolute; top: 20px; right: 22px; font-size: 26px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); z-index: 2; }
.cc-mono { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-700), var(--navy-500)); color: var(--gold-400); font-family: var(--f-head); font-weight: 800; font-size: 19px; letter-spacing: .02em; margin-bottom: 22px; }

/* ---------- Region grouping label ---------- */
.region-label { display: flex; align-items: center; gap: 16px; margin: 56px 0 28px; }
.region-label.first { margin-top: 4px; }
.region-label .flag { font-size: 30px; line-height: 1; }
.region-label h3 { font-size: 22px; white-space: nowrap; margin: 0; }
.region-label .rule { flex: 1; height: 1px; background: var(--line); }
.region-label .count { font-family: var(--f-head); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Founder / chairman ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; }
.founder .portrait { aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(150deg, var(--navy-700), var(--navy-500)); display: grid; place-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.founder .portrait::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(210,162,76,.22), transparent 70%); }
.founder .portrait .initials { font-family: var(--f-head); font-weight: 800; font-size: 78px; color: var(--gold-400); position: relative; z-index: 2; }

/* ---------- Info card on dark ---------- */
.info-card.on-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); }
.info-card.on-dark .row { border-color: rgba(255,255,255,.08); }
.info-card.on-dark .row dt { color: rgba(245,239,225,.55); }
.info-card.on-dark .row dd { color: #fff; }
.info-card.on-dark .row dd small { color: rgba(245,239,225,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .presence-grid { grid-template-columns: repeat(3, 1fr); }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder .portrait { max-width: 240px; }
}
@media (max-width: 600px) {
  .presence-grid { grid-template-columns: repeat(2, 1fr); }
  .region-label h3 { font-size: 19px; }
}

/* ---------- Brand logo image in header ---------- */
.brand img.mark { object-fit: contain; }

/* ---------- Companies dropdown nav ---------- */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > .nav-drop-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop > .nav-drop-toggle svg { width: 13px; height: 13px; opacity: .8; transition: transform .25s var(--ease); }
.nav-drop-menu { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 286px;
  background: #0b1d2e; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s; z-index: 130; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop:hover > .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
  color: rgba(245,239,225,.84); white-space: nowrap; }
.nav-drop-menu a::after { display: none !important; }
.nav-drop-menu a:hover { background: rgba(210,162,76,.12); color: #fff; }
.nav-drop-menu a .fl { font-size: 17px; line-height: 1; }

/* ---------- Founder photo ---------- */
.founder .portrait { aspect-ratio: 4 / 5; }
.founder .portrait img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* ---------- Hero brand emblem ---------- */
.hero-logo { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: min(42vw, 460px); opacity: .12; z-index: 1; pointer-events: none; }

/* ---------- Stat unit (the gold "+") stays inline & large ---------- */
.stat b .unit { color: var(--gold-400); margin-left: 1px; }

@media (max-width: 760px) {
  .nav.mobile-open .nav-drop { display: block; width: 100%; }
  .nav.mobile-open .nav-drop > .nav-drop-toggle svg { display: none; }
  .nav.mobile-open .nav-drop-menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    background: transparent; border: 0; box-shadow: none; padding: 2px 0 10px 16px; }
  .nav.mobile-open .nav-drop-menu a { padding: 11px 6px; font-size: 15.5px; }
  .hero-logo { display: none; }
}

/* =========================================================
   v3 — per-company sector content + chairman + map
   ========================================================= */

/* ---------- Sector showcase (illustration beside copy, on a light section) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1.02fr; gap: 54px; align-items: center; }
.showcase .sc-tag { font-family: var(--f-head); font-weight: 700; font-size: clamp(23px,3vw,33px); color: var(--ink); line-height: 1.22; margin: 14px 0 16px; }
.showcase .sc-copy p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.72; }
.sector-art { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); display: block;
  background: linear-gradient(150deg, #0a1c2c, #16304a); border: 1px solid rgba(210,162,76,.18);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.sector-art svg { width: 100%; height: 100%; display: block; }

/* highlights row inside the showcase */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 14px; margin-top: 30px; }
.hl { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px; box-shadow: var(--shadow-sm); }
.hl b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 19px; color: var(--gold-600); letter-spacing: -.01em; line-height: 1.15; }
.hl span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; letter-spacing: .02em; }

/* ---------- "What we do" services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 22px; margin-top: 12px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(210,162,76,.4); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(210,162,76,.16), rgba(210,162,76,.06)); color: var(--gold-600); }
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h4 { font-family: var(--f-head); font-weight: 700; font-size: 17.5px; color: var(--ink); margin: 0 0 8px; }
.svc-card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; margin: 0; }

/* ---------- Chairman's message (about page) ---------- */
.chairman { display: grid; grid-template-columns: 210px 1fr; gap: 50px; align-items: start; }
.chair-person { text-align: center; position: sticky; top: 120px; }
.chair-person .portrait { width: 168px; height: 168px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto;
  overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid rgba(210,162,76,.45);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-500)); }
.chair-person .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.chair-person .cp-name { display: block; margin-top: 18px; font-family: var(--f-head); font-weight: 700; color: #fff; font-size: 18px; }
.chair-person .cp-role { display: block; color: var(--gold-400); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.chair-quote { position: relative; padding-left: 4px; }
.chair-quote .qmark { font-family: var(--f-head); font-size: 92px; line-height: .6; color: rgba(210,162,76,.32); display: block; height: 44px; }
.chair-quote blockquote { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(21px,2.5vw,28px);
  line-height: 1.4; color: #fff; }
.chair-msg p { color: rgba(245,239,225,.74); margin-top: 18px; font-size: 16px; line-height: 1.74; }
.chair-sign { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.chair-sign .ln { width: 40px; height: 2px; background: var(--gold-400); }
.chair-sign b { font-family: var(--f-head); color: #fff; font-size: 15.5px; }
.chair-sign span { color: rgba(245,239,225,.6); font-size: 13.5px; }

/* ---------- Multi-location map (Leaflet) ---------- */
#group-map { height: 480px; width: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); z-index: 0; background: #eef3f6; }
.ah-pin span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500);
  border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(210,162,76,.28), 0 2px 6px rgba(0,0,0,.3); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { font-family: var(--f-body); margin: 14px 16px; }
.map-pop b { font-family: var(--f-head); color: var(--navy-700); font-size: 14px; display: block; }
.map-pop .pc { color: var(--gold-600); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.map-pop small { color: #5a6b78; font-size: 12.5px; display: block; margin-top: 4px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 22px; }
.map-legend span { color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.map-legend span::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 3px rgba(210,162,76,.2); }

/* ---------- "What we do" on a navy band (dark cards) ---------- */
.bg-navy .section-head .eyebrow { color: var(--gold-400); }
.bg-navy .section-head p { color: rgba(245,239,225,.7); }
.bg-navy .svc-card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.10); }
.bg-navy .svc-card:hover { border-color: rgba(210,162,76,.5); box-shadow: 0 20px 44px rgba(0,0,0,.32); }
.bg-navy .svc-card h4 { color: #fff; }
.bg-navy .svc-card p { color: rgba(245,239,225,.66); }
.bg-navy .svc-ico { background: rgba(210,162,76,.16); color: var(--gold-400); }

/* ---------- Our journey (timeline) ---------- */
.timeline { position: relative; max-width: 720px; margin: 10px auto 0; }
.tl-item { display: grid; grid-template-columns: 58px 34px 1fr; align-items: start; }
.tl-year { font-family: var(--f-head); font-weight: 800; font-size: 19px; color: var(--gold-600); text-align: right; padding-top: 1px; }
.tl-mark { position: relative; align-self: stretch; }
.tl-mark::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 10px; bottom: -10px; width: 2px; background: rgba(210,162,76,.34); }
.tl-item:last-child .tl-mark::before { display: none; }
.tl-dot { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 15px; height: 15px; border-radius: 50%; background: var(--gold-500); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(210,162,76,.18); }
.tl-content { padding: 0 0 32px 16px; }
.tl-content h4 { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.tl-content p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ---------- Blog / insights ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(210,162,76,.4); }
.post-card .pc-art { height: 168px; background: linear-gradient(150deg, #0a1c2c, #16304a); position: relative; overflow: hidden; }
.post-card .pc-art::after { content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(210,162,76,.22), transparent 70%); z-index: 0; }
.post-card .pc-art svg.cover { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.post-card .pc-art svg:not(.cover) { width: 46px; height: 46px; color: var(--gold-400); position: absolute; inset: 0; margin: auto; z-index: 1; }
.post-card .pc-cat { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-family: var(--f-head); font-weight: 700; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--navy-900); background: var(--gold-400); padding: 5px 11px; border-radius: 999px; }
.post-card .pc-in { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-family: var(--f-head); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.post-card h3 { font-size: 19px; margin: 10px 0 10px; line-height: 1.28; }
.post-card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; margin: 0 0 18px; }
.post-card .link-arrow { margin-top: auto; }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 40px 0 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--ink-soft); font-size: 17px; line-height: 1.78; margin-top: 16px; }
.article-lede { font-size: 20px; line-height: 1.6; color: var(--ink-soft); border-left: 3px solid var(--gold-500); padding-left: 22px; margin-bottom: 8px; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 34px; }
  .chairman { grid-template-columns: 1fr; gap: 26px; }
  .chair-person { position: static; }
}
