/* Hindsight 360 (hindsight-360.com): what every one of its pages shares. The colours and the typeface as names,
   the header and the footer, the buttons, the card. The front page's own styles are in home.css.
   Every class starts with hs- and every rule sits under body.hs, so nothing here touches the portal's pages.
   Nothing is loaded from another site: the typeface "Outfit" comes from fonts.css once its file is installed
   (base.html, hs.font); until then the next typeface in the list is used. */

:root {
  --hs-gold: #E3A72B;
  --hs-gold-deep: #D2981F;        /* the gold button under the pointer */
  --hs-ink: #2B2B2A;              /* the darkest words, the words on gold */
  --hs-text: #434342;             /* the words */
  --hs-muted: #5C5B59;            /* the quieter words */
  --hs-soft: #6B6A68;             /* the quietest words that still read on the page's grey */
  --hs-ground: #F6F6F5;           /* the page */
  --hs-card: #FFFFFF;
  --hs-line: #CFCCC5;
  --hs-line-soft: #E6E3DD;
  --hs-rule: #DAD7D0;             /* a line between two rows of words */
  --hs-dark: #2B2B2A;             /* the dark sections and the footer */
  --hs-dark-ink: #EDEBE6;
  --hs-dark-muted: #C9C6BF;
  --hs-font: "Outfit", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --hs-gutter: clamp(16px, 4vw, 40px);   /* the space at the page's two sides */
}

