/*
Theme Name: Aliston Care Foundation
Theme URI: https://alistoncarefoundation.org/
Author: Aliston Care Foundation
Author URI: https://alistoncarefoundation.org/
Description: Custom charity / NGO theme for Aliston Care Foundation. Nonprofit, non-political foundation supporting indigent children and vulnerable widows across Nigeria. Design language inspired by the Charifund charity template (deep green, Nunito/Outfit/Caveat, rounded cards, fundraising progress).
Version: 1.1.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aliston-care
Tags: charity, nonprofit, ngo, donation, green, custom-colors, custom-menu, featured-images, translation-ready
*/

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root {
  --ac-primary: #046a58;
  --ac-primary-700: #03564a;
  --ac-primary-300: #3cc78f;
  --ac-primary-soft: #e6f5f0;
  --ac-secondary: #122f2a;
  --ac-ink: #0e253a;
  --ac-body: #5c6b66;
  --ac-muted: #8a9a95;
  --ac-gold: #f2b01e;
  --ac-gold-dark: #b9820c;
  --ac-white: #ffffff;
  --ac-soft: #f3f8f6;
  --ac-line: #e3ece8;

  --ac-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ac-font-head: "Outfit", "Nunito", system-ui, sans-serif;
  --ac-font-script: "Caveat", "Segoe Script", cursive;

  --ac-radius: 18px;
  --ac-radius-sm: 12px;
  --ac-radius-pill: 999px;
  --ac-shadow: 0 14px 40px rgba(4, 106, 88, 0.10);
  --ac-shadow-sm: 0 6px 18px rgba(4, 106, 88, 0.08);
  --ac-transition: all 0.35s ease;
  --ac-container: 1200px;
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ac-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ac-body);
  background: var(--ac-white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ac-primary); text-decoration: none; transition: var(--ac-transition); }
a:hover { color: var(--ac-primary-700); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ac-font-head);
  color: var(--ac-ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--ac-primary-300); outline-offset: 2px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto;
  clip: auto; padding: 12px 20px; background: var(--ac-primary); color: #fff;
  border-radius: 8px;
}

/* =========================================================================
   3. LAYOUT UTILITIES
   ========================================================================= */
