/* ============================================
   BENEFIT SUPPORT WEBSITE - PROFESSIONAL STYLES
   Improved Version - More White Space, Better Typography
   ============================================ */

/* ============================================
   CSS VARIABLES (Improved Color Palette)
   ============================================ */
:root {
  /* ---- Colors ----
     Every color on the site comes from these variables. Change a value here
     and it changes everywhere (style.css, chat.html, inline styles, script.js). */

  /* BSI brand palette (sampled from the logo) */
  --color-primary: #147e40; /* buttons, links, icons, user chat bubble (5.1:1 on white) */
  --color-deep: #0e6e34; /* header/nav background, hover states */
  --color-darkest: #0e4d2a; /* hero headline */
  --color-accent: #00a030; /* icons, borders, large shapes only - never text (3.5:1) */
  --color-lime: #98c178; /* active-page underline on the deep green header */
  --color-tint-1: #c4dfb2; /* strongest tint: borders */
  --color-tint-2: #e3efd9;
  --color-tint-3: #eef6e8;
  --color-tint-4: #f7faf5; /* palest: page backgrounds */

  /* Brand roles (point at the palette above) */
  --color-primary-dark: var(--color-deep);
  --color-primary-light: var(--color-primary);
  --color-band: var(--color-primary); /* colored section bands, Ask AI buttons, chat.html */
  --color-band-light: var(--color-primary);
  --color-band-dark: var(--color-deep);
  --color-band-mid: var(--color-deep);

  /* Neutrals */
  --color-white: #ffffff;
  --color-bg-subtle: #fafbfc;
  --color-bg-light: #f8f9fa;
  --color-bg-muted: #f5f7fa;
  --color-bg-gray: #e9ecef;
  --color-border: #e5e9ed;
  --color-border-alt: #e0e0e0;
  --color-border-strong: #dee2e6;
  --color-gray: #6c757d; /* typing dots, disabled Send background */
  --color-gray-light: #999999;
  --color-footer-bg: var(--color-deep);
  --color-footer-text: var(--color-tint-3);

  /* Text */
  --color-text: #1a202c; /* headings, strong */
  --color-text-body: #374151; /* body paragraphs, list items, card copy (10:1 on white) */
  --color-text-muted: #4b5563; /* taglines and small notes (7.6:1 on white) */
  --color-text-dark: #2d3748;
  --color-text-chat: #1f2937; /* chat bubble text */
  --color-text-slate: #2c3e50;
  --color-text-slate-light: #34495e;
  --color-text-strong: #1a1a1a;
  --color-text-note: #666666; /* chat privacy line */

  /* Chat */
  --color-chat-bot-bg: var(--color-tint-3);
  --color-chat-bot-border: var(--color-tint-1);

  /* Status: success uses the brand green, so there's only one green */
  --color-success: var(--color-primary);
  --color-success-dark: var(--color-deep);
  --color-success-text: var(--color-deep);
  --color-success-bg: var(--color-tint-3);
  --color-success-bg-strong: var(--color-tint-2);
  --color-success-form-text: var(--color-darkest);
  --color-success-form-bg: var(--color-tint-3);
  --color-success-form-border: var(--color-tint-1);

  /* Status: danger */
  --color-danger: #ef5350;
  --color-danger-dark: #e53935;
  --color-danger-text: #b71c1c;
  --color-danger-bg: #ffebee;
  --color-danger-bg-strong: #ffcdd2;
  --color-danger-form-text: #721c24;
  --color-danger-form-bg: #f8d7da;
  --color-danger-form-border: #f5c6cb;

  /* Spacing - MORE white space */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography - Better hierarchy */
  --font-main:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-heading:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Borders - More rounded */
  --border-radius: 12px;
  --border-radius-lg: 16px;

  /* Shadows - Softer */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   TYPOGRAPHY - IMPROVED HIERARCHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.35rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-body);
  font-size: 1.05rem;
}

ul,
ol {
  margin-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

li {
  margin-bottom: 0.5rem;
  color: var(--color-text-body);
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================
   CONTAINER & LAYOUT - MORE BREATHING ROOM
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background-color: var(--color-deep);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: var(--color-white);
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-white);
  font-weight: 700;
}

.logo .tagline {
  font-size: 0.75rem;
  color: var(--color-tint-2);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
}

.nav-links a {
  color: var(--color-white);
  font-weight: 500;
  padding: var(--spacing-xs) 0.25rem;
  transition: box-shadow var(--transition-fast);
}

/* Lime underline on the current page; a fainter one on hover */
.nav-links a:hover {
  color: var(--color-white);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--color-lime) 50%, transparent);
}

