/*
Theme Name: BKK — Bulgarian-Kyrgyz Chamber
Theme URI: https://github.com/ggeorgiev043098/BKK
Author: BKK
Description: Bilingual (BG/EN) custom theme for the Bulgarian-Kyrgyz Chamber (Българо-Киргизка камара). Navy/gold brand, custom News post type, ACF-driven editable content, built-in language switcher.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bkk
*/

/* WordPress admin bar offset for the sticky navbar */
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

/* ===========================================================================
   Design tokens
   =========================================================================== */
:root {
  /* Primary tokens hold the brand NAVY (from the emblem). Names kept as
     --green* for backwards-compat with existing selectors. */
  --green: #123a63;        /* primary — emblem navy */
  --green-dark: #0c2a49;
  --green-700: #1a5088;
  --gold: #e3b23c;         /* accent — emblem gold */
  --gold-dark: #c2922a;
  --red: #d62828;          /* Bulgarian / Kyrgyz red touch */
  --sky: #1aa7df;          /* blue touch */

  --ink: #0f2238;          /* primary text — dark navy */
  --body: #4a5564;         /* body text */
  --muted: #f3f6fa;        /* muted section bg */
  --line: #e3e8ef;         /* borders */
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(18, 58, 99, 0.12);
  --shadow-sm: 0 4px 18px rgba(15, 34, 56, 0.10);
  --container: 1160px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Clip horizontal overflow so the off-canvas mobile menu (parked off-screen
   at translateX(100%)) can't be revealed by swiping sideways. `clip` is used
   instead of `hidden` because it does not create a scroll container and so
   keeps the sticky navbar working. */
html,
body {
  overflow-x: clip;
}

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

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

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--body); }

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

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