.ac-container { width: 100%; max-width: var(--ac-container); margin: 0 auto; padding: 0 20px; }
.ac-section { padding: clamp(48px, 7vw, 96px) 0; }
.ac-section--soft { background: var(--ac-soft); }
.ac-section--primary { background: var(--ac-primary); color: #eafaf3; }
.ac-section--primary h2, .ac-section--primary h3 { color: #fff; }
.ac-narrow { max-width: 820px; margin: 0 auto; }
.ac-center { text-align: center; }

.ac-grid { display: grid; gap: 28px; }
.ac-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ac-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ac-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ac-flex { display: flex; gap: 20px; flex-wrap: wrap; }
.ac-items-center { align-items: center; }
.ac-between { justify-content: space-between; }
.ac-mt-0 { margin-top: 0; } .ac-mb-0 { margin-bottom: 0; }
.ac-mt-1 { margin-top: 8px; } .ac-mt-2 { margin-top: 16px; } .ac-mt-3 { margin-top: 28px; } .ac-mt-4 { margin-top: 44px; }
.ac-mb-1 { margin-bottom: 8px; } .ac-mb-2 { margin-bottom: 16px; } .ac-mb-3 { margin-bottom: 28px; } .ac-mb-4 { margin-bottom: 44px; }
.ac-text-primary { color: var(--ac-primary); }
.ac-text-gold { color: var(--ac-gold); }
.ac-lead { font-size: 1.15rem; color: var(--ac-body); }

/* =========================================================================
   4. SECTION HEADINGS
   ========================================================================= */
.ac-heading { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.ac-heading--left { margin-left: 0; text-align: left; }
.ac-eyebrow {
  font-family: var(--ac-font-script);
  font-size: 1.6rem;
  color: var(--ac-primary-300);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}
.ac-section--primary .ac-eyebrow { color: var(--ac-gold); }
.ac-title { margin: 0 0 14px; }
.ac-title span { color: var(--ac-primary); }
.ac-heading p { margin: 0; color: var(--ac-body); }

/* =========================================================================
   5. BUTTONS
   ========================================================================= */
.ac-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ac-font-head); font-weight: 600; font-size: 0.98rem;
  padding: 15px 30px; border-radius: var(--ac-radius-pill);
  border: 2px solid transparent; cursor: pointer; line-height: 1;
  transition: var(--ac-transition); text-align: center; white-space: nowrap;
}
.ac-btn svg { width: 17px; height: 17px; flex: none; }
.ac-btn--primary { background: var(--ac-primary); color: #fff; }
.ac-btn--primary:hover { background: var(--ac-primary-700); color: #fff; transform: translateY(-2px); box-shadow: var(--ac-shadow); }
.ac-btn--gold { background: var(--ac-gold); color: #2b1f00; }
.ac-btn--gold:hover { background: var(--ac-gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--ac-shadow); }
.ac-btn--light { background: #fff; color: var(--ac-primary); }
.ac-btn--light:hover { background: var(--ac-primary-soft); color: var(--ac-primary-700); transform: translateY(-2px); }
.ac-btn--outline { border-color: var(--ac-primary); color: var(--ac-primary); background: transparent; }
.ac-btn--outline:hover { background: var(--ac-primary); color: #fff; transform: translateY(-2px); }
.ac-btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.ac-btn--outline-light:hover { background: #fff; color: var(--ac-primary); transform: translateY(-2px); }
.ac-btn--sm { padding: 11px 22px; font-size: 0.9rem; }
.ac-btn--block { width: 100%; justify-content: center; }

/* =========================================================================
   6. TOP BAR
   ========================================================================= */
.ac-topbar { background: var(--ac-secondary); color: #cfe7de; font-size: 0.86rem; }
.ac-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 20px; }
.ac-topbar a { color: #cfe7de; }
.ac-topbar a:hover { color: #fff; }
.ac-topbar__wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ac-topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.ac-topbar__item svg { width: 15px; height: 15px; color: var(--ac-primary-300); }
.ac-topbar__social { display: flex; align-items: center; gap: 12px; }
.ac-topbar__social a { display: inline-flex; width: 20px; height: 20px; }
.ac-topbar__social svg { width: 16px; height: 16px; }

/* =========================================================================
   7. HEADER / NAV
   ========================================================================= */
.ac-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 2px 20px rgba(4,106,88,.06); }
.ac-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; }
.ac-brand { display: inline-flex; align-items: center; gap: 12px; }
.ac-brand__mark {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--ac-primary), var(--ac-primary-300));
  color: #fff; display: grid; place-items: center;
  font-family: var(--ac-font-head); font-weight: 800; font-size: 1.15rem;
}
.ac-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.ac-brand__name { font-family: var(--ac-font-head); font-weight: 800; color: var(--ac-ink); font-size: 1.18rem; letter-spacing: -.01em; }
.ac-brand__tag { font-size: 0.72rem; color: var(--ac-muted); letter-spacing: .04em; text-transform: uppercase; }

.ac-nav { display: flex; align-items: center; gap: 30px; }
.ac-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ac-menu > li { position: relative; }
.ac-menu > li > a {
  font-family: var(--ac-font-head); font-weight: 600; font-size: 0.98rem;
  color: var(--ac-ink); padding: 8px 0; display: inline-flex; align-items: center; gap: 6px;
}
.ac-menu > li > a:hover, .ac-menu > li.current-menu-item > a, .ac-menu > li.current-menu-ancestor > a { color: var(--ac-primary); }
.ac-menu .sub-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 240px;
  background: #fff; border-radius: var(--ac-radius-sm); box-shadow: var(--ac-shadow);
  padding: 12px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--ac-transition);
}
.ac-menu li:hover > .sub-menu, .ac-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ac-menu .sub-menu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ac-ink); font-size: 0.94rem; font-weight: 600; }
.ac-menu .sub-menu a:hover { background: var(--ac-primary-soft); color: var(--ac-primary); }
.ac-menu .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.ac-header__cta { display: flex; align-items: center; gap: 14px; }
.ac-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ac-ink); }
.ac-nav-toggle svg { width: 28px; height: 28px; }

/* =========================================================================
   8. HERO
   ========================================================================= */
