/* =========================================================================
   SAC Express — page-specific styles (How it works, FAQ, About, Legal)
   Loaded after styles.css on inner pages.
   ========================================================================= */

/* ---- Logo color tint for white header (white-source SVG -> brand blue) ---- */
.logo--tint img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(28%) saturate(2300%)
          hue-rotate(186deg) brightness(92%) contrast(92%);
}

/* ============== Page hero (banner with bg-image + centered text) ============== */
.page-hero {
  position: relative;
  min-height: 456px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #555;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 60px 24px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 50, 0.35); /* darken overlay */
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.page-hero-title {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.05;
}
.page-hero-subtitle {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
}

/* hero variant for FAQ (illustration on solid bg, no overlay) */
.page-hero--illustration::before { background: rgba(0,0,0,0); }

/* ============================== Steps timeline ============================ */
.steps-section { padding: 80px var(--gutter) 100px; background: #fff; }
.steps-inner {
  max-width: 920px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  position: relative;
  padding-bottom: 64px;
}
.step:last-child { padding-bottom: 0; }
.step-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}
.step-badge svg {
  width: 36px;
  height: 36px;
  color: #fff;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step:not(:last-child) .step-marker::after {
  content: '';
  position: absolute;
  top: 80px;
  bottom: -64px;
  width: 2px;
  background: #d6dde6;
  z-index: 1;
}
.step:not(:last-child) .step-marker::before {
  content: '';
  position: absolute;
  top: calc(100% + 32px);
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d6dde6;
  z-index: 2;
}
.step-body {
  padding-top: 8px;
}
.step-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}
.step-body p {
  font-family: var(--font-body);
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.55;
}
.step-body a { color: var(--color-brand); font-weight: 600; }

/* ============================== FAQ accordion ============================ */
.faq-section { padding: 80px var(--gutter) 100px; background: #fff; }
.faq-inner { max-width: 920px; margin: 0 auto; }
.faq-heading {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 32px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid #e2e6ea;
  padding: 0;
  margin: 0;
}
.faq-item:last-child { border-bottom: 1px solid #e2e6ea; }
.faq-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  margin-left: 16px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text);
  top: 50%; left: 0;
  width: 100%;
  height: 2px;
  transition: transform 0.2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }

.faq-answer {
  padding: 0 0 24px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: #555;
  max-width: 92%;
}
.faq-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.faq-foot-text {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ============================== About page sections ====================== */
.about-intro { padding: 80px var(--gutter); background: #fff; }
.about-intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-intro-title {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  margin: 0 0 32px;
  max-width: 720px;
}
.about-intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-intro-cols p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.about-getstarted {
  padding: 60px var(--gutter) 100px;
  background: #fff;
}
.about-getstarted-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-getstarted-image img {
  width: 100%;
  border-radius: 4px;
}
.about-getstarted-title {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 24px;
}
.about-getstarted-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.about-closing {
  background: var(--color-navy);
  color: #fff;
  padding: 80px var(--gutter);
}
.about-closing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-closing-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  line-height: 1.5;
  max-width: 540px;
}
.about-closing-illustration {
  display: flex;
  justify-content: center;
}
.about-closing-illustration svg,
.about-closing-illustration img {
  max-width: 100%;
  height: auto;
}

/* ============================== Legal page =============================== */
.site-header--dark {
  background: var(--color-navy);
  border-bottom: 0;
}
.site-header--dark .primary-nav a { color: #fff; }
.site-header--dark .primary-nav a:hover { color: #cbd5e1; }
.site-header--dark .btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.site-header--dark .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
/* The white-source SVG renders correctly white on the dark header (no tint) */
.site-header--dark .logo--tint img { filter: none; }

.legal-banner {
  background: var(--color-navy);
  color: #fff;
  padding: 80px var(--gutter) 100px;
  text-align: center;
}
.legal-banner-title {
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.legal-section {
  padding: 60px var(--gutter) 100px;
  background: #fff;
}
.legal-inner {
  max-width: 880px;
  margin: 0 auto;
}
.legal-meta {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 32px;
}
.legal-content {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.legal-content h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 32px 0 12px;
}
.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 8px;
}
.legal-content p { margin: 0 0 16px; }
.legal-content ul { padding-left: 24px; margin: 0 0 16px; }
.legal-content ul li { margin: 6px 0; }
.legal-content strong { font-weight: 700; color: var(--color-text); }
.legal-content a { color: var(--color-brand); text-decoration: underline; }

/* ============================== Responsive =============================== */
@media (max-width: 900px) {
  .page-hero-title, .legal-banner-title { font-size: 44px; }
  .about-intro-title, .about-getstarted-title { font-size: 32px; }
  .about-intro-cols, .about-getstarted-inner, .about-closing-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step { grid-template-columns: 64px 1fr; gap: 20px; }
  .step-badge { width: 64px; height: 64px; }
  .step-badge svg { width: 28px; height: 28px; }
  .step:not(:last-child) .step-marker::after { top: 64px; }
  .faq-summary { font-size: 16px; }
}
