/*
Theme Name: Allied IHS Child
Theme URI: https://alliedihs.com
Description: Custom child theme for Allied Integrated Health Services. Built on GeneratePress. Custom navbar (replaces GP header), real content for Accra/Ghana context, complete page coverage: Home, About, Services, Service detail, Providers, Locations, For Patients, Book, Contact, Blog, Patient Portal, Forms, Insurance, Refills, Urgent Care, Privacy, Patient Rights, Accessibility.
Author: Allied IHS
Version: 1.1.0
Template: generatepress
Text Domain: allied-ihs-child
*/

/* ============================================================
   ALLIED IHS DESIGN SYSTEM — v1.1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- 1. Design tokens ---------- */
:root {
  /* Primary palette — derived from the AIH logo (green leaf + blue shield) */
  --aih-primary: #1B73C9;        /* logo blue, main brand */
  --aih-primary-2: #145FAA;      /* hover */
  --aih-primary-3: #0E467F;      /* darkest */
  --aih-primary-soft: #E5F0FB;
  --aih-primary-softer: #F4F9FE;

  --aih-green: #5BB938;          /* logo green */
  --aih-green-2: #4A9B2D;
  --aih-green-soft: #EBF7E4;

  --aih-ink: #14232C;
  --aih-ink-2: #2A3942;
  --aih-ink-3: #5A6B75;
  --aih-ink-4: #8A98A2;
  --aih-paper: #FFFFFF;
  --aih-paper-2: #F7F8F6;
  --aih-paper-3: #EEF2EF;
  --aih-line: rgba(20, 35, 44, 0.10);
  --aih-line-2: rgba(20, 35, 44, 0.18);
  --aih-line-soft: rgba(20, 35, 44, 0.05);

  --aih-warn: #B5621C;
  --aih-warn-soft: #FBEFE2;
  --aih-danger: #A32D2D;
  --aih-danger-soft: #FBEAEA;
  --aih-success: #2E7D55;
  --aih-success-soft: #E4F4EC;

  --aih-display: 'Source Serif 4', 'Georgia', serif;
  --aih-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --aih-radius-sm: 6px;
  --aih-radius: 10px;
  --aih-radius-lg: 14px;
  --aih-radius-xl: 20px;

  --aih-header-h: 76px;
}

/* ---------- 2. HIDE GeneratePress default header ---------- */
/* Prevents the double/floating header. Our custom header is rendered via wp_body_open. */
.site-header,
#masthead,
.main-navigation,
.gp-mobile-header,
.gp-sticky-navigation-clone,
.is-left-sidebar.sidebar,
.elementor-location-header { display: none !important; }

body { padding-top: var(--aih-header-h); }
body.admin-bar { padding-top: calc(var(--aih-header-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar { padding-top: calc(var(--aih-header-h) + 46px); }
}

/* ---------- 3. Base typography ---------- */
body,
.entry-content,
.site-content {
  font-family: var(--aih-sans);
  color: var(--aih-ink);
  font-size: 16px;
  line-height: 1.65;
  background: var(--aih-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title {
  font-family: var(--aih-display);
  color: var(--aih-ink);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 0.78rem; font-family: var(--aih-sans); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--aih-primary); }
h6 { font-size: 0.95rem; font-family: var(--aih-sans); font-weight: 500; }

p { margin: 0 0 1.1em; color: var(--aih-ink-2); }

a { color: var(--aih-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--aih-primary-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 4. Layout ---------- */
.grid-container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.aih-section { padding: 72px 0; }
.aih-section--tight { padding: 48px 0; }
.aih-section--alt { background: var(--aih-paper-2); }
.aih-section--soft { background: var(--aih-primary-softer); }
.aih-section--ink { background: var(--aih-ink); color: #E8ECEE; }
.aih-section--ink h1,
.aih-section--ink h2,
.aih-section--ink h3 { color: #FFFFFF; }
.aih-section--ink p { color: rgba(232, 236, 238, 0.85); }

.aih-eyebrow {
  display: inline-block;
  font-family: var(--aih-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aih-primary);
  margin-bottom: 14px;
}

.aih-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--aih-ink-2);
  max-width: 60ch;
}

/* ---------- 5. Custom Header / Navbar ---------- */
.aih-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--aih-line);
  height: var(--aih-header-h);
  display: flex;
  align-items: center;
}
.admin-bar .aih-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .aih-header { top: 46px; } }

.aih-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.aih-header__brand .aih-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.aih-header__brand img,
.aih-header__brand .custom-logo { max-height: 44px; width: auto; display: block; }
.aih-header__brand .custom-logo-link img { max-height: 44px; }

.aih-nav { flex: 1; display: flex; justify-content: center; }
.aih-nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.aih-nav__menu li { position: relative; }
.aih-nav__menu li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--aih-ink-2);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.aih-nav__menu li a:hover { background: var(--aih-primary-softer); color: var(--aih-primary); text-decoration: none; }
.aih-nav__menu li.current-menu-item > a,
.aih-nav__menu li.current-page-ancestor > a { color: var(--aih-primary); background: var(--aih-primary-softer); }

/* Submenus */
.aih-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--aih-line);
  border-radius: var(--aih-radius);
  padding: 8px;
  margin-top: 8px;
  list-style: none;
  box-shadow: 0 10px 30px rgba(20, 35, 44, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  z-index: 10;
}
.aih-nav__menu li:hover > .sub-menu,
.aih-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.aih-nav__menu .sub-menu li a {
  padding: 9px 12px;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--aih-ink-2);
}