.nav-links a.active {
  color: var(--color-white);
  box-shadow: inset 0 -3px 0 var(--color-lime);
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================
   Portal button (nav CTA)
   ============================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-portal {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

.nav-portal:hover,
.nav-portal:focus {
  background-color: var(--color-tint-3);
  color: var(--color-deep);
}

/* ============================================
   BUTTONS - MORE PROFESSIONAL
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
}

.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   HERO SECTION - light, centered text, big logo arcs in two corners.
   --arc-r is the arcs' radius: how far they reach into the hero from
   each corner. Text never sits on an arc: on wide screens the text column
   is narrow enough to clear them sideways; below 1200px the arcs shrink
   and the padding grows past them.
   ============================================ */
.hero {
  --arc-r: 240px;
  color: var(--color-text);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

/* One centered column for now. To add a right-hand panel later, put a
   <div class="hero-panel"> after .hero-content and add .hero-layout--split
   to this div (then recheck the arc clearance). */
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: var(--spacing-lg);
  align-items: center;
  text-align: center;
}

.hero-layout--split {
  grid-template-columns: 1.1fr 1fr;
  text-align: left;
}

.hero-content h1 {
  color: var(--color-darkest);
  font-size: 3.25rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  color: var(--color-text-body);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-layout--split .hero-buttons {
  justify-content: flex-start;
}

/* Concentric arcs, centered on the top-right and bottom-left corners */
.hero-arcs {
  position: absolute;
  width: calc(var(--arc-r) * 2);
  height: calc(var(--arc-r) * 2);
  pointer-events: none;
  z-index: 0;
}

.hero-arcs--tr {
  top: calc(var(--arc-r) * -1);
  right: calc(var(--arc-r) * -1);
}

.hero-arcs--bl {
  bottom: calc(var(--arc-r) * -1);
  left: calc(var(--arc-r) * -1);
}

.hero-arcs span {
  position: absolute;
  border-radius: 50%;
  border: calc(var(--arc-r) * 0.09) solid transparent;
  transform: rotate(10deg);
}

.hero-arcs span:nth-child(1) {
  inset: 0;
  --arc-color: var(--color-tint-2);
}

.hero-arcs span:nth-child(2) {
  inset: calc(var(--arc-r) * 0.2);
  --arc-color: var(--color-tint-1);
}

.hero-arcs span:nth-child(3) {
  inset: calc(var(--arc-r) * 0.4);
  --arc-color: var(--color-lime);
}

.hero-arcs span:nth-child(4) {
  inset: calc(var(--arc-r) * 0.6);
  --arc-color: var(--color-accent);
}

.hero-arcs--tr span {
  border-left-color: var(--arc-color);
  border-bottom-color: var(--arc-color);
}

.hero-arcs--bl span {
  border-right-color: var(--arc-color);
  border-top-color: var(--arc-color);
}

/* !important: the phone rule "section { padding: 2rem 0 !important }"
   would otherwise put the text on the arcs */
@media (max-width: 1200px) {
  .hero {
    --arc-r: 110px;
    padding: calc(var(--arc-r) + 2rem) 0 !important;
  }
}

@media (max-width: 900px) {
  .hero-layout--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    --arc-r: 72px;
  }
}

@media (max-width: 480px) {
  .hero {
    --arc-r: 56px;
  }
}

/* ============================================
   PAGE HEADER - same light treatment as the hero
   ============================================ */
.page-header {
  color: var(--color-text);
  padding: var(--spacing-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--color-darkest);
  margin-bottom: var(--spacing-sm);
  font-size: 3rem;
}

.page-header p {
  font-size: 1.25rem;
  margin: 0;
  color: var(--color-text-body);
}

/* ============================================
   SWOOSH ARCS - decorative, echo the logo's arcs.
   Sit off the top-right corner, behind the content.
   ============================================ */
.swoosh {
  position: absolute;
  top: -170px;
  right: -170px;
  width: 340px;
  height: 340px;
  pointer-events: none;
  z-index: 0;
}

.swoosh span {
  position: absolute;
  border-radius: 50%;
  border: 16px solid transparent;
  transform: rotate(10deg);
}

.swoosh span:nth-child(1) {
  inset: 0;
  border-left-color: var(--color-tint-1);
  border-bottom-color: var(--color-tint-1);
}

.swoosh span:nth-child(2) {
  inset: 34px;
  border-left-color: var(--color-lime);
  border-bottom-color: var(--color-lime);
}

.swoosh span:nth-child(3) {
  inset: 68px;
  border-left-color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  opacity: 0.6;
}

/* ============================================
   CARDS & GRIDS - LESS BOXY, MORE SPACE
   ============================================ */
.cards-grid,
.services-grid,
.audience-grid,
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.card,
.service-card,
.audience-card,
.advantage-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
}

.card:hover,
.service-card:hover,
.audience-card:hover,
.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* PROFESSIONAL CIRCULAR ICONS - Use sparingly */
.card .icon,
.advantage-card .advantage-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.card h3,
.service-card h3,
.audience-card h3,
.advantage-card h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.card p,
.service-card p,
.audience-card p,
.advantage-card p {
  color: var(--color-text-body);
  line-height: 1.7;
}

/* ============================================
   VALUE PROPS SECTION
   ============================================ */
.value-props {
  background-color: var(--color-bg-subtle);
}

.value-props h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   SERVICES SECTIONS
   ============================================ */


.services-preview h2,
.services-preview .section-intro {
  text-align: center;
}

.section-intro {
  font-size: 1.2rem;
  color: var(--color-text-body);
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.7;
}

.cta-center {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* ============================================
   WHO WE SERVE
   ============================================ */
.who-we-serve {
  background-color: var(--color-bg-subtle);
}

.who-we-serve h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.link-arrow {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-block;
  margin-top: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.link-arrow:hover {
  transform: translateX(4px);
  color: var(--color-primary-dark);
}

/* ============================================
   CHATBOT FEATURE SECTION
   ============================================ */
.chatbot-feature {
  background: linear-gradient(135deg, var(--color-tint-3), var(--color-white));
  padding: var(--spacing-xl) 0;
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.feature-text h2 {
  margin-bottom: var(--spacing-md);
}

.feature-text p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.chatbot-demo {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.chat-bubble {
  background: var(--color-border);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
}

.chat-bubble.bot {
  background: var(--color-primary);
  color: var(--color-white);
}

.chat-bubble p {
  margin: 0;
  color: inherit;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta-section h2 {
  margin-bottom: var(--spacing-sm);
  font-size: 2.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.footer-section p {
  color: var(--color-footer-text);
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
  color: var(--color-footer-text);
}

.footer-section a {
  color: var(--color-footer-text);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-white);
}

.footer-tagline {
  font-style: italic;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-footer-text);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: var(--spacing-xl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
}

.content-main h2 {
  margin-bottom: var(--spacing-md);
}

.content-main p {
  margin-bottom: var(--spacing-md);
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.stat-box {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.95;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-section {
  background: var(--color-bg-subtle);
  padding: var(--spacing-xl) 0;
}

.philosophy-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.philosophy-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-lg);
}

.philosophy-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.philosophy-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.philosophy-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   APPROACH SECTION
   ============================================ */
.approach-section {
  padding: var(--spacing-xl) 0;
}

.approach-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.approach-item {
  padding: var(--spacing-md);
}

.approach-item h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose-section {
  background: var(--color-bg-subtle);
  padding: var(--spacing-xl) 0;
}

.why-choose-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.why-item {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.why-item h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   SERVICE DETAIL PAGES
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-md);
  align-items: start;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-icon-large {
  font-size: 3rem;
}

.service-detail h3 {
  margin-top: 0;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section {
  background: var(--color-bg-subtle);
  padding: var(--spacing-xl) 0;
}

.advantages-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   COMPARISON GRID
   ============================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.comparison-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.comparison-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.comparison-card ul {
  list-style: none;
  margin: 0;
}

.comparison-card li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.comparison-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================
   STOP-LOSS SECTION
   ============================================ */
.stop-loss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.stop-loss-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stop-loss-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   CONSIDER SECTION
   ============================================ */
.consider-section {
  background: var(--color-bg-muted);
  padding: var(--spacing-xl) 0;
}

.consider-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.consider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.consider-item {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-primary);
}

.consider-item h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
  padding: var(--spacing-xl) 0;
}

.process-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-sm);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.process-step h3 {
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   CONTACT SECTIONS
   ============================================ */
.contact-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-white) 100%);
}

.contact-layout {
  display: grid;
  /* minmax(0, ...): a long email address can't widen its column */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--spacing-xl);
}

/* Two columns get cramped below 1000px (the email addresses wrap
   onto 3+ lines): stack them */
@media (max-width: 999px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-side {
  position: relative;
}

/* No image - back to original */
.contact-info-side h2 {
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  font-size: 2.5rem;
}

.contact-methods {
  margin: var(--spacing-lg) 0;
}

/* Contact method cards - text on left, symbol on right */
.contact-method {
  display: block;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  min-height: 140px;
}

.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Large background symbols on the right side */
.contact-method:nth-child(1)::before {
  content: "☎";
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 140px;
  color: var(--color-primary);
  opacity: 0.7;
  z-index: 0;
}

.contact-method:nth-child(2)::before {
  content: "✉";
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 140px;
  color: var(--color-primary);
  opacity: 0.7;
  z-index: 0;
}

.contact-method:nth-child(3)::before {
  content: "🏢";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 140px;
  color: var(--color-primary);
  opacity: 0.7;
  z-index: 0;
}

/* Hide the small left icons */

/* Content stays on left half */
.method-content {
  position: relative;
  z-index: 1;
}

.method-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  color: var(--color-text);
}

.method-content p {
  margin-bottom: 0.25rem;
}

.method-content a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.method-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-side h2 {
  margin-bottom: var(--spacing-sm);
}

.contact-form {
  margin-top: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background-color: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-sm);
}

