/* Cautio website header and footer for the intake pages.
   Copied from the main site's /assets/css/style.css (header, footer, buttons, skip link)
   and scoped so it cannot clash with the intake styles. If the main site's header or
   footer changes, update this file and the markup in index.php / app/auth.php to match. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --site-navy: #0d1b2b;
  --site-cream: #fff7e7;
  --site-grey-btn: #6f7783;
  --site-orange: #f47432;
  --site-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --site-container-wide: 1224px;
  --site-gutter: 24px;
  --site-header-h: 131px;
}

/* Skip link */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--site-navy); color: #fff; border-radius: 8px; text-decoration: none; font-family: var(--site-font); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Shared container */
.site-header .container, .site-footer .container { width: 100%; margin-inline: auto; padding-inline: var(--site-gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(13, 27, 43, .06); font-family: var(--site-font); line-height: 1.5; }
.site-header .header-inner { max-width: calc(var(--site-container-wide) + var(--site-gutter) * 2); height: var(--site-header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo { padding-left: 16px; color: inherit; }
.site-header .logo img { display: block; width: 286px; max-width: 100%; height: auto; }
.site-header .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 14px 32px; border: 0; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.site-header .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); }
.site-header .btn:active { transform: translateY(0); }
.site-header .btn-grey { background: var(--site-grey-btn); color: var(--site-cream); }
.site-header .btn-grey:hover { background: #5d646f; }
.site-header .header-cta { min-height: 57px; padding-inline: 40px; margin-right: 16px; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--site-orange); outline-offset: 3px; }

/* Client login link next to the contact button */
.site-header .header-actions { display: flex; align-items: center; gap: 24px; margin-right: 16px; }
.site-header .header-actions .header-cta { margin-right: 0; }
.site-header .header-login { color: var(--site-navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header .header-login:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-hero .signed-in-as { font-size: 14px; opacity: .85; margin-top: 10px; }
.page-hero .signed-in-as a { color: inherit; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--site-navy); color: var(--site-cream); font-family: var(--site-font); line-height: 1.5; }
.site-footer .footer-inner { max-width: calc(var(--site-container-wide) + var(--site-gutter) * 2); min-height: 107px; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 16px; padding-block: 22px; }
.site-footer .footer-mark img { display: block; width: 59px; height: auto; }
.site-footer .footer-text { text-align: center; font-size: 14px; line-height: 1.3; }
.site-footer .footer-text p { margin: 0; }
.site-footer .footer-text p + p { margin-top: 8px; }
.site-footer a { color: inherit; }
.site-footer .footer-text a { font-weight: 300; text-underline-offset: 2px; }

/* Intake layout under the sticky site header */
:root { --top: var(--site-header-h); }
[id] { scroll-margin-top: calc(var(--site-header-h) + 16px); }

@media (max-width: 920px) {
  :root { --site-header-h: 96px; }
  .site-header .logo { padding-left: 0; }
  .site-header .logo img { width: 220px; }
  .site-header .header-cta { margin-right: 0; min-height: 48px; padding-inline: 24px; font-size: 14px; }
  .site-header .header-actions { margin-right: 0; gap: 18px; }
}
@media (max-width: 640px) {
  :root { --site-gutter: 20px; --site-header-h: 80px; }
  .site-header .logo img { width: 170px; }
  .site-header .header-cta { padding-inline: 18px; min-height: 42px; font-size: 13px; }
  .site-header .header-actions { gap: 12px; }
  .site-header .header-login { font-size: 13px; }
  .site-footer .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 420px) {
  .site-header .logo img { width: 130px; }
  .site-header .header-cta { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .btn { transition: none; }
  .site-header .btn:hover { transform: none; }
}
@media print {
  .site-header { position: static; box-shadow: none; }
  .skip-link { display: none !important; }
}

/* Keep the footer below the fold on short steps */
.stage-band { min-height: calc(100vh - var(--site-header-h)); }
