/* === MACBACH DESIGN SYSTEM — VALIA HEALTH ===
 * Centralized CSS for all page templates
 * Macbach Healthcare Solutions
 * Version: 1.0.0
 * ============================================= */

/* --- CONFIGURATION --- */
:root {
  --font-primary: 'Poppins', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-offwhite: #f5f5f5;
  --color-accent: #f4f4f4;
  --color-border: #e0e0e0;
  --color-gray-light: #ccc;
  --color-gray-mid: #888;
  --color-gray-dark: #555;
  --color-text-secondary: #333;
  --border-thick: 2px solid #000;
  --spacing-section: 140px;
  --spacing-block: 120px;
}

/* --- BASE RESET --- */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

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

/* --- LAYOUT --- */
.macbach-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- SHARED TYPOGRAPHY --- */
.mega-h1 {
  font-size: clamp(50px, 8vw, 160px);
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 60px;
  color: #000000 !important;
}

.mega-headline {
  font-size: clamp(50px, 8vw, 160px);
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 60px;
  color: #000000 !important;
}

.section-h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.label-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 30px;
  color: #888;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  display: block;
  margin-bottom: 30px;
}

.body-lead {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 800px;
  color: #000;
}

/* --- SHARED BUTTONS --- */
.macbach-btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid #000;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 30px;
  transition: 0.3s;
  text-decoration: none;
  color: #000;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-primary);
}

.macbach-btn:hover {
  background: #000;
  color: #fff;
}

.btn-white {
  border: 1px solid #fff;
  color: #fff;
}

.btn-white:hover {
  background: #fff;
  color: #000;
}

.macbach-btn-dark {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid #fff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 30px;
  transition: 0.3s;
  text-decoration: none;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-primary);
}

.macbach-btn-dark:hover {
  background: #fff;
  color: #000;
}

/* --- BASE RESPONSIVE --- */
@media (max-width: 600px) {
  .macbach-container {
    padding: 0 20px;
  }
  .mega-h1,
  .mega-headline {
    font-size: 50px;
  }
}


/* ============================================================
 * PAGE: HOME
 * ============================================================ */
