/* =========================================================
   AACA design system (V2)
   Tokens, base typography, utilities, chrome.
   Section-specific styles live in each block's style.css.
   ========================================================= */

:root {
  --ink:        #0f1a2e;
  --ink-soft:   #1f2c45;
  --ink-line:   #2a3a5a;
  --cream:      #f4ede1;
  --cream-deep: #ebe1cf;
  --paper:      #fbf7ee;
  --gold:       #c49a3f;
  --gold-deep:  #9d7a2b;
  --rust:       #8b3a1f;
  --text:       #1b2236;
  --muted:      #5b6784;
  --line:       #d9cfb9;
  --radius:     4px;
}

/* Global font swap. !important overrides Astra customizer + parent theme.
   Excluded on V3 pages (body.aaca-v3) so the V3 design system can apply
   its own Freight + Halyard families from the Adobe Fonts kit. */
body:not(.aaca-v3),
body.ast-separate-container:not(.aaca-v3),
body:not(.aaca-v3) p,
body:not(.aaca-v3) li,
body:not(.aaca-v3) a,
body:not(.aaca-v3) span,
body:not(.aaca-v3) div,
body:not(.aaca-v3) input,
body:not(.aaca-v3) button,
body:not(.aaca-v3) select,
body:not(.aaca-v3) textarea,
body:not(.aaca-v3) label {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body:not(.aaca-v3) h1,
body:not(.aaca-v3) h2,
body:not(.aaca-v3) h3,
body:not(.aaca-v3) h4,
body:not(.aaca-v3) h5,
body:not(.aaca-v3) h6,
body:not(.aaca-v3) .entry-title,
body:not(.aaca-v3) .site-title,
body:not(.aaca-v3) .ast-builder-html-element,
body:not(.aaca-v3) .wp-block-heading {
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
}

body {
  color: var(--text);
  background: var(--paper);
}

/* Astra/parent default underlines every <a>. Strip that across V2 — links opt
   back in via .link-arrow's explicit border-bottom. */
.aaca-v2 a,
.aaca-v2 a:hover,
.aaca-v2 a:focus,
.aaca-v2 a:visited,
.aaca-v2-announce a,
.aaca-v2-nav a,
.aaca-v2-footer a {
  text-decoration: none !important;
}

/* ============== Full-width page chrome ==============
   The homepage and any page using the Astra "Page Builder" template
   needs to render edge-to-edge so the V2 blocks own their own padding
   via .container. Astra otherwise wraps content in .ast-container with
   a max-width (default 1240px via --ast-container-default-xl-width)
   that constrains the layout on wide displays. */

/* Override Astra's container-width CSS variables. */
body.home,
body.ast-page-builder-template,
body.aaca-v2-fullwidth {
  --ast-container-default-xl-width: 100%;
  --ast-container-default-lg-width: 100%;
  --ast-container-default-md-width: 100%;
  --ast-container-default-sm-width: 100%;
  --ast-container-default-xs-width: 100%;
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}

/* Cast a wide net at every Astra wrapper. */
body.home #page,
body.home .site,
body.home #content,
body.home .site-content,
body.home .ast-container,
body.home .site-content > .ast-container,
body.home .ast-row,
body.home #primary,
body.home .content-area,
body.home main#main,
body.home .site-main,
body.home article.post,
body.home article.page,
body.home .entry-content,
body.ast-page-builder-template #page,
body.ast-page-builder-template .site,
body.ast-page-builder-template #content,
body.ast-page-builder-template .site-content,
body.ast-page-builder-template .ast-container,
body.ast-page-builder-template .ast-row,
body.ast-page-builder-template #primary,
body.ast-page-builder-template .content-area,
body.ast-page-builder-template main#main,
body.ast-page-builder-template .site-main,
body.ast-page-builder-template article.post,
body.ast-page-builder-template article.page,
body.ast-page-builder-template .entry-content,
body.aaca-v2-fullwidth #page,
body.aaca-v2-fullwidth .site,
body.aaca-v2-fullwidth #content,
body.aaca-v2-fullwidth .site-content,
body.aaca-v2-fullwidth .ast-container,
body.aaca-v2-fullwidth .ast-row,
body.aaca-v2-fullwidth #primary,
body.aaca-v2-fullwidth .content-area,
body.aaca-v2-fullwidth main#main,
body.aaca-v2-fullwidth .site-main,
body.aaca-v2-fullwidth article.post,
body.aaca-v2-fullwidth article.page,
body.aaca-v2-fullwidth .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Kill the gap between site nav and the first V2 block.
   Astra/parent default puts top padding/margin on multiple wrappers. */
body.home #content,
body.home .site-content,
body.home #primary,
body.home main#main,
body.home .site-main,
body.home article.page,
body.home article.post,
body.home .entry-content,
body.ast-page-builder-template #content,
body.ast-page-builder-template .site-content,
body.ast-page-builder-template #primary,
body.ast-page-builder-template main#main,
body.ast-page-builder-template .site-main,
body.ast-page-builder-template article.page,
body.ast-page-builder-template article.post,
body.ast-page-builder-template .entry-content,
body.aaca-v2-fullwidth #content,
body.aaca-v2-fullwidth .site-content,
body.aaca-v2-fullwidth #primary,
body.aaca-v2-fullwidth main#main,
body.aaca-v2-fullwidth .site-main,
body.aaca-v2-fullwidth article.page,
body.aaca-v2-fullwidth article.post,
body.aaca-v2-fullwidth .entry-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Belt-and-suspenders: child theme's own <main id="main"> wrapper. */
body.home > main#main,
body.ast-page-builder-template > main#main,
body.aaca-v2-fullwidth > main#main,
body.home main#main,
body.ast-page-builder-template main#main,
body.aaca-v2-fullwidth main#main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Block-editor alignfull / alignwide guarantees on these pages. */
body.home .entry-content > *,
body.ast-page-builder-template .entry-content > *,
body.aaca-v2-fullwidth .entry-content > * {
  max-width: none !important;
}

/* Hide Astra's title bars / page meta — V2 blocks supply their own. */
body.home .entry-header,
body.home header.entry-header,
body.home .entry-header > *,
body.home .entry-title,
body.home h1.entry-title,
body.home h1.page-title,
body.home .ast-archive-title,
body.home .ast-archive-description,
body.home .ast-page-title-bar,
body.home .ast-page-title-bar-wrap,
body.home .ast-page-header,
body.home .ast-page-header-section,
body.home .ast-archive-header,
body.home .entry-banner,
body.home .ast-the-content-page-title,
body.home .post-thumb-img-content,
body.home .ast-single-post-order,
body.home .ast-breadcrumbs-wrapper,
body.home .breadcrumb-trail,
body.home .ast-blog-single-element,
body.home .page-header,
body.ast-page-builder-template .entry-header,
body.ast-page-builder-template header.entry-header,
body.ast-page-builder-template .entry-header > *,
body.ast-page-builder-template .entry-title,
body.ast-page-builder-template h1.entry-title,
body.ast-page-builder-template h1.page-title,
body.ast-page-builder-template .ast-page-title-bar,
body.ast-page-builder-template .ast-page-title-bar-wrap,
body.ast-page-builder-template .ast-page-header,
body.ast-page-builder-template .ast-page-header-section,
body.ast-page-builder-template .ast-the-content-page-title,
body.ast-page-builder-template .ast-breadcrumbs-wrapper,
body.ast-page-builder-template .page-header,
body.aaca-v2-fullwidth .entry-header,
body.aaca-v2-fullwidth header.entry-header,
body.aaca-v2-fullwidth .entry-header > *,
body.aaca-v2-fullwidth .entry-title,
body.aaca-v2-fullwidth h1.entry-title,
body.aaca-v2-fullwidth h1.page-title,
body.aaca-v2-fullwidth .ast-archive-title,
body.aaca-v2-fullwidth .ast-archive-description,
body.aaca-v2-fullwidth .ast-page-title-bar,
body.aaca-v2-fullwidth .ast-page-title-bar-wrap,
body.aaca-v2-fullwidth .ast-page-header,
body.aaca-v2-fullwidth .ast-page-header-section,
body.aaca-v2-fullwidth .ast-archive-header,
body.aaca-v2-fullwidth .entry-banner,
body.aaca-v2-fullwidth .ast-the-content-page-title,
body.aaca-v2-fullwidth .post-thumb-img-content,
body.aaca-v2-fullwidth .ast-single-post-order,
body.aaca-v2-fullwidth .ast-breadcrumbs-wrapper,
body.aaca-v2-fullwidth .breadcrumb-trail,
body.aaca-v2-fullwidth .ast-blog-single-element,
body.aaca-v2-fullwidth .page-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Strip the white "card" Astra adds in the separate-container layout. */
body.home .site-content,
body.ast-page-builder-template .site-content,
body.aaca-v2-fullwidth .site-content {
  padding: 0 !important;
}

body.home .ast-no-sidebar.ast-separate-container .entry-content,
body.home.ast-separate-container .entry-content,
body.home.ast-separate-container #primary,
body.ast-page-builder-template.ast-separate-container .entry-content,
body.ast-page-builder-template.ast-separate-container #primary,
body.aaca-v2-fullwidth.ast-separate-container .entry-content,
body.aaca-v2-fullwidth.ast-separate-container #primary {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ============== Containers / sections ============== */
.aaca-v2 .container,
.aaca-v2.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.aaca-v2 .section {
  padding: 110px 0;
  position: relative;
}
.aaca-v2 .section--cream { background: var(--cream); }
.aaca-v2 .section--dark {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.aaca-v2 .section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 154, 63, 0.12), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(122, 155, 201, 0.08), transparent 55%);
  pointer-events: none;
}
.aaca-v2 .section__head { margin-bottom: 70px; max-width: 720px; }

