/* ==========================================================================
   Square3 Help Center - help.square3it.com
   Visual language mirrors square3it.com: navy-to-royal-blue gradient,
   oversized background type, orange accent bars, wide-tracked uppercase labels.
   Brand values live in :root; swap them here when official guidelines arrive.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, SIL Open Font License) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* ---------- Brand tokens ----------
   From "Square3 Branding_Guidelines.pdf" (Marketing > Tri-Digital Marketing Assets):
     Primary:   Cobalt Blue #1051EA (PMS 293 C), Bright Orange #F75C05 (PMS 165 C)
     Secondary: Dark Navy Blue #051E59 (PMS 295 C), Dark Excalibur #5C5C61 (Cool Gray 9 C)
     Web fonts: Poppins + Lato
   Dark Excalibur is meant for light backgrounds, so it isn't used on this dark page. */
:root {
  --navy: #051e59;       /* brand Dark Navy Blue */
  --navy-deep: #03123a;  /* darker shade of brand navy, for cards */
  --cobalt: #1051ea;     /* brand Cobalt Blue */
  --cobalt-deep: #0038b7;/* deep cobalt; same gradient end as square3it.com */
  --orange: #f75c05;     /* brand Bright Orange */
  --orange-soft: #ff7a2e;
  --excalibur: #5c5c61;  /* brand Dark Excalibur (light backgrounds only) */
  --ghost-type: rgba(16, 81, 234, 0.28); /* oversized background word, cobalt-tinted */
  --white: #ffffff;
  --text: #e9edf5;
  --muted: #a7afb9;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(3, 18, 58, 0.74);
  --card-hover: rgba(3, 18, 58, 0.9);

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --track: 0.28em;       /* signature wide letter-spacing */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy);
  background-image: linear-gradient(180deg, var(--navy) 0%, #062472 55%, var(--cobalt-deep) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--white); }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--orange); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Optional service notice (remove `hidden` in index.html to show) ---------- */
.status-banner {
  background: var(--orange); color: var(--navy);
  font-weight: 700; text-align: center; padding: 10px var(--gutter);
}
.status-banner a { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }

.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand-label {
  padding-left: 18px; border-left: 2px solid var(--orange);
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem;
  letter-spacing: var(--track); text-transform: uppercase; color: var(--white); line-height: 1.3;
}

.site-nav ul { display: flex; gap: clamp(18px, 2.6vw, 34px); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem;
  letter-spacing: var(--track); text-transform: uppercase; text-decoration: none;
  color: var(--white); transition: color 0.25s ease-in;
}
.site-nav a:hover { color: var(--orange); }

.site-header .header-call { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 11vw, 150px) 0 clamp(48px, 7vw, 90px); }

.bg-word {
  position: absolute; z-index: 0; top: -0.2em; left: -0.03em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(11rem, 34vw, 30rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--ghost-type); pointer-events: none; user-select: none; white-space: nowrap;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow { margin: 0 0 14px; font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--white); }
.accent { color: var(--orange); }

.hero h1 { line-height: 1.02; margin-bottom: 26px; }
.h1-strong {
  display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem); color: var(--orange); letter-spacing: 0.005em;
}
.h1-light {
  display: block; font-family: var(--font-body); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 5.6vw, 4.1rem); color: var(--white);
}

.lead { max-width: 40rem; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--text); margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.25s linear, color 0.25s linear, border-color 0.25s linear;
}
.btn .icon { width: 1.15em; height: 1.15em; }

/* Solid orange uses navy text so it meets WCAG AA contrast */
.btn-solid { background: var(--orange); border-color: var(--orange); color: var(--navy); font-weight: 700; }
.btn-solid:hover { background: var(--orange-soft); border-color: var(--orange-soft); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); text-transform: none; letter-spacing: 0.04em; font-size: 0.95rem; font-weight: 500; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

/* Outline style mirrors the main site's form buttons */
.btn-line { border-color: var(--orange); color: var(--white); }
.btn-line:hover { background: var(--orange); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); scroll-margin-top: 16px; }

.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: var(--track); text-transform: uppercase; color: var(--white);
}
.section-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; background: var(--orange); }
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  scroll-margin-top: 16px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.card:hover { background: var(--card-hover); }

