/* DeskWiz marketing site — shared styles.
   Palette and type rules come from brand/BRAND-SPEC.md. Gold is accent only, never text. */

:root {
  --navy: #041531;
  --blue: #014DC5;
  --gold: #FAB732;
  --gray: #5C6471;
  --gray-light: #93A4B8;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --border: #DCE3EC;
  --danger: #B3261E;
  --success: #1E7A3A;

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --max-width: 1120px;
  --sticky-cta-height: 64px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
}

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration: underline;
}
a:hover { text-decoration: none; }

/* Visible focus everywhere — do not remove. Blue, not gold: gold fails
   non-text contrast against white per WCAG 1.4.11. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .logo-link {
  display: block;
  line-height: 0;
}

.site-header .logo-link img {
  height: 32px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.main-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}

.main-nav.is-open { display: flex; }

.main-nav a {
  display: block;
  padding: 10px 4px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--blue); }

@media (min-width: 900px) {
  .main-nav {
    display: flex !important;
    flex-direction: row;
    gap: 24px;
    border-top: none;
    padding: 0;
  }
  .main-nav a { padding: 4px 0; }
}

.header-flex {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (min-width: 900px) {
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #013a99; text-decoration: none; }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--off-white); text-decoration: none; }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

@media (min-width: 560px) {
  .button-row { flex-direction: row; }
}

/* ---------- Sections ---------- */

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--gray-light); }
.section-navy a:not(.btn) { color: #9cc4ff; }

.hero {
  padding: 48px 0 40px;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.15rem;
  color: var(--gray);
}

/* ---------- Cards / grid ---------- */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin: 24px 0;
}

@media (min-width: 700px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin-bottom: 0.4em; }

/* Gold used only as a decorative accent bar/icon fill — never text. */
.accent-bar {
  width: 48px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ---------- Trust placeholder ---------- */

.trust-placeholder {
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--gray);
  background: var(--off-white);
}

.todo-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: #FFE9B8;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

/* ---------- Forms ---------- */

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-field .hint {
  display: block;
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 4px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  min-height: 48px;
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
}

.form-status {
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: #E5F3E8;
  color: var(--success);
  border: 1px solid var(--success);
}
.form-status.is-error {
  background: #FBEAE9;
  color: var(--danger);
  border: 1px solid var(--danger);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 20px;
}
legend {
  font-weight: 600;
  padding: 0 6px;
}

/* ---------- Calculator result ---------- */

.calc-result {
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  display: none;
}
.calc-result.is-visible { display: block; }
.calc-result .figure {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 8px;
}
.calc-result .label {
  font-size: 0.95rem;
  color: var(--gray);
}
.calc-benchmark-slot {
  margin-top: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ---------- Legal stub ---------- */

.legal-stub {
  max-width: 640px;
}
.legal-stub .pending-notice {
  background: #FBEAE9;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--gray-light);
  padding: 40px 0 32px;
  margin-top: 0;
}

.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gray-light); text-decoration: underline; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 0.8em; }

.footer-link-button {
  font-family: inherit;
  font-size: inherit;
  color: var(--white);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.footer-link-button:hover { color: var(--gray-light); }

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: 8px; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1a2c4a;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sticky-cta-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(4, 21, 49, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 90;
}

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

body.has-sticky-cta {
  /* Reserves space so the fixed bar never sits over footer content,
     including the footer's tap-to-call number. */
  padding-bottom: var(--sticky-cta-height);
}

@media (min-width: 900px) {
  body.has-sticky-cta { padding-bottom: 0; }
}

/* ---------- Consent banner ---------- */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  color: var(--white);
  padding: 18px 16px;
  z-index: 200;
  display: none;
}
.consent-banner.is-visible { display: block; }

.consent-banner .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 700px) {
  .consent-banner .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.consent-banner p { margin: 0; font-size: 0.9rem; color: var(--gray-light); }

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-actions button {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  border: 2px solid var(--white);
  min-height: 44px;
}
.consent-accept { background: var(--white); color: var(--navy); }
.consent-decline { background: transparent; color: var(--white); }

/* When both the consent banner and sticky CTA are visible on mobile,
   stack the banner above the CTA bar instead of overlapping it. */
body.has-sticky-cta .consent-banner {
  bottom: var(--sticky-cta-height);
}
@media (min-width: 900px) {
  body.has-sticky-cta .consent-banner { bottom: 0; }
}

/* ---------- Misc ---------- */

.service-area-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 600px) {
  .service-area-list { grid-template-columns: 1fr 1fr; }
}
.service-area-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.coming-soon-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
}
