/* ============================================================
   GovernanceMastery — css/style.css
   Mobile-first, no frameworks, WCAG AA compliant
   ============================================================ */

/* --- FONTS -------------------------------------------------- */
@font-face {
  font-family: 'Epilogue';
  src: url('../fonts/epilogue-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Epilogue';
  src: url('../fonts/epilogue-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- CSS VARIABLES ------------------------------------------ */
:root {
  --primary:      #202a4e;
  --secondary:    #3d4d7a;
  --accent:       #1f9d6b;
  --accent-2:     #b23c5e;
  --bg:           #f6f7fb;
  --surface:      #ffffff;
  --text:         #171b2e;
  --text-muted:   #565f7e;
  --border:       #dde1ee;
  --border-light: #eef0f7;

  --font-heading: 'Epilogue', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 4px rgba(32,42,78,.08);
  --shadow:     0 2px 8px rgba(32,42,78,.10);
  --shadow-md:  0 4px 16px rgba(32,42,78,.12);
  --shadow-lg:  0 8px 32px rgba(32,42,78,.14);

  --container:  1200px;
  --gap:        24px;
}

/* --- RESET -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--secondary);
}

ul,
ol {
  list-style: none;
}

/* --- LAYOUT HELPERS ---------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 48px 0;
}

.section--alt {
  background: var(--surface);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- TYPOGRAPHY -------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem);  font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- BUTTONS ----------------------------------------------- */
/* accent bg → DARK text (contrast ≈4.94:1, WCAG AA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);   /* dark text on green — WCAG AA */
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #1a8a5d;
  border-color: #1a8a5d;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: .875rem;
  min-height: 36px;
}

/* --- SKIP LINK -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}

.skip-link:focus {
  top: 0;
}

/* --- HEADER ----------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.logo-tagline {
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-logo:hover .logo-name {
  color: var(--secondary);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--bg);
}

.header-contact {
  display: none;   /* shown at ≥768px */
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  align-items: center;
}

.header-contact:hover {
  color: var(--primary);
}

/* Hamburger */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 0 16px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 11px 20px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: var(--bg);
  color: var(--primary);
}

.mobile-nav .mobile-contact-line {
  padding: 12px 20px 4px;
  font-size: .82rem;
  color: var(--text-muted);
}

/* --- HERO ------------------------------------------------- */
.hero {
  position: relative;
  background: var(--primary);
  color: #fff;
  padding: 56px 0 48px;
  overflow: hidden;
}

/* Ledger-line SVG pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .05;
  color: #ffffff;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- CATEGORY FILTER -------------------------------------- */
.filter-bar {
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 61px;  /* header height */
  z-index: 100;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 12px;
}

.filter-inner::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

/* --- ARTICLE FEED ----------------------------------------- */
.feed {
  padding: 40px 0 64px;
}

.feed-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: grid;
  grid-template-columns: 1fr;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.article-card:hover .article-card__img img {
  transform: scale(1.03);
}

.article-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Category badge — accent-2 (#b23c5e) with WHITE text (contrast ≈5.68:1) */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent-2);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.badge:hover {
  background: #9c2f4f;
  text-decoration: none;
  color: #ffffff;
}

