/* ==========================================================================
   Chiron Psychological — shared components: header and menu, footer,
   FAQ, small cards. (v1, 10/22)
   ========================================================================== */

/* --- Header ---------------------------------------------------------------------
   Over the hero on pages that have one (.has-hero): transparent, light logo,
   a faint line under it. Not sticky, as on WordPress. */
.site-header { position: relative; z-index: 100; background: var(--heading); }
.has-hero .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(190,137,0,0) 0%, rgba(190,137,0,.45) 20%, rgba(190,137,0,.45) 80%, rgba(190,137,0,0) 100%); }
.site-header__inner { max-width: calc(var(--narrow) + 30px); padding: 0 15px; height: 135px; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; }
.brand img { width: 231px; height: auto; }

.nav { margin-left: 15px; flex: 1; display: flex; align-items: center; }
.nav__top, .nav__cta, .nav-close { display: none; }
.nav__list { display: flex; align-items: center; }
.nav__list > li { flex: none; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 14px 20px; border: 0; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--paper); white-space: nowrap; }
.nav__link .icon { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"], .nav__sub-toggle[data-current="true"] { color: var(--gold-hover); }
.nav__sub { position: absolute; top: calc(100% - 10px); left: 0; z-index: 10; width: 230px; padding: 5px 0; border-radius: var(--radius); background: var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.nav__sub a { display: block; padding: 6px 20px; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--paper); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--heading); }
@media (min-width: 1025px) {
  .nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__item.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--has-sub:hover .nav__link .icon, .nav__item.is-open .nav__link .icon { transform: rotate(180deg); }
}
.header-cta { margin-left: auto; margin-right: 27px; padding: 18px; font-size: 18px; font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 10px; background: var(--gold); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.menu-scrim { position: fixed; inset: 0; z-index: 99; background: rgba(17, 13, 10, .55); }

@media (max-width: 1180px) and (min-width: 1025px) {
  .nav__link { padding: 14px 12px; font-size: 16px; }
  .header-cta { padding: 16px; font-size: 16px; }
}
@media (max-width: 1024px) {
  .site-header__inner { height: 139px; gap: 16px; }
  .brand img { width: 306px; }
  .header-cta { margin-right: 0; }
  .nav-toggle { display: inline-flex; margin-left: 0; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(360px, 88vw); margin: 0; flex-direction: column; align-items: stretch;
    padding: 24px 24px 32px; overflow-y: auto; background: var(--heading); transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
  .nav__top img { width: 150px; }
  .nav-close { display: inline-flex; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: rgba(247,247,247,.1); color: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
  .nav-close .icon { width: 22px; height: 22px; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item { border-bottom: 1px solid rgba(247,247,247,.12); }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 18px; text-align: left; }
  .nav__sub { position: static; width: auto; padding: 0 0 10px; border-radius: 0; background: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item.is-open .nav__sub { display: block; }
  .nav__item.is-open .nav__link .icon { transform: rotate(180deg); }
  .nav__sub a { padding: 8px 0 8px 14px; color: rgba(247,247,247,.85); }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--gold-hover); }
  .nav__cta { display: inline-flex; margin-top: 28px; padding: 18px; font-size: 18px; font-weight: 700; white-space: normal; text-align: center; }
  body.menu-open { overflow: hidden; }
}

/* --- Small parts -------------------------------------------------------------------- */
.badge-count { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 2px solid var(--paper); border-radius: 50%;
  background: var(--gold); color: var(--paper); font-family: var(--serif); font-size: 21px; line-height: 1; letter-spacing: -.02em; }
.badge-count--sm { font-size: 16px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.6; font-weight: 600; }
.checklist li + li { margin-top: 15px; }
.checklist .icon { width: 20px; height: 20px; color: var(--ink); }

/* --- FAQ (accordion; one open at a time, js/site.js) -------------------------------------- */
.faq__item { border-bottom: 1px solid rgba(247,247,247,.14); }
.faq__item + .faq__item { padding-top: 30px; }
.faq__item:last-child { border-bottom: 0; }
.faq__q { position: relative; width: 100%; padding: 0 40px 30px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--paper); }
.faq__item:last-child .faq__q { padding-bottom: 0; }
.faq__item.is-open .faq__q { padding-bottom: 15px; }
.faq__icon { position: absolute; right: 0; top: 4px; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 40px 30px 0; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--paper); }
.faq__a a { font-weight: 700; margin-left: 12px; }
.faq__a a:hover { color: var(--gold-hover); border-bottom-color: currentColor; }

/* --- Footer ---------------------------------------------------------------------- */
.site-footer { background: var(--tint); color: var(--heading); }
.site-footer__band { height: 60px; background: var(--brown); }
.site-footer__inner { padding-top: 60px; padding-bottom: 40px; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: 160px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; margin-top: 50px; }
.site-footer__title { font-size: 26px; line-height: 1; font-weight: 400; }
.site-footer__cols { display: grid; grid-template-columns: 157px minmax(0, 403px); gap: 50px; margin-top: 36px; }
.site-footer__h { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.site-footer__h--light { font-size: 28px; line-height: 1; font-weight: 400; color: var(--heading); margin-bottom: 15px; }
.site-footer__cols p { font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.site-footer__cols p + p { margin-top: 24px; }
.site-footer__cols a:hover { color: var(--gold); }
.site-footer__sans { font-size: 16px; line-height: 1.6; color: var(--ink); }
.site-footer__maps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; padding: 0 10px; }
.site-footer__maps iframe { width: 100%; height: 300px; border: 0; background: #ddd8cc; }
.site-footer__bottom { margin-top: 40px; border-top: 1px solid var(--line); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
  font-size: 14px; color: #5f574a; }
.site-footer__bottom a:hover { color: var(--gold); }

@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__maps iframe { height: 260px; }
}
@media (max-width: 639px) {
  .site-header__inner { height: 100px; }
  .brand img { width: 180px; }
  .header-cta { display: none; }
  .site-footer__band { height: 40px; }
  .site-footer__inner { padding-top: 40px; }
  .site-footer__grid { margin-top: 32px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .site-footer__h, .site-footer__h--light { font-size: 24px; }
  .site-footer__maps { margin-top: 40px; grid-template-columns: 1fr; }
  .site-footer__maps iframe { height: 240px; }
}