.hero-section { padding: 140px 0 100px; border-bottom: 1px solid #eee; }
  .philosophy-section { padding: var(--spacing-section) 0; }
  .philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
  .philo-img { width: 100%; height: 600px; object-fit: cover; filter: grayscale(100%); }
  
  /* MEANING */
  .meaning-section { background: #000; color: #fff; padding: 140px 0; }
  .meaning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .meaning-word { font-family: var(--font-serif); font-style: italic; font-size: clamp(60px, 8vw, 100px); line-height: 1; margin-bottom: 20px; display: block; }

  /* DIAGNOSTICS */
  .tech-section { padding: var(--spacing-section) 0; background: var(--color-offwhite); }
  .tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
  .tech-card { background: #fff; padding: 40px; transition: 0.3s; border: 1px solid transparent; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
  .tech-card:hover { border-color: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
  .tech-num { font-size: 12px; font-weight: 700; color: #ccc; display: block; margin-bottom: 15px; }
  .tech-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; display: block; letter-spacing: -0.5px; }
  .tech-desc { font-size: 13px; color: #555; line-height: 1.7; }

  /* EXEC TEASER */
  .exec-teaser { padding: 100px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
  .exec-flex { display: flex; justify-content: space-between; align-items: center; gap: 40px; }

  /* TEAM */
  .team-section { padding: var(--spacing-section) 0; text-align: center; }
  .team-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2px; 
    border: var(--border-thick); 
    background: #000; 
    max-width: 800px; 
    margin: 60px auto 0; 
  }
  .team-member { background: #fff; padding: 0 0 30px; text-align: center; transition: 0.3s; }
  .team-member img { width: 100%; aspect-ratio: 1/1.2; object-fit: cover; margin-bottom: 25px; filter: grayscale(100%); transition: 0.5s; }
  .team-member:hover img { filter: grayscale(0%); }
  
  /* PRICING */
  .pricing-section { padding: var(--spacing-section) 0; background: var(--color-black); color: var(--color-white); }
  .pricing-section h2, .pricing-section .section-h2 { color: #ffffff !important; }
  .pricing-section .label-text { color: #888 !important; }
  
  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #333; margin-top: 60px; }
  .price-card { padding: 60px 40px; border-right: 1px solid #333; display: flex; flex-direction: column; justify-content: space-between; height: 100%; box-sizing: border-box; }
  
  .pricing-section .tier-name { font-family: var(--font-serif); font-style: italic; font-size: 36px; margin-bottom: 10px; color: #ffffff !important; }
  .pricing-section .tier-cost { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 30px; display: block; }
  .pricing-section .tier-features li { font-size: 12px; text-transform: uppercase; border-bottom: 1px solid #333; padding: 15px 0; letter-spacing: 0.5px; color: #ffffff !important; }

  @media (max-width: 1024px) { 
    .tech-grid { grid-template-columns: repeat(2, 1fr); } 
    .philo-grid, .meaning-grid, .exec-flex { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; border: none; }
    .price-card { border-right: none; border-bottom: 1px solid #333; }
  }
  @media (max-width: 600px) { 
    .tech-grid { grid-template-columns: 1fr; } 
    .team-grid { grid-template-columns: 1fr; } 
  }
/* ============================================================
 * PAGE: ABOUT
 * ============================================================ */
.bio-name { font-family: var(--font-serif); font-style: italic; font-size: clamp(32px, 4vw, 56px); margin-bottom: 10px; line-height: 1.1; }
  .bio-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 30px; color: #666; }
  .bio-text { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 20px; max-width: 600px; }
  
  .about-hero { padding: 140px 0 100px; border-bottom: 1px solid var(--color-accent); }
  .bio-section { padding: var(--spacing-block) 0; }
  .bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .bio-img-wrapper { position: relative; width: 100%; height: 700px; }
  .bio-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
  .bio-img:hover { filter: grayscale(0%); }
  
  .name-section { background-color: var(--color-black); color: var(--color-white); padding: var(--spacing-block) 0; }
  .name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
  .latin-def { border-left: 1px solid #444; padding-left: 40px; }
  .def-title { font-family: var(--font-serif); font-style: italic; font-size: 32px; margin-bottom: 20px; display: block; }
  
  .dog-section { padding: 100px 0; background-color: #f9f9f9; }
  .dog-card { display: flex; max-width: 900px; margin: 0 auto; background: #fff; padding: 40px; align-items: center; gap: 40px; }

  /* FAQ Injection Style */
  .about-faq-injection { border-top: 1px solid #e0e0e0; margin-top: 80px; padding-top: 80px; padding-bottom: 140px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }

  @media (max-width: 1024px) { .bio-grid { grid-template-columns: 1fr; gap: 40px; } .bio-img-wrapper { height: 500px; order: -1; } .name-grid { grid-template-columns: 1fr; } .dog-card { flex-direction: column; text-align: center; } .about-faq-injection { grid-template-columns: 1fr; } }
  @media (max-width: 600px) {   .bio-img-wrapper { height: 400px; } }
/* ============================================================
 * PAGE: METHOD DIAGNOSTICS
 * ============================================================ */
.method-hero { padding: 140px 0 100px; }

  /* F.A.L.T. GRID */
  .falt-section { padding: var(--spacing-block) 0; border-top: 1px solid #eee; }
  .falt-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: var(--border-thick);
    border-right: none; border-bottom: none;
  }
  .falt-card {
    padding: 40px 20px;
    border-right: var(--border-thick);
    border-bottom: var(--border-thick);
    transition: 0.3s;
    height: 100%; box-sizing: border-box;
  }
  .falt-card:hover { background: #000; color: #fff; }
  .falt-card:hover .falt-desc { color: #ccc; }
  
  .falt-letter { font-size: 60px; font-weight: 700; display: block; margin-bottom: 20px; font-family: var(--font-serif); font-style: italic; line-height: 1; }
  .falt-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block; }
  .falt-desc { font-size: 13px; color: #555; line-height: 1.6; }

  /* DIAGNOSTIC STACK (BENTO GRID) */
  .diag-section { padding: var(--spacing-block) 0; background: var(--color-offwhite); }
  
  /* The Main Grid Layout */
  .stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stack-category {
    background: #fff;
    padding: 50px;
    border: 1px solid transparent;
    transition: 0.3s;
  }
  .stack-category:hover { border-color: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

  .stack-head { font-size: 24px; font-weight: 600; text-transform: uppercase; margin-bottom: 40px; border-bottom: 2px solid #000; padding-bottom: 20px; display: inline-block; }
  
  .tech-item { margin-bottom: 40px; }
  .tech-name { font-size: 18px; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 8px; letter-spacing: -0.5px; }
  .tech-detail { font-size: 14px; color: #555; line-height: 1.7; }
  .tech-detail strong { color: #000; }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .falt-grid { grid-template-columns: repeat(2, 1fr); border-right: var(--border-thick); }
    .falt-card { border-right: none; border-bottom: var(--border-thick); border-right: var(--border-thick); }
    .stack-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    
    .falt-grid { grid-template-columns: 1fr; }
    
  }
/* ============================================================
 * PAGE: MEMBERSHIP
 * ============================================================ */
/* HERO */
  .membership-hero { padding: 140px 0 100px; }
  
  
  
  /* GRID LAYOUT */
  .tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--border-thick); border-right: none; border-bottom: none; }
  
  .tier-card { 
    padding: 60px 40px; 
    border-right: var(--border-thick); 
    border-bottom: var(--border-thick); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    height: 100%; 
    box-sizing: border-box; 
  }
  
  
  .tier-level { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #888; margin-bottom: 15px; display: block; }
  .tier-name { font-family: var(--font-serif); font-style: italic; font-size: 36px; margin-bottom: 10px; line-height: 1.1; color: #000; }
  .tier-tagline { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; display: block; color: #000; }
  
  /* PRICE STYLE */
  .tier-price { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-bottom: 25px; display: block; }

  .tier-desc { font-size: 14px; line-height: 1.7; color: #444; margin-bottom: 30px; }
  
  /* FEATURES */
  .tier-features { list-style: none; padding: 0; margin: 0 0 40px 0; border-top: 1px solid #eee; padding-top: 20px; }
  .tier-features li { 
    font-size: 12px; text-transform: uppercase; border-bottom: 1px solid #eee; padding: 12px 0; letter-spacing: 0.5px; font-weight: 500; color: #000;
  }
  
  /* BUTTONS */
  
  

  /* --- PINNACLE DARK MODE FIX --- */
  .pinnacle { background: #000; color: #fff; }
  
  /* Force White Text for Pinnacle Card */
  .pinnacle .tier-name { color: #ffffff !important; }
  .pinnacle .tier-tagline { color: #cccccc !important; }
  .pinnacle .tier-price { color: #ccc !important; }
  .pinnacle .tier-desc { color: #e0e0e0 !important; }
  .pinnacle .tier-level { color: #888 !important; }
  
  /* Fix Features & Borders */
  .pinnacle .tier-features { border-top: 1px solid #333; }
  .pinnacle .tier-features li { border-bottom: 1px solid #333; color: #fff !important; }
  
  /* Fix Button */
  .pinnacle 
  .pinnacle 

  /* RESPONSIVE */
  @media (max-width: 1024px) { 
    .tiers-grid { grid-template-columns: 1fr; border: none; } 
    .tier-card { border: 1px solid #000; margin-bottom: 40px; } 
  }
  @media (max-width: 600px) {  }
/* ============================================================
 * PAGE: EXECUTIVE PHYSICAL
 * ============================================================ */
.exec-hero { padding: 140px 0 100px; border-bottom: 1px solid #e0e0e0; }
  
  /* DATA GRID */
  .data-section { padding: 120px 0; }
  .data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #000; border: 2px solid #000; }
  .data-card { background: #fff; padding: 40px 30px; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
  .data-num { font-size: 12px; font-weight: 700; color: #ccc; margin-bottom: 20px; }
  .data-head { font-size: 18px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
  .data-
  
  
  
  .macbach-btn-dark { border: 1px solid #000; color: #000; }
  .macbach-btn-dark:hover { background: #000; color: #fff; }

  @media (max-width: 900px) { .data-grid { grid-template-columns: 1fr; } }
/* ============================================================
 * PAGE: FAQ
 * ============================================================ */
.mega-headline {
    font-size: clamp(60px, 8vw, 160px); /* Massive Scaling */
    line-height: 0.85;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 60px;
  }

  

  
  
  

  
  .hero-section { padding: 140px 0 100px; }

  /* --- 4. PRICING GRID (ARCHITECTURAL STYLE) --- */
  .tiers-section { padding: var(--spacing-block) 0; border-top: 1px solid #eee; }
  
  .tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    border-left: var(--border-thick); /* Boxed look */
  }

  .tier-card {
    padding: 60px 40px;
    border-right: var(--border-thick); /* Vertical dividers */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.3s;
  }

  .tier-header { margin-bottom: 40px; }
  .tier-name { font-family: var(--font-serif); font-style: italic; font-size: 42px; margin-bottom: 5px; line-height: 1; }
  .tier-price { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #555; display: block; }
  
  .tier-desc { font-size: 14px; margin-top: 20px; line-height: 1.6; min-height: 60px; }

  .tier-features { list-style: none; padding: 0; margin: 40px 0; }
  .tier-features li {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid #e0e0e0; padding: 12px 0;
    font-weight: 500;
  }

  /* PINNACLE CARD (THE BLACK OBELISK) */
  .tier-card.pinnacle {
    background: var(--color-black);
    color: var(--color-white);
  }
  .tier-card.pinnacle .tier-price { color: #ccc; }
  .tier-card.pinnacle .tier-features li { border-bottom: 1px solid #333; }
  .tier-card.pinnacle 
  .tier-card.pinnacle 

  /* BUTTONS */
  
  

  /* --- 5. EXECUTIVE SPLIT --- */
  .exec-section { padding: var(--spacing-block) 0; background: var(--color-offwhite); }
  .exec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  
  .exec-img {
    width: 100%; height: 600px; object-fit: cover;
    filter: grayscale(100%); mix-blend-mode: multiply;
  }

  /* --- 6. FAQ (SPEC SHEET STYLE) --- */
  .faq-section { padding: var(--spacing-block) 0; padding-bottom: 140px; }
  
  details {
    border-bottom: 2px solid #000; /* Bold dividers */
    padding: 40px 0;
  }
  
  summary {
    list-style: none;
    font-size: clamp(20px, 3vw, 32px); /* Larger Question Text */
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
  }
  summary::-webkit-details-marker { display: none; }
  
  summary::after { content: '+'; font-size: 40px; font-weight: 300; line-height: 0; }
  details[open] summary::after { content: '-'; }

  .faq-answer {
    margin-top: 30px; font-size: 16px; line-height: 1.8; color: #444; max-width: 800px;
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .tiers-grid { grid-template-columns: 1fr; border-right: var(--border-thick); }
    .tier-card { border-right: none; border-bottom: var(--border-thick); }
    .tier-card:last-child { border-bottom: none; }
    .exec-grid { grid-template-columns: 1fr; }
    .mega-headline { font-size: 60px; }
  }
  @media (max-width: 600px) {
    
    .hero-section { padding: 100px 0 60px; }
  }
/* ============================================================
 * PAGE: CONTACT
 * ============================================================ */
/* CONTACT LAYOUT */
  .contact-section { padding: 140px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
  
  .contact-info-block { margin-bottom: 40px; }
  .contact-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #888; display: block; margin-bottom: 15px; }
  .contact-value { font-size: 22px; font-weight: 500; display: block; margin-bottom: 5px; text-decoration: none; color: #000; }
  
  .social-grid { display: flex; gap: 25px; margin-top: 15px; flex-wrap: wrap; }
  .social-link { font-size: 13px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; border-bottom: 1px solid #000; padding-bottom: 2px; transition: opacity 0.3s; }
  .social-link:hover { opacity: 0.5; }

  /* FORM */
  .form-box { background: #f9f9f9; padding: 60px; box-sizing: border-box; overflow: hidden; }
  .form-title { font-size: 30px; font-family: var(--font-serif); font-style: italic; margin-bottom: 30px; }

  @media (max-width: 900px) { .contact-section { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; } }
  @media (max-width: 600px) { .form-box { padding: 30px; } }
/* ============================================================
 * PAGE: PORTAL
 * ============================================================ */
/* HEADERS */
  .portal-header { padding: 120px 0 80px; text-align: center; border-bottom: 1px solid #eee; }
  .portal-h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; text-transform: uppercase; margin-bottom: 15px; letter-spacing: -1px; }
  .portal-sub { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: #666; }

  /* SECTION LABELS */
  

  /* GRIDS */
  .admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 100px; }
  
  .portal-card, .app-card {
    background: var(--color-offwhite); text-decoration: none; color: var(--color-black); transition: 0.3s; border: 1px solid transparent;
  }
  .portal-card { padding: 50px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .app-card { padding: 20px; display: flex; align-items: center; gap: 15px; border: 1px solid #eee; background: #fff; }
  
  .portal-card:hover, .app-card:hover { border-color: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

  /* DATA ALERT BOX */
  .data-alert-box { background: #f9f9f9; border-left: 4px solid #000; padding: 40px; margin: 80px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .alert-btn { white-space: nowrap; text-transform: uppercase; font-size: 11px; font-weight: 700; color: #000; text-decoration: none; border: 1px solid #000; padding: 15px 30px; transition: 0.3s; }
  .alert-btn:hover { background: #000; color: #fff; }

  @media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } .app-grid { grid-template-columns: repeat(2, 1fr); } .data-alert-box { flex-direction: column; align-items: flex-start; } }
/* ============================================================
 * PAGE: DATA BRIDGE
 * ============================================================ */
/* HERO */
  .bridge-hero { padding: 140px 0 100px; border-bottom: 1px solid #e0e0e0; }
  
  
  

  /* OS GUIDES */
  .guide-section { padding: 100px 0; }
  .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--border-thick); border-bottom: none; }
  
  .guide-card { 
    padding: 60px 40px; 
    border-right: var(--border-thick); 
    border-bottom: var(--border-thick); 
    display: flex; 
    flex-direction: column; 
  }
  .guide-card:last-child { border-right: none; }
  
  .os-icon { font-size: 40px; margin-bottom: 30px; }
  .os-title { font-size: 24px; font-weight: 600; text-transform: uppercase; margin-bottom: 20px; letter-spacing: -0.5px; }
  
  .step-list { list-style: none; padding: 0; margin: 0; }
  .step-item { 
    margin-bottom: 20px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #eee; 
    font-size: 14px; 
    color: #555; 
    line-height: 1.6;
  }
  .step-item:last-child { border-bottom: none; }
  .step-num { font-weight: 700; color: #000; margin-right: 10px; font-size: 12px; }

  /* APP DOWNLOAD GRID */
  .download-section { padding: 80px 0 120px; background: #f9f9f9; }
  .download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
  
  .app-download-card { background: #fff; padding: 30px; border: 1px solid #e0e0e0; display: flex; flex-direction: column; gap: 20px; transition: border-color 0.2s; }
  .app-download-card:hover { border-color: #a0bab1; }
  .app-meta { display: flex; align-items: center; gap: 15px; }
  .app-meta h4 { font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0 0 3px; }
  .app-meta span { font-size: 12px; color: #888; display: block; }
  
  .store-links { display: flex; gap: 10px; flex-wrap: wrap; }
  .store-badge { display: inline-block; transition: opacity 0.2s; }
  .store-badge:hover { opacity: 0.8; }
  .store-links a:hover { border-color: #000; }

  /* ALERT BOX */
  .permission-alert {
    background: #000; color: #fff; padding: 40px; margin-top: 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
  }
  
  @media (max-width: 1024px) { 
    .guide-grid { grid-template-columns: 1fr; border-right: var(--border-thick); } 
    .guide-card { border-right: none; }
    .permission-alert { flex-direction: column; align-items: flex-start; }
    .download-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {  }
/* ============================================================
 * PAGE: DATA TERMINAL
 * ============================================================ */
/* HERO */
  .lib-hero { padding: 140px 0 60px; border-bottom: 1px solid #e0e0e0; }
  
  
  
  /* SEARCH BAR (AI PLACEHOLDER) */
  .search-wrapper { margin-top: 60px; max-width: 600px; position: relative; }
  .search-input { 
    width: 100%; padding: 20px 20px 20px 50px; border: 1px solid #000; 
    font-family: var(--font-primary); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
    background: #f9f9f9; transition: 0.3s;
  }
  .search-input:focus { background: #fff; outline: none; border-color: #000; }
  .search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 16px; }

  /* FILTER NAV */
  .filter-nav { 
    padding: 40px 0; display: flex; flex-wrap: wrap; gap: 10px; 
    border-bottom: var(--border-thick);
  }
  
  .filter-btn {
    padding: 10px 20px; border: 1px solid #e0e0e0; background: #fff; 
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; 
    cursor: pointer; transition: 0.3s;
  }
  .filter-btn:hover { border-color: #000; }
  .filter-btn.active { background: #000; color: #fff; border-color: #000; }

  /* LIBRARY GRID */
  .library-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; 
    border-left: var(--border-thick); border-right: var(--border-thick); border-bottom: var(--border-thick);
  }
  
  .lib-card { 
    padding: 40px; border-right: 1px solid #000; border-bottom: 1px solid #000; 
    display: flex; flex-direction: column; justify-content: space-between; 
    transition: 0.3s; min-height: 350px; background: #fff;
  }
  /* Remove right border on 3rd item to fit grid */
  .lib-card:nth-child(3n) { border-right: none; }
  .lib-card:hover { background: #f4f4f4; }

  .lib-cat { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; display: block; }
  .lib-title { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; margin-bottom: 20px; font-style: italic; }
  .lib-excerpt { font-size: 13px; line-height: 1.6; color: #555; margin-bottom: 30px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  
  .lib-link { 
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; 
    text-decoration: none; border-bottom: 1px solid #000; align-self: flex-start; 
    padding-bottom: 2px; color: #000;
  }

  /* HIDE/SHOW LOGIC */
  .lib-card.hidden { display: none; }

  /* RESPONSIVE */
  @media (max-width: 1024px) { 
    .library-grid { grid-template-columns: repeat(2, 1fr); }
    .lib-card:nth-child(2n) { border-right: none; }
    .lib-card:nth-child(3n) { border-right: 1px solid #000; } /* Reset */
  }
  @media (max-width: 768px) { 
    .library-grid { grid-template-columns: 1fr; }
    .lib-card { border-right: none; }
    
  }
/* ============================================================
 * PAGE: ARTIST GALLERY
 * ============================================================ */
/* HERO */
  .art-hero { padding: 140px 0 100px; border-bottom: 1px solid #e0e0e0; }
  
  
  
  .curator-note {
    font-size: 18px; line-height: 1.6; max-width: 700px; font-weight: 300; 
    border-left: 2px solid #000; padding-left: 30px; margin-top: 40px;
  }

  /* ARTIST SPOTLIGHT */
  .artist-section { padding: 120px 0; }
  .artist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  
  .artist-img { width: 100%; height: 600px; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
  .artist-img:hover { filter: grayscale(0%); }
  
  .artist-name { font-family: var(--font-serif); font-style: italic; font-size: 60px; line-height: 1; margin-bottom: 20px; }
  .artist-bio { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 30px; }

  /* GALLERY GRID */
  .gallery-section { background: var(--color-offwhite); padding: 120px 0; }
  .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  
  .art-piece { background: #fff; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.3s; }
  .art-piece:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
  
  .art-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 20px; background: #ddd; }
  .art-title { font-family: var(--font-serif); font-style: italic; font-size: 24px; margin-bottom: 5px; }
  .art-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #888; }

  /* PHILOSOPHY BLOCK */
  .philo-block { background: #000; color: #fff; padding: 100px 0; text-align: center; }
  .philo-text { font-size: clamp(24px, 4vw, 40px); font-family: var(--font-serif); font-style: italic; max-width: 900px; margin: 0 auto; line-height: 1.4; }

  /* RESPONSIVE */
  @media (max-width: 1024px) { 
    .artist-grid { grid-template-columns: 1fr; } 
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) { 
     
    .gallery-grid { grid-template-columns: 1fr; }
  }
/* ============================================================
 * PAGE: WEARABLE SHOP
 * ============================================================ */
/* HERO */
  .shop-hero { padding: 140px 0 60px; border-bottom: 1px solid #e0e0e0; }
  
  
  
  /* FILTERS */
  .shop-filter { padding: 40px 0; display: flex; gap: 30px; border-bottom: var(--border-thick); }
  .filter-link { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #888; cursor: pointer; transition: 0.3s; }
  .filter-link:hover, .filter-link.active { color: #000; }

  /* PRODUCT GRID */
  .product-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; 
    border-left: var(--border-thick); border-right: var(--border-thick); border-bottom: var(--border-thick);
  }
  
  .product-card { 
    padding: 40px; border-right: var(--border-thick); border-bottom: var(--border-thick); 
    display: flex; flex-direction: column; justify-content: space-between; 
    transition: 0.3s; position: relative;
  }
  .product-card:nth-child(3n) { border-right: none; }
  .product-card:hover { background: #f9f9f9; }

  /* PRODUCT DETAILS */
  .prod-badge { 
    position: absolute; top: 20px; right: 20px; background: #000; color: #fff; 
    font-size: 10px; padding: 5px 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
  }
  
  .prod-img { width: 100%; aspect-ratio: 1/1; object-fit: contain; margin-bottom: 30px; mix-blend-mode: multiply; }
  
  .prod-name { font-family: var(--font-serif); font-size: 28px; margin-bottom: 10px; font-style: italic; line-height: 1.1; }
  .prod-sub { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #888; margin-bottom: 20px; letter-spacing: 1px; }
  .prod-desc { font-size: 13px; line-height: 1.6; color: #555; margin-bottom: 30px; }

  /* PRICING BLOCK */
  .price-block { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; border-top: 1px solid #e0e0e0; padding-top: 20px; }
  .price-label { font-size: 10px; text-transform: uppercase; color: #aaa; display: block; margin-bottom: 5px; }
  .price-val { font-size: 16px; font-weight: 700; }
  
  .shop-btn { 
    display: inline-block; padding: 10px 20px; border: 1px solid #000; 
    text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 1px; 
    text-decoration: none; color: #000; transition: 0.3s;
  }
  .shop-btn:hover { background: #000; color: #fff; }

  /* PROCUREMENT BANNER */
  .procure-banner { background: #000; color: #fff; padding: 80px 0; text-align: center; margin-top: 0; }

  /* RESPONSIVE */
  @media (max-width: 1024px) { 
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card:nth-child(2n) { border-right: none; }
    .product-card:nth-child(3n) { border-right: var(--border-thick); }
  }
  @media (max-width: 600px) { 
     
    .product-grid { grid-template-columns: 1fr; }
    .product-card { border-right: none; }
  }
/* ============================================================
 * HEADER — BLACK OPEN + MEGA MENU (v1.1.5)
 * ============================================================ */

/* --- Header Shell --- */
.macbach-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s, box-shadow 0.4s;
}

.macbach-header--scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.3);
}

.macbach-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* --- Logo --- */
.macbach-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.macbach-header__logo-img {
  height: 44px;
  width: auto;
}

/* --- Desktop Nav --- */
.macbach-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.macbach-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.macbach-nav__item {
  position: relative;
}

.macbach-nav__link {
  display: block;
  padding: 28px 22px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-family: var(--font-primary);
  white-space: nowrap;
}

.macbach-nav__link:hover,
.macbach-nav__item:hover > .macbach-nav__link {
  color: #fff;
}

/* --- Mega Menu Panel --- */
.macbach-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 780px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.macbach-nav__item--mega:hover .macbach-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.macbach-mega__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.macbach-mega__inner--2col {
  grid-template-columns: 1fr 1fr;
}

.macbach-mega__inner > :nth-child(1)::after,
.macbach-mega__inner > :nth-child(2)::after {
  display: none;
}

.macbach-mega__col {
  padding: 40px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.macbach-mega__col:last-child {
  border-right: none;
}

.macbach-mega__col--accent {
  background: rgba(160, 186, 177, 0.06);
}

.macbach-mega__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #a0bab1;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(160, 186, 177, 0.15);
}

.macbach-mega__link {
  display: block;
  text-decoration: none;
  padding: 12px 0;
  transition: transform 0.25s;
  border-radius: 0;
}

.macbach-mega__link:hover {
  transform: translateX(6px);
}

.macbach-mega__link:hover .macbach-mega__title {
  color: #a0bab1;
}

.macbach-mega__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  transition: color 0.25s;
  letter-spacing: 0.3px;
}

.macbach-mega__desc {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.macbach-mega__cta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #a0bab1;
  text-decoration: none;
  padding: 14px 0;
  transition: color 0.25s, transform 0.25s;
  letter-spacing: 0.3px;
}

.macbach-mega__cta:hover {
  color: #fff;
  transform: translateX(6px);
}

/* --- CTA Button + Mobile Toggle --- */
.macbach-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.macbach-header__cta {
  display: inline-block;
  padding: 10px 28px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #0a0a0a;
  background: #a0bab1;
  text-decoration: none;
  transition: all 0.3s;
  font-family: var(--font-primary);
}

.macbach-header__cta:hover {
  background: #fff;
  color: #000;
}

/* Toggle — only visible on mobile */
.macbach-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
}

.macbach-header__toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 26px;
}

.macbach-header__toggle-line {
  height: 1px;
  background: #fff;
  transition: all 0.3s;
  display: block;
  width: 100%;
}

.macbach-header__toggle--active .macbach-header__toggle-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.macbach-header__toggle--active .macbach-header__toggle-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --- Mobile Drawer --- */
.macbach-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #0a0a0a;
  z-index: 2000;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.macbach-drawer--open {
  right: 0;
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.4);
}

.macbach-drawer__inner {
  padding: 120px 50px 50px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.macbach-drawer__links {
  display: flex;
  flex-direction: column;
}

.macbach-drawer__link {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s, transform 0.3s;
  display: block;
}

.macbach-drawer__link:hover {
  color: #fff;
  transform: translateX(6px);
}

.macbach-drawer__quick {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #a0bab1;
}

.macbach-drawer__cta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #a0bab1;
  padding: 12px 0;
  text-decoration: none;
  transition: color 0.3s;
}

.macbach-drawer__cta:hover {
  color: #fff;
}

.macbach-drawer__footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.macbach-drawer__footer a,
.macbach-drawer__footer span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 1px;
}

.macbach-drawer__footer a:hover {
  color: #a0bab1;
}

/* Overlay */
.macbach-drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.macbach-drawer__overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Main content offset --- */
.macbach-main {
  padding-top: 80px; /* Default: offset for fixed header */
}

/* Homepage: video bleeds under header, no offset */
.macbach-front .macbach-main {
  padding-top: 0;
}

/* --- Video Hero --- */
.macbach-hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.macbach-hero-video__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1e383a 50%, #0a0a0a 100%); /* fallback while video loads */
}

/* Mobile: static hero image instead of Vimeo */
.macbach-hero-video__mobile-img {
  display: none;
}

@media (max-width: 768px) {
  .macbach-hero-video__mobile-img {
    display: block;
    opacity: 0.3;
  }
  .macbach-hero-video__media {
    background: linear-gradient(135deg, #0a0a0a 0%, #1e383a 50%, #0a0a0a 100%);
  }
}

.macbach-hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.macbach-hero-video__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 50px 100px;
  max-width: 1440px;
  margin: 0 auto;
}

.macbach-hero-video__headline {
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.88;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 30px;
}

.macbach-hero-video__sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin-bottom: 35px;
}

.macbach-hero-video__actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.macbach-hero-video__btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-decoration: none;
  transition: all 0.3s;
  font-family: var(--font-primary);
}

.macbach-hero-video__btn--primary {
  background: #a0bab1;
  color: #0a0a0a;
  border: 1px solid #a0bab1;
}

.macbach-hero-video__btn--primary:hover {
  background: #fff;
  border-color: #fff;
}

.macbach-hero-video__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.macbach-hero-video__btn--ghost:hover {
  border-color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .macbach-nav {
    display: none;
  }
  .macbach-header__toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .macbach-drawer {
    width: 100%;
    right: -100%;
  }
  .macbach-drawer--open {
    right: 0;
  }
  .macbach-drawer__inner {
    padding: 100px 30px 30px;
  }
}

@media (max-width: 600px) {
  .macbach-header__inner {
    padding: 0 20px;
  }
  .macbach-drawer__inner {
    padding: 100px 25px 30px;
  }
  .macbach-hero-video__content {
    padding: 0 20px 60px;
  }
  .macbach-header__cta {
    display: none;
  }
}



/* ============================================================
 * FOOTER
 * ============================================================ */
.macbach-footer {
  background: #000;
  color: #fff;
  padding: 80px 0 40px;
}

.macbach-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.macbach-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.macbach-footer__logo-text {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  display: block;
  margin-bottom: 15px;
}

.macbach-footer__tagline {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

.macbach-footer__location {
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

.macbach-footer__heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  display: block;
  margin-bottom: 20px;
}

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

.macbach-footer__links li {
  margin-bottom: 12px;
}

.macbach-footer__links a {
  font-size: 13px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.macbach-footer__links a:hover {
  color: #fff;
}

.macbach-footer__tagline-bar {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin-bottom: 30px;
}

.macbach-footer__cta-tagline {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.macbach-footer__bottom {
  border-top: 1px solid #222;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.macbach-footer__copy {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.macbach-footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.macbach-footer__legal li a {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .macbach-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .macbach-footer__inner {
    padding: 0 20px;
  }
  .macbach-footer__grid {
    grid-template-columns: 1fr;
  }
  .macbach-footer__bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}


/* ============================================================
 * MACBACH CONTACT FORM
 * ============================================================ */
.macbach-form {
  width: 100%;
}

.macbach-form__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  margin-bottom: 30px;
}

.macbach-form__status {
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.macbach-form__status--success {
  background: #f0fdf0;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.macbach-form__status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.macbach-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.macbach-form__field {
  margin-bottom: 20px;
}

.macbach-form__row .macbach-form__field {
  margin-bottom: 0;
}

.macbach-form__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 8px;
}

.macbach-form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #000;
  transition: border-color 0.3s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.macbach-form__input:focus {
  outline: none;
  border-color: #000;
}

.macbach-form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.macbach-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.macbach-form__submit {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.macbach-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .macbach-form__row {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
 * VALIA AI CHAT INTERFACE (v2.0.1)
 * ============================================================ */
.valia-chat-section {
  background: #0a0a0a;
  padding: 0;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.valia-chat-header {
  padding: 60px 50px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.valia-chat-header__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.valia-chat-header__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
}

/* Chat Container */
.valia-chat-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

/* Messages Area */
.valia-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 40px 0;
  scroll-behavior: smooth;
}

.valia-chat__messages::-webkit-scrollbar {
  width: 4px;
}

.valia-chat__messages::-webkit-scrollbar-track {
  background: transparent;
}

.valia-chat__messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Message Bubbles */
.valia-chat__bubble {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  animation: valiaChatFadeIn 0.3s ease;
}

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

.valia-chat__bubble--user {
  justify-content: flex-end;
}

.valia-chat__bubble--user .valia-chat__content {
  background: rgba(160, 186, 177, 0.12);
  color: #fff;
  padding: 16px 22px;
  border-radius: 2px 16px 16px 16px;
  max-width: 70%;
  font-size: 14px;
  line-height: 1.6;
}

.valia-chat__bubble--assistant {
  align-items: flex-start;
}

.valia-chat__avatar {
  width: 32px;
  height: 32px;
  background: rgba(160, 186, 177, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
}

.valia-chat__bubble--assistant .valia-chat__content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.75;
  max-width: 85%;
}

.valia-chat__bubble--assistant .valia-chat__content p {
  margin: 0 0 12px;
}

.valia-chat__bubble--assistant .valia-chat__content p:last-child {
  margin-bottom: 0;
}

.valia-chat__bubble--assistant .valia-chat__content strong {
  color: #fff;
  font-weight: 600;
}

.valia-chat__bubble--assistant .valia-chat__content em {
  color: #a0bab1;
}

.valia-chat__bubble--assistant .valia-chat__content a {
  color: #a0bab1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.valia-chat__bubble--assistant .valia-chat__content a:hover {
  color: #fff;
}

.valia-chat__h2 {
  display: block;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin: 20px 0 10px;
}

.valia-chat__h3 {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #a0bab1;
  margin: 16px 0 8px;
}

.valia-chat__list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.valia-chat__list li {
  padding: 6px 0 6px 16px;
  position: relative;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.valia-chat__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 4px;
  height: 4px;
  background: #a0bab1;
  border-radius: 50%;
}

.valia-chat__inline-code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  font-size: 13px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Typing Indicator */
.valia-chat__dots {
  display: flex;
  gap: 5px;
  padding: 14px 0;
}

.valia-chat__dots span {
  width: 6px;
  height: 6px;
  background: rgba(160, 186, 177, 0.4);
  border-radius: 50%;
  animation: valiaDotPulse 1.4s infinite both;
}

.valia-chat__dots span:nth-child(2) { animation-delay: 0.2s; }
.valia-chat__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes valiaDotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Starter Questions */
.valia-chat__starters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 30px;
}

.valia-chat__starter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 12px 20px;
  font-size: 13px;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 0;
  text-align: left;
  line-height: 1.4;
}

.valia-chat__starter:hover {
  background: rgba(160, 186, 177, 0.08);
  border-color: rgba(160, 186, 177, 0.3);
  color: #fff;
}

/* Input Area */
.valia-chat__input-wrap {
  padding: 20px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.valia-chat__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 16px 20px;
  font-size: 14px;
  font-family: var(--font-primary);
  resize: none;
  min-height: 52px;
  max-height: 160px;
  line-height: 1.5;
  transition: border-color 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
}

.valia-chat__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.valia-chat__input:focus {
  outline: none;
  border-color: #a0bab1;
}

.valia-chat__send {
  background: #a0bab1;
  border: none;
  color: #0a0a0a;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  flex-shrink: 0;
  border-radius: 0;
}

.valia-chat__send:hover {
  background: #fff;
}

.valia-chat__send:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.valia-chat__send svg {
  width: 18px;
  height: 18px;
}

/* Disclaimer */
.valia-chat__disclaimer {
  padding: 16px 50px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.valia-chat__disclaimer p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .valia-chat-header {
    padding: 40px 20px 20px;
  }
  .valia-chat-wrap {
    padding: 0 15px;
  }
  .valia-chat__bubble--user .valia-chat__content {
    max-width: 85%;
  }
  .valia-chat__disclaimer {
    padding: 12px 20px;
  }
  .valia-chat__starters {
    flex-direction: column;
  }
}


/* ============================================================
 * ARTICLE LIBRARY GRID (v2.1.0)
 * ============================================================ */
.lib-section {
  padding: 100px 0 140px;
  background: #fff;
}

.lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 50px;
}

.lib-filter-btn {
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  border: 1px solid #ddd;
  color: #555;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-primary);
  border-radius: 0;
}

.lib-filter-btn:hover {
  border-color: #000;
  color: #000;
}

.lib-filter-btn--active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
}

.lib-card {
  padding: 40px 35px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}

.lib-card:hover {
  background: #f9f9f9;
}

.lib-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a0bab1;
  display: block;
  margin-bottom: 15px;
}

.lib-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 15px;
  flex: 0;
}

.lib-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.25s;
}

.lib-title a:hover {
  color: #a0bab1;
}

.lib-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin-bottom: auto;
  flex: 1;
}

.lib-link {
  display: inline-block;
  margin-top: 25px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}

.lib-link:hover {
  color: #a0bab1;
  border-color: #a0bab1;
}

@media (max-width: 1024px) {
  .lib-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .lib-grid {
    grid-template-columns: 1fr;
  }
  .lib-filters {
    gap: 6px;
  }
  .lib-filter-btn {
    padding: 8px 14px;
    font-size: 11px;
  }
}

/* Streaming cursor */
.valia-chat__cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: #a0bab1;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: valiaCursorBlink 0.8s infinite;
}

@keyframes valiaCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* ============================================================
 * METABOLIC LIBRARY — WHITE PAGE + SLIDE-OUT AI (v2.2.0)
 * ============================================================ */

/* Hero */
.lib-hero-section {
  padding: 140px 0 80px;
  border-bottom: 1px solid #eee;
}

/* AI Trigger Field */
.lib-ai-trigger {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 28px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s;
  max-width: 500px;
}

.lib-ai-trigger:hover {
  border-color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.lib-ai-trigger span {
  font-size: 14px;
  color: #999;
  font-family: var(--font-primary);
}

/* Load More */
.lib-load-more-wrap {
  text-align: center;
  padding: 60px 0 20px;
}

.lib-filter-count {
  opacity: 0.4;
  font-weight: 400;
}

/* ============================================================
 * SLIDE-OUT AI CHAT PANEL
 * ============================================================ */
.valia-ai-panel {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: #0a0a0a;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0);
}

.valia-ai-panel--open {
  right: 0;
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.3);
}

.valia-ai-panel__header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.valia-ai-panel__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

.valia-ai-panel__sub {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
}

.valia-ai-panel__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  transition: color 0.25s;
}

.valia-ai-panel__close:hover {
  color: #fff;
}

.valia-ai-panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.valia-ai-panel__body .valia-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 30px 30px 10px;
}

.valia-ai-panel__body .valia-chat__input-wrap {
  padding: 15px 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.valia-ai-panel__disclaimer {
  padding: 12px 30px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* Panel overlay */
.valia-ai-panel__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s;
}

.valia-ai-panel__overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* FAB (Floating Action Button) */
.valia-ai-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  height: 52px;
  padding: 0 20px;
  gap: 8px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2998;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.valia-ai-fab:hover {
  background: #1e383a;
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hide FAB when panel is open */
.valia-ai-panel--open ~ .valia-ai-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .valia-ai-panel {
    width: 100%;
    right: -100%;
  }
  .valia-ai-panel--open {
    right: 0;
  }
  .valia-ai-panel__body .valia-chat__messages {
    padding: 20px 20px 10px;
  }
  .valia-ai-panel__body .valia-chat__input-wrap {
    padding: 12px 20px 15px;
  }
  .valia-ai-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}


/* Portal vendor branding */
.portal-icon {
  margin-bottom: 18px;
  width: 48px;
  height: 48px;
  background: rgba(160, 186, 177, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-brand {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a0bab1;
  display: block;
  margin-bottom: 8px;
}

/* Portal brand marks */
.portal-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.portal-brand-mark--sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 0;
}

.portal-card-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.portal-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: block;
}

/* App logo icons */
.app-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Practice management logos (slightly larger than ecosystem) */
.portal-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 16px;
}

/* ============================================================
 * ACCESSIBILITY (v2.2.0)
 * ============================================================ */

/* Skip Navigation */
.macbach-skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #a0bab1;
  color: #0a0a0a;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s;
}

.macbach-skip-link:focus {
  top: 10px;
  outline: 3px solid #a0bab1;
  outline-offset: 2px;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #a0bab1;
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #a0bab1;
  outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Legal pages */
.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 40px 0 15px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.legal-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 25px 0 10px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 15px;
}

.legal-content a {
  color: #a0bab1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Visual Breadcrumbs */
.macbach-breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #999;
  background: transparent;
}

.macbach-breadcrumb a {
  color: #a0bab1;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.macbach-breadcrumb a:hover {
  color: #7a9e95;
}

.macbach-breadcrumb__sep {
  margin: 0 8px;
  color: #ccc;
}

.macbach-breadcrumb__current {
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Breadcrumbs */
.macbach-breadcrumbs {
  padding: 12px 0;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
}

.macbach-breadcrumbs a {
  color: #a0bab1;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}

.macbach-breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.macbach-breadcrumbs__sep {
  color: #ccc;
  margin: 0 8px;
}

.macbach-breadcrumbs span[aria-current] {
  color: #888;
  text-transform: uppercase;
  font-weight: 400;
}

/* ============================================================
 * CONTRAST FIX — Sage accessibility
 * #a0bab1 = decorative only (labels, borders, accents)
 * #5a8a7e = functional text (links, interactive elements)
 * Passes WCAG AA 4.5:1 on white backgrounds
 * ============================================================ */

/* Links on light backgrounds */
.legal-content a,
.macbach-breadcrumbs a {
  color: #5a8a7e;
}

/* Ensure form focus rings still use original sage (on dark outline = fine) */

/* Interactive elements on white */
.about-faq-injection a {
  color: #5a8a7e;
}

/* Cookie Consent */
.macbach-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0a0a0a;
  color: #ccc;
  padding: 16px 30px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid #333;
}

.macbach-cookie--visible {
  transform: translateY(0);
}

.macbach-cookie a {
  color: #a0bab1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.macbach-cookie__btn {
  background: #a0bab1;
  color: #0a0a0a;
  border: none;
  padding: 8px 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
}

@media (max-width: 600px) {
  .macbach-cookie {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}
