/* ==========================================================================
   V1 Solutions — styles.css
   Mobile-first. White + blues only.
   ========================================================================== */

:root {
  --navy: #0A1628;        /* headlines / primary text */
  --blue: #2F6FED;        /* primary CTA, accent */
  --blue-mid: #4C8DFF;    /* hover states, secondary accent */
  --blue-pale: #EAF2FF;   /* alternating section backgrounds */
  --white: #FFFFFF;       /* base background */
  --slate: #4A5568;       /* body text */

  --blue-deep: #2159C9;   /* accessible eyebrow blue (AA on pale tint) */
  --border: #D5E3FA;      /* pale-blue border tint */
  --focus-ring: rgba(47, 111, 237, 0.25);
  --shadow: 0 10px 30px rgba(10, 22, 40, 0.08);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --max-width: 1140px;
  --header-height: 68px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

a {
  color: var(--blue);
}

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

/* ---------- Layout ---------- */

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

.container-narrow {
  max-width: 800px;
}

.section {
  padding: 56px 0;
}

.section-tint {
  background: var(--blue-pale);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.section-body {
  max-width: 68ch;
  font-size: 1.0625rem;
}

@media (min-width: 768px) {
  .section {
    padding: 104px 0;
  }
}

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

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--blue-mid);
}

.btn:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.btn-block {
  display: block;
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name span {
  font-weight: 500;
}

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

.nav-link {
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .nav-link {
    display: none;
  }

  .btn-small {
    padding: 10px 14px;
    font-size: 0.875rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
  text-align: center;
  background: var(--white);
}

.hero h1 {
  max-width: 21ch;
  margin: 0 auto 20px;
}

.hero-subhead {
  max-width: 58ch;
  margin: 0 auto 32px;
  font-size: 1.125rem;
}

.hero-caption {
  margin: 14px 0 0;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 120px 0 112px;
  }
}

/* ---------- Card grid (What's Actually Leaking) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}

.card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
}

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

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

/* ---------- How It Works ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.step {
  flex: 1;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
}

.step-arrow {
  align-self: center;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(90deg);
}

.steps-caption {
  max-width: 58ch;
  margin: 26px auto 0;
  font-size: 0.9375rem;
  text-align: center;
}

@media (min-width: 840px) {
  .steps {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }

  .step-arrow {
    transform: none;
  }
}

/* ---------- Why Now callout ---------- */

.callout {
  margin: 0;
  padding: 28px 26px;
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .callout {
    padding: 36px 40px;
    font-size: 1.3125rem;
  }
}

/* ---------- The Audit (offer card) ---------- */

.offer-card {
  padding: 40px 26px;
  background: var(--blue-pale);
  border: 2px solid var(--blue-mid);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.offer-body {
  max-width: 62ch;
  margin: 0 auto 18px;
}

.offer-credit {
  max-width: 52ch;
  margin: 0 auto 26px;
  color: var(--navy);
  font-size: 1.0625rem;
}

.offer-list {
  max-width: 540px;
  margin: 0 auto 34px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.offer-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 32px;
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%232F6FED' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 10.5l5 5L17 5'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (min-width: 768px) {
  .offer-card {
    padding: 60px 64px;
  }
}

/* ---------- Form ---------- */

.audit-form {
  margin-top: 36px;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-field label {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #7C8FB5;
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

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

.form-field ::placeholder {
  color: #5D6B84;
  opacity: 1;
}

.form-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 500;
}

@media (min-width: 640px) {
  .audit-form {
    padding: 44px 48px;
  }

  .form-row-split {
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-heading {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  background: none;
  border: 0;
  color: var(--navy);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--blue);
}

.faq-question:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-icon {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  max-width: 64ch;
  margin: 0;
  padding: 0 4px 22px;
}

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

.site-footer {
  padding: 52px 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.footer-line {
  margin: 0 0 8px;
  font-weight: 500;
}

.site-footer a {
  color: var(--blue-mid);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-tagline {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- book.html ---------- */

.book-page {
  background: var(--blue-pale);
  min-height: 100vh;
}

.book-main {
  padding: 44px 0 72px;
}

.book-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  text-decoration: none;
}

.book-brand img {
  width: 48px;
  height: 48px;
}

.book-page h1 {
  margin-bottom: 30px;
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  text-align: center;
}

.recap-card {
  max-width: 680px;
  margin: 0 auto 30px;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.recap-card h2 {
  margin-bottom: 16px;
  font-size: 1.0625rem;
}

.recap-card dl {
  margin: 0;
}

.recap-card dt {
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recap-card dd {
  margin: 0 0 14px;
}

.recap-card dd:last-child {
  margin-bottom: 0;
}

.calendly-embed {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.calendly-fallback {
  margin: 0;
  padding: 40px 20px;
  text-align: center;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