.badge--admin       { background: #585f7a; }
.badge--governance  { background: var(--secondary); }
.badge--security    { background: #2e3a5c; }
.badge--guest       { background: var(--accent-2); }
.badge--retention   { background: #166b47; }
.badge--adoption    { background: #8e304b; }

.article-card__read-info {
  font-size: .78rem;
  color: var(--text-muted);
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.article-card__title:hover {
  color: var(--primary);
}

.article-card__excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.article-card__byline {
  font-size: .8rem;
  color: var(--text-muted);
}

.article-card__byline strong {
  color: var(--text);
  font-weight: 500;
}

.read-more {
  font-size: .85rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.read-more::after {
  content: '→';
  transition: transform .15s;
}

.read-more:hover {
  color: var(--secondary);
  text-decoration: none;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* View all link */
.feed-footer {
  text-align: center;
  padding-top: 40px;
}

/* --- ARTICLE PAGE ----------------------------------------- */
.article-header {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 40px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.article-header h1 {
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.article-header__byline {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}

.article-header__byline strong {
  color: rgba(255,255,255,.95);
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 32px 0;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.article-body h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}

.article-body h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.2em;
}

.article-body ul,
.article-body ol {
  list-style: disc;
  margin: 16px 0 16px 24px;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.article-body strong {
  font-weight: 600;
  color: var(--text);
}

.article-body code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .88em;
  font-family: 'Consolas', 'Monaco', monospace;
  color: var(--primary);
}

.article-body pre {
  background: var(--primary);
  color: rgba(255,255,255,.9);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.6;
  margin: 20px 0;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(31,157,107,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Article info box */
.info-box {
  background: rgba(32,42,78,.05);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box h4 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: .95rem;
}

.info-box p,
.info-box li {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.article-tag {
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.article-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

/* Author bio card (end of article) */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.author-bio__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.author-bio__role {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.author-bio__text {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Related articles */
.related-articles {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* --- ABOUT PAGE ------------------------------------------- */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 40px;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 0;
}

.page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.page-body h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 40px 0 16px;
}

.page-body p {
  line-height: 1.75;
  color: var(--text);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 36px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.stat-card__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: .82rem;
  color: var(--text-muted);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 28px 0;
}

.team-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.team-card__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.team-card__role {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.team-card__bio {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Editorial principles */
.principles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.principle-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.principle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(31,157,107,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.principle-item h4 {
  margin-bottom: 4px;
  font-size: .95rem;
}

.principle-item p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- CONTACT PAGE ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0 64px;
}

.contact-info h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 16px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  background: rgba(32,42,78,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail__value {
  font-size: .92rem;
  color: var(--text);
  text-decoration: none;
}

.contact-detail__value:hover {
  color: var(--primary);
}

address {
  font-style: normal;
}

/* FORM */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 1rem;   /* ≥16px — prevents iOS auto-zoom */
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32,42,78,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* honeypot */
.hp-field {
  display: none !important;
  visibility: hidden;
  height: 0;
  width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.form-success {
  text-align: center;
  padding: 40px 24px;
}

.form-success__icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--text);  /* dark text on accent — WCAG AA */
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 28px;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}

/* --- LEGAL PAGES ------------------------------------------ */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px 72px;
}

.legal-body .last-updated {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.legal-body h2 {
  font-size: 1.2rem;
  margin: 36px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}

.legal-body p,
.legal-body li {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text);
}

.legal-body ul,
.legal-body ol {
  list-style: disc;
  margin: 12px 0 12px 24px;
}

.legal-body ol {
  list-style: decimal;
}

.legal-body li {
  margin-bottom: 4px;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .85rem;
}

.legal-body th,
.legal-body td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--bg);
  font-weight: 600;
}

.disclaimer-box {
  background: rgba(178,60,94,.06);
  border: 1.5px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.disclaimer-box p {
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 0;
}

/* --- FOOTER ----------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.82);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand .logo-name {
  color: #fff;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 4px;
}

.footer-brand .logo-tagline {
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact-item {
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-contact-item a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: #fff;
}

/* MS Trademark disclaimer */
.footer-disclaimer {
  font-size: .76rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* --- THANK YOU PAGE --------------------------------------- */
.thankyou-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
}

.thankyou-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--text);  /* dark on green — AA */
}

/* --- BREADCRUMB STRIP (top of inner pages) ------------- */
.breadcrumb-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb li + li::before {
  content: '/';
  padding-right: 4px;
  color: var(--border);
}

/* --- UTILS ------------------------------------------------ */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ============================================================
   RESPONSIVE — tablet upward
   ============================================================ */
@media (min-width: 480px) {
  .container { padding: 0 20px; }
}

@media (min-width: 640px) {
  .feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  /* Header */
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .mobile-menu-btn { display: none; }
  .header-contact { display: flex; }

  /* Layout */
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .filter-bar { top: 65px; }

  /* Article card — horizontal at 768+ */
  .article-card {
    grid-template-columns: 320px 1fr;
  }

  .article-card__img {
    aspect-ratio: unset;
    height: 100%;
    min-height: 200px;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  }

  /* Maps */
  .map-wrapper iframe { height: 320px; }

  /* Hero */
  .hero { padding: 72px 0 60px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 2.75rem; }

  .feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Revert cards to vertical at 3-col */
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card__img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-wrapper iframe { height: 360px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 32px; }
  .hero { padding: 88px 0 72px; }
}

/* Article single — full-width feed at all sizes */
.article-body .feed-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .article-body .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