.container { width: min(var(--container), 92%); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--muted { background: var(--muted); }

.center { text-align: center; }
.mt { margin-top: 2rem; }

/* ===========================================================================
   Buttons
   =========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); box-shadow: var(--shadow-sm); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-dark); box-shadow: 0 10px 28px rgba(244, 194, 13, 0.4); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn--ghost-dark { color: var(--green); border-color: var(--green); }
.btn--ghost-dark:hover { background: var(--green); color: var(--white); }
.btn--lg { padding: 1.15rem 2.8rem; font-size: 1.12rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-weight: 700;
}
.link-arrow svg { transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ===========================================================================
   Navbar
   =========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { display: flex; }
.brand__logo { width: 48px; height: 48px; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--green); letter-spacing: 0.5px; }
.brand__text small { font-size: 0.66rem; color: var(--body); max-width: 230px; }

.navbar__links { display: flex; align-items: center; gap: 1.4rem; }
.navbar__links a:not(.btn) { font-weight: 600; font-size: 0.96rem; color: var(--ink); position: relative; padding: 0.3rem 0; }
.navbar__links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.navbar__links a:not(.btn):hover::after,
.navbar__links a.is-active::after { width: 100%; }
.navbar__links a.is-active { color: var(--green); }
.navbar__cta { margin-left: 1.1rem; padding: 0.6rem 1.4rem; }
.navbar__cta::after { display: none; }

.navbar__actions { display: flex; align-items: center; gap: 0.8rem; }
/* Language picker — flag-only trigger; dropdown shows flag + name. */
.lang { position: relative; }
.lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang__trigger:hover { border-color: var(--green); color: var(--green); }
.lang__globe { color: var(--green); }

.flag-img {
  display: block;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}
.lang__name { flex: 1; white-space: nowrap; }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 0.3rem;
  z-index: 200;
}
.lang__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--body);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang__menu button:hover { background: var(--muted); color: var(--green); }
.lang__menu button.is-active { color: var(--green); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.25s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--green-700) 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(244, 194, 13, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(26, 167, 223, 0.18), transparent 45%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 9vw, 7rem) 0;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__content { flex: 1 1 auto; max-width: 660px; }
.hero__logo {
  flex: 0 0 auto;
  width: min(320px, 30%);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.hero__subtitle { color: rgba(255, 255, 255, 0.88); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-top: 1.2rem; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
/* Group the CTAs + flags so the flags can centre within the buttons' width.
   inline-flex shrinks the group to the buttons' span (desktop, left-aligned). */
.hero__cta-group { display: inline-flex; flex-direction: column; }
.hero h1 { color: var(--white); margin-top: 1rem; }

.hero__flags { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.6rem; color: var(--gold); }
.flag { width: 46px; height: 30px; border-radius: 5px; box-shadow: var(--shadow-sm); display: inline-block; }
.flag--bg { background: linear-gradient(to bottom, #fff 0 33.3%, #00966e 33.3% 66.6%, #d62612 66.6%); }
/* Kyrgyzstan: proper flag rendered as an inline SVG that fills the tile. */
.flag--kg { overflow: hidden; }
.flag--kg svg { display: block; width: 100%; height: 100%; box-shadow: none; border-radius: 0; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow--light { color: var(--gold); }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero__kicker-brand { color: rgba(255, 255, 255, 0.82); }
.hero__kicker-tag { color: var(--gold); }
.hero__kicker-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

/* ===========================================================================
   Stats
   =========================================================================== */
.stats { background: var(--ink); }
.stats__grid { display: grid; grid-template-columns: repeat(var(--stat-cols, 3), 1fr); }
.stat { text-align: center; padding: 2.2rem 1rem; color: var(--white); border-right: 1px solid rgba(255, 255, 255, 0.1); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); }
.stat span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }

/* ===========================================================================
   Section heading
   =========================================================================== */
.section-heading { max-width: 640px; margin: 0 auto 2.6rem; }
.section-heading--center { text-align: center; }
.section-heading--left { margin: 0 0 1.5rem; }
.section-heading h2 { margin-top: 0.6rem; }
.section-heading p { margin-top: 0.8rem; font-size: 1.08rem; }

/* ===========================================================================
   Mission
   =========================================================================== */
.mission { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.mission__text p { font-size: 1.08rem; margin-bottom: 1.4rem; }
.mission__title { margin-bottom: 1.2rem; }

/* Eyebrow with a leading gold accent bar. */
.eyebrow--bar { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.eyebrow--bar::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.mission__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ===========================================================================
   Cards
   =========================================================================== */
/* All card grids use a centered flexbox so an incomplete last row (1–2 cards)
   is centered rather than left-aligned. Fixed widths + justify-content:center;
   targets direct children so .card and .news-card are both covered. */
/* Accessible hidden text (used by the pagination heading). */
.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; }

/* Pagination (news archive). */
.pagination { margin-top: 2.6rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pagination a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); color: var(--white); border-color: var(--green); }
.pagination .page-numbers.dots { border-color: transparent; }

.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.card-grid > * { width: calc((100% - 2 * 1.4rem) / 3); }          /* default: 3 per row */
.card-grid--4 > *,
.card-grid--center > * { width: calc((100% - 3 * 1.4rem) / 4); } /* 4 per row */
/* Configurable per-row count via inline --cols (2–4). */
.card-grid--cols > * { width: calc((100% - (var(--cols, 3) - 1) * 1.4rem) / var(--cols, 3)); }

@media (max-width: 1000px) {
  .card-grid--4 > *,
  .card-grid--center > * { width: calc((100% - 2 * 1.4rem) / 3); } /* 4-col → 3 per row */
  .card-grid--cols > * { width: calc((100% - (min(var(--cols, 3), 3) - 1) * 1.4rem) / min(var(--cols, 3), 3)); } /* cap at 3 */
}
@media (max-width: 720px) {
  .card-grid > *,
  .card-grid--4 > *,
  .card-grid--center > *,
  .card-grid--cols > * { width: calc((100% - 1.4rem) / 2); }     /* → 2 per row */
}
@media (max-width: 520px) {
  .card-grid > *,
  .card-grid--4 > *,
  .card-grid--center > *,
  .card-grid--cols > * { width: 100%; }                          /* → 1 per row */
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 1rem 0 0.5rem; }
.card p { font-size: 0.97rem; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--muted);
  color: var(--green);
}
.card__icon--accent { background: rgba(244, 194, 13, 0.16); color: var(--gold-dark); }
.card--sector { text-align: center; }
.card--sector .card__icon { background: var(--green); color: var(--white); margin-inline: auto; }
.card--feature { text-align: center; }
.card--feature .card__icon { margin-inline: auto; }
.card--value { text-align: center; }
.card--value .card__icon { margin-inline: auto; }

/* ===========================================================================
   News cards
   =========================================================================== */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__img { height: 190px; background-size: cover; background-position: center; }
.news-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.news-card__body time { font-size: 0.82rem; color: var(--green); font-weight: 700; }
.news-card__body h3 { font-size: 1.12rem; }
.news-card__body p { font-size: 0.95rem; flex-grow: 1; }
.news-card__body .link-arrow { margin-top: 0.4rem; font-size: 0.9rem; }

/* ===========================================================================
   CTA band
   =========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); max-width: 620px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 0.6rem; }

/* ===========================================================================
   Page header (inner pages)
   =========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(244, 194, 13, 0.18), transparent 40%);
}
.page-header h1 { color: var(--white); position: relative; }
.page-header p { color: rgba(255, 255, 255, 0.85); margin-top: 0.8rem; max-width: 680px; font-size: 1.1rem; position: relative; }

/* ===========================================================================
   About
   =========================================================================== */
.about-story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-story__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* When the emblem (transparent circle) is used instead of a photo, drop the
   photo treatment and show it contained/centred. */
.about-story__media--logo img { aspect-ratio: 1 / 1; object-fit: contain; box-shadow: none; border-radius: 0; background: transparent; max-width: 400px; margin-inline: auto; display: block; }
.about-story__text h2 { margin-bottom: 1rem; }

/* Flex so any number of cards (add/remove) stays centred and balanced. */
.mv-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1.6rem; }
.mv-card {
  flex: 1 1 320px;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mv-card .card__icon { margin-inline: auto; }
.mv-card h3 { font-size: 1.4rem; margin: 1.1rem 0 0.7rem; }

/* ===========================================================================
   Sectors list
   =========================================================================== */
.sector-list { display: grid; gap: 1rem; max-width: 880px; margin-inline: auto; }
.sector-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sector-row:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.sector-row__num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--line); }
.sector-row h3 { margin-bottom: 0.2rem; }
.sector-row p { font-size: 0.97rem; }