/* ============== Type helpers ============== */
.aaca-v2 .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-top: 1px solid var(--gold);
  padding-top: 8px;
  margin-bottom: 14px;
}
.aaca-v2 .eyebrow--gold { color: var(--gold); border-color: var(--gold); }

.aaca-v2 .h2 {
  font-family: "Fraunces", serif !important;
  font-optical-sizing: auto;
  font-weight: 400 !important;
  font-size: clamp(2rem, 4.2vw, 3.4rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
  margin-bottom: 0.4em !important;
}
.aaca-v2 .h2--light { color: var(--cream) !important; }
.aaca-v2 .h2 em { font-style: italic; color: var(--gold-deep); font-weight: 300; }

.aaca-v2 .lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 60ch;
}
.aaca-v2 .section--dark .lede { color: rgba(244, 237, 225, 0.8); }
.aaca-v2 .prose p { margin-bottom: 1em; color: var(--text); }

.aaca-v2 .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: all .25s ease;
  text-decoration: none;
}
.aaca-v2 .link-arrow:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
  gap: 12px;
}
.aaca-v2 .section--dark .link-arrow {
  color: var(--gold);
  border-color: var(--gold);
}
.aaca-v2 .section--dark .link-arrow:hover { color: #e3b658; }

.aaca-v2 .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(196, 154, 63, 0.15);
}

