/*
Theme Name: OpenACAI Modern
Theme URI: https://openacai.com/
Author: OpenACAI Inc
Description: A focused public-facing theme for OpenACAI Inc.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: openacai-modern
*/

:root {
  color: #142735;
  background: #f8fbfc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #142735;
  --muted: #5f7180;
  --paper: #ffffff;
  --soft: #edf7fa;
  --soft-2: #f4f9f8;
  --teal: #087f91;
  --teal-2: #00a4bd;
  --blue: #315bff;
  --green: #4fad73;
  --gold: #f3b84e;
  --rose: #d9636f;
  --line: rgba(20, 39, 53, 0.12);
  --shadow: 0 18px 46px rgba(18, 53, 71, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fcfd 0%, #f3f8f8 48%, #ffffff 100%);
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(20, 39, 53, 0.08);
  background: rgba(248, 252, 253, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-inner,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-link img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-link strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

.brand-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.primary-nav a,
.button,
.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1;
}

.primary-nav a {
  padding: 0 12px;
  color: #203845;
  font-size: 0.9rem;
}

.primary-nav a:hover {
  color: var(--teal);
  background: rgba(8, 127, 145, 0.08);
}

.primary-nav .nav-cta {
  margin-left: 6px;
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(8, 127, 145, 0.2);
}

.site-main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 64px 0 50px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  border-bottom: 1px solid rgba(8, 127, 145, 0.08);
  background: linear-gradient(180deg, rgba(237, 247, 250, 0.92), rgba(237, 247, 250, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 50px;
  align-items: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(8, 127, 145, 0.18);
  border-radius: 6px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 4.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 640px;
  color: #405766;
  font-size: 1.23rem;
  line-height: 1.58;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 18px 38px rgba(8, 127, 145, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.proof-row li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(20, 39, 53, 0.1);
  border-radius: 7px;
  color: #3f5968;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  min-height: 500px;
  padding: 18px;
  border: 1px solid rgba(8, 127, 145, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(8, 127, 145, 0.1), rgba(49, 91, 255, 0.06));
  box-shadow: var(--shadow);
}

.hero-mark {
  display: grid;
  place-items: center;
  min-height: 230px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(8, 127, 145, 0.1), rgba(79, 173, 115, 0.1)),
    #f7fcfd;
}

.hero-mark img {
  width: min(210px, 58%);
  filter: drop-shadow(0 18px 28px rgba(8, 127, 145, 0.2));
}

.status-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid rgba(20, 39, 53, 0.09);
  border-radius: 8px;
  background: #fff;
}

.status-card span {
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(79, 173, 115, 0.12);
}

.status-card strong {
  display: block;
  margin-bottom: 2px;
}

.status-card small {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(237, 247, 250, 0.72), rgba(255, 255, 255, 0.82));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 12px;
  font-size: 3.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.program-grid,
.path-grid,
.news-grid,
.trust-grid {
  display: grid;
  gap: 16px;
}

.program-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.program-card,
.path-card,
.news-card,
.trust-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 36px rgba(18, 53, 71, 0.08);
}

.program-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 20px;
}

.program-card b {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  font-size: 0.88rem;
}

.program-card:nth-child(2) b {
  background: var(--blue);
}

.program-card:nth-child(3) b {
  background: var(--green);
}

.program-card:nth-child(4) b {
  background: var(--gold);
}

.program-card:nth-child(5) b {
  background: var(--rose);
}

.program-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.program-card p,
.path-card p,
.news-card p,
.trust-card p {
  color: var(--muted);
  line-height: 1.58;
}

.text-link {
  justify-content: flex-start;
  min-height: 0;
  color: var(--teal);
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 44px;
  align-items: center;
}

.service-panel {
  padding: 28px;
  border: 1px solid rgba(20, 39, 53, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 248, 0.9)),
    #fff;
  box-shadow: var(--shadow);
}

.service-panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.service-panel-head img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(8, 127, 145, 0.18));
}

.service-panel-head strong,
.service-panel-head span {
  display: block;
}

.service-panel-head strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.service-panel-head span {
  margin-top: 4px;
  color: var(--muted);
}

.service-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 39, 53, 0.09);
}

.service-panel li:last-child {
  border-bottom: 0;
}

.service-panel li span {
  font-weight: 820;
}

.service-panel li small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.image-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(20, 39, 53, 0.1);
  background: #fff;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.path-grid {
  grid-template-columns: 1fr;
}

.path-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
}

.path-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
}

.path-card h3 {
  margin-bottom: 5px;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-card {
  padding: 22px;
}

.trust-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.partner-row img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

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

.news-card {
  display: block;
  padding: 24px;
  text-decoration: none;
}

.news-card time {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
}

.news-card h3 {
  margin: 10px 0;
  font-size: 1.25rem;
  line-height: 1.24;
}

.cta-band {
  padding: 48px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 127, 145, 0.96), rgba(16, 36, 49, 0.95)),
    #102431;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
}

.cta-band .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.page-hero {
  padding: 70px 0 34px;
  background: linear-gradient(180deg, rgba(237, 247, 250, 0.9), rgba(255, 255, 255, 0));
}

.page-hero h1 {
  max-width: 980px;
  font-size: 3.1rem;
  line-height: 1.08;
}

.content-wrap {
  max-width: 900px;
  padding: 38px 0 86px;
}

.content-wrap :where(p, li) {
  color: #354d5b;
  line-height: 1.72;
}