.ac-hero { position: relative; color: #fff; overflow: hidden; background: var(--ac-secondary); }
.ac-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ac-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(3,86,74,.94) 0%, rgba(4,106,88,.82) 45%, rgba(18,47,42,.65) 100%);
}
.ac-hero__pattern {
  position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.ac-hero__inner { position: relative; padding: clamp(64px, 9vw, 130px) 0; max-width: 760px; }
.ac-hero h1 { color: #fff; }
.ac-hero p { color: #d8eee6; font-size: 1.16rem; max-width: 620px; }
.ac-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.ac-hero__badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: var(--ac-radius-pill);
  padding: 8px 18px; font-size: 0.85rem; font-weight: 700; margin-bottom: 22px;
  font-family: var(--ac-font-head); letter-spacing: .02em;
}
.ac-hero__badge svg { width: 15px; height: 15px; color: var(--ac-gold); }

/* Page hero (inner pages) */
.ac-page-hero { position: relative; background: var(--ac-secondary); color: #fff; overflow: hidden; }
.ac-page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.ac-page-hero__inner { position: relative; padding: clamp(52px, 7vw, 96px) 0; }
.ac-page-hero h1 { color: #fff; margin-bottom: 10px; }
.ac-page-hero p { color: #cfe7de; max-width: 680px; margin: 0; }
.ac-breadcrumb { font-size: 0.86rem; color: #a9cdc2; margin-bottom: 14px; }
.ac-breadcrumb a { color: #d8eee6; }
.ac-breadcrumb span { color: var(--ac-gold); }

/* =========================================================================
   9. STATS BAND
   ========================================================================= */
.ac-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ac-stat {
  background: #fff; border-radius: var(--ac-radius); padding: 34px 24px; text-align: center;
  box-shadow: var(--ac-shadow-sm); border: 1px solid var(--ac-line);
}
.ac-stat__icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ac-primary-soft); color: var(--ac-primary);
}
.ac-stat__icon svg { width: 30px; height: 30px; }
.ac-stat__num { font-family: var(--ac-font-head); font-weight: 800; font-size: 2.5rem; color: var(--ac-primary); line-height: 1; }
.ac-stat__label { font-weight: 700; color: var(--ac-ink); margin-top: 8px; }
.ac-stat__sub { font-size: 0.88rem; color: var(--ac-muted); }

/* =========================================================================
   10. CARDS
   ========================================================================= */
.ac-card {
  background: #fff; border-radius: var(--ac-radius); overflow: hidden;
  box-shadow: var(--ac-shadow-sm); border: 1px solid var(--ac-line);
  transition: var(--ac-transition); height: 100%; display: flex; flex-direction: column;
}
.ac-card:hover { transform: translateY(-6px); box-shadow: var(--ac-shadow); }
.ac-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--ac-primary-soft); overflow: hidden; }
.ac-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-card__media .ac-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ac-primary), var(--ac-primary-300)); color: #fff;
}
.ac-card__media .ac-placeholder svg { width: 54px; height: 54px; opacity: .9; }
.ac-card__tag {
  position: absolute; top: 14px; left: 14px; background: var(--ac-gold); color: #2b1f00;
  font-size: 0.74rem; font-weight: 800; padding: 6px 13px; border-radius: var(--ac-radius-pill);
  font-family: var(--ac-font-head); letter-spacing: .03em; text-transform: uppercase;
}
.ac-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ac-card__meta { font-size: 0.84rem; color: var(--ac-muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.ac-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ac-card__meta svg { width: 14px; height: 14px; color: var(--ac-primary-300); }
.ac-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.ac-card h3 a { color: var(--ac-ink); }
.ac-card h3 a:hover { color: var(--ac-primary); }
.ac-card p { font-size: 0.95rem; margin-bottom: 16px; }
.ac-card__link { margin-top: auto; font-family: var(--ac-font-head); font-weight: 700; color: var(--ac-primary); display: inline-flex; align-items: center; gap: 8px; }
.ac-card__link svg { width: 15px; height: 15px; transition: var(--ac-transition); }
.ac-card__link:hover svg { transform: translateX(4px); }

/* Progress (fundraising) */
.ac-progress { margin-top: 6px; }
.ac-progress__bar { height: 9px; border-radius: var(--ac-radius-pill); background: var(--ac-line); overflow: hidden; }
.ac-progress__fill { height: 100%; border-radius: var(--ac-radius-pill); background: linear-gradient(90deg, var(--ac-primary-300), var(--ac-primary)); width: 0; transition: width 1.2s ease; }
.ac-progress__meta { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 8px; font-weight: 700; }
.ac-progress__meta .raised { color: var(--ac-primary); }
.ac-progress__meta .goal { color: var(--ac-muted); }

/* Value / feature card */
.ac-value {
  background: #fff; border-radius: var(--ac-radius); padding: 32px 28px; height: 100%;
  border: 1px solid var(--ac-line); box-shadow: var(--ac-shadow-sm); transition: var(--ac-transition);
  position: relative; overflow: hidden;
}
.ac-value::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--ac-primary-300), var(--ac-primary)); transform: scaleX(0); transform-origin: left; transition: var(--ac-transition); }
.ac-value:hover::before { transform: scaleX(1); }
.ac-value:hover { transform: translateY(-6px); box-shadow: var(--ac-shadow); }
.ac-value__icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--ac-primary-soft); color: var(--ac-primary); margin-bottom: 18px; }
.ac-value__icon svg { width: 28px; height: 28px; }
.ac-value h3 { font-size: 1.22rem; margin-bottom: 10px; }
.ac-value p { margin: 0; font-size: 0.95rem; }

