/* ============================================================
   midtcon — Design System 2025
   Professional Management Consulting
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Brand colors */
  --navy:        #0a1628;
  --navy-mid:    #1a3a6b;
  --navy-light:  #2a5298;
  --gold:        #c9a84c;
  --gold-light:  #e8d5a3;
  --gold-pale:   #faf6ec;

  /* Neutrals */
  --white:       #ffffff;
  --bg:          #f7f8fc;
  --bg-2:        #eef0f6;
  --text:        #0f1a2e;
  --text-mid:    #374151;
  --muted:       #6b7280;
  --border:      #e2e6ed;
  --border-dark: #c8cdd8;

  /* Status */
  --success:     #16a34a;
  --error:       #dc2626;

  /* Typography */
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-py:  100px;
  --container:   1180px;
  --radius:      12px;
  --radius-lg:   20px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(10,22,40,.07);
  --shadow:      0 8px 30px rgba(10,22,40,.10);
  --shadow-lg:   0 20px 60px rgba(10,22,40,.14);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.serif { font-family: var(--font-serif); }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1.1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-mid);
}

small { font-size: .85rem; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: var(--section-py) 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }

.section-white  { background: var(--white); }
.section-tinted { background: var(--bg); }
.section-dark   { background: var(--navy); color: var(--white); }
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,.75); }

/* Section heading */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-lead  { max-width: 620px; margin-bottom: 56px; }
.section-lead.centered { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }

.section-divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 16px 0 24px;
  border-radius: 2px;
}

.section-divider.centered { margin-left: auto; margin-right: auto; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, padding .3s;
  padding: 0;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -.02em;
}

.nav-logo img { height: 38px; width: auto; }
.nav-logo:hover { color: var(--navy); }

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--bg);
}

.nav-links a.active { font-weight: 600; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  margin-left: 8px;
  transition: background .2s, transform .15s !important;
}

.nav-cta:hover {
  background: var(--navy-mid) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,58,107,.7) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(201,168,76,.12) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #0d2247 100%);
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('/content/1-home/header5.jpg');
  background-size: cover;
  background-position: center;
  opacity: .18;
  z-index: 0;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.1;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .lead {
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  animation: bounce 2s infinite;
}

.hero-scroll svg { opacity: .6; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b8943e;
  border-color: #b8943e;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,22,40,.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-dark);
}
.btn-outline-dark:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-light);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg,
.card-icon i { color: var(--gold); font-size: 1.4rem; }

.card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.card p  { color: var(--muted); font-size: .93rem; }

/* ── Service cards ────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all .3s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity .3s;
}

.service-card:hover { border-color: var(--gold-light); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }

.service-nr {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-2);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  letter-spacing: -.05em;
}

/* ── Team cards ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--bg-2);
  border: 3px solid var(--gold-light);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 { margin-bottom: 4px; font-size: 1rem; }
.team-card .role { color: var(--gold); font-size: .83rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.team-card .email { font-size: .85rem; color: var(--muted); }

/* ── Blog cards ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-light);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-pale);
  color: var(--gold);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.blog-date { font-size: .8rem; color: var(--muted); }

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold); }

.blog-card p { font-size: .88rem; color: var(--muted); flex: 1; }
.blog-card .read-more { font-size: .85rem; font-weight: 600; color: var(--navy-mid); margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; }
.blog-card .read-more:hover { color: var(--gold); }

/* ── Job / Career cards ───────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 16px; }

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all .25s;
  text-decoration: none;
}

.job-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.job-card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.job-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.tag-gold   { background: var(--gold-pale); color: #8a6820; border-color: var(--gold-light); }
.tag-blue   { background: #eef3ff; color: #3558b0; border-color: #c8d5f5; }
.tag-green  { background: #ecfdf5; color: #166a3f; border-color: #a7f3d0; }

.job-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
  color: var(--gold);
}

.job-card:hover .job-card-arrow { background: var(--gold); color: var(--white); }

/* ── Stats / Numbers ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

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

.form-group label .required { color: var(--error); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .93rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26,58,107,.1);
}

.form-control::placeholder { color: #b0b7c3; }

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}

.form-check label {
  font-size: .88rem;
  color: var(--text-mid);
  cursor: pointer;
  font-weight: 400;
}

.form-check label a { color: var(--navy-mid); font-weight: 500; }
.form-check label a:hover { color: var(--gold); }

.form-honeypot { display: none !important; }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--navy-mid);
  background: #f0f4ff;
}

.file-upload-area input { display: none; }

/* ── Alert / Notification ─────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* ── Page header (inner pages) ────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(201,168,76,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(26,58,107,.5) 0%, transparent 60%);
}

.page-hero .container { position: relative; }

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,.7); max-width: 600px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: .82rem;
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── Article / Content pages ──────────────────────────────── */
.article-body {
  max-width: 760px;
}