.form-message {
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-sm);
}

.form-message.success {
  background: var(--color-success-form-bg);
  color: var(--color-success-form-text);
  border: 1px solid var(--color-success-form-border);
}

.form-message.error {
  background: var(--color-danger-form-bg);
  color: var(--color-danger-form-text);
  border: 1px solid var(--color-danger-form-border);
}

/* ============================================
   QUICK CONTACT
   ============================================ */
.quick-contact {
  padding: var(--spacing-xl) 0;
}

.quick-contact h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-darkest);
}

.quick-cards {
  display: grid;
  gap: var(--spacing-lg);
}

.quick-card {
  background: var(--color-white);
  padding: 2rem var(--spacing-md) var(--spacing-md);
  border-radius: var(--border-radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-white);
}

.quick-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

/* ============================================
   OFFICE HOURS
   ============================================ */
.office-hours {
  padding: var(--spacing-lg) 0;
  background: var(--color-white);
}

.office-hours h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto var(--spacing-md);
}

.hours-item {
  text-align: center;
  padding: var(--spacing-sm);
}

.hours-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.hours-note {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ============================================
   CHATBOT TOGGLE BUTTON
   ============================================ */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 40%, transparent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  z-index: 999;
  transition: all var(--transition-normal);
}

.chatbot-toggle:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-primary) 50%, transparent);
}

.chatbot-icon {
  font-size: 1.5rem;
}

/* ============================================
   CHATBOT WIDGET - FULL INTERFACE
   ============================================ */
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 420px;
  max-width: calc(100vw - 40px);
  height: 600px;
  /* Always fits on short laptop screens: viewport minus the site header
     (84px), the 100px bottom offset and a 16px margin. dvh where supported. */
  max-height: calc(100vh - 84px - 100px - 16px);
  max-height: calc(100dvh - 84px - 100px - 16px);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1001; /* above the sticky site header (1000) */
  overflow: hidden;
}

/* Only the message list shrinks and scrolls; header and input stay whole */
.chatbot-header,
.chatbot-input-container,
.chat-privacy-note {
  flex-shrink: 0;
}

.chatbot-messages {
  min-height: 0;
}

.chatbot-container.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-header {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-white);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  font-size: 2rem;
}

.chatbot-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-white);
}

.chatbot-title p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-white);
}

.chatbot-actions {
  display: flex;
  gap: 0.5rem;
}

.chatbot-action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--color-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.chatbot-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--color-bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot-message {
  display: flex;
  animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  line-height: 1.6;
}

.chatbot-message.bot .message-content {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chatbot-message.user .message-content {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.message-content p {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul,
.message-content ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.message-content li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* Typing Indicator */
.typing-indicator .message-content {
  display: flex;
  gap: 4px;
  padding: 1rem 1.25rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gray);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}

.chatbot-input-container {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

/* Sits above the input, so it takes the input row's top border */
.chat-privacy-note {
  margin: 0;
  padding: 0.75rem 1.25rem 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-note);
  font-size: 0.75rem;
  text-align: center;
}

.chat-privacy-note + .chatbot-input-container,
.chat-privacy-note + .chat-input-area {
  border-top: none;
}

#chatbot-input {
  flex: 1;
  padding: 0.875rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

#chatbot-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

#chatbot-send {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
}

#chatbot-send:hover {
  background: var(--color-primary-dark);
}

#chatbot-send:disabled {
  background: var(--color-gray);
  cursor: not-allowed;
}

/* ============================================
   INTRO TEXT
   ============================================ */
.intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  text-align: center;
  color: var(--color-text-body);
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-deep);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .cards-grid,
  .services-grid,
  .audience-grid,
  .advantages-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid,
  .stop-loss-grid,
  .consider-grid,
  .philosophy-content {
    grid-template-columns: 1fr;
  }

  .feature-content,
  .content-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  .chatbot-toggle {
    bottom: 20px;
    right: 20px;
    padding: 0.875rem 1.25rem;
  }

  .chatbot-text {
    display: none;
  }

  .chatbot-container {
    bottom: 80px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 70vh;
    max-height: 550px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  h1 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .btn {
    width: 100%;
    padding: 1rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--spacing-sm);
}
.mt-2 {
  margin-top: var(--spacing-md);
}
.mt-3 {
  margin-top: var(--spacing-lg);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.hidden {
  display: none;
}

/* ============================================
   TEXT PIZZAZZ - VISIBLE EMPHASIS
   ============================================ */

/* Highlight key phrases with VISIBLE background */
.highlight {
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--color-primary) 15%, transparent) 0%,
    color-mix(in srgb, var(--color-primary-light) 15%, transparent) 100%
  );
  padding: 0.15em 0.4em;
  border-radius: 6px;
  font-weight: 600;
}

/* Accent color for key words - MORE VISIBLE */
.accent-text {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.05em;
}

/* Stats/numbers emphasis - MUCH MORE VISIBLE */
.stat-emphasis {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.3em;
  background: linear-gradient(135deg, var(--color-tint-3) 0%, var(--color-tint-4) 100%);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  display: inline-block;
}

/* ============================================
   INTERACTIVE SERVICES PAGE STYLES
   ============================================ */

/* Services Interactive Section */
.services-interactive-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-gray) 100%);
}

.services-interactive-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 3rem;
}

/* Services Interactive Grid */
.services-interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Service Interactive Card */
.service-interactive-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-interactive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-interactive-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-interactive-card:hover::before {
  transform: scaleX(1);
}

/* Service Card Icon */
.service-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.service-interactive-card h3 {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-interactive-card p {
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Ask AI Button (Main) */
.btn-ask-ai {
  background: linear-gradient(135deg, var(--color-band), var(--color-band-light));
  color: var(--color-white);
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-band) 30%, transparent);
}

.btn-ask-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--color-band) 40%, transparent);
  background: linear-gradient(135deg, var(--color-band-dark), var(--color-band-mid));
}

.btn-ask-ai:active {
  transform: translateY(0);
}

/* Ask AI Button (Small) */
.btn-ask-ai-small {
  background: transparent;
  color: var(--color-band);
  border: 2px solid var(--color-band);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.btn-ask-ai-small:hover {
  background: var(--color-band);
  color: var(--color-white);
  transform: translateX(5px);
}

/* Additional Services Section */
.additional-services {
  padding: 4rem 0;
  background: var(--color-white);
}

.additional-services h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-body);
  margin-bottom: 3rem;
}

.additional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.additional-item {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--color-band);
}

.additional-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-left-color: var(--color-band-light);
}

.additional-item h3 {
  font-size: 1.3rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.additional-item p {
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Why Our Services Section */
.why-our-services {
  padding: 4rem 0;
}

.why-our-services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-darkest);
}

.why-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.why-service-item {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.why-service-item:hover {
  transform: translateY(-5px);
}

.why-service-number {
  width: 60px;
  height: 60px;
  background: var(--color-tint-3);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.why-service-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 700;
}

.why-service-item p {
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .services-interactive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-interactive-card {
    padding: 2rem;
  }

  .services-interactive-section h2 {
    font-size: 2rem;
  }

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

  .why-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   SELF-FUNDING PAGE - VISUAL UPGRADES
   ============================================ */

/* How It Works - Visual Flow Diagram */
.how-it-works-visual {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-gray) 100%);
}

.how-it-works-visual h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-body);
  margin-bottom: 3rem;
}

.visual-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.flow-column {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flow-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 8px;
}

.flow-title.bad {
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-danger-bg-strong));
  color: var(--color-danger-text);
}

.flow-title.good {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  color: var(--color-success-text);
}

.flow-visual-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.flow-visual-step:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flow-visual-step.final {
  margin-bottom: 0;
}

.flow-visual-step.final.bad {
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-danger-bg-strong));
  border: 2px solid var(--color-danger);
}

.flow-visual-step.final.good {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  border: 2px solid var(--color-success);
}

.step-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}

.step-detail {
  color: var(--color-text-body);
  font-size: 1rem;
}

.flow-arrow-down {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin: 0.5rem 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.flow-result {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.flow-result.bad {
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-danger-bg-strong));
  border: 2px solid var(--color-danger);
}

.flow-result.good {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  border: 2px solid var(--color-success);
}

.flow-result strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.flow-result p {
  margin: 0;
  color: var(--color-text-body);
}

/* Cost Comparison - Visual Upgrade */
.cost-comparison-visual {
  padding: 5rem 0;
}

.cost-comparison-visual h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 0.5rem;
}

.cost-comparison-visual .section-subtitle {
  color: var(--color-text-body);
}

.cost-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.cost-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cost-card-header {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-gray));
}

.cost-card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.cost-card-total {
  font-size: 2.5rem;
  font-weight: 800;
  padding: 1rem;
  border-radius: 12px;
}

.cost-card-total.bad {
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-danger-bg-strong));
  color: var(--color-danger-text);
}

.cost-card-total.good {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  color: var(--color-success-text);
}

.cost-breakdown {
  padding: 2rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--color-bg-light);
  border-radius: 8px;
  color: var(--color-text-dark);
}

.cost-item:last-child {
  margin-bottom: 0;
}

.cost-item.highlight-bad {
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-danger-bg-strong));
  border-left: 4px solid var(--color-danger);
  font-weight: 600;
}

.cost-item.highlight-good {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  border-left: 4px solid var(--color-success);
  font-weight: 600;
}

.cost-label {
  font-size: 1rem;
}

