/* Theme Name: AGI Pixel Homepage
Theme URI: https://agighana.org/
Description: Interactive AGI corporate homepage matching the supplied reference design, wired to live site pages.
Version: 3.5.1
Author: AGI Web Team
Text Domain: agi-pixel
*/

:root {
  --red: #c8102e;
  --red-bright: #e5230b;
  --red-dark: #a00d24;
  --black: #111111;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --line: #e6e6e6;
  --gold: #c9a24a;
  --gold-bright: #e3b65f;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  --container: 1420px;
  --font: "Montserrat", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
.agi-wrap { width: min(var(--container), calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(920px, calc(100% - 36px)); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Kill common WP spacing that fights the compact mockup */
.wp-site-blocks > * + *,
.entry-content > * + * { margin-block-start: 0; }
body.home .site-main,
body.home #content,
body.home .content-area { margin: 0; padding: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid transparent;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-red { background: var(--red); color: var(--white) !important; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white) !important; }
.btn-outline {
  background: var(--white);
  color: var(--red) !important;
  border-color: var(--red);
}
.btn-outline:hover { background: #fff4f4; color: var(--red-dark) !important; }
.btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255,255,255,.9);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-white {
  background: var(--white);
  color: var(--red) !important;
  border-color: var(--white);
  font-weight: 900;
}
.btn-white:hover { background: #fff4f4; }
.btn-sm { padding: 6px 10px; font-size: 9px; }
.text-link {
  color: var(--red) !important;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .02em;
}
.text-link:hover { text-decoration: underline; }

/* Header — compact mockup bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.site-header.is-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.header-inner {
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  flex: 0 0 auto;
  width: 178px;
  display: flex;
  align-items: center;
}
.brand-link { display: block; line-height: 0; }
.brand-logo,
.brand img,
.brand .custom-logo {
  width: 160px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.primary-nav { flex: 1; min-width: 0; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px 12px;
  flex-wrap: nowrap;
}
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 22px 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #1a1a1a !important;
  position: relative;
  transition: color .15s ease;
}
.nav-item > a:hover,
.nav-item.is-active > a { color: var(--red) !important; }
.nav-item.is-active > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--red);
}
.caret {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .65;
  margin-top: 1px;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}
.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown,
.nav-item.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a !important;
}
.dropdown a:hover { background: #fff4f4; color: var(--red) !important; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}
.header-actions .btn { padding: 8px 12px; font-size: 10px; }
.header-actions .btn svg { width: 12px; height: 12px; }
.header-actions .btn-outline {
  color: var(--red) !important;
  border-color: var(--red);
  background: #fff;
}
.header-actions .btn-outline:hover {
  background: #fff4f4;
  color: var(--red-dark) !important;
}
.header-actions .btn-red {
  color: #ffffff !important;
  background: var(--red);
  border-color: var(--red);
}
.mobile-toggle, .search-close {
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}
.header-actions .search-toggle {
  width: 36px;
  height: 36px;
  border: 1.5px solid #d8d8d8;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a !important;
  background: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.header-actions .search-toggle:hover,
.header-actions .search-toggle[aria-expanded="true"] {
  color: #fff !important;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(200, 16, 46, .28);
}
.mobile-toggle { display: none; width: 36px; height: 36px; position: relative; }
.mobile-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-toggle span:nth-child(1) { top: 11px; }
.mobile-toggle span:nth-child(2) { top: 17px; }
.mobile-toggle span:nth-child(3) { top: 23px; }
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-search {
  border-top: 1px solid #f0f0f0;
  background: linear-gradient(180deg, #fff 0%, #faf7f7 100%);
  padding: 12px 0 14px;
  box-shadow: inset 0 1px 0 rgba(200,16,46,.08);
}
.site-search[hidden] { display: none !important; }
.search-form {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e8e0e0;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.search-form-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  width: 42px;
}
.search-form input {
  width: 100%;
  height: 40px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
}
.search-form input::placeholder { color: #8a8a8a; }
.search-submit { height: 40px; padding: 0 16px; }
.search-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555 !important;
  border: 1px solid #e2e2e2;
  background: #fff;
}
.search-close:hover {
  color: var(--red) !important;
  border-color: #f2c8cf;
  background: #fff5f6;
}

.mobile-nav {
  display: none;
  background: var(--black);
  color: var(--white);
  padding: 6px 0 14px;
}
.mobile-nav:not([hidden]) { display: block; }
.mobile-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 12px;
  font-weight: 700;
}
.mobile-nav .mobile-sub {
  padding-left: 12px;
  font-weight: 500;
  color: #cfcfcf;
  font-size: 11px;
}
.mobile-nav .mobile-cta { color: #ff6b6b; }

/* Hero — shorter, denser */
.hero {
  position: relative;
  height: 300px;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: visible;
  color: var(--white);
  z-index: 2;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  overflow: hidden;
}
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-media::before {
  background-image: url("assets/hero-port.jpg");
  background-position: center 35%;
  clip-path: polygon(0 0, 64% 0, 50% 100%, 0 100%);
}
.hero-media::after {
  background-image: url("assets/hero-worker.jpg");
  background-position: 72% center;
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 46% 100%);
}
.hero-media .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.48) 46%, rgba(0,0,0,.32) 68%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: center;
  height: 100%;
  padding: 18px 56px 0 8px;
}
.hero-copy { padding-left: 8px; max-width: 680px; }
.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero-copy p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 34rem;
  font-weight: 500;
  color: #ffffff !important;
  opacity: .95;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-buttons .btn { padding: 10px 18px; font-size: 11px; }

/* I WANT TO… floating quick card */
.quick-card {
  position: relative;
  z-index: 5;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  padding: 14px 14px 10px;
  border: 0;
  border-top: 3px solid var(--red);
  width: 210px;
  max-width: 100%;
  margin: 0 12px -36px 0;
  justify-self: end;
  align-self: end;
}
.quick-card h2 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #111111 !important;
}
.quick-card h2::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--red);
  margin-top: 5px;
}
.quick-list { display: flex; flex-direction: column; }
.quick-card a,
.quick-list a {
  display: grid;
  grid-template-columns: 18px 1fr 12px;
  align-items: center;
  gap: 7px;
  padding: 7px 2px;
  border-bottom: 1px solid #ececec;
  font-size: 10px;
  font-weight: 700;
  color: #1a1a1a !important;
  transition: color .15s ease, background .15s ease, padding-left .15s ease;
}
.quick-list a:last-child { border-bottom: 0; }
.quick-list a:hover {
  color: var(--red) !important;
  background: #fff7f6;
  padding-left: 3px;
}
.quick-card .q-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red) !important;
}
.quick-card .q-ico svg {
  width: 14px;
  height: 14px;
  display: block;
}
.quick-card .q-label {
  color: inherit;
  line-height: 1.15;
  font-size: 10px;
}
.quick-card .chev {
  color: #9a9a9a;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}
.quick-list a:hover .chev { color: var(--red); }

/* Stats — compact black strip */
.stats-bar {
  position: relative;
  z-index: 1;
  background: #111;
  color: var(--white);
  padding-right: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.15fr 1.2fr 1.9fr;
  min-height: 72px;
  align-items: stretch;
}
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-right: 1px solid #333;
}
.stat:last-child { border-right: 0; }
.stat .ico {
  color: var(--red-bright);
  font-size: 22px;
  width: 26px;
  text-align: center;
  flex: 0 0 26px;
}
.stat strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
}
.stat > div > span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #d0d0d0;
  line-height: 1.25;
  margin-top: 2px;
}
.purpose .purpose-label {
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.purpose p {
  margin: 3px 0 5px;
  font-size: 10px;
  color: #d6d6d6;
  line-height: 1.35;
}
.purpose a {
  color: var(--gold-bright) !important;
  font-size: 10px;
  font-weight: 800;
}
.purpose a:hover { text-decoration: underline; }

/* What AGI Does — tight */
.section { padding: 10px 0; }
.what-agi-does { padding-top: 12px; }
.doing-grid {
  display: grid;
  grid-template-columns: 128px repeat(3, 1fr);
  gap: 8px;
}
.doing-intro { padding: 4px 4px 0; }
.doing-intro h2 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  color: #111111 !important;
}
.doing-intro h2::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--red);
  margin-top: 6px;
}
.doing-intro p {
  font-size: 9px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.35;
}
.service-card {
  position: relative;
  min-height: 150px;
  height: 150px;
  padding: 12px 14px;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform .3s ease;
}
.service-advocacy::before {
  background: linear-gradient(135deg, #c8102e 0%, #e5230b 55%, #9a0c22 100%);
}
.service-business::before {
  background:
    linear-gradient(135deg, rgba(17,17,17,.92), rgba(28,28,28,.82)),
    url("assets/service-business.jpg") center / cover no-repeat;
}
.service-research::before {
  background: linear-gradient(135deg, #b8862d 0%, #d4a84a 55%, #9a7324 100%);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scale(1.03); }
.service-card > * { position: relative; z-index: 1; }
.service-card .num {
  font-size: 9px;
  font-weight: 900;
  color: #ffe3a3 !important;
  margin-bottom: 5px;
  letter-spacing: .05em;
}
.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  color: #ffffff !important;
}
.service-card .icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.service-card h3 {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff !important;
  font-weight: 900;
}
.service-card p {
  margin: 0 0 auto;
  font-size: 9px;
  line-height: 1.35;
  max-width: 34ch;
  color: rgba(255,255,255,.94) !important;
}
.card-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #ffffff !important;
}

/* Panels — dense 5-col */
.panels-section { padding-top: 4px; padding-bottom: 8px; }
.panels-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.05fr 1fr 1.05fr 1.18fr;
  gap: 8px;
  align-items: stretch;
}
.panel {
  border: 1px solid #ddd;
  background: var(--white);
  padding: 10px;
  min-height: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
  border-bottom: 1px solid #eee;
  padding-bottom: 7px;
  margin-bottom: 7px;
}
.panel-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #111111 !important;
}
.panel-head a {
  color: var(--red) !important;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.panel-head a:hover { text-decoration: underline; }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  padding: 6px 3px;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
  border: 1px solid transparent;
  border-radius: 2px;
}
.sector-item:hover {
  background: #fff7f5;
  border-color: #f2cfc8;
}
.sector-item:hover .sector-label,
.sector-item:hover .sector-ico {
  color: var(--red) !important;
}
.sector-ico {
  width: 22px;
  height: 22px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  position: relative;
  color: var(--red) !important;
  flex: 0 0 auto;
}
.sector-ico::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.sector-label {
  color: #1a1a1a !important;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.policy-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #eee;
}
.policy-row:hover { background: #fafafa; }
.policy-row:last-child { border-bottom: 0; }
.tag {
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff !important;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 7px 4px;
  line-height: 1.15;
}
.tag-urgent { background: #df1810; }
.tag-under { background: #d9a900; }
.tag-achieved { background: #75b928; }
.policy-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: var(--ink);
}
.policy-copy strong { font-weight: 700; line-height: 1.25; color: var(--ink); }
.policy-copy .more { color: var(--red) !important; font-weight: 800; font-size: 9px; }

.event-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #eee;
}
.event-row:last-child { border-bottom: 0; }
.event-date {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 4px 2px;
  font-weight: 900;
  line-height: 1.05;
}
.event-date span { display: block; font-size: 13px; color: #fff; }
.event-date b { display: block; font-size: 8px; letter-spacing: .04em; color: #fff; }
.event-copy {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.25;
}
.event-copy strong { color: var(--ink); font-size: 10px; margin-bottom: 1px; }
.register-btn {
  background: #111;
  color: #fff !important;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 7px;
}
.register-btn:hover { background: var(--red); }

.news-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #eee;
}
.news-row:hover { background: #fafafa; }
.news-row:last-child { border-bottom: 0; }
.news-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 34px;
  background: #ddd center / cover no-repeat;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-copy { display: flex; flex-direction: column; gap: 2px; }
.news-copy strong {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}
.news-row:hover .news-copy strong { color: var(--red); }
.news-copy small { font-size: 9px; color: #888; }

.panel-spotlight { padding: 10px; }
.spotlight {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  min-height: 168px;
  background: #1c1c1c;
  color: #fff;
  overflow: hidden;
}
.spot-photo {
  background:
    linear-gradient(160deg, rgba(0,0,0,.1), rgba(0,0,0,.4)),
    linear-gradient(140deg, #1c3344, #0e1620);
  position: relative;
  min-height: 150px;
}
.spot-photo::after {
  content: "";
  position: absolute;
  inset: 16% 14% 0;
  background:
    radial-gradient(circle at 50% 22%, #8a6144 0 14%, transparent 15%),
    linear-gradient(#163047 0 34%, #1a4658 34% 100%);
  border-radius: 46% 46% 0 0;
}
.spot-copy { padding: 10px 10px 12px; }
.spot-copy strong { display: block; font-size: 12px; margin-bottom: 2px; color: #fff; }
.spot-copy small { display: block; color: #c8c8c8; font-size: 9px; margin-bottom: 6px; line-height: 1.3; }
.spot-copy p { font-size: 10px; line-height: 1.35; color: #ddd; margin: 0 0 10px; }
.spot-copy .btn { color: #fff !important; }

/* Join band — slim red strip */
.join-band {
  background: var(--red);
  color: #fff;
  padding: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  margin-top: 2px;
}
.join-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px 0;
}
.join-inner strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.join-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  opacity: .95;
}
.join-band .btn-white { padding: 8px 14px; }

/* Footer — compact */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: 18px;
  padding-bottom: 16px;
}
.footer-brand img,
.footer-logo { width: 130px; max-height: 56px; margin-bottom: 6px; object-fit: contain; }
.footer-tagline { font-weight: 800; color: var(--ink); margin: 0 0 6px; font-size: 11px; }
.site-footer h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-footer p,
.site-footer li {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a {
  display: inline-block;
  padding: 2px 0;
  color: var(--muted);
}
.site-footer li a:hover { color: var(--red); }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--red); }
.social { display: flex; gap: 6px; margin-top: 10px; }
.social a {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink);
}
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.newsletter { margin-top: 12px; }
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.newsletter-form input {
  height: 32px;
  border: 1px solid #ddd;
  padding: 0 10px;
  background: #fff;
  font-size: 11px;
}
.newsletter-form .btn { padding: 0 12px; height: 32px; }
.newsletter-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  color: #1f7a37;
  min-height: 1em;
}
.newsletter-msg.is-error { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  background: #fff;
}
.footer-bottom p {
  margin: 0;
  font-size: 10px;
  color: #888;
}

/* Inner pages */
.content-page { padding: 24px 0 40px; }
.page-hero { margin-bottom: 16px; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 900;
  line-height: 1.15;
}
.page-hero .meta { color: var(--muted); font-size: 12px; margin: 0 0 6px; }
.entry-content { font-size: 15px; line-height: 1.65; color: #333; }
.entry-content a { color: var(--red); text-decoration: underline; }
.single-hero-image { margin-bottom: 16px; overflow: hidden; }
.single-hero-image img { width: 100%; max-height: 360px; object-fit: cover; }
.post-list { display: grid; gap: 12px; }
.post-card { border: 1px solid var(--line); }
.post-card:hover { border-color: #d7d7d7; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.post-card a { display: grid; grid-template-columns: 180px 1fr; }
.post-thumb { min-height: 110px; background: #eee; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 14px; }
.post-body h2 { margin: 0 0 4px; font-size: 17px; }
.post-body time { font-size: 11px; color: #888; }
.post-body p { margin: 8px 0; color: var(--muted); font-size: 13px; }
.pagination { margin-top: 20px; }

/* Member login */
.member-login-page .lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 40rem;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 16px;
  margin-top: 8px;
}
.login-card,
.login-aside {
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
}
.login-card h2,
.login-aside h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}
.login-alert {
  background: #fff1f0;
  border: 1px solid #f3c1bb;
  color: var(--red-dark);
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
}
#agi-loginform p { margin: 0 0 12px; }
#agi-loginform label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}
#agi-loginform input[type="text"],
#agi-loginform input[type="password"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  padding: 0 10px;
}
#agi-loginform .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}
#agi-loginform .login-remember label { margin: 0; font-weight: 600; }
#agi-wp-submit {
  width: 100%;
  height: 42px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
#agi-wp-submit:hover { background: var(--red-dark); }
.login-links { margin-top: 10px; font-size: 12px; }
.login-links a { color: var(--red); font-weight: 700; }
.login-aside p { color: var(--muted); font-size: 13px; }
.login-aside .btn { margin: 8px 0 12px; }
.login-help {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.login-help h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.login-help a:hover { color: var(--red); }

/* Responsive
   Breakpoints: laptop ≤1200 | tablet ≤980 | phone ≤720 | small ≤420
*/
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.agi-wrap { max-width: 100%; }

@media (max-width: 1200px) {
  .agi-wrap { width: min(var(--container), calc(100% - 28px)); }
  .nav-list { gap: 2px 8px; }
  .nav-item > a { font-size: 9.5px; }
  .header-actions .btn { padding: 7px 9px; font-size: 9px; }
  .brand { width: 140px; }
  .brand-logo, .brand img, .brand .custom-logo { width: 128px; max-height: 46px; }
  .doing-grid { grid-template-columns: 110px repeat(3, 1fr); }
  .panels-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .panel-spotlight { grid-column: 1 / -1; }
  .hero-content {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding-right: 28px;
    gap: 20px;
  }
  .quick-card { margin-right: 0; }
  .join-perks { gap: 6px 10px; font-size: 9px; }
  .service-card { height: 150px; min-height: 150px; }
}

@media (max-width: 980px) {
  .primary-nav { display: none !important; }
  .mobile-toggle { display: inline-block !important; }
  .header-actions .btn-outline { display: none; }
  .header-actions .btn-red {
    display: inline-flex;
    padding: 8px 10px;
    font-size: 9px;
  }
  .header-actions .btn-red svg { display: none; }
  .header-inner { height: 58px; min-height: 58px; gap: 10px; }
  .brand { width: 132px; }
  .brand-logo, .brand img, .brand .custom-logo { width: 120px; }

  .hero {
    height: auto;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0 18px;
    height: auto;
  }
  .hero-copy { padding-left: 0; max-width: none; }
  .hero-copy h1 { font-size: clamp(20px, 5.5vw, 26px); }
  .hero-copy p { font-size: 13px; margin-bottom: 12px; }
  .hero-buttons { gap: 8px; }
  .hero-buttons .btn { width: auto; }
  .hero-media::before,
  .hero-media::after { clip-path: none; }
  .hero-media::before { opacity: .45; }
  .hero-media::after { opacity: 1; background-position: center top; }
  .quick-card {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-self: stretch;
    align-self: stretch;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
  }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 64px; }
  .purpose { grid-column: 1 / -1; border-top: 1px solid #333; border-right: 0; }

  .doing-grid { grid-template-columns: 1fr; gap: 8px; }
  .doing-intro { grid-column: auto; padding: 4px 0 2px; }
  .doing-intro h2 { font-size: 16px; }
  .service-card {
    height: auto;
    min-height: 140px;
  }

  .panels-grid { grid-template-columns: 1fr; gap: 10px; }
  .panel-spotlight { grid-column: auto; }
  .spotlight { grid-template-columns: 120px 1fr; min-height: 0; }
  .spot-photo { min-height: 140px; }

  .join-band { min-height: 0; }
  .join-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }
  .join-inner strong { white-space: normal; font-size: 14px; }
  .join-perks { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px 12px; }
  .join-band .btn-white { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .login-layout { grid-template-columns: 1fr; }
  .post-card a { grid-template-columns: 1fr; }

  .mobile-nav {
    max-height: min(78vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #2a2a2a;
  }
  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 0;
  }
  .mobile-group { border-bottom: 1px solid #2a2a2a; }
  .mobile-group > a:first-child { font-weight: 800; color: #fff; }
  .mobile-nav .mobile-sub {
    border-bottom: 0;
    min-height: 40px;
    padding: 8px 0 8px 14px;
  }
  .mobile-cta {
    margin-top: 8px;
    justify-content: center;
    background: var(--red);
    color: #fff !important;
    padding: 12px !important;
    border: 0 !important;
    font-weight: 900 !important;
  }
  body.agi-nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .agi-wrap { width: calc(100% - 24px); }
  .header-actions .btn-red { display: none; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 12px 10px; }
  .stat strong { font-size: 16px; }
  .event-row {
    grid-template-columns: 40px 1fr;
    gap: 8px;
  }
  .event-row .register-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  .spotlight { grid-template-columns: 1fr; }
  .spot-photo { min-height: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-brand { order: 0; }
  .search-form {
    grid-template-columns: 36px 1fr;
    gap: 6px;
  }
  .search-submit,
  .search-close {
    grid-column: auto;
  }
  .search-form .search-submit { width: 100%; grid-column: 1 / -1; }
  .search-form .search-close {
    position: absolute;
    right: 18px;
    top: 18px;
  }
  .site-search .agi-wrap { position: relative; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .join-perks { grid-template-columns: 1fr; }
  .content-page { padding: 20px 0 32px; }
}

@media (max-width: 480px) {
  .agi-wrap { width: calc(100% - 20px); }
  .header-inner { height: 54px; min-height: 54px; }
  .brand { width: 118px; }
  .brand-logo, .brand img, .brand .custom-logo { width: 108px; max-height: 40px; }
  .hero-copy h1 { font-size: 20px; }
  .hero-copy p { font-size: 12.5px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid #333;
  }
  .stat:last-child { border-bottom: 0; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .btn { width: 100%; height: 40px; }
  .policy-row { align-items: flex-start; }
  .tag { flex: 0 0 58px; }
  .quick-card { padding: 12px 12px 8px; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/*
 * Shield against leftover Elementor Kit / ElementsKit rules if a plugin
 * re-enqueues them after our dequeue hooks.
 */
body.wp-theme-agi-pixel-theme img,
.site-header img,
.brand-logo,
.footer-logo {
  border-radius: 0 !important;
}
body.wp-theme-agi-pixel-theme .hero-copy h1,
body.wp-theme-agi-pixel-theme .hero-copy p {
  color: #ffffff !important;
  font-family: var(--font) !important;
}
body.wp-theme-agi-pixel-theme .ekit-template-content-theme-support,
body.wp-theme-agi-pixel-theme .ekit-template-content-footer,
body.wp-theme-agi-pixel-theme .ekit-template-content-header {
  display: none !important;
}