/* Pillar / focus list item */
.ac-pillar { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: center; }
.ac-pillar__media { border-radius: var(--ac-radius); overflow: hidden; min-height: 300px; background: linear-gradient(135deg, var(--ac-primary), var(--ac-primary-300)); position: relative; }
.ac-pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-pillar__media .ac-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.ac-pillar__media .ac-placeholder svg { width: 90px; height: 90px; opacity: .85; }
.ac-pillar ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ac-pillar ul li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ac-ink); }
.ac-pillar ul li svg { width: 20px; height: 20px; color: var(--ac-primary-300); flex: none; margin-top: 3px; }

/* Check list */
.ac-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ac-checklist li { display: flex; gap: 13px; align-items: flex-start; }
.ac-checklist li svg { width: 22px; height: 22px; color: var(--ac-primary-300); flex: none; margin-top: 2px; }
.ac-checklist li strong { color: var(--ac-ink); }

/* Objective list (numbered) */
.ac-objectives { counter-reset: ac-obj; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ac-objectives li { position: relative; padding-left: 54px; counter-increment: ac-obj; color: var(--ac-ink); font-weight: 600; }
.ac-objectives li::before {
  content: counter(ac-obj); position: absolute; left: 0; top: -3px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ac-primary-soft); color: var(--ac-primary);
  display: grid; place-items: center; font-family: var(--ac-font-head); font-weight: 800; font-size: 0.95rem;
}

/* Team */
.ac-team-card { text-align: center; background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 30px 22px; box-shadow: var(--ac-shadow-sm); transition: var(--ac-transition); height: 100%; }
.ac-team-card:hover { transform: translateY(-6px); box-shadow: var(--ac-shadow); }
.ac-team-card__photo { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden; background: linear-gradient(135deg, var(--ac-primary), var(--ac-primary-300)); display: grid; place-items: center; color: #fff; font-family: var(--ac-font-head); font-weight: 800; font-size: 2rem; }
.ac-team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ac-team-card__role { color: var(--ac-primary); font-weight: 700; font-size: 0.92rem; margin-bottom: 12px; }

/* Testimonial */
.ac-quote { background: #fff; border-radius: var(--ac-radius); padding: 34px 30px; border: 1px solid var(--ac-line); box-shadow: var(--ac-shadow-sm); height: 100%; position: relative; }
.ac-quote__mark { font-family: var(--ac-font-script); font-size: 4rem; color: var(--ac-primary-300); line-height: .6; }
.ac-quote p { font-style: italic; color: var(--ac-ink); }
.ac-quote__author { font-weight: 800; color: var(--ac-primary); font-family: var(--ac-font-head); }
.ac-quote__role { font-size: 0.86rem; color: var(--ac-muted); }

/* Timeline (projects) */
.ac-timeline { position: relative; padding-left: 34px; }
.ac-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--ac-line); }
.ac-timeline__item { position: relative; padding-bottom: 34px; }
.ac-timeline__item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--ac-primary-300); }
.ac-timeline__date { font-family: var(--ac-font-head); font-weight: 800; color: var(--ac-primary); font-size: 0.9rem; letter-spacing: .02em; }
.ac-timeline__item h3 { font-size: 1.18rem; margin: 6px 0 8px; }
.ac-timeline__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--ac-muted); margin-bottom: 10px; }
.ac-timeline__loc svg { width: 14px; height: 14px; color: var(--ac-primary-300); }
.ac-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ac-tag { background: var(--ac-primary-soft); color: var(--ac-primary); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: var(--ac-radius-pill); }