.article-body h2,
.article-body h3,
.article-body h4 { margin: 2em 0 .8em; color: var(--navy); }

.article-body p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.4rem; }

.article-body ul,
.article-body ol { padding-left: 1.4em; margin-bottom: 1.4rem; }

.article-body ul li { list-style: disc; margin-bottom: .5rem; }
.article-body ol li { list-style: decimal; margin-bottom: .5rem; }

.article-body li { font-size: 1.05rem; line-height: 1.7; color: var(--text-mid); }

.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p { color: var(--navy); font-style: italic; }

/* ── Membership / Auth pages ──────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 80px 28px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
  font-size: .93rem;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: .88rem;
  color: var(--muted);
}

.auth-card .auth-footer a { color: var(--navy-mid); font-weight: 600; }
.auth-card .auth-footer a:hover { color: var(--gold); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: .82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Member dashboard ─────────────────────────────────────── */
.member-hero {
  background: var(--navy);
  padding: 80px 0 60px;
}

.member-welcome { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 6px; }
.member-hero h1 { color: var(--white); }

.content-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .25s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.content-category:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: var(--text);
}

.content-category .cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.content-category h3 { font-size: 1.05rem; margin-bottom: 8px; }
.content-category p  { font-size: .85rem; color: var(--muted); margin: 0; }

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--gold-pale);
  color: #8a6820;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ── Contact section ──────────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--gold);
}

.contact-info-item h4 { margin-bottom: 4px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.contact-info-item p  { font-size: 1rem; color: var(--text); margin: 0; }
.contact-info-item a  { color: var(--navy); font-weight: 500; }
.contact-info-item a:hover { color: var(--gold); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 16px; }

.footer-logo { height: 36px; margin-bottom: 16px; }

.footer-col h5 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: .88rem;
  margin-bottom: 12px;
}

.footer-contact-item .icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; font-size: .9rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .82rem;
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Back to top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  box-shadow: var(--shadow);
  z-index: 900;
  font-size: 1rem;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ── Kirby text output ────────────────────────────────────── */
.kirbytext h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.kirbytext h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.kirbytext p  { margin-bottom: 1.2rem; }
.kirbytext ul { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.kirbytext ul li { list-style: disc; margin-bottom: .5rem; line-height: 1.7; }
.kirbytext a  { color: var(--navy-mid); font-weight: 500; text-decoration: underline; }
.kirbytext a:hover { color: var(--gold); }

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.nowrap { white-space: nowrap; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.d-flex { display: flex; }
.ai-center { align-items: center; }
.jc-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-split { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .nav-links.open a { padding: 12px 14px; font-size: 1rem; border-radius: 8px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }

  .auth-card { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .job-card { flex-direction: column; align-items: flex-start; }
  .job-card-arrow { display: none; }
}

@media (max-width: 480px) {
  :root { --section-py: 52px; }
  h1 { font-size: 2rem; }
  .page-hero { padding: 100px 0 60px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }
}
