/* ==========================================
       1. GLOBAL DESIGN SYSTEM & BRAND COLORS
       ========================================== */
    :root {






      --shadow: 0 10px 28px rgba(0,0,0,.28);

      --r2: 14px;
      --max: 1120px;

    }

    .afs-project-detail {
      font-family: var(--font);
      color: var(--ink);
      background: linear-gradient(180deg, var(--bg), var(--bg2));
      padding: 24px 16px;
      min-height: 100vh;
    }
    .wrap { max-width: var(--max); margin: 0 auto; }
    a { color: inherit; }

    /* ==========================================
       2. HEADER & NAVIGATION BAR
       ========================================== */
    .nav-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0 20px;
      border-bottom: 1px solid var(--stroke);
      margin-bottom: 30px;
    }
    .back-link {
      text-decoration: none;
      font-weight: 900;
      color: var(--accent);
      font-size: 14px;
    }
    .back-link:hover { text-decoration: underline; }

    /* ==========================================
       3. HERO BANNER
       ========================================== */
    .project-hero {
      margin-bottom: 40px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      padding-bottom: 24px;
    }
    .kicker {
      color: var(--accent);
      font-weight: 900;
      letter-spacing: .5px;
      margin: 0 0 8px;
      font-size: 13px;
      text-transform: uppercase;
    }
    .project-hero h1 {
      margin: 0 0 16px;
      font-size: clamp(26px, 4vw, 42px);
      line-height: 1.15;
    }

    /* ==========================================
       4. INTERWOVEN REPORT LAYOUT
       ========================================== */
    .case-section {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 40px;
      align-items: center;
      margin-bottom: 56px;
    }
    .case-section.reverse {
      grid-template-columns: 0.9fr 1.1fr;
    }

    .text-block h2 {
      font-size: 19px;
      color: var(--accent);
      margin: 0 0 14px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .text-block p {
      font-size: 14.5px;
      line-height: 1.65;
      color: var(--muted);
      margin: 0 0 16px;
    }
    .text-block strong { color: var(--ink); }

    /* Technical Diagram Canvas */
    .diagram-canvas {
      background: #f4f7f9; /* Matte canvas base ensures colored heatmap thresholds remain highly scannable */
      border: 1px solid var(--stroke);
      border-radius: var(--r);
      box-shadow: var(--shadow);
      padding: 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .diagram-canvas img {
      width: 100%;
      height: auto;
      max-height: 360px;
      object-fit: contain;
      border-radius: calc(var(--r) - 4px);
    }
    .diagram-caption {
      margin-top: 12px;
      font-size: 11px;
      color: #142838;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      text-align: center;
      line-height: 1.4;
    }

    /* Comparison Dual Grid for Before/After */
    .comparison-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 56px;
    }

    /* ==========================================
       5. SUMMARY PANELS & CALL TO ACTION
       ========================================== */
    .data-footer-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 32px;
      border-top: 1px solid var(--stroke);
      padding-top: 40px;
      margin-top: 20px;
      align-items: center;
    }

    .spec-panel {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--stroke);
      border-radius: var(--r2);
      padding: 24px;
      box-shadow: var(--shadow);
    }
    .panel-title {
      margin: 0 0 16px;
      font-size: 15px;
      font-weight: 900;
      color: var(--accent);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      padding-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .tech-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      text-align: left;
    }
    .tech-table td {
      padding: 10px 8px;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      color: var(--muted);
      vertical-align: top;
    }
    .tech-table tr:last-child td { border-bottom: none; }
    .qty-badge { font-weight: 900; color: var(--accent); }

    .btn-whatsapp {
      display: block;
      text-align: center;
      text-decoration: none;
      font-weight: 900;
      border-radius: 999px;
      padding: 18px 24px;
      border: 2px solid var(--accent);
      color: #1a2c3c;
      background: var(--accent);
      transition: all .15s ease;
      font-size: 15px;
      box-shadow: 0 4px 16px rgba(244,160,0,0.25);
    }
    .btn-whatsapp:hover {
      transform: translateY(-1px);
      background: #caa502;
      border-color: #caa502;
    }

    /* Responsive scaling adjustments */
    @media (max-width: 860px) {
      .case-section, .case-section.reverse, .comparison-grid, .data-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }
      .case-section { direction: ltr; }
      .case-section.reverse .text-block { order: 1; }
      .case-section.reverse .diagram-canvas { order: 2; }
    }

    /* EMBEDDED FOOTER */
    .embed-footer {
      margin-top: 36px;
      border-radius: var(--r);
      border: 1px solid var(--stroke);
      background: rgba(255,255,255,.03);
      box-shadow: var(--shadow);
      padding: 18px 16px;
      text-align: center;
    }
    .embed-footer .footer-nav {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
      margin: 0 0 10px;
      font-weight: 900;
    }
    .embed-footer .footer-nav a {
      color: var(--accent);
      text-decoration: none;
    }
    .embed-footer .footer-nav a:hover { text-decoration: underline; }
    .embed-footer .footer-meta {
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.5;
      margin: 0 auto;
      max-width: 95ch;
    }
    .embed-footer .footer-meta a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 900;
    }
    .embed-footer .footer-meta a:hover { text-decoration: underline; }
    .copyright-footer {
      margin-top: 18px;
      text-align: center;
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.3px;
    }
