/* ==========================================================================
   Intelligent Business Flow (IBF) - Design System & Stylesheet
   Corporate Safe, Modern AI Automation & Consultancy
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-navy: #092D40;         /* Deep navy teal - primary dark */
  --color-muted-teal: #347E89;   /* Muted teal - primary accent */
  --color-soft-sage: #66AE96;    /* Soft sage green - secondary highlight */
  --color-pale-sage: #D9DFD0;    /* Pale sage - subtle tints, borders, cards */
  --color-off-white: #F5F5F1;    /* Warm off-white - page background */
  
  /* Extended Functional Palette */
  --color-navy-dark: #061e2b;
  --color-navy-light: #11425c;
  --color-text-main: #092D40;
  --color-text-muted: #4a636f;
  --color-text-light: #6d8490;
  --color-surface-white: #ffffff;
  --color-surface-card: #ffffff;
  --color-surface-subtle: #edf1e9;
  --color-border-subtle: #d3dbca;
  --color-border-hover: #347E89;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(9, 45, 64, 0.05), 0 1px 2px rgba(9, 45, 64, 0.03);
  --shadow-md: 0 4px 12px rgba(9, 45, 64, 0.06), 0 2px 4px rgba(9, 45, 64, 0.03);
  --shadow-lg: 0 12px 28px rgba(9, 45, 64, 0.09), 0 4px 8px rgba(9, 45, 64, 0.04);
  --shadow-hover: 0 16px 36px rgba(9, 45, 64, 0.12), 0 6px 12px rgba(9, 45, 64, 0.05);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Layout Transitions */
  --transition-fast: 0.18s ease-in-out;
  --transition-base: 0.28s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-off-white);
  color: var(--color-text-main);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-muted-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-navy);
}

p {
  margin-bottom: 1.2rem;
  color: var(--color-text-muted);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Container & Layout Structure
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }
}

.section-subtle {
  background-color: var(--color-surface-subtle);
  border-top: 1px solid var(--color-pale-sage);
  border-bottom: 1px solid var(--color-pale-sage);
}

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

.section-navy h2, 
.section-navy h3, 
.section-navy h4 {
  color: #ffffff;
}

.section-navy p {
  color: #d1dde3;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(52, 126, 137, 0.12);
  color: var(--color-muted-teal);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-badge-light {
  background-color: rgba(102, 174, 150, 0.2);
  color: var(--color-soft-sage);
}

.section-badge-sage {
  background-color: rgba(102, 174, 150, 0.15);
  color: #276953;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 245, 241, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(9, 45, 64, 0.08);
  transition: all var(--transition-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-navy);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-muted-teal);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-muted-teal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-navy);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--color-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(9, 45, 64, 0.18);
}

.btn-primary:hover {
  background-color: var(--color-navy-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 45, 64, 0.25);
}

.btn-secondary {
  background-color: var(--color-muted-teal);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #27626c;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-soft-sage);
  color: var(--color-navy);
}

.btn-accent:hover {
  background-color: #559b84;
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(9, 45, 64, 0.22);
  color: var(--color-navy);
}

.btn-outline:hover {
  background-color: rgba(9, 45, 64, 0.05);
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 6rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-highlight {
  color: var(--color-muted-teal);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-pale-sage);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-soft-sage);
  flex-shrink: 0;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-pale-sage);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-surface-subtle);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-soft-sage);
  background: rgba(102, 174, 150, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.hero-pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  transition: transform var(--transition-fast);
}

.hero-pipeline-step:last-child {
  margin-bottom: 0;
  border: 1.5px solid var(--color-soft-sage);
  background: rgba(102, 174, 150, 0.08);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-muted-teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-num-active {
  background: var(--color-soft-sage);
  color: var(--color-navy);
}

.step-details h4 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.step-details p {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Reality Check / Problem Section
   -------------------------------------------------------------------------- */
.reality-banner {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-pale-sage);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.reality-box {
  padding: 1.8rem;
  border-radius: var(--radius-md);
}

.reality-box.problem {
  background: #fdf5f5;
  border: 1px solid #f2cfcf;
}

.reality-box.problem h3 {
  color: #9c2e2e;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.reality-box.solution {
  background: #f0f7f5;
  border: 1px solid var(--color-soft-sage);
}

.reality-box.solution h3 {
  color: #1f6853;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   Cards Grid & Service Cards
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-pale-sage);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-muted-teal);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(52, 126, 137, 0.1);
  color: var(--color-muted-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted-teal);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.card p {
  font-size: 0.96rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-muted-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link:hover {
  color: var(--color-navy);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Methodology / How We Work (5 Stages)
   -------------------------------------------------------------------------- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.8rem;
  background: var(--color-surface-white);
  border: 1px solid var(--color-pale-sage);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.process-item:hover {
  transform: translateX(6px);
  border-color: var(--color-muted-teal);
}

.process-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-pale-sage);
  height: 70px;
}

.process-badge .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
}

