/*
Theme Name: Action Care
Description: Faithful modernization of the 2013 action-care.org Drupal theme. Same layout language (teal canvas, centered white card, hero slider, Connect/Invest/Empower, partner carousels) with contemporary typography, spacing, responsiveness and accessibility.
Version: 1.1.1
Author: Action Care
Text Domain: actioncare
*/

/* ---------- font (self-hosted, single variable file, 42KB) ---------- */
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/opensans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* palette lifted from the original theme css */
  --teal-deep: #0d7290;      /* page canvas (was #1582a4/#0a91bb) */
  --teal: #1582a4;
  --teal-bright: #0a91bb;
  --cyan: #45bad3;
  --green: #008e8f;
  --ink: #3d3d3d;            /* was #656464 — darkened for contrast */
  --ink-soft: #6b6b6b;
  --line: #e4e4e4;
  --card: #ffffff;
  --wash: #f6f8f9;
  --footer-bg: #eeeeee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 60, 80, .18);
  --shadow-soft: 0 2px 10px rgba(10, 60, 80, .08);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--teal-bright), var(--teal-deep) 480px);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
/* link color = darker teal for WCAG AA contrast on white */
a { color: var(--teal-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { line-height: 1.25; color: #2c2c2c; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.15rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--teal); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- shell: teal canvas + white card ---------- */
.site-shell { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.site-card {
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  /* visible so header dropdowns (CSR) can paint past the card edge;
     bottom radius is clipped on .site-footer instead */
  overflow: visible;
  margin-bottom: 48px;
}

/* ---------- header ---------- */
.topbar { background: transparent; }
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 24px;
  display: flex; justify-content: flex-end;
}
.topbar a {
  color: #eafcff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.topbar a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }

.site-header {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-logo img { width: 190px; height: auto; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .55rem .95rem; border-radius: 999px;
  color: var(--ink); font-size: .92rem; font-weight: 600;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a, .site-nav .current-menu-parent > a {
  background: var(--teal-bright); color: #fff;
}
.nav-toggle { display: none; }

/* Primary nav dropdown (CSR → pillars) */
.site-nav { position: relative; z-index: 50; }
.site-nav .menu-item-has-children { position: relative; }
.site-nav .sub-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: auto; right: 0; z-index: 60;
  min-width: max(240px, 100%); width: max-content; max-width: min(320px, 90vw);
  flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow-soft); list-style: none; margin: 0;
}
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu,
.site-nav .menu-item-has-children.open > .sub-menu { display: flex; }
.site-nav .sub-menu a {
  border-radius: 8px; white-space: nowrap; font-size: .88rem; font-weight: 600;
}
.site-nav .sub-menu a:hover { background: var(--wash); color: var(--teal-deep); }
.site-nav .sub-menu .current-menu-item > a {
  background: var(--teal-bright); color: #fff;
}

/* ---------- hero slider ---------- */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .6s ease; }
.hero-slide { position: relative; min-width: 100%; }
.hero-slide img.hero-img { width: 100%; height: clamp(260px, 38vw, 430px); object-fit: cover; }
.hero-caption {
  position: absolute; left: clamp(16px, 5%, 56px); bottom: clamp(20px, 6%, 56px);
  max-width: min(480px, 80%);
  background: rgba(8, 60, 78, .82); backdrop-filter: blur(4px);
  color: #fff; padding: 18px 22px; border-radius: 10px;
}
.hero-caption h2 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
.hero-caption .ac-btn { margin-top: .4rem; }
.hero-dots {
  position: absolute; right: 14px; bottom: 14px; display: flex;
}
/* 24px tap target with a 12px visible dot (border-box + transparent border) */
.hero-dots button {
  box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%;
  border: 6px solid transparent; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.5); background-clip: padding-box;
}
.hero-dots button[aria-current="true"] { background-color: #fff; }

/* interior banner */
.page-banner img { width: 100%; height: clamp(180px, 24vw, 300px); object-fit: cover; }

/* ---------- layout: content + sidebar ---------- */
.content-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px;
  padding: 36px 32px 44px;
}
.content-wrap.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.entry-content { max-width: 70ch; }
.entry-content img { border-radius: 10px; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-title {
  margin: 0 0 1rem; padding-bottom: 6px; border-bottom: 1px solid #c5c5c5;
  display: block; color: #363636; font-weight: 600;
}

/* ---------- sidebar CTA + testimonial ---------- */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.ac-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--teal-deep); color: #fff !important;
  font-weight: 700; font-size: .95rem;
  padding: .7rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, background .15s ease;
}
.ac-btn:hover { background: #0b5f77; transform: translateY(-1px); }
.ac-btn::after { content: "\203A\203A"; font-weight: 800; letter-spacing: -1px; }
.ac-btn.no-arrow::after { content: none; }
.btn-block { text-align: center; }
.btn-block .ac-btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: .9rem 1rem; }

.testimonial-card {
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px; position: relative; font-size: .92rem; color: var(--ink-soft);
}
.testimonial-card::before {
  content: "\201C"; position: absolute; top: -6px; left: 14px;
  font-size: 4.4rem; line-height: 1; color: var(--cyan); font-family: Georgia, serif;
}
.testimonial-card blockquote { margin: 0 0 .8rem; padding-top: .6rem; }
.testimonial-card cite { color: var(--teal-deep); font-style: normal; font-weight: 600; font-size: .85rem; }

/* ---------- front page sections ---------- */
.front-section { padding: 36px 32px; border-top: 1px solid var(--line); }
.section-title {
  margin: 0 0 1.4rem; font-size: 1.25rem; font-weight: 400;
  color: #008e8f; padding-bottom: 6px; border-bottom: 1px solid #c5c5c5;
  display: block;
}
.section-title a { color: #008e8f; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar { text-align: center; }
.pillar img {
  width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: .9rem;
  box-shadow: var(--shadow-soft);
}
.pillar h3 { color: #1582a4; margin: .2rem 0; font-weight: 400; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.news-teasers { display: grid; gap: 26px; }
.news-teaser {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start;
}
.news-teaser img { width: 150px; height: 105px; object-fit: cover; border-radius: 10px; }
.news-teaser h3 { margin: 0 0 .3rem; font-size: 1.02rem; color: #0a91bb; }
.news-teaser h3 a { color: #0a91bb; }
.news-teaser p { margin: 0 0 .35rem; font-size: .92rem; color: var(--ink-soft); }
.view-link { font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.view-link::after { content: " \2192"; }

/* ---------- partner carousels ---------- */
.logo-strip { overflow: hidden; position: relative; }
.logo-track {
  display: flex; gap: 40px; align-items: center;
  animation: logo-scroll 40s linear infinite; width: max-content; padding: 8px 0;
}
.logo-strip:hover .logo-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: auto; }
}
@keyframes logo-scroll { to { transform: translateX(-50%); } }
.logo-track a { flex: 0 0 auto; }
.logo-track img {
  height: 56px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(35%); opacity: .9; transition: filter .2s, opacity .2s;
}
.logo-track img:hover { filter: none; opacity: 1; }

/* ---------- archives ---------- */
.month-heading {
  background: transparent; border-left: 0;
  border-bottom: 1px solid #c5c5c5;
  padding: .45rem 0; margin: 2rem 0 1rem; font-size: 1.15rem; color: #363636;
  font-weight: 600;
}
.month-heading:first-of-type { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.grid-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .15s ease;
}
.grid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.grid-card img { height: 110px; width: 100%; object-fit: contain; margin-bottom: .8rem; }
.grid-card h3 { font-size: .95rem; margin: 0; color: #0a91bb; font-weight: 400; }

.quote-list { display: grid; gap: 22px; }

.pagination { margin-top: 2.2rem; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem;
}
.pagination .page-numbers.current { background: var(--teal-bright); color: #fff; border-color: var(--teal-bright); }

/* ---------- forms ---------- */
.ac-form { max-width: 560px; }
.ac-form .ac-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.ac-form input, .ac-form textarea {
  width: 100%; padding: .65rem .8rem; font: inherit; color: var(--ink);
  border: 1px solid #cfcfcf; border-radius: 8px; background: #fff;
}
.ac-form input:focus, .ac-form textarea:focus {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
}
.ac-req { color: #c0392b; }
.ac-hp { position: absolute; left: -9999px; }
.ac-form-thanks, .ac-form-error {
  padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem;
}
.ac-form-thanks { background: #e7f6ec; border: 1px solid #79c98f; color: #1e6b38; }
.ac-form-error { background: #fdeceb; border: 1px solid #e79a92; color: #92322a; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg); border-top: 4px solid var(--cyan);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  padding: 40px 32px 28px; font-size: .88rem; color: var(--ink-soft);
}
.footer-cols {
  display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px;
}
.footer-cols .footer-heading {
  margin: 0 0 .8rem; font-size: .92rem; color: var(--ink);
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .45rem; }
.footer-cols a { color: var(--ink-soft); }
.footer-cols a:hover { color: var(--teal-bright); }
.footer-brand img { width: 150px; margin-bottom: .8rem; }
.footer-meta { margin-top: 26px; padding-top: 16px; border-top: 1px solid #dcdcdc; font-size: .8rem; }
.social-link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: minmax(0, 1fr); }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar > * { flex: 1 1 260px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 16px 18px; }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: .5rem .8rem; font: inherit; cursor: pointer;
  }
  .site-nav { width: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; }
  .site-nav .menu-item-has-children > .sub-menu {
    position: static; display: none; box-shadow: none; border: 0;
    padding: 0 0 0 12px; min-width: 0; max-width: none; width: auto;
    left: auto; right: auto; background: transparent;
  }
  .site-nav .menu-item-has-children.open > .sub-menu { display: flex; }
  .content-wrap, .front-section, .site-footer { padding-left: 18px; padding-right: 18px; }
  .news-teaser { grid-template-columns: 1fr; }
  .news-teaser img { width: 100%; height: 170px; }
  .footer-cols { grid-template-columns: 1fr; }
  .csr-pillar-cards { grid-template-columns: 1fr; }
  .csr-story-list { grid-template-columns: 1fr; }
}

/* WP required classes */
.alignleft { float: left; margin: 0 1.2rem .8rem 0; }
.alignright { float: right; margin: 0 0 .8rem 1.2rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--ink-soft); text-align: center; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute;
}

/* ---------- Drupal body classes (ported so imported HTML keeps its look) ----------
 * The page bodies still use the original class names: article-cont, objective-text,
 * project-text, img-article. Heading colour and the grey section underlines live
 * on those classes in the 2013 stylesheet — without this block every h2/h3 was
 * generic dark text and the dividers vanished.
 */
.entry-content h2 {
  color: #363636;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.4em 0 .4em;
  padding: 0 0 6px;
  border-bottom: 1px solid #c5c5c5;
}
.entry-content h3 {
  color: #0a91bb;
  font-size: 1.05rem;
  font-weight: 400;
  margin: .8em 0 .35em;
}
.entry-content h4 {
  color: #008e8f;
  font-size: .95rem;
  font-weight: 400;
  margin: 1.1em 0 .4em;
  padding-bottom: 4px;
  border-bottom: 1px solid #eeeeee;
}

.entry-content .objective-text { margin: 0 0 1.6rem; }
.entry-content .objective-text h2 {
  color: #1582a4;
  font-size: 1.15rem;
  font-weight: 600;
  margin: .6em 0 0;
  padding: 0;
  border-bottom: none;
}
.entry-content .objective-text p {
  color: #656464;
  margin: 0 0 1rem;
  text-transform: capitalize;
}

.entry-content .article-cont { margin: 0 0 1.2rem; }
.entry-content .article,
.entry-content section.article {
  overflow: hidden;
  margin: 0 0 1.1rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid #eeeeee;
}
.entry-content .article:last-child,
.entry-content .article-cont .article:last-child { border-bottom: none; }

.entry-content .img-article { float: left; margin: 0 14px 10px 0; }
.entry-content .img-article img {
  width: 196px;
  height: auto;
  border: 1px solid #dddddd;
  border-radius: 0;
}
.entry-content .content-article { overflow: hidden; color: #656464; }
.entry-content .content-article h3 { color: #0a91bb; font-weight: 400; margin-bottom: .3em; }

.entry-content .project-text h2 {
  color: #0a91bb;
  font-size: 1.05rem;
  font-weight: 400;
  border-bottom: none;
  padding: 0;
  margin: 0 0 .4em;
}
.entry-content .project-text h3 {
  color: #008e8f;
  border-bottom: 1px solid #eeeeee;
  padding: 2px 0 6px;
  margin: 1.2em 0 .6em;
}
.entry-content .project-text h2.head-date {
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.4em;
  border-bottom: 1px solid #ddd;
}

.entry-content .programs { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.entry-content .programs li { width: 136px; text-align: center; }
.entry-content .programs li img { border: 1px solid #ddd; width: 136px; }
.entry-content .programs li h3 { color: #008e8f; font-size: .85rem; padding: 4px 0; }

.entry-content .article-hidden { display: none; }

/* ---------- CSR hub + pillar archives ---------- */
.csr-hub { padding-top: 40px; padding-bottom: 48px; }
.csr-eyebrow {
  margin: 0 0 .5rem; text-align: center; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.csr-hub-title { text-align: center; border-bottom: 0; margin-bottom: .8rem; }
.csr-hub-intro {
  max-width: 62ch; margin: 0 auto 2.2rem; text-align: center;
  color: var(--ink-soft); font-size: 1.02rem;
}
.csr-pillar-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 1.2rem;
}
.csr-pillar-card {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  text-align: center; color: inherit; padding: 1rem .8rem 1.2rem;
  border-radius: var(--radius); transition: background .15s ease, transform .12s ease;
}
.csr-pillar-card:hover { background: var(--wash); transform: translateY(-2px); color: inherit; }
.csr-pillar-label {
  display: inline-block; padding: .35rem .85rem; border-radius: 8px;
  background: var(--teal-deep); color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .04em;
}
.csr-pillar-card img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.csr-pillar-img-fallback {
  display: block; width: 100%; height: 180px; border-radius: 10px; background: var(--wash);
}
.csr-pillar-card p {
  margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55;
}

.csr-archive-intro { max-width: 70ch; margin-bottom: 1.6rem; color: var(--ink-soft); }
.csr-archive-intro p { margin: 0 0 .9rem; }
.csr-story-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.csr-story-item {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
}
.csr-story-thumb img {
  width: 100%; height: 140px; object-fit: cover; border-radius: 8px;
}
.csr-story-title {
  margin: 0; font-size: 1.02rem; font-weight: 600; color: #2c2c2c; border: 0; padding: 0;
}
.csr-story-title a { color: inherit; }
.csr-story-title a:hover { color: var(--teal-deep); }
.csr-read-more {
  margin-top: auto; font-weight: 700; font-size: .88rem; letter-spacing: .02em;
  color: var(--teal-deep);
}
.csr-back { margin-top: 2rem; clear: both; }
.csr-single .entry-content { overflow: hidden; }

@media (max-width: 900px) {
  .csr-pillar-cards { grid-template-columns: 1fr; }
  .csr-story-list { grid-template-columns: 1fr; }
}