/* ============== Buttons ============== */
.aaca-v2 .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  text-decoration: none;
}
.aaca-v2 .btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.aaca-v2 .btn--primary:hover {
  background: var(--ink-soft);
  color: var(--gold);
  transform: translateY(-1px);
}
.aaca-v2 .btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.aaca-v2 .btn--gold:hover { background: #d8ab4a; transform: translateY(-1px); }
.aaca-v2 .btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.aaca-v2 .btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.aaca-v2 .btn--outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 237, 225, 0.35);
}
.aaca-v2 .btn--outline-light:hover {
  border-color: var(--cream);
  background: rgba(244, 237, 225, 0.06);
}

/* ============== Skip link / a11y ============== */
.aaca-v2-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--gold);
}
.aaca-v2-skip-link:focus,
.aaca-v2-skip-link:focus-visible {
  left: 0;
  outline: 3px solid var(--gold);
  outline-offset: 0;
}

.aaca-v2 a:focus-visible,
.aaca-v2 button:focus-visible,
.aaca-v2 input:focus-visible,
.aaca-v2 select:focus-visible,
.aaca-v2 textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.aaca-v2 .btn:focus-visible { outline-offset: 4px; }

/* ============== Announce ============== */
.aaca-v2-announce {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  border-bottom: 1px solid var(--ink-line);
}
.aaca-v2-announce__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
}
.aaca-v2-announce__label {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}
.aaca-v2-announce__body { color: rgba(244, 237, 225, 0.85); }
.aaca-v2-announce__link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.aaca-v2-announce__link:hover { color: #e3b658; }

/* ============== Header / Nav ============== */
.aaca-v2-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.aaca-v2-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto;
}
.aaca-v2-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.aaca-v2-nav__mark { color: var(--ink); display: inline-flex; }
.aaca-v2-nav__wordmark-top {
  display: block;
  font-family: "Fraunces", serif !important;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
}
.aaca-v2-nav__wordmark-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.aaca-v2-nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aaca-v2-nav__links li { list-style: none; }
.aaca-v2-nav__links a {
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  transition: color .2s ease;
}
.aaca-v2-nav__links a:hover { color: var(--gold-deep); }
.aaca-v2-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}
.aaca-v2-nav__links a:hover::after,
.aaca-v2-nav__links .current-menu-item > a::after,
.aaca-v2-nav__links a[aria-current="page"]::after { width: 100%; }
.aaca-v2-nav__links .current-menu-item > a,
.aaca-v2-nav__links a[aria-current="page"] { color: var(--gold-deep); }