.cost-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.cost-note {
  padding: 1.5rem 2rem;
  font-size: 1rem;
  line-height: 1.8;
  background: var(--color-bg-light);
}

.cost-note.bad {
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-danger-bg-strong));
  color: var(--color-danger-text);
}

.cost-note.good {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  color: var(--color-success-text);
}

.savings-banner {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.savings-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-success-text);
  margin-bottom: 0.5rem;
}

.savings-percent {
  font-size: 1.5rem;
  color: var(--color-band);
  margin-bottom: 1rem;
}

.savings-banner p {
  color: var(--color-text-body);
  font-size: 1.1rem;
  margin: 0;
}

/* Advantages Section - Enhanced */
.advantages-section {
  padding: 5rem 0;
  background: var(--color-white);
}

.advantages-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 3rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.advantage-card {
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-white));
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.advantage-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.advantage-card h3 {
  font-size: 1.3rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.advantage-card p {
  color: var(--color-text-body);
  line-height: 1.7;
  margin: 0;
}

/* Who Should Consider - Enhanced */
.who-should-consider {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-gray) 100%);
}

.who-should-consider h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 3rem;
}

.consider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2.5rem;
}

.consider-column {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consider-column.good-candidates {
  border-top: 4px solid var(--color-success);
}

.consider-column h3 {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.consider-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.consider-column li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: var(--color-text-body);
  line-height: 1.7;
  border-bottom: 1px solid var(--color-bg-gray);
}

.consider-column li:last-child {
  border-bottom: none;
}

.consider-column li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.8rem;
}

/* Terminology Section - Enhanced */
.terminology-section {
  padding: 5rem 0;
  background: var(--color-white);
}

.terminology-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 3rem;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.term-card {
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-white));
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.term-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.term-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.term-card h3 {
  font-size: 1.3rem;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.term-card p {
  color: var(--color-text-body);
  line-height: 1.7;
  margin: 0;
}

.terms-cta {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--color-tint-3), var(--color-tint-2));
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
}

.terms-cta p {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .visual-comparison {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cost-cards-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .flow-visual-step {
    flex-direction: column;
    text-align: center;
  }

  .step-icon {
    font-size: 2.5rem;
  }
}

/* ============================================
   ABOUT PAGE - COMPLETE REDESIGN
   ============================================ */

/* Professional Stats Bar - Insurance Industry Style */
.professional-stats-bar {
  padding: 3rem 0;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
}

.stats-bar-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-body);
  font-weight: 400;
  text-transform: none;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--color-border-strong);
}

/* Our Story Section */
.our-story-section {
  padding: 5rem 0;
  background: var(--color-white);
}

.story-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.story-text h2 {
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 1.5rem;
}

.story-intro {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.story-text p {
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.story-visual {
  position: sticky;
  top: 100px;
}

.story-highlight-box {
  background: linear-gradient(135deg, var(--color-tint-3), var(--color-tint-2));
  color: var(--color-text-slate);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--color-primary);
}

.story-highlight-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-slate) !important;
}

.story-highlight-box p {
  color: var(--color-text-slate-light) !important;
  line-height: 1.7;
  margin: 0;
}

/* Timeline Section */
.timeline-section {
  padding: 5rem 0;
}

.timeline-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 0.5rem;
}

.timeline-section .section-subtitle {
  text-align: center;
  color: var(--color-text-body);
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Timeline center line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--color-tint-1);
  top: 0;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem;
  margin-bottom: 2rem;
}

.timeline-item.left {
  left: 0;
  padding-right: 4rem;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 4rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  top: 2rem;
  width: 70px;
  height: 70px;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
  text-align: center;
  line-height: 1.2;
}

.timeline-item.left .timeline-marker {
  right: -30px;
}

.timeline-item.right .timeline-marker {
  left: -30px;
}

.timeline-content {
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.03);
}

.timeline-content h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--color-text-body);
  line-height: 1.7;
  margin: 0;
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-gray) 100%);
}

.values-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 0.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--color-primary);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-left-width: 8px;
}

.value-card h3 {
  font-size: 1.4rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.value-card p {
  color: var(--color-text-body);
  line-height: 1.8;
  margin: 0;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: var(--color-white);
}

.team-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 0.5rem;
}

.team-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.team-intro p {
  font-size: 1.1rem;
  color: var(--color-text-body);
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.team-member {
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-white));
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.team-member h3 {
  font-size: 1.3rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.team-member p {
  color: var(--color-text-body);
  line-height: 1.7;
  font-size: 1rem;
}

.team-cta {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--color-tint-3), var(--color-tint-2));
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
}

.team-cta p {
  font-size: 1.2rem;
  color: var(--color-text-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Why Different Section */
.why-different-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-gray) 100%);
}

.why-different-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-darkest);
  margin-bottom: 3rem;
}

.different-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.different-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.different-card.highlight {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  border: 3px solid var(--color-success);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-success) 30%, transparent);
}

.different-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-danger-text);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.different-badge.good {
  background: linear-gradient(135deg, var(--color-success), var(--color-success-dark));
}

.different-card h3 {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  padding-top: 1rem;
  font-weight: 700;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-list li {
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  position: relative;
  line-height: 1.6;
}

.comparison-list.bad li {
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-danger-bg-strong));
  color: var(--color-danger-text);
}

.comparison-list.bad li::before {
  content: "✕";
  color: var(--color-danger-text);
  position: absolute;
  left: 1rem;
  font-size: 1.2rem;
}

.comparison-list.good li {
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg-strong));
  color: var(--color-success-text);
  font-weight: 600;
}

.comparison-list.good li::before {
  content: "✓";
  color: var(--color-primary);
  position: absolute;
  left: 1rem;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-visual {
    position: static;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 100px;
    padding-right: 2rem;
    text-align: left !important;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item .timeline-marker {
    left: 0 !important;
    right: auto !important;
  }

  .different-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .stats-bar-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0;
  }

  .stat-value {
    font-size: 2.5rem;
  }

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

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

  .timeline-item {
    padding-left: 80px;
  }
}

/* ============================================
   CHATBOT IMPROVEMENTS - BETTER FORMATTING & MOBILE
   ============================================ */

