/* ─── Base / Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--cfq-font-sans);
  font-size: var(--cfq-body);
  line-height: 1.6;
  color: var(--cfq-fg-light-primary);
  background: var(--cfq-bg-white);
  -webkit-font-smoothing: antialiased;
}

/* Dark-top pages: body bg = dark so transparent nav blends with hero */
body.cfq-page--dark-top {
  background: var(--cfq-bg-dark);
}
/* Light-top pages: body bg = light */
body.cfq-page--light-top {
  background: var(--cfq-bg-light);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cfq-font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Container */
.cfq-container {
  max-width: var(--cfq-container-max);
  margin-inline: auto;
  padding-inline: var(--cfq-container-pad);
}

/* Section wrapper */
.cfq-section {
  padding-block: var(--cfq-section-v);
}

/* Section labels */
.cfq-label {
  font-size: var(--cfq-label-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

/* Context-scoped label colors */
.cfq-section--light .cfq-label,
.cfq-section--white .cfq-label {
  color: var(--cfq-accent-aa-light);
}
.cfq-section--dark .cfq-label,
.cfq-section--dark-alt .cfq-label,
.cfq-hero .cfq-label {
  color: var(--cfq-accent-aa-dark);
}

/* Section headings */
.cfq-section__heading {
  font-size: var(--cfq-h2);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cfq-section--dark .cfq-section__heading,
.cfq-section--dark-alt .cfq-section__heading {
  color: var(--cfq-fg-dark-primary);
}
.cfq-section--light .cfq-section__heading,
.cfq-section--white .cfq-section__heading {
  color: var(--cfq-fg-light-primary);
}

.cfq-section__subhead {
  font-size: var(--cfq-body-lg);
  line-height: 1.6;
  max-width: 640px;
}
.cfq-section--dark .cfq-section__subhead,
.cfq-section--dark-alt .cfq-section__subhead {
  color: var(--cfq-fg-dark-secondary);
}
.cfq-section--light .cfq-section__subhead,
.cfq-section--white .cfq-section__subhead {
  color: var(--cfq-fg-light-secondary);
}

/* Buttons */
.cfq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cfq-font-sans);
  font-size: var(--cfq-body);
  font-weight: 600;
  border-radius: var(--cfq-radius-btn);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.cfq-btn:hover { transform: translateY(-1px); }
.cfq-btn:active { transform: translateY(0); }

/* Primary: amber fill */
.cfq-btn--primary {
  background: var(--cfq-accent-decorative);
  color: var(--cfq-brand-primary);
  border-color: var(--cfq-accent-decorative);
}
.cfq-btn--primary:hover {
  background: #D97706;
  border-color: #D97706;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}

/* Outline-dark: on dark backgrounds */
.cfq-btn--outline-dark {
  background: transparent;
  color: var(--cfq-fg-dark-primary);
  border-color: rgba(255,255,255,0.35);
}
.cfq-btn--outline-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}

/* Outline-light: on light backgrounds */
.cfq-btn--outline-light {
  background: transparent;
  color: var(--cfq-fg-light-primary);
  border-color: var(--cfq-border-light);
}
.cfq-btn--outline-light:hover {
  background: var(--cfq-bg-light);
  border-color: var(--cfq-fg-light-secondary);
}

/* Ghost on dark */
.cfq-btn--ghost-dark {
  background: transparent;
  color: var(--cfq-fg-dark-secondary);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.cfq-btn--ghost-dark:hover {
  color: var(--cfq-fg-dark-primary);
}

/* Text amber */
.cfq-btn--text-amber {
  background: transparent;
  color: var(--cfq-accent-aa-light);
  border-color: transparent;
  padding-left: 0;
  font-weight: 600;
}
.cfq-btn--text-amber:hover {
  color: var(--cfq-accent-decorative);
  text-decoration: underline;
}
.cfq-section--dark .cfq-btn--text-amber {
  color: var(--cfq-accent-aa-dark);
}

/* Button group */
.cfq-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* Badge / pill */
.cfq-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--cfq-radius-badge);
}
.cfq-badge--amber {
  background: var(--cfq-accent-decorative);
  color: var(--cfq-brand-primary);
}
.cfq-badge--dark {
  background: var(--cfq-bg-dark-alt);
  color: var(--cfq-fg-dark-secondary);
}

/* Trust Bar */
.cfq-trust-bar {
  padding-block: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cfq-trust-bar .cfq-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cfq-trust-bar__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cfq-fg-dark-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  margin: 0;
}
.cfq-trust-bar__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.cfq-trust-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(240,244,248,0.75);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  padding: 0.45rem 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

/* Fade-in scroll reveal + failsafe animation */
@keyframes cfq-force-reveal {
  to { opacity: 1; transform: translateY(0); }
}
.cfq-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  /* Failsafe: after 1.5s always reveal regardless of IntersectionObserver */
  animation: cfq-force-reveal 0.3s ease 1.5s both;
}
.cfq-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