.aih-header__actions { display: flex; align-items: center; gap: 12px; }

.aih-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--aih-line-2);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--aih-ink);
}
.aih-mobile-toggle i { display: block; line-height: 1; }

/* Mobile nav drawer */
.aih-mobile-nav {
  display: none;
  position: fixed;
  top: var(--aih-header-h);
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
  border-top: 1px solid var(--aih-line);
}
.admin-bar .aih-mobile-nav { top: calc(var(--aih-header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .aih-mobile-nav { top: calc(var(--aih-header-h) + 46px); } }
.aih-mobile-nav.is-open { display: block; }
.aih-mobile-nav .aih-mobile-nav__menu {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.aih-mobile-nav .aih-mobile-nav__menu li a {
  display: block;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--aih-ink);
  border-bottom: 1px solid var(--aih-line-soft);
  text-decoration: none;
}
.aih-mobile-nav .sub-menu { list-style: none; padding: 0 0 0 14px; margin: 0 0 8px; }
.aih-mobile-nav .sub-menu li a { font-size: 0.95rem; font-weight: 400; color: var(--aih-ink-2); padding: 10px 0; }
.aih-mobile-nav__cta .aih-btn { width: 100%; }

@media (max-width: 960px) {
  .aih-nav { display: none; }
  .aih-mobile-toggle { display: inline-flex; }
  .aih-header__actions .aih-btn { display: none; } /* CTA shown inside drawer instead */
}

/* ---------- 6. Buttons ---------- */
.aih-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--aih-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--aih-radius);
  text-decoration: none !important;
  transition: all 0.15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.aih-btn--primary,
.wp-block-button__link {
  background: var(--aih-primary);
  color: #FFFFFF;
}
.aih-btn--primary:hover,
.wp-block-button__link:hover { background: var(--aih-primary-2); color: #FFFFFF; }

.aih-btn--green { background: var(--aih-green); color: #FFFFFF; }
.aih-btn--green:hover { background: var(--aih-green-2); color: #FFFFFF; }

.aih-btn--ghost {
  background: transparent;
  color: var(--aih-ink);
  border-color: var(--aih-line-2);
}
.aih-btn--ghost:hover { border-color: var(--aih-primary); color: var(--aih-primary); }

.aih-btn--light { background: #FFFFFF; color: var(--aih-primary); border-color: var(--aih-line); }

.aih-btn--lg { padding: 16px 28px; font-size: 1rem; }
.aih-btn--sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- 7. Hero ---------- */
.aih-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--aih-primary-softer) 0%, #FFFFFF 100%);
}
.aih-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.aih-hero__title { font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.1; margin-bottom: 18px; }
.aih-hero__sub { font-size: 1.1rem; color: var(--aih-ink-2); margin-bottom: 26px; max-width: 50ch; }
.aih-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.aih-hero__trust {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--aih-line);
  font-size: 0.85rem; color: var(--aih-ink-3);
}
.aih-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.aih-hero__media {
  background: var(--aih-primary-soft);
  border-radius: var(--aih-radius-xl);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.aih-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 8. Quick bar ---------- */
.aih-quickbar { background: var(--aih-paper-2); border-top: 1px solid var(--aih-line); border-bottom: 1px solid var(--aih-line); padding: 28px 0; }
.aih-quickbar__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aih-ink-3); margin-bottom: 14px; }
.aih-quickbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aih-quickbar__card { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius); padding: 16px 18px; text-decoration: none; color: var(--aih-ink); transition: all 0.15s ease; display: block; }
.aih-quickbar__card:hover { border-color: var(--aih-primary); transform: translateY(-1px); text-decoration: none; }
.aih-quickbar__icon { width: 36px; height: 36px; border-radius: 8px; background: var(--aih-primary-soft); color: var(--aih-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.aih-quickbar__icon--alert { background: var(--aih-danger-soft); color: var(--aih-danger); }
.aih-quickbar__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.aih-quickbar__desc { font-size: 0.8rem; color: var(--aih-ink-3); }

/* ---------- 9. Services ---------- */
.aih-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aih-service-card { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius-lg); padding: 24px; transition: all 0.15s ease; display: block; color: inherit; text-decoration: none; }
.aih-service-card:hover { border-color: var(--aih-primary); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(27, 115, 201, 0.08); text-decoration: none; }
.aih-service-card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--aih-primary-soft); color: var(--aih-primary); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.aih-service-card__title { font-family: var(--aih-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; color: var(--aih-ink); }
.aih-service-card__desc { font-size: 0.9rem; color: var(--aih-ink-2); margin-bottom: 14px; line-height: 1.55; }
.aih-service-card__more { font-size: 0.82rem; font-weight: 600; color: var(--aih-primary); }

/* ---------- 10. Process steps ---------- */
.aih-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aih-process__step { padding-top: 4px; }
.aih-process__num { width: 32px; height: 32px; border-radius: 50%; background: var(--aih-primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.aih-process__title { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.aih-process__desc { font-size: 0.88rem; color: var(--aih-ink-3); line-height: 1.55; }

/* Booking-page version: vertical connected steps */
.aih-booksteps { display: grid; gap: 24px; max-width: 720px; margin: 0 auto; }
.aih-booksteps__item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: flex-start; position: relative; padding-bottom: 24px; }
.aih-booksteps__item:not(:last-child)::after { content: ''; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--aih-primary-soft); }
.aih-booksteps__num { width: 56px; height: 56px; border-radius: 50%; background: var(--aih-primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.3rem; font-family: var(--aih-display); position: relative; z-index: 1; }
.aih-booksteps__body { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius-lg); padding: 20px 22px; }
.aih-booksteps__title { font-family: var(--aih-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 6px; }
.aih-booksteps__desc { font-size: 0.95rem; color: var(--aih-ink-2); margin-bottom: 8px; line-height: 1.6; }
.aih-booksteps__action { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--aih-primary); }

/* ---------- 11. Providers ---------- */
.aih-providers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aih-provider { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius-lg); overflow: hidden; transition: all 0.15s ease; }
.aih-provider:hover { border-color: var(--aih-primary); }
.aih-provider__photo { aspect-ratio: 1; background: var(--aih-primary-soft); display: flex; align-items: center; justify-content: center; color: var(--aih-primary); font-size: 36px; }
.aih-provider__photo img { width: 100%; height: 100%; object-fit: cover; }
.aih-provider__body { padding: 16px; }
.aih-provider__name { font-family: var(--aih-display); font-size: 1.05rem; font-weight: 500; margin-bottom: 2px; }
.aih-provider__specialty { font-size: 0.82rem; color: var(--aih-ink-3); margin-bottom: 10px; }
.aih-provider__status { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: var(--aih-success-soft); color: var(--aih-success); }
.aih-provider__status--waitlist { background: var(--aih-warn-soft); color: var(--aih-warn); }

/* ---------- 12. Stats ---------- */
.aih-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.aih-stat { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius); padding: 22px; }
.aih-stat__num { font-family: var(--aih-display); font-size: 2.25rem; font-weight: 500; color: var(--aih-primary); line-height: 1; margin-bottom: 6px; }
.aih-stat__label { font-size: 0.85rem; color: var(--aih-ink-3); }

