/* Reusable components: buttons, header, footer, FAQ, cards, forms. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 28px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--sm { padding: 11px 20px; font-size: 14.5px; border-radius: 8px; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-light); }
.btn--white { background: #fff; color: var(--red); border-color: #fff; }
.btn--white:hover { background: #e8e5dc; border-color: #e8e5dc; }
.btn--red { background: var(--red); color: #fff; border-color: var(--gold); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: #7A4848; }
.btn--ghost-light:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28,8,16,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,144,76,0.15);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
/* Home: nav overlays the hero, transparent until scrolled (see nav.js). */
body.home .site-header {
  position: fixed; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body.home .site-header.is-solid {
  background: rgba(28,8,16,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(184,144,76,0.15);
}
/* Below desktop the nav wraps and would overlap the hero, so drop the
   transparent overlay and use the in-flow solid nav (as on subpages). */
@media (max-width: 1024px) {
  body.home .site-header {
    position: sticky;
    background: rgba(28,8,16,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(184,144,76,0.15);
  }
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 8px 0;
}
.site-header__logo { display: flex; align-items: center; line-height: 1; }
.site-header__logo img { height: 72px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav__link { color: rgba(255,255,255,0.72); transition: color 0.2s ease; }
.site-nav__link:hover { color: #fff; }

/* Hamburger toggle — hidden on desktop, shown on tablet/mobile. */
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px; background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle__bar { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Links + CTA collapse into a dropdown panel below the bar. */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(28,8,16,0.98);
    border-bottom: 1px solid rgba(184,144,76,0.15);
    padding: 6px 0 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 14px max(4vw, 20px); color: #fff; }
  .site-nav .btn { margin: 12px max(4vw, 20px) 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-2); border-top: 1px solid rgba(184,144,76,0.15); padding: 56px 0 36px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 44px; }
.site-footer__brand { max-width: 320px; }
.site-footer__logo { height: 49px; width: auto; opacity: .9; margin-bottom: 12px; }
.site-footer__brand p { font-size: 14px; color: #fff; }
.site-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer__heading { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: var(--cream-dim); }
.site-footer__links a { transition: color 0.2s ease; }
.site-footer__links a:hover { color: #fff; }
.site-footer__muted { color: var(--cream-dim); font-size: 13px; }
.site-footer__bottom { border-top: 1px solid rgba(184,144,76,0.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #fff; }

/* ---------- FAQ accordion ---------- */
.faq-section { background: var(--panel-alt); border-top: 1px solid var(--border); }
.faq-section--plain { background: transparent; border-top: 0; }
.faq-section .section-head { margin-bottom: 40px; }
.faq { border-bottom: 1px solid var(--border); }
.faq__item { border-top: 1px solid var(--border); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; cursor: pointer; padding: 24px 4px; list-style: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2vw, 21px);
  color: var(--ink); line-height: 1.3;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { font-family: var(--mono); font-size: 24px; color: var(--accent); flex: none; line-height: 1; }
.faq__sign::before { content: "+"; }
.faq__item[open] .faq__sign::before { content: "\2013"; }
.faq__a { padding: 0 4px 26px; max-width: 680px; font-size: 16.5px; color: var(--text-soft); line-height: 1.62; }

/* ---------- Generic card ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 30px 26px; transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: 0 4px 24px rgba(28,8,16,0.09); border-color: var(--gold); }
.card__num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 18px; }
.card__title { font-family: var(--serif); font-weight: 600; font-size: 21px; margin-bottom: 10px; line-height: 1.2; }
.card__text { font-size: 15px; color: var(--text-mute); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(28px, 3.5vw, 40px); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: #3a362e; }
.field__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.input, .textarea {
  border: 1px solid #d8d1c2; border-radius: 9px; padding: 13px 14px; font-size: 15px;
  background: #fdfcf9; outline: none; width: 100%;
}
.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: 12px; color: var(--muted-2); text-align: center; }
.form__alert { border-radius: 9px; padding: 14px; font-size: 14.5px; text-align: center; }
.form__alert--ok { background: #e7f6ee; border: 1px solid #b6e0c8; color: #1a6e4f; }
.form__alert--err { background: #fdf0ef; border: 1px solid #eac2bd; color: var(--red); }
.form__alert[hidden] { display: none; }
