/* ============================================================
   Ask:Enact - main.css
   Shared design system: tokens, base, header/nav, footer,
   buttons, sections, cards, grids. Kept deliberately simple.
   ============================================================ */
:root {
  --primary: #0081A7;
  --primary-dark: #066782;
  --secondary: #00AFB9;
  --deep-blue: #063543;
  --bright-teal: #00B8C7;
  --pale-aqua: #DDF8F7;
  --coral: #FF6B35;
  --bg: #F7F5F0;
  --surface: #ffffff;
  --text: #1A1A2E;
  --muted: #5b6675;
  --ink: var(--deep-blue);
  --line: #e3e7ea;
  --neutral2: #DFECC6;
  --neutral3: #F1F5F9;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 53, 67, 0.08);
  --hover-shadow: 0 24px 54px rgba(6, 53, 67, 0.16);
  --container: 1080px;
  --serif: 'Urbanist', system-ui, sans-serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); text-align: center; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-head { padding-top: 48px; }   /* standalone page-head section */
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.badge {
  display: inline-block; font-size: .85rem; font-weight: 600; color: var(--primary-dark);
  background: var(--pale-aqua); border-radius: 999px; padding: 4px 14px; margin-bottom: 12px;
}
a.badge { text-decoration: none; }
a.badge:hover { color: #fff; background: var(--primary); }
.category-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.category-chip-list .badge { margin-bottom: 0; }
.category-filter {
  border: 0;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .18s var(--ease-out);
}
.category-filter:hover,
.category-filter:focus-visible,
.category-filter[aria-current="true"],
.category-filter.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 129, 167, .16);
}
.category-filter:hover { transform: translateY(-1px); }
.filter-empty { color: var(--muted); font-weight: 700; margin-top: 20px; }
.hero-sub { font-size: 1.2rem; color: var(--muted); }
.section-note { max-width: 760px; margin: 28px auto 0; color: var(--muted); font-size: .98rem; text-align: center; }

/* ---- Buttons (pill, soft shadow, coral hover-lift - matches askenact.com) ---- */
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(0, 129, 167, 0.5); background: var(--primary); color: #fff;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 129, 167, 0.16);
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out),
              color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:hover { background: var(--coral); border-color: var(--coral); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255, 107, 53, 0.24); }
.btn-secondary { background: rgba(241, 245, 249, 0.9); color: var(--ink); border-color: rgba(6, 53, 67, 0.16); box-shadow: none; }
.btn-secondary:hover { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 16px 34px rgba(255, 107, 53, 0.2); }

/* ---- Form fields (shared by contact + directory) ---- */
.contact-field input, .contact-field select, .contact-field textarea,
.directory-page input[type="search"], .directory-page select {
  width: 100%; padding: 10px 13px; border: 1px solid #d5d5d5; border-radius: 8px;
  background: #f1f1f1; color: var(--text); font: inherit; font-weight: 400;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out);
}
.contact-field input::placeholder, .contact-field textarea::placeholder,
.directory-page input[type="search"]::placeholder { color: rgba(26, 26, 46, .75); opacity: 1; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus,
.directory-page input[type="search"]:focus, .directory-page select:focus {
  outline: none; border-color: var(--bright-teal); background: #fff; box-shadow: 0 0 0 3px rgba(0, 180, 198, .22);
}
.contact-field textarea { min-height: 320px; resize: vertical; }

/* ---- Header & glassy nav (sticky frosted bar + glass pills) ---- */
.header {
  position: sticky; top: 0; z-index: 50; background: transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

/* glass pill: logo */
.logo {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 999px;
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  position: relative; cursor: pointer;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .18s var(--ease-out);
}
.logo:hover { border-color: rgba(255, 107, 53, 0.38); box-shadow: 0 12px 28px rgba(255, 107, 53, 0.16); transform: translateY(-1px); }
.logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; }
.logo a { font-family: var(--serif); font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; transition: color .18s var(--ease-out); }
.logo a::before { content: ""; position: absolute; inset: 0; border-radius: 999px; }
.logo:hover a, .logo a:hover, .logo a:focus-visible { color: var(--coral); text-decoration: none; }
.logo a:focus-visible { outline: 3px solid rgba(255, 107, 53, 0.3); outline-offset: 3px; border-radius: 999px; }

/* glass pill: nav */
.nav-group {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 999px;
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.nav-group > a:not(.btn), .nav-dropdown-toggle {
  position: relative; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; transition: color .18s var(--ease-out);
}
/* animated coral underline on top-level links + dropdown toggles */
.nav-group > a:not(.btn)::after, .nav-dropdown-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 999px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease-out);
}
.nav-group > a:not(.btn):hover, .nav-group > a:not(.btn):focus-visible, .nav-group > a[aria-current="page"]:not(.btn),
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible, .nav-dropdown-toggle[aria-current="page"] { color: var(--coral); }
.nav-group > a:not(.btn):hover::after, .nav-group > a:not(.btn):focus-visible::after, .nav-group > a[aria-current="page"]:not(.btn)::after,
.nav-dropdown-toggle:hover::after, .nav-dropdown-toggle:focus-visible::after, .nav-dropdown-toggle[aria-current="page"]::after { transform: scaleX(1); }