/* ===========================================================================
   Membership
   =========================================================================== */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 820px; margin-inline: auto; list-style: none; }
.benefits li { display: flex; align-items: flex-start; gap: 0.8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); }
.benefits__check { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); }
/* Odd number of benefits: centre the lone last item across both columns. */
.benefits li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.5rem); }

/* Flex so any number of plans stays centred and balanced (2, 3, more…);
   align-items: stretch keeps every card the same height. */
.plan-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1.6rem; }
.plan {
  flex: 1 1 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan__icon { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; margin: 0 auto 1.1rem; border-radius: 50%; background: rgba(18, 58, 99, 0.08); color: var(--green); }
.plan--featured .plan__icon { background: rgba(227, 178, 60, 0.16); color: var(--gold-dark); }
.plan h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.plan p { margin-bottom: 0; font-size: 0.97rem; }
.plan--featured { border-color: var(--green); border-width: 2px; box-shadow: var(--shadow); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.3rem 1rem; border-radius: 999px;
}

/* ===========================================================================
   Article
   =========================================================================== */
.article-header time { display: block; position: relative; color: var(--gold); font-weight: 700; margin-bottom: 0.4rem; }
.article-header h1 { max-width: 760px; }
/* Article image shown at its natural aspect ratio (never cropped/stretched). */
.article-image { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.8rem; }
.article-body { max-width: 740px; margin-inline: auto; }
.article-body__lead { font-size: 1.25rem; color: var(--ink); font-weight: 600; margin-bottom: 1.4rem; }
.article-body p { font-size: 1.08rem; margin-bottom: 1.2rem; }

/* ===========================================================================
   Contact
   =========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
/* Divider between each chairperson block (after their e-mail) on the contact list. */
.contact-info__sep { border-top: 1px solid var(--line); }
.contact-info h2 { margin-bottom: 1.6rem; }
.contact-info ul { list-style: none; display: grid; gap: 1.3rem; }
.contact-info li { display: flex; align-items: center; gap: 1rem; }
.contact-info__icon { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; border-radius: 12px; background: var(--muted); color: var(--green); }
.contact-info li small { display: block; font-size: 0.8rem; color: var(--body); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info li strong, .contact-info li a { font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.contact-info li a:hover { color: var(--green); }
.contact-info__follow { margin: 2rem 0 0.9rem; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.contact-form-wrap h2 { margin-bottom: 1.4rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 58, 99, 0.14); }
.field textarea { resize: vertical; }
.form-success { display: flex; align-items: center; gap: 0.5rem; background: rgba(18, 58, 99, 0.1); color: var(--green-dark); padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; margin-bottom: 1.2rem; }
.form-error { background: rgba(200, 30, 30, 0.1); color: #b02020; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; margin-bottom: 1.2rem; }

/* ---- Membership application form ---- */
.join-wrap { max-width: 760px; margin-inline: auto; }
.join-addressee { color: var(--ink); font-weight: 600; margin-bottom: 1.8rem; }
.join-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.join-form fieldset { border: 0; margin: 0; padding: 0; }
.join-group { margin-bottom: 2rem; }
.join-form .join-group:first-of-type { margin-bottom: 1rem; }
.join-group__title { font-family: var(--font-head); font-size: 1.15rem; color: var(--green); font-weight: 700; margin-bottom: 1.1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); width: 100%; }
.opt-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.4rem; }
.opt { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 600; color: var(--ink); font-size: 0.95rem; cursor: pointer; }
.opt input { margin-top: 0.15rem; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.join-other { margin-top: 1rem; }
.join-declaration { background: rgba(18, 58, 99, 0.05); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.1rem; }
.join-declaration ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.join-declaration li { margin-bottom: 0.3rem; }
.join-dateplace { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.1rem; }
.join-note { font-size: 0.85rem; color: rgba(15, 34, 56, 0.6); margin-top: 0.9rem; }
.join-upload { margin-top: 1rem; }
/* `.field { display: grid }` would override the [hidden] attribute, so restore it. */
.join-upload[hidden], .join-other[hidden] { display: none; }
.join-upload input[type="file"] { font: inherit; padding: 0.7rem; background: rgba(18, 58, 99, 0.03); }
.join-upload .join-note { margin-top: 0.4rem; }
.join-upload-error { display: block; margin-top: 0.5rem; color: #b02020; font-weight: 700; font-size: 0.85rem; }
/* Keep every field inside the card on small screens (inputs must be able to
   shrink below their intrinsic width — e.g. date & file inputs). */
.join-form fieldset, .join-form .field { min-width: 0; }
.join-form input:not([type="checkbox"]):not([type="radio"]), .join-form textarea { width: 100%; max-width: 100%; }
/* More breathing room between stacked fields + between label and its input. */
.join-form .field { gap: 0.55rem; margin-bottom: 1.25rem; }
.join-form .field:last-child, .join-dateplace .field { margin-bottom: 0; }
@media (max-width: 560px) {
  .opt-list { grid-template-columns: 1fr; }
  .join-dateplace { grid-template-columns: 1fr; }
}

.map-wrap { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* 404 */
.notfound { position: relative; overflow: hidden; }
.notfound__inner { max-width: 660px; margin-inline: auto; text-align: center; }
.notfound__code {
  font-family: var(--font-head); font-weight: 800; line-height: 0.95;
  font-size: clamp(6rem, 22vw, 11rem); letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 48%, var(--gold) 128%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 1.1rem 0 0.4rem;
}
.notfound__title { font-size: clamp(1.6rem, 4vw, 2.35rem); color: var(--ink); margin: 0 0 0.85rem; }
.notfound__text { color: var(--body); font-size: 1.08rem; line-height: 1.7; margin: 0 auto 2.1rem; max-width: 34rem; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.notfound__links { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.notfound__links-label {
  display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--body); opacity: 0.7; margin-bottom: 1rem;
}
.notfound__linklist {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: center;
}
.notfound__linklist a { font-weight: 600; color: var(--green); transition: color 0.15s ease; }
.notfound__linklist a:hover { color: var(--gold-dark); }

/* Partners */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  max-width: 960px;
  margin-inline: auto;
}
.partner-card {
  width: 260px;
  max-width: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-card__media {
  aspect-ratio: 4 / 3;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Any picture is scaled + hard-cropped to fill the tile so nothing breaks. */
.partner-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-card__ph {
  font-family: var(--font-head); font-weight: 800; font-size: 2.8rem;
  color: var(--green); opacity: 0.35;
}
.partner-card__name {
  padding: 1rem 1.1rem; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}

/* Legal / Privacy page */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.25rem; color: var(--ink); margin: 1.8rem 0 0.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--body); line-height: 1.75; }
.legal ul { margin: 0.4rem 0 0.4rem 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--green); font-weight: 600; }

/* Consent checkbox (join form) + contact-form privacy notice */
.field--consent { margin: 0.2rem 0 0.4rem; }
.opt span { font-weight: 500; }
.opt a { color: var(--green); text-decoration: underline; }
.form-privacy-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--body); opacity: 0.85; line-height: 1.5; }
.form-privacy-note a { color: var(--green); text-decoration: underline; }

/* Footer bottom bar with legal link */
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: space-between; align-items: center; }
.footer__bottom-inner a { color: inherit; opacity: 0.85; }
.footer__bottom-inner a:hover { opacity: 1; text-decoration: underline; }

/* ===========================================================================
   Footer
   =========================================================================== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0; }
.footer .brand__text strong { color: var(--white); font-size: 1.4rem; }
.footer .brand__text small { color: rgba(255, 255, 255, 0.6); }
.footer__brand-head { display: flex; align-items: center; gap: 0.9rem; }
.footer__logo { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.footer__brand p { margin: 1rem 0 1.4rem; max-width: 320px; color: rgba(255, 255, 255, 0.75); }
.footer__col h4 { color: var(--white); margin-bottom: 1.1rem; font-size: 1.05rem; }
.footer__col a, .footer__col span { display: flex; align-items: center; gap: 0.5rem; padding: 0.32rem 0; color: rgba(255, 255, 255, 0.78); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--gold); }
.footer__addr { align-items: flex-start; }

.footer__social { display: flex; gap: 0.7rem; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.footer__social--dark a { background: var(--muted); color: var(--green); }
.footer__social--dark a:hover { background: var(--green); color: var(--white); }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.4rem 0; font-size: 0.9rem; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 940px) {
  .navbar__links {
    position: fixed;
    top: 76px; right: 0;
    width: min(300px, 80%);
    height: calc(100vh - 76px);
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 1.6rem;
    gap: 0.4rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .navbar__links.is-open { transform: translateX(0); }
  .navbar__links a { width: 100%; }
  .navbar__links a:not(.btn) { padding: 0.7rem 0; }
  .navbar__cta { margin: 0.6rem 0 0; }
  .hamburger { display: flex; }
  .hero__logo { display: none; }

  .mission, .about-story, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mission__media, .about-story__media { order: -1; }
  .mv-grid, .plan-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Mobile hero: emblem on top with a glow, centered text below. Vertical
     spacing scales with screen height (svh) so the whole hero — down to the
     flags — stays visible; the emblem is dropped when there's no room. */
  .hero__inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: clamp(0.9rem, 3svh, 1.9rem);
    padding-block: clamp(1.4rem, 4svh, 2.6rem);
  }
  .hero__content { max-width: none; }
  /* Centre the kicker; drop the mid-dot since it wraps to two stacked lines. */
  .hero__kicker { justify-content: center; }
  .hero__kicker-sep { display: none; }
  /* Full width on mobile so the CTAs + flags centre across the whole hero. */
  .hero__cta-group { display: flex; }
  .hero__logo {
    display: block;
    /* Shrinks with width (46vw) and available height (17svh), capped at 140px. */
    width: min(140px, 46vw, 17svh);
    margin-inline: auto;
    filter: drop-shadow(0 0 30px rgba(244, 194, 13, 0.26)) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.3));
  }
  .hero h1 { margin-top: clamp(0.5rem, 1.4svh, 1rem); }
  .hero__subtitle { margin-inline: auto; margin-top: clamp(0.6rem, 1.6svh, 1.2rem); }
  .hero__actions { justify-content: center; margin-top: clamp(0.9rem, 2.6svh, 1.8rem); }
  .hero__flags { justify-content: center; margin-top: clamp(0.9rem, 2.6svh, 1.8rem); }

  /* Stack and centre the "get in touch" CTA band on mobile. */
  .cta-band__inner { flex-direction: column; align-items: center; text-align: center; }
  .cta-band h2 { max-width: none; }
}