.process-badge .label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted-teal);
}

.process-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.process-content p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.process-highlight {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted-teal);
  background: rgba(52, 126, 137, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Admin Time & Cost Savings Calculator
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-pale-sage);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  max-width: 980px;
  margin: 0 auto;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-control {
  margin-bottom: 2rem;
}

.calc-control:last-child {
  margin-bottom: 0;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.calc-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.calc-value-display {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-muted-teal);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--color-pale-sage);
  outline: none;
  transition: opacity var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-muted-teal);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-navy);
}

.calc-results-box {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.calc-results-box h4 {
  color: var(--color-soft-sage);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.calc-stat {
  margin-bottom: 1.8rem;
}

.calc-stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.calc-stat-label {
  font-size: 0.88rem;
  color: #d1dde3;
}

.calc-note {
  font-size: 0.82rem;
  color: #a4bcc8;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Team / About Profiles
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.team-card {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-pale-sage);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  border: 2px solid var(--color-pale-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-muted-teal);
  margin-bottom: 1.2rem;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface-white);
  border: 1px solid var(--color-pale-sage);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-muted-teal);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.35rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-muted-teal);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  padding: 0 1.6rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.6rem 1.5rem 1.6rem;
}

.faq-answer p {
  margin-bottom: 0.8rem;
  font-size: 0.96rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-pale-sage);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: #c94a4a;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--color-pale-sage);
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  color: var(--color-navy);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-muted-teal);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(52, 126, 137, 0.12);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 0.4rem;
}

.form-feedback {
  display: none;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-feedback.success {
  display: block;
  background: #eaf6f1;
  border: 1px solid var(--color-soft-sage);
  color: #175e47;
}

.form-feedback.error {
  display: block;
  background: #fdf2f2;
  border: 1px solid #e09898;
  color: #922b2b;
}

/* --------------------------------------------------------------------------
   Articles & Blog Index / Cards
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--color-surface-white);
  border: 1px solid var(--color-pale-sage);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
}

.article-card {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-pale-sage);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-muted-teal);
}

.article-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 0.9rem;
}

.article-badge {
  background: rgba(52, 126, 137, 0.1);
  color: var(--color-muted-teal);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.article-card p {
  font-size: 0.94rem;
  flex-grow: 1;
}

.article-read-more {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-muted-teal);
}

.article-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.article-card:hover .article-read-more svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Single Article Detail Styling
   -------------------------------------------------------------------------- */
.article-header {
  padding: 4.5rem 0 2.5rem 0;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.article-header h1 {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  margin-bottom: 1.2rem;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1f3642;
}

.article-content p {
  color: #274352;
  margin-bottom: 1.8rem;
  font-size: 1.08rem;
}

.article-content h2 {
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  font-size: 1.65rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.8rem;
  padding-left: 1.8rem;
}

.article-content li {
  margin-bottom: 0.6rem;
  color: #274352;
}

.callout-box {
  background: var(--color-surface-subtle);
  border-left: 4px solid var(--color-muted-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.8rem;
  margin: 2.2rem 0;
}

.callout-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   CTA Banners
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--color-navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #c7d9e2;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.2rem auto;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #bacbce;
  padding: 4.5rem 0 2.5rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 42px;
  width: auto;
  margin-bottom: 1.2rem;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #9cb1b5;
  max-width: 340px;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #9cb1b5;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #799195;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .reality-banner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--color-off-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem 1.5rem;
    gap: 1.4rem;
    border-bottom: 2px solid var(--color-pale-sage);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-badge {
    width: 60px;
    height: 50px;
    flex-direction: row;
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