/* dropdowns (glass card) */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; display: none; flex-direction: column; gap: 4px;
  padding: 8px; background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 14px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px); z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--neutral3); color: var(--primary-dark); }

/* Login: far-right header-cta on desktop, in-menu nav-cta on mobile (inherits .btn) */
.nav-cta, .header-cta { white-space: nowrap; }
.nav-group .nav-cta { display: none; }

/* hamburger pill - CSS-only toggle via a hidden checkbox (no JS) */
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 10px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 999px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255, 255, 255, 0.95); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12); }
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 999px; transition: transform .3s ease, opacity .3s ease; }
/* bars animate into an X when open (the sr-only span is the 1st span; bars are 2nd–4th) */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

@media (max-width: 860px) {
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-group {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; margin: 0 auto;
    width: calc(100% - 36px); max-width: 480px; display: none; flex-direction: column; align-items: stretch;
    gap: 8px; padding: 16px; border-radius: 20px; box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    max-height: calc(100vh - 128px); overflow-y: auto;
  }
  .nav-group.is-open { display: flex; }
  .nav-group > a:not(.btn), .nav-dropdown-toggle { padding: 10px 12px; }
  .nav-dropdown { display: flex; flex-direction: column; align-items: stretch; }
  .nav-dropdown-menu { position: static; display: flex; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-dropdown-menu a { padding-left: 24px; }
  .header-cta { display: none; }
  .nav-group .nav-cta { display: block; text-align: center; margin-top: 6px; }
}

/* ---- Hero & page heads (flat cream, matching the body) ---- */
.hero .container { padding-top: 64px; padding-bottom: 64px; }
.hero h1 { margin-bottom: .3em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.pagehead .container { padding-top: 48px; padding-bottom: 40px; }

/* ---- Cards ---- */
.card, .blog-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
/* Info card (teal top accent + coral hover-lift), matching askenact.com */
.info-card {
  min-height: 128px; padding: 18px;
  border: 1px solid rgba(0, 175, 185, 0.45); border-top: 3px solid var(--secondary); border-radius: 12px;
  background: rgba(255, 255, 255, 0.72); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
.info-card:hover, .info-card:focus-within {
  transform: translateY(-3px); border-color: rgba(255, 107, 53, 0.7); border-top-color: var(--coral); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}
.info-card h3 { margin-bottom: 6px; font-size: 15px; line-height: 1.2; }
.info-card p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.38; }

/* ---- Grids ---- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.info-card-grid, .impact-card-grid {
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* Blog listing: at most 3 articles wide */
.blog-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .blog-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr; } }

/* ---- Section heading ---- */
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading p { color: var(--muted); margin: 0; }

/* ---- Images / story ---- */
.responsive { width: 100%; margin: 32px 0; border-radius: 16px; }   /* article body image */
.image-strip { display: grid; gap: 18px; margin-top: 32px; }
.image-strip--two { grid-template-columns: 1fr 1fr; }
.image-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 720px) { .image-strip--two { grid-template-columns: 1fr; } }
.media img, .media-accent img { border-radius: var(--radius); }
.story { max-width: 760px; margin: 0 auto; }
.story-portrait { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 6px auto 18px; border: 4px solid #fff; box-shadow: var(--shadow); }

/* ---- Video embed ---- */
.video-embed { position: relative; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Blog cards ---- */
.blog-card {
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
.blog-card:hover, .blog-card:focus-within {
  transform: translateY(-6px) scale(1.01); border-color: rgba(255, 107, 53, 0.42); box-shadow: var(--hover-shadow);
}
.blog-card-media { background: var(--pale-aqua); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { min-width: 0; padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card .meta { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.blog-card h3 { margin-bottom: 8px; line-height: 1.25; }
.blog-card p { color: var(--muted); font-size: .96rem; }
.blog-card-footer { margin-top: auto; padding-top: 14px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .9rem;
}
.breadcrumb a { color: var(--primary-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.post-footer-cta {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--secondary);
  border-radius: var(--radius);
  background: var(--neutral3);
}
.post-footer-cta h2 { font-size: 1.4rem; }
.post-footer-cta p { margin-bottom: 0; }

/* ---- Newsletter / CTA ---- */
.newsletter { max-width: 620px; margin: 12px auto 0; text-align: center; }
.pill-input { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pill-input input { flex: 1 1 240px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.contact-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.list { padding-left: 20px; }
.list li { margin: 6px 0; }

/* ---- Footer (teal bar, matching askenact.com) ---- */
.footer { flex-shrink: 0; background: #007991; color: #fff; padding: 18px 0; margin-top: 24px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-inner nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer a { color: #fff; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