/* the page itself */
html { background: var(--hs-ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.hs {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;   /* the footer stays at the bottom of a short page */
  background: var(--hs-ground); color: var(--hs-text);
  font-family: var(--hs-font); font-size: 17px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
.hs, .hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs main { flex: 1 0 auto; min-width: 0; }
.hs main:focus { outline: none; }
/* :where() keeps these plain defaults weak, so any class on a page wins over them */
:where(.hs h1, .hs h2, .hs h3, .hs p) { margin: 0; }
:where(.hs h1, .hs h2) { text-wrap: balance; }
:where(.hs p) { text-wrap: pretty; }
:where(.hs a) { color: var(--hs-text); }
:where(.hs a:hover) { color: #1F1F1E; }
:where(.hs img) { max-width: 100%; height: auto; }
.hs :focus-visible { outline: 3px solid var(--hs-ink); outline-offset: 3px; }
.hs a:not(.hs-button):focus-visible { border-radius: 6px; }

/* shared pieces */
.hs-wrap { width: 100%; max-width: calc(1176px + 2 * var(--hs-gutter)); margin-left: auto; margin-right: auto; padding-left: var(--hs-gutter); padding-right: var(--hs-gutter); }
.hs-page { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.hs-narrow, .hs .narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.hs-card, .hs .card { background: var(--hs-card); border: 1px solid var(--hs-line-soft); border-radius: 16px; padding: clamp(22px, 4.5vw, 36px); box-shadow: 0 10px 30px rgba(43, 43, 42, .06); }
.hs-muted { color: var(--hs-muted); }
.hs-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hs-skip { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 12px 18px; border-radius: 0 0 10px 10px; background: var(--hs-ink); color: #fff; font-weight: 500; text-decoration: none; }
.hs-skip:focus { top: 0; color: #fff; outline-color: var(--hs-gold); }

/* a plain page (the words in {% block content %}): its headings, paragraphs and links */
:where(.hs-page) h1 { font-size: clamp(27px, 7vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; color: var(--hs-text); margin: 0 0 14px; }
:where(.hs-page) h2 { font-size: clamp(20px, 5.4vw, 23px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--hs-text); margin: 30px 0 10px; }
:where(.hs-page) p { font-size: 17px; line-height: 1.55; font-weight: 300; margin: 0 0 14px; }
:where(.hs-page) :is(h1, h2, p):last-child { margin-bottom: 0; }
:where(.hs-page) :is(h1, h2):first-child { margin-top: 0; }
:where(.hs-page) a { font-weight: 500; text-underline-offset: 4px; }

/* the button: gold and round-ended, on a link or a button */
.hs-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 24px; border: 2px solid transparent; border-radius: 999px;
  background: var(--hs-gold); color: var(--hs-ink);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.hs-button:hover { background: var(--hs-gold-deep); color: var(--hs-ink); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(222, 167, 51, .38); }
.hs-button:active { transform: none; box-shadow: none; }
.hs-button svg { flex: none; }
.hs-button.hs-large { min-height: 58px; padding-left: 32px; padding-right: 32px; font-size: 19px; }
.hs-button.hs-ghost { background: transparent; border-color: var(--hs-ink); color: var(--hs-ink); }
.hs-button.hs-ghost:hover { background: rgba(43, 43, 42, .07); box-shadow: 0 12px 26px rgba(43, 43, 42, .12); }
.hs-button.hs-dark { background: var(--hs-dark); color: #fff; }
.hs-button.hs-dark:hover { background: #1F1F1E; color: #fff; box-shadow: 0 12px 26px rgba(0, 0, 0, .28); }
.hs-button:disabled, .hs-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* the header: the logo, the front page's parts, the phone, Book a scan.
   On a phone: the logo, a round phone button and Book a scan on one row, the links on a row under them. */
.hs-header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding-top: 12px; padding-bottom: 8px; }
.hs-logo { display: block; flex: none; margin-right: auto; }
.hs-logo img { display: block; height: 40px; width: auto; max-width: none; }
.hs-header-act { display: flex; align-items: center; gap: 10px; }
.hs-header-act .hs-button { min-height: 44px; padding-left: 18px; padding-right: 18px; font-size: 15px; }
.hs-phone { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--hs-line); border-radius: 50%; color: var(--hs-text); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hs-phone:hover { border-color: var(--hs-text); }
.hs-phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* on a phone the number is read out, not shown */
.hs-nav { order: 3; flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; font-size: 15px; }
.hs-nav a { padding: 10px 0; color: var(--hs-text); text-decoration: none; }
.hs-nav a:hover, .hs-phone:hover .hs-phone-text { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 520px) {
  .hs-header-in { padding-top: 16px; gap: 2px 22px; }
  .hs-logo img { height: 46px; }
  .hs-header-act { gap: 22px; }
  .hs-header-act .hs-button { min-height: 48px; padding-left: 24px; padding-right: 24px; font-size: 16px; }
  .hs-phone { width: auto; height: auto; padding: 12px 0; border: 0; border-radius: 0; }
  .hs-phone-icon { display: none; }
  .hs-phone-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .hs-nav { gap: 0 30px; font-size: 16px; }
  .hs-nav a { padding: 12px 0; }
}
@media (min-width: 1080px) {   /* room for everything on one row */
  .hs-header-in { padding-top: 22px; padding-bottom: 22px; gap: 8px 30px; }
  .hs-logo img { height: 54px; }
  .hs-header-act { gap: 30px; }
  .hs-nav { order: 0; flex: 0 1 auto; }
}

/* the footer: dark, the light logo, how to reach us, the legal line */
.hs-footer { background: var(--hs-dark); color: var(--hs-dark-muted); padding-top: clamp(44px, 6vw, 64px); padding-bottom: clamp(32px, 5vw, 48px); font-size: 16px; font-weight: 300; line-height: 1.35; }
.hs-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.hs-footer-logo { display: block; flex: none; width: auto; height: clamp(72px, 20vw, 92px); margin-left: -2px; }
.hs-footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.hs-footer a { color: var(--hs-dark-ink); text-underline-offset: 4px; overflow-wrap: anywhere; }
.hs-footer a:hover { color: #fff; }
.hs-footer :focus-visible { outline-color: var(--hs-dark-ink); }
.hs-footer-phone { font-size: 22px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.hs-footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; margin-top: clamp(28px, 4vw, 44px); padding-top: 14px; border-top: 1px solid rgba(237, 235, 230, .16); font-size: 15px; }
.hs-footer-links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.hs-footer-links a { padding: 10px 0; }

@media (prefers-reduced-motion: reduce) {
  .hs-button { transition: none; }
  .hs-button:hover { transform: none; }
}