/* On phones (not tablets), fill the first screen so the next section sits
   below the fold; content is centred, `safe` prevents clipping if tight. */
@media (max-width: 560px) {
  .hero__inner {
    min-height: calc(100svh - 76px);
    justify-content: safe center;
  }
  /* Spread the hero content over the filled height instead of clustering it,
     so the extra room becomes breathing space between the elements. */
  .hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.5rem;
  }
  .hero h1,
  .hero__subtitle,
  .hero__actions,
  .hero__cta-group { margin-top: 0; }
}

/* Not enough height for the emblem + text + flags → drop the emblem so the
   whole hero (down to the flags) stays visible. */
@media (max-width: 768px) and (max-height: 840px) {
  .hero__logo { display: none; }
}
/* Extremely short screens (landscape phones etc.) → drop the decorative
   flags too so the message + CTAs remain visible. */
@media (max-width: 768px) and (max-height: 520px) {
  .hero__flags { display: none; }
}

@media (max-width: 580px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .benefits { grid-template-columns: 1fr; }
  .benefits li:last-child:nth-child(odd) { width: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .sector-row { grid-template-columns: auto 1fr; }
  .sector-row__num { display: none; }
}

/* ===========================================================================
   WordPress theme adjustments
   =========================================================================== */
/* Language dropdown uses <a> links instead of <button> in the WP theme */
.lang__menu li { list-style: none; }
.lang__menu .lang__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.5rem 0.7rem; border-radius: 8px;
  color: var(--body); font-weight: 700; font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang__menu .lang__opt:hover { background: var(--muted); color: var(--green); }
.lang__menu .lang__opt.is-active { color: var(--green); }
/* WYSIWYG article body spacing */
.article-body p { font-size: 1.08rem; margin-bottom: 1.2rem; }
.article-body h2, .article-body h3 { margin: 1.4rem 0 0.6rem; }
