@import "./view-transitions.css";

/* Homepage service rows link to the reading pages (base.css imports this file there). */
.service-page-link { display: block; min-height: 44px; color: inherit; text-decoration: none; }
.service-page-link:hover { text-decoration: underline; text-underline-offset: .18em; }
.service-page-link .service-label::after { content: " ↗"; font-size: .55em; vertical-align: middle; }

/* Reading pages: the frame shared by all six pages. Compositions live in
   service-hero.css, bands in service-bands.css, scroll motion in service-motion.css. */
.seo-document { --page-gutter: 24px; --hero-bg: var(--deep); --hero-ink: var(--paper); font-size: 16px; background: var(--paper); color: var(--deep); }
.seo-document .seo-page { max-width: none; margin: 0; padding: 0; }

/* A dark, steady header: it stays put while page content wipes underneath it. */
.seo-document .indigo-header { background: var(--deep); color: var(--paper); border-bottom: 1px solid rgb(202 205 234 / 20%); }
.seo-document .indigo-nav { font-size: 16px; }
.seo-document .indigo-header :focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.seo-document .indigo-footer { padding: 32px var(--page-gutter) 24px; border-top: 1px solid rgb(202 205 234 / 22%); }
.seo-document .footer-bottom { font-size: 16px; gap: 16px; margin-top: 20px; }
.seo-document .footer-findability { gap: 0 24px; margin-top: 20px; padding-block: 16px; }
.seo-document .footer-bottom p { margin: 0; }
.seo-document .footer-bottom a { min-width: 44px; justify-content: center; }
.seo-document .hs-consent-actions button { min-height: 44px; }
.service-cta-bar { display: none; }
/* A second, always reachable way into the accessibility panel: the floating button
   steps aside over text, which on a reading page can be most of the time. */
.seo-document .footer-bottom [data-a11y-open] { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.seo-document .footer-bottom [data-a11y-open][hidden] { display: none; }

@media (max-width: 720px), (max-height: 540px) {
  /* Match M5b: a first-visit consent row occupies space instead of covering copy. */
  .seo-document [data-mobile-consent-slot] .hs-consent { position: static; padding: 16px 24px; }
}

@media (max-width: 720px) {
  .seo-document .indigo-header { gap: 0; padding: 8px 24px; min-height: 0; }
  .seo-document .indigo-nav { flex-basis: 100%; justify-content: space-between; gap: 0 12px; }
  .seo-document .indigo-nav a { padding-block: 8px; }
  /* Phones: one compact WhatsApp button in the corner, the same place as on the
     homepage. Without JS it stays out (the footer and closing links remain). It steps
     aside whenever it would cover text (mobile-tools.mjs) and while the page's own
     buttons are on screen (cta-reveal.mjs). No reserved strip under the footer. */
  .seo-document[data-mobile-tools="ready"] .service-cta-bar { position: fixed; z-index: 95; display: flex; bottom: max(20px, env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; margin: 0; padding: 0; background: none; border: 0; }
  .seo-document .service-cta-bar a { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 8px 16px; border: 1px solid var(--lilac); border-radius: 4px; background: var(--deep); color: var(--paper); font-size: 16px; font-weight: 600; text-decoration: none; }
  .seo-document .service-cta-bar a:not(:first-child) { display: none; }
  /* It rides above an open consent strip, like the other floating tools. */
  .seo-document.has-consent-banner .service-cta-bar { margin-bottom: var(--consent-h, 0px); }
  .service-cta-bar[data-mobile-obscured="true"] { visibility: hidden; pointer-events: none; }
  .seo-document[data-cta-in-view] .service-cta-bar { visibility: hidden; pointer-events: none; }
}

@media (min-width: 721px) {
  .seo-document { --page-gutter: clamp(32px, 5vw, 80px); }
}
