/**
 * SAES TECH — corporate.css
 * Overlay stylesheet that retones the brutalist base toward a clean,
 * enterprise-consulting aesthetic. Loaded AFTER style.css.
 *
 * Reversible: remove the <link> tag in index.html (and playbook pages,
 * if extended later) to restore the brutalist look.
 *
 * Design direction:
 *   - White / off-white surfaces, slate ink
 *   - Single deep-blue accent (trust + restraint)
 *   - Sans-serif throughout (no mono headlines)
 *   - Soft radii, subtle shadows
 *   - Generous whitespace; no hairline section dividers
 *   - No ASCII chrome (no [ ], no ▸, no _ cursor, no [01])
 */

/* =========================================================================
   Tokens — override the brutalist palette and add corporate primitives
   ========================================================================= */
:root {
  /* Surfaces */
  --paper: #ffffff;
  --paper-shade: #f8fafc;        /* slate-50 */
  --surface-alt: #f1f5f9;        /* slate-100 */
  --ink: #0f172a;                /* slate-900 */
  --ink-soft: #475569;           /* slate-600 — AA on white */
  --ink-faint: #64748b;          /* slate-500 */
  --rule: rgba(15, 23, 42, 0.08);
  --rule-strong: rgba(15, 23, 42, 0.16);

  /* Accent: deep, trustworthy blue. Single accent, used with restraint. */
  --accent: #1e40af;             /* blue-800 */
  --accent-deep: #1e3a8a;        /* blue-900 */
  --accent-soft: #eff6ff;        /* blue-50 */
  --accent-tint: #dbeafe;        /* blue-100 */

  /* Signal stays red, but softer */
  --signal: #b91c1c;
  --signal-soft: #fef2f2;

  /* Type: sans for everything; mono retained as utility only */
  --font-display: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radii — corporate softness */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-input: 8px;

  /* Shadows — subtle, layered */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* =========================================================================
   Base — body surface and link treatment
   ========================================================================= */
body {
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: normal;
}

a { text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

/* Selection highlight in the new accent */
::selection { background: var(--accent-tint); color: var(--ink); }

/* Headings: sans, tighter weight scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* =========================================================================
   Section primitives — hairline divider PLUS alternating bg (reviewer ask)
   ========================================================================= */
section {
  border-top: 1px solid var(--rule);
}
section:first-of-type { border-top: none; }

/* Alternate section backgrounds for soft rhythm */
#why, #wizard, #how { background: var(--paper-shade); }
#services, #capabilities, #contact, #hero { background: var(--paper); }

/* Let titles span the full container; the subtitle keeps its own 640px cap.
   Per-section selectors below match the specificity of the brutalist base
   (.why-saes .section-header etc.) so this override actually wins. */
.section-header,
.why-saes .section-header,
.services .section-header,
.how-we-work .section-header,
.contact .section-header { max-width: none; }

.section-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.section-eyebrow::before,
.section-eyebrow::after { content: none !important; }

.section-title {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 600;
}

.section-subtitle {
  font-family: var(--font-display);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: none;
}

.rule { border-top-color: var(--rule); }

/* =========================================================================
   Buttons — solid pill, soft shadow, no ASCII prefix
   ========================================================================= */
.btn-primary-grad {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn-primary-grad::before { content: none !important; }
.btn-primary-grad:hover {
  background: var(--accent-deep);
  color: #ffffff;
  border-color: var(--accent-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary-grad:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}
.btn-primary-grad:focus-visible {
  outline: 3px solid var(--accent-tint);
  outline-offset: 2px;
}

.btn-link {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  text-decoration-color: var(--accent-tint);
}
.btn-link:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}
.btn-link:focus-visible {
  outline: 3px solid var(--accent-tint);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =========================================================================
   Header / nav — clean white bar, soft shadow on scroll
   ========================================================================= */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  padding: 14px 0;
}
.header.header-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-sm);
}

.logo img { filter: none; }
.logo::after { content: none !important; }

.navbar a,
.navbar a:focus {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.navbar a:hover,
.navbar a.active { color: var(--accent); }
.navbar a.active::after { content: none !important; }

.lang-toggle {
  font-family: var(--font-display);
  font-weight: 500;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--ink-soft);
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Nav "Contact" CTA uses class .getstarted, not .btn-primary-grad — needs its own override */
.navbar a.getstarted,
.navbar a.getstarted:focus {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.navbar a.getstarted:hover {
  background: var(--accent-deep);
  color: #ffffff;
  border-color: var(--accent-deep);
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   Hero — sans display, accent underline (not fill), no cursor blink
   ========================================================================= */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-shade) 100%);
}

.hero-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.hero-eyebrow::before,
.hero-eyebrow::after { content: none !important; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}
.hero-title::after { content: none !important; }

/* Accent token: subtle underline instead of solid highlight block */
.hero-title-accent {
  background: none;
  color: var(--accent);
  padding: 0;
  margin: 0;
  position: relative;
  white-space: nowrap;
}

.hero-subtitle {
  font-family: var(--font-display);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Intent prompt block — soften from terminal to card */
.hero-intent {
  margin-top: 56px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-intent-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-intent-question {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-intent-question::before,
.hero-intent-question::after { content: none !important; }

.hero-intent-hint {
  font-family: var(--font-display);
  color: var(--ink-faint);
}

.hero-intent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  border-top: none;
  margin-top: 8px;
}

.hero-intent-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.hero-intent-card::before { content: none !important; }
.hero-intent-card:hover,
.hero-intent-cards .hero-intent-card + .hero-intent-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--paper);
}
/* Each card is fully bordered + rounded now; the adjacent-sibling
   shared-edge treatment from the brutalist base no longer applies. */
.hero-intent-cards .hero-intent-card + .hero-intent-card {
  border-left-color: var(--rule);
}
.hero-intent-cards .hero-intent-card + .hero-intent-card:hover {
  border-left-color: var(--accent);
}
@media (max-width: 991px) {
  .hero-intent-card:hover,
  .hero-intent-card:active {
    transform: none;
    box-shadow: var(--shadow-sm);
    background: var(--paper);
    border-color: var(--accent);
  }
}

.hero-intent-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-intent-desc {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  color: var(--ink-soft);
}

.hero-intent-cta {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
.hero-intent-cta .bi { color: var(--accent); }

.hero-secondary-cta {
  font-family: var(--font-display);
  color: var(--ink-soft);
}
.hero-secondary-cta::before { content: none !important; }
.hero-secondary-cta .link-accent {
  color: var(--accent);
  text-decoration-color: var(--accent-tint);
}
.hero-secondary-cta .link-accent:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

/* =========================================================================
   Cards — glass-card -> soft elevated card
   ========================================================================= */
.glass-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.glass-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   Services — clean cards on white
   ========================================================================= */
.service-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.service-card:hover {
  border-color: var(--accent-tint);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.service-desc {
  font-family: var(--font-display);
  color: var(--ink-soft);
}

/* =========================================================================
   Stats — horizontal 4-up row of compact cards
   ========================================================================= */
.stats-row {
  margin-top: 40px;
  padding: 0;
  border-top: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .stats-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Undo the brutalist base that forced each Bootstrap col to 100% width */
.stats-row > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
}

.stat-card {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 24px !important;
  grid-template-columns: none !important;
  border: 1px solid var(--rule) !important;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.stat-card:hover {
  border-color: var(--accent-tint) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.1;
  margin: 0;
}
.stat-label {
  font-family: var(--font-display);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* =========================================================================
   Wizard — drop mono, soften option cards
   ========================================================================= */
.wizard-mount {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.wizard-progress-text {
  font-family: var(--font-display);
  color: var(--ink-soft);
  font-weight: 500;
}
.wizard-progress-dot {
  background: var(--rule-strong);
  border-radius: 999px;
}
.wizard-progress-dot.active {
  background: var(--accent);
}

.wizard-legend {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wizard-option {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.wizard-option::before { content: none !important; }
.wizard-option:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  background: var(--paper);
}
.wizard-option.selected,
.wizard-option[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.wizard-option-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.wizard-option-desc {
  font-family: var(--font-display);
  color: var(--ink-soft);
}

.wizard-result-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.wizard-result-desc { font-family: var(--font-display); color: var(--ink-soft); }
.wizard-result-includes-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* =========================================================================
   How it works — numbered steps as soft chips
   ========================================================================= */
.how-step {
  padding: 28px !important;
}

.how-step-number {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  border: none;
}
.how-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.how-step-desc { font-family: var(--font-display); color: var(--ink-soft); }

/* =========================================================================
   Contact — soft card, rounded inputs
   ========================================================================= */
.info-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.php-email-form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.form-control {
  font-family: var(--font-display);
  border-radius: var(--radius-input);
  border-color: var(--rule-strong);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  outline: none;
}

/* =========================================================================
   Footer — corporate dark slate
   ========================================================================= */
.footer {
  background: var(--ink);
  color: #f1f5f9;            /* slate-100 — bright on slate-900, ~14:1 */
  border-top: none;
  padding-top: 64px;
  padding-bottom: 40px;
}

/* High-specificity overrides so base .footer-info p / .copyright lose */
.footer,
.footer *,
.footer p,
.footer .footer-info p,
.footer .copyright,
.footer .copyright span,
.footer a {
  color: #f1f5f9;
}
.footer a { text-decoration: none; }
.footer a:hover { color: #ffffff; }

/* Tagline gets a slightly softer but still very readable tone */
.footer .footer-info p {
  color: #cbd5e1;            /* slate-300 — ~9:1 on slate-900 */
}

/* Logo PNG has hardcoded dark colors; invert it to white on the dark footer.
   brightness(0) flattens any color to black, then invert(1) turns it pure white. */
/* Muted gray treatment on the dark footer: invert the original dark logo
   so it becomes light, then grayscale to drop the green, then bring it
   down to a soft slate rather than pure white. */
.footer .logo img {
  filter: grayscale(1) invert(1) brightness(0.78);
}

.footer .logo,
.footer .logo:hover { color: inherit; }

.footer .social-links a {
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f1f5f9;
}
.footer .social-links a:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
}
.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 20px;
  color: #cbd5e1;            /* slate-300 — readable secondary */
  font-family: var(--font-display);
}

/* =========================================================================
   Back to top — circular, accent
   ========================================================================= */
.back-to-top {
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  border: none;
  box-shadow: var(--shadow-md);
}
.back-to-top:hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-lg);
}

/* =========================================================================
   Misc — strip ASCII chrome from labels
   ========================================================================= */
.label-bracket::before,
.label-bracket::after { content: none !important; }

.label-mono {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Disable cursor blink globally — corporate restraint */
@keyframes cursor-blink { from, to { opacity: 1; } }

/* =========================================================================
   Playbook (blog) — bring page-internal typography in line with corporate
   ========================================================================= */
.playbook-title,
.playbook h2,
.playbook h3,
.playbook h4,
.playbook-row-title,
.playbook-row-meta,
.playbook-row-readtime,
.playbooks-index-header .section-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Listing meta + read-time are short tabular metadata: keep them all-caps with
   a slight wide tracking, but in the sans corporate face. */
.playbook-row-meta,
.playbook-row-readtime {
  letter-spacing: 0.06em;
  font-weight: 500;
}

.playbook-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* `.playbook a` (specificity 0,1,1) is currently winning over `.btn-primary-grad`
   (0,1,0) for the playbook CTA button — making the text dark on blue. Match
   specificity and reassert the white-on-accent treatment. */
.playbook a.btn-primary-grad,
.playbook a.btn-primary-grad:hover,
.playbook a.btn-primary-grad:focus {
  color: #ffffff;
  text-decoration: none;
}

/* Bracket markers on the playbook eyebrow (e.g. `[ PLAYBOOK · DATE ]`) come from
   the i18n string itself, not CSS. Leave them — they read as metadata, not
   ASCII chrome. */

/* =========================================================================
   Playbooks listing — "Show more" pagination button
   ========================================================================= */
.playbooks-list .is-hidden { display: none; }

.playbooks-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.playbooks-load-more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.playbooks-load-more:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.playbooks-load-more:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}
.playbooks-load-more:focus-visible {
  outline: 3px solid var(--accent-tint);
  outline-offset: 3px;
}
.playbooks-load-more:disabled {
  background: var(--paper-shade);
  color: var(--ink-faint);
  border-color: var(--rule-strong);
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* =========================================================================
   Hybrid (reviewer feedback): keep the corporate layout/colors/icons,
   but bring back IBM Plex Mono for HEADINGS and TABULAR METADATA.
   Body text, button labels, form fields, and descriptions stay sans
   so paragraphs and CTAs remain modern + scannable.
   ========================================================================= */
.hero-title,
.hero-eyebrow,
.hero-intent-eyebrow,
.hero-intent-question,
.hero-intent-title,
.section-title,
.section-eyebrow,
.wizard-legend,
.wizard-progress-text,
.wizard-option-title,
.wizard-result-title,
.wizard-result-includes-label,
.stat-value,
.how-step-number,
.how-step-title,
.service-title,
.playbook-title,
.playbook h2,
.playbook h3,
.playbook h4,
.playbook-eyebrow,
.playbook-row-title,
.playbook-row-meta,
.playbook-row-readtime,
.playbooks-index-header .section-title,
.copyright,
.footer .copyright {
  font-family: var(--font-mono);
}

/* Mono at large display sizes wants slightly tighter tracking so headlines
   do not feel typewriter-loose at clamp(44px,8vw,96px). */
.hero-title,
.section-title,
.playbook-title {
  letter-spacing: -0.04em;
}

/* Section dividers — slightly bolder than the default token so they read as
   the boundary between two adjacent colored bands (reviewer ask). */
section { border-top-color: var(--rule-strong); }