.aaca-v2-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.aaca-v2-nav__toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: all .2s ease;
  display: block;
}

/* ============== Footer ============== */
.aaca-v2-footer {
  background: var(--ink);
  color: rgba(244, 237, 225, 0.8);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
.aaca-v2-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.aaca-v2-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244, 237, 225, 0.12);
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.aaca-v2-footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.aaca-v2-footer__mark { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.aaca-v2-footer__name {
  font-family: "Fraunces", serif !important;
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.aaca-v2-footer__tag {
  font-size: 0.9rem;
  color: rgba(244, 237, 225, 0.6);
}
.aaca-v2-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.aaca-v2-footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.aaca-v2-footer__cols a,
.aaca-v2-footer__cols ul a {
  color: rgba(244, 237, 225, 0.7);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color .2s ease;
}
.aaca-v2-footer__cols a:hover { color: var(--gold); }
.aaca-v2-footer__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aaca-v2-footer__h {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.aaca-v2-footer address {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(244, 237, 225, 0.7);
  line-height: 1.7;
}
.aaca-v2-footer address a { color: rgba(244, 237, 225, 0.7); }
.aaca-v2-footer address a:hover { color: var(--gold); }
.aaca-v2-footer__legal {
  padding: 30px 28px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(244, 237, 225, 0.5);
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
}
.aaca-v2-footer__legal a { color: rgba(244, 237, 225, 0.5); }
.aaca-v2-footer__legal a:hover { color: var(--gold); }

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .aaca-v2-nav__links { display: none; }
  .aaca-v2-nav__toggle { display: flex; }
  body.menu-open .aaca-v2-nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .aaca-v2-nav .btn { display: none; }
  .aaca-v2-footer__inner { grid-template-columns: 1fr; gap: 50px; }
  .aaca-v2-footer__cols { grid-template-columns: 1fr 1fr; }
  .aaca-v2 .section { padding: 70px 0; }
}

@media (max-width: 560px) {
  .aaca-v2-footer__cols { grid-template-columns: 1fr; }
  .aaca-v2-announce__inner { font-size: 12px; }
  .aaca-v2-announce__body { display: none; }
  .aaca-v2-nav__wordmark-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .aaca-v2 *,
  .aaca-v2 *::before,
  .aaca-v2 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .aaca-v2-nav__links a,
  .aaca-v2-footer__cols a,
  .aaca-v2 .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