/* ---------- 13. Principles ---------- */
.aih-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aih-principle { background: var(--aih-paper-2); border-left: 3px solid var(--aih-primary); padding: 20px 22px; }
.aih-principle__title { font-weight: 600; font-size: 1.02rem; margin-bottom: 8px; }
.aih-principle__desc { font-size: 0.9rem; color: var(--aih-ink-2); line-height: 1.6; }

/* ---------- 14. Leadership ---------- */
.aih-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.aih-leader { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius-lg); padding: 22px; display: flex; gap: 18px; }
.aih-leader__avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--aih-primary-soft); color: var(--aih-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 28px; overflow: hidden; }
.aih-leader__avatar img { width: 100%; height: 100%; object-fit: cover; }
.aih-leader__name { font-family: var(--aih-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 2px; }
.aih-leader__role { font-size: 0.82rem; color: var(--aih-ink-3); margin-bottom: 10px; }
.aih-leader__bio { font-size: 0.88rem; color: var(--aih-ink-2); line-height: 1.55; }

/* ---------- 15. Accreditations ---------- */
.aih-accreds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aih-accred { background: var(--aih-paper-2); border: 1px dashed var(--aih-line-2); border-radius: var(--aih-radius); padding: 22px 16px; text-align: center; }
.aih-accred__icon { font-size: 24px; color: var(--aih-ink-3); margin-bottom: 8px; }
.aih-accred__label { font-size: 0.78rem; color: var(--aih-ink-3); }

/* ---------- 16. Locations ---------- */
.aih-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aih-location { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius); padding: 20px; }
.aih-location__name { font-family: var(--aih-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.aih-location__addr { font-size: 0.9rem; color: var(--aih-ink-2); margin-bottom: 10px; }
.aih-location__hours { font-size: 0.82rem; color: var(--aih-ink-3); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 17. Contact tiles ---------- */
.aih-contact-card { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius-lg); padding: 22px; }
.aih-contact-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--aih-line-soft); }
.aih-contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.aih-contact-row:first-child { padding-top: 0; }
.aih-contact-row__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--aih-primary-soft); color: var(--aih-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.aih-contact-row__label { font-size: 0.72rem; color: var(--aih-ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.aih-contact-row__value { font-weight: 600; font-size: 0.98rem; color: var(--aih-ink); }

/* ---------- 18. Forms ---------- */
.aih-form { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius-lg); padding: 28px; }
.aih-form input[type="text"],
.aih-form input[type="email"],
.aih-form input[type="tel"],
.aih-form input[type="date"],
.aih-form select,
.aih-form textarea {
  width: 100%; font-family: var(--aih-sans); font-size: 0.95rem;
  padding: 12px 14px; border: 1px solid var(--aih-line-2);
  border-radius: var(--aih-radius); background: #FFFFFF; color: var(--aih-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-top: 6px;
}
.aih-form input:focus, .aih-form select:focus, .aih-form textarea:focus { outline: none; border-color: var(--aih-primary); box-shadow: 0 0 0 3px rgba(27, 115, 201, 0.12); }
.aih-form label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--aih-ink-2); margin-bottom: 6px; }
.aih-form-row { margin-bottom: 16px; }
.aih-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 19. FAQ ---------- */
.aih-faq { max-width: 760px; margin: 0 auto; }
.aih-faq__item { border-bottom: 1px solid var(--aih-line); padding: 18px 0; }
.aih-faq__q { font-family: var(--aih-display); font-size: 1.1rem; font-weight: 500; color: var(--aih-ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.aih-faq__q::-webkit-details-marker { display: none; }
.aih-faq__q::after { content: '+'; color: var(--aih-primary); font-size: 1.3rem; font-weight: 300; }
.aih-faq__item[open] .aih-faq__q::after { content: '−'; }
.aih-faq__a { padding-top: 10px; color: var(--aih-ink-2); font-size: 0.95rem; line-height: 1.65; }

/* ---------- 20. Blog cards ---------- */
.aih-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aih-post { background: #FFFFFF; border: 1px solid var(--aih-line); border-radius: var(--aih-radius-lg); overflow: hidden; transition: all 0.15s ease; }
.aih-post:hover { border-color: var(--aih-primary); }
.aih-post__media { aspect-ratio: 16/10; background: var(--aih-primary-soft); }
.aih-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aih-post__body { padding: 18px 20px 20px; }
.aih-post__meta { font-size: 0.75rem; color: var(--aih-ink-3); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.aih-post__title { font-family: var(--aih-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; line-height: 1.3; }
.aih-post__title a { color: var(--aih-ink); }
.aih-post__title a:hover { color: var(--aih-primary); }
.aih-post__excerpt { font-size: 0.88rem; color: var(--aih-ink-2); line-height: 1.55; }

/* ---------- 21. CTA banner ---------- */
.aih-cta-band { background: var(--aih-primary); color: #FFFFFF; border-radius: var(--aih-radius-xl); padding: 48px; text-align: center; }
.aih-cta-band h2 { color: #FFFFFF; font-size: 2rem; margin-bottom: 12px; }
.aih-cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 56ch; margin: 0 auto 24px; }
.aih-cta-band .aih-btn--primary { background: #FFFFFF; color: var(--aih-primary); }
.aih-cta-band .aih-btn--primary:hover { background: var(--aih-primary-softer); }

/* ---------- 22. Footer ---------- */
.aih-footer { background: var(--aih-ink); color: rgba(255, 255, 255, 0.78); padding: 56px 0 24px; font-family: var(--aih-sans); }
.aih-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.aih-footer h4 { font-family: var(--aih-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 14px; }
.aih-footer p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; line-height: 1.6; }
.aih-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.92rem; }
.aih-footer a:hover { color: #FFFFFF; }
.aih-footer ul { list-style: none; padding: 0; margin: 0; }
.aih-footer ul li { margin-bottom: 8px; }
.aih-footer__brand-mark { color: #FFFFFF; font-family: var(--aih-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 12px; }
.aih-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; margin-top: 36px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.aih-footer__bottom a { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

/* Suppress GeneratePress / WP default footer to avoid double footer */
.site-info, .footer-widgets, #colophon { display: none !important; }

/* ---------- 23. Page hero ---------- */
.aih-pagehero { background: var(--aih-primary-softer); padding: 56px 0 40px; border-bottom: 1px solid var(--aih-line); }
.aih-pagehero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.aih-pagehero p { font-size: 1.05rem; color: var(--aih-ink-2); max-width: 60ch; }

/* ---------- 24. Utilities ---------- */
.aih-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.aih-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aih-text-center { text-align: center; }
.aih-mt-0 { margin-top: 0; }
.aih-mb-0 { margin-bottom: 0; }
.aih-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.aih-section-head__link { font-size: 0.9rem; font-weight: 600; color: var(--aih-primary); }
.aih-prose { max-width: 760px; margin: 0 auto; }
.aih-prose h2 { margin-top: 1.8em; }
.aih-prose ul, .aih-prose ol { padding-left: 22px; color: var(--aih-ink-2); line-height: 1.8; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 960px) {
  .aih-hero__grid,
  .aih-grid-2 { grid-template-columns: 1fr; }
  .aih-services,
  .aih-grid-3,
  .aih-quickbar__grid,
  .aih-providers,
  .aih-stats,
  .aih-process,
  .aih-principles,
  .aih-accreds,
  .aih-locations,
  .aih-posts,
  .aih-leaders,
  .aih-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .aih-section { padding: 48px 0; }
  .aih-services,
  .aih-grid-3,
  .aih-quickbar__grid,
  .aih-providers,
  .aih-stats,
  .aih-process,
  .aih-principles,
  .aih-accreds,
  .aih-locations,
  .aih-posts,
  .aih-leaders,
  .aih-form-grid,
  .aih-footer__grid { grid-template-columns: 1fr; }
  .aih-cta-band { padding: 32px 22px; }
}