/* Better Message Formatting */
.chatbot-message .message-content p {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}

.chatbot-message .message-content p:last-child {
  margin-bottom: 0;
}

.chatbot-message .message-content strong {
  font-weight: 700;
  color: var(--color-text-strong);
}

.chatbot-message.bot .message-content strong {
  color: var(--color-darkest);
}

.chatbot-message.user .message-content strong {
  color: inherit;
}

/* Bubble text takes the bubble's color (the site-wide p/li color would otherwise win) */
.chatbot-message .message-content p,
.chatbot-message .message-content li {
  color: inherit;
}

/* Bot replies use about 85% of the chat window's width */
.chatbot-messages {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.chatbot-message.bot .message-content {
  max-width: 90%;
}

/* BSI's main number in replies: bold, tap-to-call */
.chat-phone {
  color: var(--color-deep);
  text-decoration: underline;
  white-space: nowrap;
}

.chatbot-message.user .chat-phone,
.chat-message.user .chat-phone {
  color: inherit;
}

/* Bullet Lists in Chatbot */
.chatbot-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.chatbot-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  padding-left: 0.25rem;
}

.chatbot-list li:last-child {
  margin-bottom: 0;
}

.chatbot-list-numbered {
  list-style-type: decimal;
}

/* Better spacing for bot messages */
.chatbot-message.bot .message-content {
  background: var(--color-chat-bot-bg);
  border-color: var(--color-chat-bot-border);
  color: var(--color-text-chat);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* User messages - keep simple */
.chatbot-message.user .message-content {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* Expand Button */
.chatbot-expand-btn {
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-expand-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* EXPANDED MODE (Desktop) */
.chatbot-container.expanded {
  width: 600px !important;
  height: 700px !important;
  max-height: 85vh;
}

.chatbot-container.expanded .chatbot-messages {
  max-height: calc(700px - 140px);
}

/* FULLSCREEN MODE (Mobile) */
.chatbot-container.fullscreen {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  z-index: 10000 !important;
}

.chatbot-container.fullscreen .chatbot-header {
  padding: 1.25rem 1rem;
  border-radius: 0;
}

.chatbot-container.fullscreen .chatbot-messages {
  max-height: calc(100vh - 160px);
  padding: 1.25rem;
}

.chatbot-container.fullscreen .chatbot-input-container {
  padding: 1.25rem;
  border-radius: 0;
}

.chatbot-container.fullscreen .chatbot-message .message-content {
  font-size: 1rem;
}

/* ============================================
   MOBILE FIXES - CONSOLIDATED
   All mobile responsive fixes in one place
   ============================================ */

/* ============================================
   MOBILE: 768px and below
   ============================================ */
/* ============================================
   DIRECTION C - section rhythm, cards, icons
   ============================================ */

/* Sections alternate white / pale tint; hero and page headers a bit stronger.
   (body > section beats the single-class section rules above.) */
body > section:nth-of-type(even) {
  background: var(--color-white);
}

body > section:nth-of-type(odd) {
  background: var(--color-tint-4);
}

body > section.hero,
body > section.page-header {
  background: var(--color-tint-3);
}

/* Section headings in darkest green (for sections without their own h2 color) */
body > section h2 {
  color: var(--color-darkest);
}

/* Cards: white, thin tint border, accent stripe along the top */
.card,
.service-card,
.advantage-card,
.service-interactive-card,
.additional-item,
.value-card,
.term-card,
.team-member,
.different-card,
.consider-column,
.cost-card,
.flow-column,
.quick-card,
.contact-method,
.why-service-item,
.timeline-content,
.audience-card {
  background: var(--color-white);
  border: 1px solid var(--color-tint-1);
  border-top: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.card:hover,
.service-card:hover,
.advantage-card:hover,
.service-interactive-card:hover,
.additional-item:hover,
.value-card:hover,
.term-card:hover,
.team-member:hover,
.different-card:hover,
.quick-card:hover,
.contact-method:hover,
.why-service-item:hover,
.timeline-content:hover,
.audience-card:hover {
  border-color: var(--color-tint-1);
  border-top-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

/* The old hover-only stripe is now always on (as the top border) */
.service-interactive-card::before {
  display: none;
}

/* Even grids. Add .grid-4 to any grid with exactly 4 items (2x2, then
   1 column on phones) and .grid-3 to any grid with exactly 3 (one row,
   then 1 column below 900px), so no item is left alone on the last row. */
.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* The footer stacks a bit earlier: below ~955px its third column is too
   narrow for customer.service@benefitsupport.biz on one line */
@media (max-width: 979px) {
  .footer-content.grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Team cards are centered */
.team-member .icon {
  margin-inline: auto;
}

/* Icons: one line-icon style in a pale tint circle, same size everywhere.
   The icons are inline <svg> in each page. Shapes are based on Feather Icons
   (https://feathericons.com), MIT License, Copyright (c) 2013-2017 Cole Bemis;
   the handshake is from Lucide (https://lucide.dev), ISC License. */
.card .icon,
.quick-card .icon,
.audience-card .icon,
.team-member .icon,
.advantage-card .advantage-icon,
.service-card-icon,
.step-icon,
.term-icon,
.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-tint-3);
  color: var(--color-primary);
  box-shadow: none;
  margin-bottom: 1rem;
}

.icon-svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Small icons inside text (footer, headings, lists) */
.icon-inline {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-good {
  color: var(--color-primary);
}

.icon-bad {
  color: var(--color-danger-text);
}

.step-icon {
  margin-bottom: 0;
}

.flow-arrow-down .icon-svg {
  width: 32px;
  height: 32px;
}

/* Chat button and chat headers */
.chatbot-icon .icon-svg,
.chatbot-avatar .icon-svg {
  display: block;
  stroke: var(--color-white);
}

/* Contact cards: icon + title, then small grey labels over values */
.contact-method {
  min-height: 0;
  padding: var(--spacing-md);
}

.contact-method::before {
  display: none;
}

.method-head {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: 1.25rem;
}

.method-head h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-text);
}

.method-icon {
  margin-bottom: 0;
}

.method-rows {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.method-row dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.method-row dd {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

.method-row a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Emails stay on one line wherever they fit; break only on narrow phones */
.method-rows,
.footer-section {
  min-width: 0;
}

@media (max-width: 480px) {
  a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }
}

/* Contact form: employer-only fields are hidden until Employer or Broker */
.form-group[hidden] {
  display: none;
}

/* Quick Contact links land with the "Send Us a Message" heading below the
   sticky header (84px desktop, 135px when the nav wraps, ~59px on phones) */
#send-message {
  scroll-margin-top: 100px;
}

@media (min-width: 769px) and (max-width: 900px) {
  #send-message {
    scroll-margin-top: 150px;
  }
}

@media (max-width: 768px) {
  #send-message {
    scroll-margin-top: 75px;
  }
}

/* Quick Contact cards: links pinned to the bottom so all four line up */
.quick-card {
  display: flex;
  flex-direction: column;
}

.quick-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* Phone line above the form link on the Members and Providers cards */
.quick-card-phone a {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .card .icon,
  .quick-card .icon,
  .audience-card .icon,
  .team-member .icon,
  .advantage-card .advantage-icon,
  .service-card-icon,
  .step-icon,
  .term-icon,
  .method-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .icon-svg {
    width: 24px;
    height: 24px;
  }

  .swoosh {
    top: -56px;
    right: -56px;
    width: 112px;
    height: 112px;
  }

  .swoosh span {
    border-width: 7px;
  }

  .swoosh span:nth-child(2) {
    inset: 14px;
  }

  .swoosh span:nth-child(3) {
    inset: 28px;
  }
}


@media (max-width: 768px) {
  
  /* ===========================================
     BASE TYPOGRAPHY - Not too big
     =========================================== */
  body {
    font-size: 16px !important;
  }
  
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }
  
  h4 {
    font-size: 1.1rem !important;
  }
  
  p, li {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  /* ===========================================
     LAYOUT - Proper padding
     =========================================== */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  section {
    padding: 2rem 0 !important;
  }
  
  /* Page headers shouldn't be huge; top padding keeps text below the swoosh */
  .page-header {
    padding: 3.5rem 0 1.5rem !important;
  }
  
  .page-header h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .page-header p {
    font-size: 1rem !important;
  }
  
  /* ===========================================
     NAVIGATION - Compact
     =========================================== */
  .navbar {
    padding: 0.5rem 0 !important;
  }
  
  .logo h1 {
    font-size: 1.2rem !important;
  }
  
  .logo .tagline {
    font-size: 0.7rem !important;
  }
  
  /* ===========================================
     CARD GRIDS - 2 columns, not chunky
     =========================================== */
  .cards-grid,
  .services-grid,
  .audience-grid,
  .team-grid,
  .different-grid {
    display: grid !important;
    gap: 0.75rem !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* ===========================================
     CARDS - Compact sizing
     =========================================== */
  .card,
  .service-card,
  .audience-card,
  .quick-card,
  .team-member,
  .different-card {
    padding: 1rem !important;
    border-radius: 8px !important;
  }
  
  .card h3,
  .service-card h3,
  .audience-card h3,
  .quick-card h3,
  .team-member h3,
  .different-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .card p,
  .service-card p,
  .audience-card p,
  .quick-card p,
  .team-member p,
  .different-card p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Card icons - smaller */
  .card .icon,
  .service-card .icon,
  .service-card-icon {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* ===========================================
     INTERACTIVE SERVICE CARDS
     =========================================== */
  .services-interactive-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .service-interactive-card {
    padding: 1rem !important;
  }
  
  .service-interactive-card h3 {
    font-size: 1.1rem !important;
  }
  
  .service-interactive-card p {
    font-size: 1rem !important;
  }
  
  .btn-ask-ai {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  /* ===========================================
     STATS - Not huge numbers
     =========================================== */
  .stat-number-large,
  .hero-stat-number,
  .stat-value {
    font-size: 2rem !important;
  }
  
  .stat-label {
    font-size: 0.8rem !important;
  }
  
  /* Professional stats bar */
  .professional-stats-bar {
    padding: 1rem 0 !important;
  }
  
  .stats-bar-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .stat-item {
    text-align: center !important;
  }
  
  .stat-divider {
    display: none !important;
  }
  
  /* ===========================================
     HERO SECTION
     =========================================== */
  .hero {
    min-height: auto !important;
  }
  
  .hero h1 {
    font-size: 1.6rem !important;
  }
  
  .hero-subtitle,
  .hero p {
    font-size: 1rem !important;
  }
  
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  /* ===========================================
     BUTTONS - Reasonable size
     =========================================== */
  .btn {
    font-size: 0.9rem !important;
    padding: 0.7rem 1.25rem !important;
    display: inline-block !important;
    width: auto !important;
  }
  
  .btn-large {
    padding: 0.8rem 1.5rem !important;
  }
  
  /* ===========================================
     ABOUT PAGE - Our Story Section
     =========================================== */
  .story-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  .story-text h2 {
    font-size: 1.5rem !important;
  }
  
  .story-text p {
    font-size: 1rem !important;
  }
  
  .story-visual {
    order: 2 !important;
  }
  
  .story-highlight-box {
    padding: 1rem !important;
  }
  
  .story-highlight-box h3 {
    font-size: 1.1rem !important;
  }
  
  .story-highlight-box p {
    font-size: 1rem !important;
  }
  
  /* ===========================================
     ABOUT PAGE - Timeline
     =========================================== */
  .timeline {
    padding-left: 1.5rem !important;
  }
  
  .timeline-item {
    margin-bottom: 1.5rem !important;
    padding-left: 1rem !important;
  }
  
  .timeline-marker {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  .timeline-content h3 {
    font-size: 1rem !important;
  }
  
  .timeline-content p {
    font-size: 1rem !important;
  }
  
  /* ===========================================
     ABOUT PAGE - Values
     =========================================== */
  .values-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  
  .value-card {
    padding: 1rem !important;
  }
  
  .value-card h3 {
    font-size: 1rem !important;
  }
  
  .value-card p {
    font-size: 1rem !important;
  }
  
  /* ===========================================
     ABOUT PAGE - Team
     =========================================== */
  .team-member {
    padding: 1rem !important;
  }
  
  /* ===========================================
     ABOUT PAGE - Comparison Cards
     =========================================== */
  .different-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .different-card {
    padding: 1rem !important;
  }
  
  .different-card h3 {
    font-size: 1.1rem !important;
  }
  
  .comparison-list li {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .different-badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  /* ===========================================
     SELF-FUNDING PAGE - Specific sections
     =========================================== */
  .how-it-works-grid,
  .advantages-grid,
  .cost-comparison-grid,
  .considerations-grid,
  .terms-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .step-card,
  .advantage-card,
  .comparison-card,
  .consideration-card,
  .term-card {
    padding: 1rem !important;
  }
  
  .step-card h3,
  .advantage-card h3,
  .comparison-card h3,
  .consideration-card h3,
  .term-card h3 {
    font-size: 1rem !important;
  }
  
  .step-card p,
  .advantage-card p,
  .comparison-card p,
  .consideration-card p,
  .term-card p {
    font-size: 1rem !important;
  }
  
  .step-number {
    font-size: 1.5rem !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  /* ===========================================
     CONTACT PAGE - FIXED MOBILE LAYOUT
     =========================================== */
  .contact-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .contact-info-side h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .contact-methods {
    margin: 1rem 0 !important;
  }
  
  /* Contact method cards - FIXED for mobile */
  .contact-method {
    padding: 1rem !important;
    min-height: auto !important;
    margin-bottom: 1rem !important;
  }
  
  /* Hide the huge background icons on mobile */
  .contact-method::before {
    display: none !important;
  }
  
  /* Show the small left icons on mobile instead */

  
  /* Content can use full width on mobile */
  .method-content {
    max-width: 100% !important;
  }
  
  .method-content h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .method-content p {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .method-content a {
    font-size: 1rem !important;
  }
  
  .method-note {
    font-size: 0.8rem !important;
  }
  
  /* Contact form side */
  .contact-form-side h2 {
    font-size: 1.5rem !important;
  }
  
  .contact-form {
    margin-top: 1rem !important;
  }
  
  .form-group {
    margin-bottom: 1rem !important;
  }
  
  .form-group label {
    font-size: 0.9rem !important;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px !important;  /* Prevents iOS zoom */
    padding: 0.75rem !important;
  }
  
  /* ===========================================
     CTA SECTION
     =========================================== */
  .cta-section {
    padding: 2rem 0 !important;
    text-align: center !important;
  }
  
  .cta-section h2 {
    font-size: 1.4rem !important;
  }
  
  .cta-section p {
    font-size: 1rem !important;
  }
  
  /* ===========================================
     FOOTER
     =========================================== */
  .footer {
    padding: 2rem 0 1rem !important;
  }
  
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .footer-section p,
  .footer-section li {
    font-size: 0.85rem !important;
  }
  
  /* ===========================================
     CHATBOT - Better mobile experience
     =========================================== */
  .chatbot-container.active {
    width: 100vw !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 70vh !important;
    max-height: 70vh !important;
    border-radius: 12px 12px 0 0 !important;
  }
  
  .chatbot-messages {
    max-height: calc(70vh - 130px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .chatbot-expand-btn {
    display: none !important;
  }
  
  .chatbot-message .message-content {
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
  }
  
  .chatbot-input-container input {
    font-size: 16px !important;  /* Prevents iOS zoom */
  }
  
  .chatbot-container.fullscreen {
    width: 100vw !important;
    height: 70vh !important;
    max-height: 70vh !important;
    top: auto !important;
    left: 0 !important;
    bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
  }
  
  .chatbot-toggle {
    width: 56px !important;
    height: 56px !important;
    bottom: 16px !important;
    right: 16px !important;
  }
  
  /* ===========================================
     ACCORDION STYLES
     =========================================== */
  .accordion-header {
    cursor: pointer !important;
    user-select: none !important;
    padding: 0.75rem 0 !important;
    border-bottom: 2px solid var(--color-border) !important;
    margin-bottom: 0 !important;
    transition: background-color 0.2s ease !important;
  }
  
  .accordion-header:hover {
    background-color: color-mix(in srgb, var(--color-primary) 3%, transparent) !important;
  }
  
  .accordion-header:active {
    background-color: color-mix(in srgb, var(--color-primary) 6%, transparent) !important;
  }
  
  .accordion-header.active {
    border-bottom-color: var(--color-primary) !important;
  }
  
  .accordion-icon {
    font-size: 0.9rem !important;
    color: var(--color-primary) !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  
  .accordion-content {
    padding-top: 1rem !important;
    animation: accordionFadeIn 0.3s ease !important;
  }
  
  @keyframes accordionFadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Section subtitle inside accordions */
  .section-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Intro text */
  .intro-text p,
  .team-intro p {
    font-size: 1rem !important;
  }
}

/* ============================================
   VERY SMALL SCREENS: 480px and below
   ============================================ */
@media (max-width: 480px) {
  body {
    font-size: 15px !important;
  }
  
  h1 {
    font-size: 1.5rem !important;
  }
  
  h2 {
    font-size: 1.3rem !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
  }
  
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  /* Single column on very small screens */
  .services-grid,
  .values-grid {
    grid-template-columns: 1fr !important;
  }
  
  .stat-number-large,
  .hero-stat-number,
  .stat-value {
    font-size: 1.75rem !important;
  }
  
  .hero h1 {
    font-size: 1.4rem !important;
  }
  
  .page-header h1 {
    font-size: 1.4rem !important;
  }
  
}

/* ============================================
   DESKTOP: Accordion styles hidden
   ============================================ */
@media (min-width: 769px) {
  .accordion-icon {
    display: none !important;
  }
  
  .accordion-header {
    cursor: default !important;
  }
  
  .accordion-content {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
