/* ============================================================
   Main Allen Bookkeeping & Tax site header + navigation.
   Copied from the main site (shared.css, slate.css, site.css,
   forms.css) so this page matches the rest of the site.
   Everything here only affects the header at the top; it does
   not change any other styling on the page.
   ============================================================ */
.site-header {
  /* Main site colors, kept inside the header only */
  --shell-max: 1120px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --text: #1a1a1a;
  --line: #dcdcdc;
  --panel: #ffffff;
  --accent: #C9A54B;
  --accent-deep: #A8862E;
  --gold-ink: #7A6420;
  --header-bg: rgba(245, 245, 245, .94);
  --card-shadow: 0 14px 28px -24px rgba(0, 0, 0, .38);

  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.55;
}
.site-header img { max-width: 100%; display: block; }
.u-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header__inner { width: min(var(--shell-max), calc(100% - 2 * var(--gutter))); margin: 0 auto; min-height: 104px; display: flex; align-items: center; gap: 24px; }
.site-header__brand { display: flex; align-items: center; line-height: 0; flex: none; }
.site-header__logo { width: auto; height: 84px; max-width: min(250px, 46vw); object-fit: contain; object-position: left center; }

.site-nav { flex: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; }
.site-nav a { text-decoration: none; color: var(--text); font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.site-nav a:hover { color: var(--accent); }

.site-header__login { text-decoration: none; font-weight: 600; font-size: 17px; color: var(--accent); white-space: nowrap; }
.site-header__login--menu { display: none; }
.site-header__bar-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.site-nav__toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.site-nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 11px 9px; border: 0; background: transparent; color: var(--text); cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.site-nav__bar { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.site-nav__toggle:checked + .site-nav__burger .site-nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle:checked + .site-nav__burger .site-nav__bar:nth-child(2) { opacity: 0; }
.site-nav__toggle:checked + .site-nav__burger .site-nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle { display: inline-flex; align-items: center; gap: .35em; margin: 0; padding: 0; border: 0; appearance: none; background: none; color: var(--text); font: inherit; font-size: 17px; font-weight: 500; letter-spacing: .01em; line-height: inherit; cursor: pointer; }
.nav-dropdown__toggle::after { content: ""; width: .38em; height: .38em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.12em) rotate(45deg); }
.nav-dropdown:hover > .nav-dropdown__toggle,
.nav-dropdown:focus-within > .nav-dropdown__toggle,
.nav-dropdown.is-open > .nav-dropdown__toggle { color: var(--accent); }
.nav-dropdown.is-dismissed > .nav-dropdown__toggle { color: var(--text); }
.nav-dropdown__toggle:focus-visible, .nav-dropdown__link:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
.site-nav .nav-dropdown__menu { display: none; position: absolute; z-index: 40; top: calc(100% - 2px); left: 0; min-width: 12.5rem; margin: 0; padding: 6px 0; list-style: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 12px; overflow: hidden; }

@media (min-width: 901px) {
  .site-nav__item--login { display: none; }
  .site-nav .nav-dropdown:hover > .nav-dropdown__menu,
  .site-nav .nav-dropdown:focus-within > .nav-dropdown__menu,
  .site-nav .nav-dropdown.is-open > .nav-dropdown__menu { display: flex; }
  .site-nav .nav-dropdown.is-dismissed:hover > .nav-dropdown__menu,
  .site-nav .nav-dropdown.is-dismissed:focus-within > .nav-dropdown__menu,
  .site-nav .nav-dropdown.is-dismissed.is-open > .nav-dropdown__menu { display: none; }
  .nav-dropdown__link { display: block; padding: 8px 16px; white-space: nowrap; }
}

/* Phones and small tablets: logo + burger menu */
@media (max-width: 900px) {
  .site-header__inner { flex-wrap: nowrap; min-height: 88px; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
  .site-header__logo { height: 68px; max-width: 58vw; }
  .site-nav__burger { display: flex; }
  .site-header__bar-actions { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; padding: 6px 22px 18px; background: var(--header-bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(0,0,0,.45); }
  .site-nav__toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-header__login--menu { display: block; padding: 14px 2px; color: var(--accent); border: 0; font-size: 18px; }
  .site-header__login--menu:hover { color: var(--accent-deep); }
  .nav-dropdown__toggle { display: flex; width: 100%; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 18px; text-align: left; }
  .site-nav .nav-dropdown__menu { display: flex; position: static; min-width: 0; padding: 0 0 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
}