/* Fault / story block */
.ac-story { background: #fff; border-radius: var(--ac-radius); border: 1px solid var(--ac-line); box-shadow: var(--ac-shadow-sm); padding: 30px; height: 100%; }
.ac-story__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ac-story__avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--ac-primary), var(--ac-primary-300)); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--ac-font-head); flex: none; }
.ac-story h3 { margin: 0; font-size: 1.15rem; }
.ac-story__meta { font-size: 0.85rem; color: var(--ac-muted); }
.ac-story dl { margin: 0; }
.ac-story dt { font-weight: 800; color: var(--ac-primary); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.ac-story dd { margin: 4px 0 0; font-size: 0.94rem; }

/* Story cards with a photo (reference-template imagery) */
.ac-story--photo { padding-top: 0; overflow: hidden; }
.ac-story__photo { display: block; width: calc(100% + 60px); height: 190px; object-fit: cover; margin: 0 -30px 22px; }
.ac-story--photo .ac-story__head { margin-top: 4px; }

/* Wide photo strip used on inner pages */
.ac-area__photo { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: var(--ac-radius); box-shadow: var(--ac-shadow-sm); }
.ac-area__media { margin-bottom: 34px; }

/* Partner logos */
.ac-partners { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ac-partner { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); padding: 16px 22px; font-weight: 700; color: var(--ac-ink); font-size: 0.92rem; box-shadow: var(--ac-shadow-sm); }

/* Fact list */
.ac-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ac-facts li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); }
.ac-facts li svg { width: 24px; height: 24px; color: var(--ac-primary); flex: none; }
.ac-facts li strong { display: block; color: var(--ac-ink); }
.ac-facts li span { font-size: 0.9rem; }

/* =========================================================================
   11. CTA BAND
   ========================================================================= */
.ac-cta {
  background: linear-gradient(120deg, var(--ac-primary), var(--ac-primary-700));
  color: #fff; border-radius: var(--ac-radius); padding: clamp(36px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.ac-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.ac-cta h2 { color: #fff; margin-bottom: 8px; position: relative; }
.ac-cta p { color: #d8eee6; margin: 0; position: relative; }
.ac-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* =========================================================================
   12. POSTS / BLOG
   ========================================================================= */
.ac-post-list { display: grid; gap: 30px; }
.ac-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.ac-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #fff; border: 1px solid var(--ac-line); color: var(--ac-ink); font-weight: 700;
}
.ac-pagination .page-numbers.current, .ac-pagination .page-numbers:hover { background: var(--ac-primary); color: #fff; border-color: var(--ac-primary); }

/* Single post */
.ac-article { max-width: 800px; margin: 0 auto; }
.ac-article__meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ac-muted); font-size: 0.9rem; margin-bottom: 22px; }
.ac-article__meta span { display: inline-flex; gap: 7px; align-items: center; }
.ac-article__meta svg { width: 15px; height: 15px; color: var(--ac-primary-300); }
.ac-article__thumb { border-radius: var(--ac-radius); overflow: hidden; margin-bottom: 30px; }
.ac-prose { font-size: 1.06rem; color: #46524f; }
.ac-prose h2, .ac-prose h3 { margin-top: 1.4em; }
.ac-prose img { border-radius: var(--ac-radius-sm); margin: 1.2em 0; }
.ac-prose blockquote { border-left: 4px solid var(--ac-primary-300); margin: 1.4em 0; padding: 8px 22px; background: var(--ac-soft); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ac-ink); }

/* =========================================================================
   13. FORMS
   ========================================================================= */
