/* ============================================================
   AIAS shared stylesheet
   Single source of truth for all aias.co pages.
   Deployed to /aias.co/public_html/aias-shared.css
   Loaded via <link rel="stylesheet" href="/aias-shared.css">
   inside the WP HTML block.
   ============================================================ */

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

/* ---- Tokens ------------------------------------------------ */
:root {
  --teal: #008080;
  --charcoal: #373643;
  --white: #FFFFFF;
  --mint-light: #e0e7e7;
  --mint-mid: #51bcbc;
  --deep-teal: #00707c;
  --navy: #1e4563;
  --black: #000000;

  --font: Helvetica, Arial, sans-serif;

  --gradient-brand: linear-gradient(135deg, #1e4563 0%, #00707c 55%, #008080 100%);
  --gradient-brand-deep: linear-gradient(135deg, #142e44 0%, #1e4563 35%, #00707c 75%, #008080 100%);

  --shadow-card: 0 4px 20px rgba(30, 69, 99, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(0, 128, 128, 0.18);
  --shadow-hero: 0 18px 60px rgba(0, 0, 0, 0.35);

  --max-content: 1200px;
  --pad-x-desktop: max(4rem, calc((100% - 1200px) / 2));
  --pad-x-mobile: 2rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ---- Base -------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--charcoal);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

/* ---- Header ------------------------------------------------ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 4rem;
  background: rgba(30, 69, 99, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-logo { height: 36px; width: auto; }
.header nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 2.5rem;
  transition: color 0.2s;
}
.header nav a:hover { color: var(--mint-mid); }

/* ---- Sections / layout ------------------------------------- */
section {
  padding: 5rem var(--pad-x-desktop);
  background: var(--white);
}
/* Strong override so the WP body background never bleeds through.
   The cluster wrap class is used in WP only — it sets the page chrome. */
.aias-cluster-wrap > section { background: var(--white) !important; }
.aias-cluster-wrap > section.page-hero {
  background: var(--gradient-brand) !important;
}
.aias-cluster-wrap > section.page-hero--xl {
  background: var(--gradient-brand-deep) !important;
}
.aias-cluster-wrap > section.stat-strip {
  background: var(--gradient-brand) !important;
}
.aias-cluster-wrap > section.three-layer { background: #0f1f30 !important; }
.aias-cluster-wrap > section.region-section { background: #0f1f30 !important; }
.aias-cluster-wrap > section.page-cta {
  background: var(--gradient-brand) !important;
}
.aias-cluster-wrap > section.cluster-footer { background: #f7fafa !important; }
.aias-cluster-wrap > section.features-section { background: var(--mint-light) !important; }
.section-narrow { max-width: 820px; margin: 0 auto; }
.section-wide   { max-width: var(--max-content); margin: 0 auto; }

.section-tag {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2rem; font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.section-lede {
  font-size: 1.1rem; line-height: 1.7;
  color: #555;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* Centered section header — use this instead of inline text-align hacks */
.section-head { max-width: var(--max-content); margin: 0 auto 2.5rem; }
.section-head--center { text-align: center; }
.section-head--center .section-title {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .section-lede {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Animated dot-wave canvas (decorative bg) -------------- */
.dot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.page-hero > *:not(.dot-canvas),
.stat-strip > *:not(.dot-canvas),
.three-layer > *:not(.dot-canvas),
.page-cta > *:not(.dot-canvas) { position: relative; z-index: 1; }

/* ---- Page hero (existing service-page scale) --------------- */
.page-hero {
  background: var(--gradient-brand);
  padding: 10rem var(--pad-x-desktop) 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--mint-mid); }
.page-hero h1 {
  font-size: 2.8rem; font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
}
.page-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}
.page-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-hero);
}

/* ---- Page hero XL (new — for pillar/worldview pages) ------ */
.page-hero--xl {
  padding: 11rem var(--pad-x-desktop) 6rem;
  background: var(--gradient-brand-deep);
}
.page-hero--xl h1 {
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: 0.005em;
  max-width: 900px;
  margin-bottom: 1.5rem;
}
.page-hero--xl p {
  font-size: 1.25rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.page-hero--xl .hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mint-mid);
  margin-bottom: 1.25rem;
}

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--deep-teal); border-color: var(--deep-teal); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  margin-left: 1rem;
}
.btn-outline:hover { border-color: var(--white); }

.btn-dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--navy); border-color: var(--navy); }

/* ---- Problem / Solution split ------------------------------ */
.problem-solution {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: var(--max-content); margin: 0 auto;
}
.ps-card { padding: 2rem; border-radius: var(--radius-md); }
.ps-card.problem  { background: #f8f0f0; border: 1px solid #e8d0d0; }
.ps-card.solution { background: #f0f8f6; border: 1px solid #c8e0d8; }
.ps-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.ps-card.problem h3  { color: #8b4513; }
.ps-card.solution h3 { color: var(--deep-teal); }
.ps-card ul { list-style: none; }
.ps-card li {
  font-size: 0.95rem; line-height: 1.7;
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative; color: #555;
}
.ps-card.problem  li::before { content: '\2717'; position: absolute; left: 0; color: #c44; font-weight: 700; }
.ps-card.solution li::before { content: '\2713'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---- Feature grid ------------------------------------------ */
.features-section { background: var(--mint-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-content);
  margin: 0 auto;
}
.service-feature {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid #ddd;
  transition: all 0.25s;
}
.service-feature:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.service-feature h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.service-feature p { font-size: 0.95rem; color: #666; line-height: 1.7; }

/* ---- FAQ --------------------------------------------------- */
.faq-section { background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-content);
  margin: 0 auto;
}
.faq-item {
  background: var(--mint-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid #ddd;
}
.faq-item h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.faq-item p { font-size: 0.92rem; color: #555; line-height: 1.7; }

/* ---- Page CTA band ----------------------------------------- */
.page-cta {
  background: var(--gradient-brand);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem var(--pad-x-desktop);
}
.page-cta h2 {
  font-size: 2.2rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.page-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 2rem;
  max-width: 600px;
  line-height: 1.7;
}

/* ---- Footer ------------------------------------------------ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 3rem var(--pad-x-desktop);
  text-align: center;
  font-size: 0.85rem;
}
.footer a { color: var(--mint-mid); text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Global site footer (cluster pages) */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem var(--pad-x-desktop) 0;
  font-size: 0.9rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: var(--max-content);
  margin: 0 auto;
}
.site-footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint-mid);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer-col ul { list-style: none; padding: 0; margin: 0; }
.site-footer-col li {
  padding: 0.4rem 0;
  line-height: 1.5;
}
.site-footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-col a:hover { color: var(--mint-mid); }
.site-footer-bottom {
  max-width: var(--max-content);
  margin: 3rem auto 0;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
@media (max-width: 900px) {
  .site-footer { padding: 3rem var(--pad-x-mobile) 0; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile ------------------------------------------------ */
@media (max-width: 900px) {
  .header { padding: 0.75rem 1.5rem; }
  .header nav a { margin-left: 1.25rem; font-size: 0.75rem; }
  section { padding: 3rem var(--pad-x-mobile); }
  .page-hero { padding: 8rem var(--pad-x-mobile) 3rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero--xl { padding: 9rem var(--pad-x-mobile) 4rem; }
  .page-hero--xl h1 { font-size: 2.6rem; line-height: 1.1; }
  .page-hero--xl p { font-size: 1.05rem; }
  .section-title { font-size: 1.6rem; }
  .problem-solution { grid-template-columns: 1fr; gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .page-cta h2 { font-size: 1.7rem; }
  .btn-outline { margin-left: 0; margin-top: 0.75rem; }
}