.card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border: 2px solid rgba(247, 92, 5, 0.55); color: var(--orange);
  border-radius: 10px; /* rounded square, echoing the logo mark and the guideline icon style */
}
.card-icon .icon { width: 26px; height: 26px; }

.card-kicker {
  margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange);
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
.card > p { color: var(--text); }

.card-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.card-url { font-size: 0.85rem; color: var(--muted); }
.card-url::before { content: "Opens "; }

.card-note { margin: 4px 0 18px; font-size: 0.92rem; color: var(--muted); }

.steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { position: relative; padding-left: 40px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1em;
  display: grid; place-items: center; width: 26px; height: 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  color: var(--navy); background: var(--orange); border-radius: 6px;
}
.steps-tight { margin-bottom: 14px; }
.card-tip { margin: 0 0 18px; font-size: 0.92rem; color: var(--muted); }

/* ---------- Camera Assist ---------- */
.camera-action { margin-top: auto; padding-top: 6px; }

.qr-row { display: flex; align-items: center; gap: 22px; }
.qr-tile { flex: none; width: 150px; padding: 8px; background: var(--white); border-radius: 8px; }
.qr-tile img { width: 100%; height: auto; image-rendering: crisp-edges; image-rendering: pixelated; }
.qr-text { margin: 0; color: var(--text); }
.qr-text strong { display: block; color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }

.short-url { font-family: var(--font-display); font-weight: 600; color: var(--white); white-space: nowrap; }

.touch-only { display: none; }
.touch-only .btn { width: 100%; min-height: 60px; font-size: 0.9rem; }
.touch-only p { margin: 12px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Phones & tablets: tapping beats scanning your own screen */
@media (hover: none) and (pointer: coarse) {
  .pointer-only { display: none; }
  .touch-only { display: block; }
}

/* ---------- Safety notice ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: clamp(18px, 2.4vw, 28px); padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-left: 4px solid var(--orange);
}
.notice .icon { width: 28px; height: 28px; color: var(--orange); margin-top: 2px; }
.notice p { margin: 0; color: var(--text); }
.notice strong { color: var(--white); }
.notice a { color: var(--white); font-weight: 700; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 44px 0 40px; text-align: center; }

.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; margin: 0 0 30px; padding: 0; list-style: none; }
.footer-nav a, .footer-label {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.25em; text-transform: uppercase; text-decoration: none; color: var(--white);
}
.footer-nav a:hover { color: var(--orange-soft); }

.footer-logo { display: inline-block; margin-bottom: 26px; }
.footer-logo img { height: 40px; width: auto; }

.footer-contact { display: grid; gap: 18px; margin: 0 0 28px; font-style: normal; }
.footer-contact div { display: grid; gap: 2px; }
.footer-contact a, .footer-contact span:not(.footer-label) { font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); text-decoration: none; }
.footer-contact a.email { text-transform: none; letter-spacing: 0.06em; }
.footer-contact a:hover { color: var(--orange-soft); }

.footer-fine { margin: 0; font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.72); }

/* ---------- Error page ---------- */
.error-page .hero { min-height: 70vh; display: flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-header .header-call { display: inline-flex; min-height: 44px; padding: 10px 16px; font-size: 0.72rem; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 78px; gap: 12px; }
  .brand { gap: 12px; }
  .brand img { height: 38px; }
  .brand-label { padding-left: 12px; font-size: 0.62rem; letter-spacing: 0.2em; }
  .btn { letter-spacing: 0.14em; padding: 14px 18px; }
  .hero-actions .btn, .card-foot .btn { width: 100%; }
  .card-foot .btn { justify-content: space-between; }
  .qr-row { flex-direction: column; align-items: flex-start; }
  .card-url { width: 100%; }
}

@media (max-width: 380px) {
  .brand-label { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .bg-word, .site-nav, .header-call, .hero-actions { display: none; }
  .card { border: 1px solid #999; border-top: 5px solid var(--orange); background: #fff; color: #000; }
  .card h3, .h1-light, .section-title, .qr-text strong, .short-url { color: #000; }
  .pointer-only { display: block !important; }
  .touch-only { display: none !important; }
}