.ac-form { display: grid; gap: 18px; }
.ac-form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.ac-field label { display: block; font-weight: 700; color: var(--ac-ink); margin-bottom: 7px; font-size: 0.92rem; font-family: var(--ac-font-head); }
.ac-field input, .ac-field select, .ac-field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--ac-line); border-radius: var(--ac-radius-sm);
  font-family: inherit; font-size: 0.98rem; color: var(--ac-ink); background: #fff; transition: var(--ac-transition);
}
.ac-field input:focus, .ac-field select:focus, .ac-field textarea:focus { border-color: var(--ac-primary-300); box-shadow: 0 0 0 4px rgba(60,199,143,.15); outline: none; }
.ac-field textarea { min-height: 140px; resize: vertical; }
.ac-form__note { font-size: 0.86rem; color: var(--ac-muted); }
.ac-alert { padding: 14px 18px; border-radius: var(--ac-radius-sm); font-weight: 600; }
.ac-alert--ok { background: var(--ac-primary-soft); color: var(--ac-primary-700); }
.ac-alert--err { background: #fdecec; color: #b3261e; }

/* =========================================================================
   14. INFO PANELS (contact / bank)
   ========================================================================= */
.ac-info-card { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 28px; box-shadow: var(--ac-shadow-sm); display: flex; gap: 16px; align-items: flex-start; }
.ac-info-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ac-primary-soft); color: var(--ac-primary); display: grid; place-items: center; flex: none; }
.ac-info-card__icon svg { width: 24px; height: 24px; }
.ac-info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ac-info-card a, .ac-info-card p { font-size: 0.95rem; margin: 0; color: var(--ac-body); }
.ac-bank { background: var(--ac-secondary); color: #d8eee6; border-radius: var(--ac-radius); padding: 34px; }
.ac-bank h3 { color: #fff; }
.ac-bank dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; }
.ac-bank dt { color: #a9cdc2; font-weight: 600; }
.ac-bank dd { margin: 0; font-weight: 700; color: #fff; }

/* =========================================================================
   15. FOOTER
   ========================================================================= */
.ac-footer { background: var(--ac-secondary); color: #b9d3ca; padding-top: clamp(48px, 6vw, 78px); }
.ac-footer a { color: #b9d3ca; }
.ac-footer a:hover { color: #fff; }
.ac-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.ac-footer h3 { color: #fff; font-size: 1.08rem; margin-bottom: 18px; }
.ac-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 0.94rem; }
.ac-footer__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
/* Footer logo (Customizer > Aliston Care Options > Footer) */
.ac-footer__logo { max-height: 56px; width: auto; object-fit: contain; }
.ac-footer__brand .ac-brand__mark { background: #fff; color: var(--ac-primary); }
.ac-footer__brand .ac-brand__name { color: #fff; }
.ac-footer__brand .ac-brand__tag { color: #7fa89b; }
.ac-footer p { font-size: 0.94rem; }
.ac-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.ac-footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.ac-footer__social a:hover { background: var(--ac-primary-300); color: #05261f; }
.ac-footer__social svg { width: 18px; height: 18px; }
.ac-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; }
.ac-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer built in Elementor ("Footer (Elementor)" page template) */
.ac-footer--elementor { padding-top: 0; }
.ac-footer--elementor > .elementor { margin-bottom: 0; }
.ac-footer--elementor .elementor-widget-text-editor ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ac-footer--elementor .elementor-widget-text-editor li { margin: 0; }

/* Back to top */
.ac-top-btn { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--ac-primary); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--ac-shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--ac-transition); z-index: 70; }
.ac-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ac-top-btn svg { width: 22px; height: 22px; }

/* =========================================================================
   16. MISC
   ========================================================================= */
.ac-divider { height: 1px; background: var(--ac-line); border: 0; margin: 0; }
.ac-badge-line { display: inline-flex; align-items: center; gap: 8px; background: var(--ac-primary-soft); color: var(--ac-primary); font-weight: 700; padding: 7px 16px; border-radius: var(--ac-radius-pill); font-size: 0.82rem; font-family: var(--ac-font-head); }
.ac-404 { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.ac-404__code { font-family: var(--ac-font-head); font-weight: 800; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--ac-primary-soft); }
.ac-error-list { list-style: none; padding: 0; }

/* Reveal on scroll */
.ac-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ac-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ac-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   16b. FAQ ACCORDION
   ========================================================================= */
.ac-faqs { display: grid; gap: 14px; }
.ac-faq { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius-sm); box-shadow: var(--ac-shadow-sm); overflow: hidden; }
.ac-faq summary {
  cursor: pointer; padding: 20px 24px; font-family: var(--ac-font-head); font-weight: 700;
  color: var(--ac-ink); font-size: 1.05rem; display: flex; justify-content: space-between;
  gap: 16px; align-items: center; list-style: none;
}
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--ac-primary); transition: var(--ac-transition); flex: none; }
.ac-faq[open] summary::after { transform: rotate(45deg); }
.ac-faq p { padding: 0 24px 22px; margin: 0; }

/* =========================================================================
   16c. SEARCH
   ========================================================================= */
.ac-search__inner { display: flex; gap: 10px; }
.ac-search__field {
  flex: 1; min-width: 0; padding: 14px 20px; border: 1.5px solid var(--ac-line);
  border-radius: var(--ac-radius-pill); font-family: inherit; font-size: 1rem; color: var(--ac-ink);
}
.ac-search__field:focus { outline: none; border-color: var(--ac-primary-300); box-shadow: 0 0 0 4px rgba(60,199,143,.15); }

/* =========================================================================
   16d. WIDGETS
   ========================================================================= */
.ac-widget { background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 24px; margin-bottom: 26px; }
.ac-widget__title { font-size: 1.1rem; margin-bottom: 14px; }
.ac-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ac-widget a { color: var(--ac-ink); font-weight: 600; }
.ac-widget a:hover { color: var(--ac-primary); }

/* =========================================================================
   16e. ELEMENTOR + MISC
   ========================================================================= */
.ac-elementor-content { width: 100%; }
.ac-elementor-content--full { padding: 0; }
.ac-post-nav .ac-card__link { display: inline-flex; }
.ac-brand--logo img { max-height: 56px; width: auto; }
.ac-footer li { display: flex; gap: 10px; align-items: flex-start; }
.ac-footer li svg { width: 16px; height: 16px; color: var(--ac-primary-300); flex: none; margin-top: 4px; }
.ac-footer .widget, .ac-footer .ac-widget { background: transparent; border: 0; padding: 0; }
.ac-footer .ac-widget a { color: #b9d3ca; }

/* Make sure Elementor blocks sit flush regardless of theme container. */
.elementor-page .ac-elementor-content { padding: 0; }

/* Photographs (Customizer images) with graceful placeholder fallback. */
.ac-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-card__media .ac-media,
.ac-pillar__media .ac-media { border-radius: inherit; }

/* =========================================================================
   17. RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .ac-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .ac-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ac-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* Sit above the sliding panel (z-index 90) so the ✕ stays tappable while
     the menu is open — otherwise the panel covers the button. */
  .ac-nav-toggle { display: inline-flex; position: relative; z-index: 100; }
  .ac-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 26px 22px;
    box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(105%);
    transition: transform .35s ease; z-index: 90; overflow-y: auto;
  }
  .ac-nav.is-open { transform: translateX(0); }
  .ac-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .ac-menu > li { border-bottom: 1px solid var(--ac-line); }
  .ac-menu > li > a { padding: 14px 0; justify-content: space-between; }
  .ac-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    padding: 0 0 10px 14px; min-width: 0; display: none;
  }
  .ac-menu li.is-open > .sub-menu { display: block; }
  .ac-header__cta .ac-btn { display: none; }
  .ac-nav .ac-header__cta { margin-top: 20px; }
  .ac-nav .ac-header__cta .ac-btn { display: inline-flex; width: 100%; justify-content: center; }
  .ac-body-lock { overflow: hidden; }
}
@media (max-width: 760px) {
  .ac-grid--2, .ac-grid--3, .ac-grid--4 { grid-template-columns: 1fr; }
  .ac-pillar { grid-template-columns: 1fr; }
  .ac-form__row { grid-template-columns: 1fr; }
  .ac-footer__grid { grid-template-columns: 1fr; }
  .ac-cta { flex-direction: column; align-items: flex-start; }
  .ac-topbar__wrap { gap: 14px; }
  .ac-topbar__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 460px) {
  .ac-stats { grid-template-columns: 1fr; }
}
