/* Components: square buttons, hairline header, flat cards that invert on hover, lists, FAQ, CTA, footer, consent. */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border-radius: 0; border: 1px solid var(--ink); font-family: var(--label); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; z-index: 0; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1); z-index: -1; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary::before { background: var(--ink); }
.btn-primary:hover { color: #fff; border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::before { background: var(--accent); }
.btn-dark:hover { color: #fff; border-color: var(--accent); }
.btn:hover::before { transform: none; }
.section--dark .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.section--dark .btn-primary::before { background: #fff; }
.section--dark .btn-primary:hover { color: var(--ink); border-color: #fff; }
.section--dark .btn-ghost { border-color: #fff; color: #fff; }
.section--dark .btn-ghost::before { background: #fff; }
.section--dark .btn-ghost:hover { color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button-row--center { justify-content: center; }
.text-link { font-family: var(--label); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(246, 244, 239, 0.98); border-bottom: 1px solid var(--ink); }
.nav-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { display: block; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; flex: 1 1 auto; justify-content: flex-end; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-menu { position: static; }
.nav-item > a { position: relative; color: var(--ink); text-decoration: none; padding: 10px 14px; font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-item > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav-item > a:hover, .nav-item > a[aria-current="page"] { color: var(--ink); }
.nav-item > a:hover::after, .nav-item > a[aria-current="page"]::after { transform: scaleX(1); }
.submenu-toggle { display: none; }
.submenu { display: flex; opacity: 0; visibility: hidden; pointer-events: none; position: absolute; top: calc(100% + 1px); right: 0; transform: translateY(10px); z-index: 95; width: max-content; max-width: min(1000px, 94vw); padding: 32px; gap: 32px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--ink); box-shadow: 14px 14px 0 rgba(14, 14, 14, 0.12); }
.has-menu:hover > .submenu, .has-menu:focus-within > .submenu, .has-menu.is-open > .submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.has-menu.is-dismissed > .submenu { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); }
.submenu-col { flex: 1 1 250px; max-width: 300px; }
.submenu-title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--label); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
.submenu-col ul { display: flex; flex-direction: column; gap: 2px; }
.submenu-link { display: flex; gap: 14px; align-items: flex-start; padding: 10px 8px; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.submenu-link:hover, .submenu-link[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.submenu-link strong { display: block; line-height: 1.3; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.submenu-link small { display: block; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 36px; padding: 0 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--label); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; font-style: normal; }
.nav-cta { padding: 12px 22px; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 44px; padding: 12px; background: transparent; border: 1px solid var(--ink); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .primary-nav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding: 8px 0 20px; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .menu-open .primary-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--hair); }
  .nav-item > a { flex: 1 1 auto; padding-left: 0; }
  .nav-item > a::after { left: 0; }
  .submenu-toggle { display: block; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; position: relative; }
  .submenu-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -70%) rotate(45deg); }
  .has-menu.is-open .submenu-toggle::after { transform: translate(-50%, -30%) rotate(225deg); }
  .has-menu:hover > .submenu, .has-menu:focus-within > .submenu { display: none; }
  .has-menu.is-open > .submenu { display: flex; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .submenu { display: none; position: static; transform: none; width: 100%; max-width: none; flex: 1 1 100%; padding: 8px 0 16px; border: 0; box-shadow: none; background: transparent; }
  .submenu-col { max-width: none; flex-basis: 100%; }
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 28px; font-family: var(--label); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--accent-text); }
.breadcrumbs a { color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs [aria-current] { color: var(--muted); }

/* Flat editorial cards: heavy top rule, invert on hover */
.card-list { display: flex; flex-wrap: wrap; gap: 0; border-left: 1px solid var(--hair); }
.card { flex: 1 1 300px; max-width: 100%; display: flex; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.card > article { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 34px 30px 32px; background: transparent; border-top: 4px solid var(--ink); position: relative; }
.card .badge { margin-bottom: 22px; }
.card h3 { margin-bottom: 0.5em; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { color: var(--muted); flex: 1 1 auto; }
.card .text-link { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Lists */
.tick-list { display: flex; flex-direction: column; gap: 0; }
.tick-list li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--hair); }
.tick-list li::before { content: "\2192"; position: absolute; left: 0; top: 10px; font-family: var(--font-head); color: var(--accent-text); font-size: 1.1rem; }
.section--dark .tick-list li { border-bottom-color: rgba(255, 255, 255, 0.18); }
.list-blocks { display: flex; flex-wrap: wrap; gap: 28px; }
.list-block { flex: 1 1 300px; padding: 28px 0 0; border-top: 4px solid var(--ink); }
.list-block:nth-child(2) { border-top-color: var(--accent); }
.list-block h2, .list-block h3 { font-size: 1.5rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 0; margin-top: 8px; border-top: 1px solid var(--hair); }
.chips li { padding: 10px 20px 10px 0; margin-right: 20px; border-bottom: 1px solid var(--hair); font-family: var(--font-head); font-size: 1.15rem; }
.chips li::after { content: "/"; margin-left: 20px; color: var(--accent-text); }
.chips--light li { color: #fff; border-color: rgba(255, 255, 255, 0.2); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; counter-reset: faq; border-top: 1px solid var(--ink); }
.faq-item { counter-increment: faq; border-bottom: 1px solid var(--ink); }
.faq-item summary { cursor: pointer; padding: 24px 56px 24px 64px; font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; line-height: 1.3; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: counter(faq, decimal-leading-zero); position: absolute; left: 0; top: 28px; font-family: var(--label); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-text); }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 2rem; font-weight: 300; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; color: var(--accent-text); }
.faq-item p { margin: 0; padding: 0 56px 28px 64px; color: var(--muted); }

/* Call-to-action band */
.cta-band { --accent-text: var(--accent-d); background: var(--accent); color: #fff; border-top-color: var(--accent); }
.cta-band h2, .cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow::before { background: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; position: relative; z-index: 1; }
.cta-copy { flex: 1 1 520px; }
.cta-copy h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.cta-copy p:last-child { margin-bottom: 0; color: #fff; }
.cta-band .btn-primary { background: var(--ink); border-color: var(--ink); }
.cta-band .btn-primary::before { background: #fff; }
.cta-band .btn-primary:hover { color: var(--ink); border-color: #fff; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost::before { background: #fff; }
.cta-band .btn-ghost:hover { color: var(--accent-text); }
.cta-inner .button-row { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #aaa69a; padding-top: 80px; flex-shrink: 0; overflow: hidden; position: relative; }
.site-footer a { color: #e9e6dd; text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); }
.site-footer .brand { color: #fff; }
.footer-main { display: flex; flex-wrap: wrap; gap: 40px 36px; padding-bottom: 40px; }
.footer-col { flex: 1 1 170px; }
.footer-about { flex: 1.4 1 280px; }
.footer-about p { margin-top: 16px; }
.footer-title { font-family: var(--label); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links--split { max-height: 300px; flex-wrap: wrap; }
.footer-col address { font-style: normal; }
.footer-note { margin-top: 10px; font-size: 0.95rem; }
.footer-wordmark { margin: 10px 0 0; text-align: center; font-family: var(--font-head); font-weight: 500; font-style: italic; font-size: clamp(3rem, 13vw, 11.5rem); line-height: 0.95; letter-spacing: -0.04em; white-space: nowrap; color: #66635a; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.88rem; position: relative; background: var(--ink); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Cookie consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 720px; margin-inline: auto; padding: 18px 22px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); box-shadow: 12px 12px 0 rgba(14, 14, 14, 0.15); }
.consent p { flex: 1 1 280px; margin: 0; font-size: 0.95rem; }
.consent a { color: var(--ink); }
.consent button { padding: 10px 20px; border: 1px solid var(--ink); font-family: var(--label); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; background: transparent; color: var(--ink); }
.consent .accept { background: var(--ink); color: #fff; }