.content-wrap :where(ul, ol) {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.content-wrap :where(h2, h3, h4) {
  margin-top: 2rem;
}

.content-wrap a {
  color: var(--teal);
}

.content-wrap a.button-primary {
  color: #fff;
}

.content-wrap a.button-secondary {
  color: var(--ink);
}

.native-content-wrap {
  max-width: 1120px;
}

.native-page {
  display: grid;
  gap: 34px;
}

.native-intro {
  max-width: 860px;
}

.native-lead {
  margin-bottom: 0;
  color: #2e4655;
  font-size: 1.2rem;
  line-height: 1.68;
}

.native-feature {
  display: grid;
  gap: 26px;
  padding: 30px;
  border: 1px solid rgba(20, 39, 53, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(18, 53, 71, 0.08);
}

.native-feature-soft {
  background:
    linear-gradient(135deg, rgba(237, 247, 250, 0.78), rgba(255, 255, 255, 0.88)),
    #fff;
}

.native-feature h2,
.native-details-body h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.15;
}

.native-feature p:last-child,
.native-intro p:last-child,
.native-card p:last-child,
.native-details-body p:last-child {
  margin-bottom: 0;
}

.native-program-mark {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 12px;
  border-radius: 7px;
  color: #fff;
  background: var(--teal);
  font-size: 0.84rem;
  font-weight: 850;
}

.native-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.native-card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.native-impact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.native-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(18, 53, 71, 0.07);
}

.native-card span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--teal);
  background: rgba(8, 127, 145, 0.09);
  font-size: 0.82rem;
  font-weight: 850;
}

.native-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.24;
}

.native-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.native-card ul {
  margin: 0;
}

.native-details-list {
  display: grid;
  gap: 12px;
}

.native-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(18, 53, 71, 0.07);
}

.native-details[open] {
  border-color: rgba(8, 127, 145, 0.3);
}

.native-details summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.3;
}

.native-details summary::marker {
  color: var(--teal);
}

.native-details-body {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.native-details-body p,
.native-details-body li {
  color: #354d5b;
  line-height: 1.68;
}

.native-details-body a {
  overflow-wrap: anywhere;
  font-weight: 760;
}

.native-alert {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid rgba(217, 99, 111, 0.22);
  border-left: 5px solid var(--rose);
  border-radius: 8px;
  background: rgba(255, 246, 247, 0.9);
}

.native-alert strong {
  color: #8e3440;
}

.native-alert p {
  margin: 0;
}

.native-legal {
  max-width: 920px;
}

.excerpt-content > :first-child,
.empty-page > :first-child {
  margin-top: 0;
}

.excerpt-content h2 {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.24;
}

.excerpt-content strong {
  color: var(--ink);
}

.empty-page {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 36px rgba(18, 53, 71, 0.08);
}

.empty-page h2 {
  max-width: 680px;
  font-size: 1.65rem;
  line-height: 1.22;
}

.empty-page p {
  max-width: 700px;
}

.empty-page .button {
  margin-top: 10px;
}

.content-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.content-list-item {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(18, 53, 71, 0.07);
}

.content-list-item:hover {
  border-color: rgba(8, 127, 145, 0.34);
  transform: translateY(-1px);
}

.content-list-item time {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
}

.content-list-item strong {
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.25;
}

.content-list-item span {
  color: var(--muted);
  line-height: 1.58;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: #102431;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-grid strong {
  display: block;
  color: #fff;
}

.footer-about {
  display: grid;
  gap: 10px;
}

.footer-about span {
  max-width: 560px;
}

.footer-about address {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  line-height: 1.55;
}

.footer-about address a,
.verification-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-about address a:hover,
.verification-link:hover {
  color: #fff;
}

.footer-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .page-hero h1 {
    font-size: 2.55rem;
  }

  .hero-panel {
    min-height: auto;
  }

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

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

  .native-card-grid,
  .native-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-shell,
  .section-inner,
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .brand-link img {
    width: 48px;
    height: 48px;
  }

  .primary-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .primary-nav a {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
    grid-column: span 2;
  }

  .hero {
    min-height: auto;
    padding: 44px 0;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.15rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-copy > p {
    font-size: 1.05rem;
  }

  .hero-actions,
  .section-actions,
  .button {
    width: 100%;
  }

  .program-grid,
  .trust-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .image-frame img {
    min-height: 270px;
  }

  .cta-band {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-actions {
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .native-content-wrap {
    max-width: min(100% - 28px, 1180px);
  }

  .native-card-grid,
  .native-card-grid-two,
  .native-impact-grid {
    grid-template-columns: 1fr;
  }

  .native-feature,
  .native-card {
    padding: 20px;
  }

  .native-details summary {
    padding: 14px 16px;
  }

  .native-details-body {
    padding: 0 16px 16px;
  }

  .native-lead {
    font-size: 1.05rem;
  }
}

.mwai-chatbot.mwai-window.mwai-bubble {
  left: auto !important;
  right: 24px !important;
  bottom: 24px !important;
  max-width: min(420px, calc(100vw - 48px)) !important;
}

.mwai-chatbot.mwai-window.mwai-bubble .mwai-trigger {
  left: auto !important;
  right: 0 !important;
}

.mwai-chatbot.mwai-window.mwai-bubble .mwai-icon-text-container {
  display: none !important;
}

.mwai-chatbot.mwai-window.mwai-bubble .mwai-trigger.mwai-open-button {
  width: 60px !important;
  height: 60px !important;
}

@media (max-width: 760px) {
  .mwai-chatbot.mwai-window.mwai-bubble {
    right: 14px !important;
    bottom: 14px !important;
    max-width: calc(100vw - 28px) !important;
  }

  .mwai-chatbot.mwai-window.mwai-bubble .mwai-trigger.mwai-open-button,
  .mwai-chatbot.mwai-window.mwai-bubble .mwai-icon-container {
    width: 54px !important;
    height: 54px !important;
  }

  .proof-row {
    padding-right: 74px;
  }
}
