/* solutions.css — styles for templates/main/pages/solutions.html
   Extracted verbatim from the design file's inline <style> blocks.
   Loaded ONLY by that page (see css/INVENTORY.md). */

/* ---- <style> block 1 of 1 from reference_new_design (verbatim) ---- */
  :root{
    --navy:#1a2267;
    --navy-ink:#141b52;
    --coral:#FE2B6B;
    --teal:#159AA9;
    --cyan:#85F7E7;
    --mauve:#B23E87;
    --ink:#1C1838;
    --muted:#565858;
    --line:#dee1e3;
    --surface:#f7fafc;
    --teal-light:#e8f5f6;
    --white:#ffffff;
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    font-family:"Open Sans", system-ui, -apple-system, sans-serif;
    color:var(--ink);
    background:var(--white);
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.display{
    font-family:"Manrope", sans-serif;
  }
  a{color:inherit;}

  /* ---------- Header: styles live in css/site-header.css (shared by every page) ---------- */

  /* ---------- Hero ---------- */
  .hero{
    position:relative; overflow:hidden;
    background:var(--navy);
    background-image: radial-gradient(85% 100% at 0% 100%, rgba(178,62,135,0.45), transparent 60%);
    color:var(--white);
    padding:56px 32px 40px;
  }
  /* Decorative sonar-style rings, anchored off the bottom-left corner. */
  .hero-rings{
    position:absolute; bottom:0; left:0; width:820px; height:820px; pointer-events:none;
  }
  .hero-inner{
    position:relative; z-index:1;
    max-width:1280px; margin:0 auto;
    display:flex; flex-direction:column; align-items:center; gap:40px;
  }
  .hero-copy{ width:100%; }
  .pill{
    display:inline-block; font-size:13px; font-weight:600; letter-spacing:0.05em; text-transform:uppercase;
    color:var(--navy); background:var(--cyan); padding:6px 14px; border-radius:1000px; margin-bottom:16px;
  }
  .hero h1{ font-size:36px; line-height:1.2; margin:0 0 12px; font-weight:700; }
  .hero p{ font-size:16px; line-height:1.5; max-width:680px; color:#dfe2f5; margin:0; }

  /* Looping "Introduction to Prescience" video, tinted with the same
     brand-gradient treatment as the domain card headers (see JS's
     industryAccent()) rather than shown at native color. Card is a 16:9 box
     matching the video's own aspect ratio exactly, so object-fit:cover below
     shows the full frame instead of cropping the sides to fit a square. */
  /* Review 16-11-2026: the tinted video blended into the navy hero and had no
     controls. Now: lighter border + shadow to lift the card, the tint is gone,
     and the video shows native play/pause controls (controls attribute). */
  .hero-video-card{
    position:relative; width:100%; max-width:480px; aspect-ratio:16/9; flex-shrink:0;
    overflow:hidden; border-radius:16px; border:2px solid rgba(255,255,255,0.55);
    box-shadow:0 18px 40px rgba(0,0,0,0.45), 0 0 0 6px rgba(133,247,231,0.12);
    background:#000;
  }
  .hero-video-card video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .hero-video-tint{ display:none; }

  @media (min-width: 860px){
    .hero-inner{ flex-direction:row; align-items:center; justify-content:space-between; }
    .hero-copy{ max-width:600px; }
  }

  /* ---------- Toggle ---------- */
  .toolbar{
    position:sticky; top:80px; z-index:40; background:var(--white); border-bottom:1px solid var(--line);
  }
  .toolbar-inner{
    max-width:1280px; margin:0 auto; padding:16px 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  }
  .toggle{
    display:inline-flex; background:var(--surface); border:1px solid var(--line); border-radius:1000px; padding:4px;
  }
  .toggle button{
    border:none; background:transparent; cursor:pointer; padding:10px 20px; border-radius:1000px;
    font-family:"Open Sans", sans-serif; font-weight:600; font-size:14px; color:var(--muted);
    transition:background .15s ease, color .15s ease, transform .2s ease;
  }
  .toggle button.active{ background:var(--navy); color:var(--white); }
  .toggle button:hover{ transform:translateY(-1px); }

  /* ---------- Content ---------- */
  main{ max-width:1280px; margin:0 auto; padding:32px; }
  .grid-label{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--teal); margin:0 0 16px; }

  /* By-Domain layout: a fixed(-feeling) left nav of industries next to the
     scrolling content. "Fixed" is implemented as position:sticky rather than
     position:fixed so the nav stays inside the centered 1280px column
     instead of pinning to the raw browser edge — it still never moves while
     the content beside it scrolls. Only active in domain view; industry
     view keeps its single-column grid (see .content-area, no modifier). */
  .content-area.domain-mode{ display:grid; grid-template-columns:240px 1fr; gap:32px; align-items:start; }

  /* `top` and `max-height` are set from the toolbar's own measured height in
     JS, not a hardcoded guess (see updateStickyOffsets), so the nav docks
     flush under the sticky header+toolbar at any width and never runs off
     the bottom of tall viewports. */
  .domain-side-nav{ display:none; position:sticky; }
  .content-area.domain-mode .domain-side-nav{ display:block; overflow-y:auto; }
  .domain-side-nav-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; border-left:2px solid var(--line); }
  .domain-side-nav-link{
    display:block; width:100%; text-align:left; font-family:inherit; font-size:14px; font-weight:600; cursor:pointer;
    padding:10px 16px; margin-left:-2px; border:none; border-left:2px solid transparent; background:none;
    color:var(--muted); line-height:1.35;
    transition:background .2s cubic-bezier(0.4,0,0.2,1), color .2s cubic-bezier(0.4,0,0.2,1), border-color .2s cubic-bezier(0.4,0,0.2,1);
  }
  .domain-side-nav-link:hover{ color:var(--navy); background:rgba(26,34,103,0.05); }
  .domain-side-nav-link.active{ color:var(--navy); border-left-color:var(--navy); background:rgba(26,34,103,0.06); font-weight:700; }

  @media (max-width: 900px){
    /* A skinny fixed left column doesn't work once the content column gets
       this narrow, so the nav collapses into the same sticky horizontal
       pill-strip pattern the old filter bar used, docked above the content
       instead of beside it. */
    .content-area.domain-mode{ display:block; }
    .content-area.domain-mode .domain-side-nav{
      position:sticky; z-index:30; background:var(--white); border-bottom:1px solid var(--line);
      margin:0 -32px 24px; padding:12px 32px; max-height:none !important; overflow-x:auto; overflow-y:hidden;
    }
    .domain-side-nav-list{ flex-direction:row; flex-wrap:nowrap; border-left:none; gap:8px; }
    .domain-side-nav-link{
      white-space:nowrap; border:1px solid var(--navy); border-radius:1000px; padding:7px 16px; margin-left:0;
    }
    .domain-side-nav-link.active{ background:var(--navy); color:var(--white); }
  }
  @media (max-width: 720px){
    .content-area.domain-mode .domain-side-nav{ margin:0 -16px 20px; padding:12px 16px; }
  }

  .industry-tag{
    display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em;
    color:var(--mauve); background:#f7ecf3; padding:3px 10px; border-radius:1000px; margin-bottom:8px;
  }

  .domain-chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
  .domain-chip{
    font-size:12px; font-weight:600; color:var(--navy); background:var(--white); border:1px solid var(--line);
    padding:5px 12px; border-radius:1000px;
  }

  /* ---------- Industry grid (always-expanded boxes) ---------- */
  .industry-grid{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:24px;
  }
  .industry-box{
    display:flex; flex-direction:column; border:1px solid var(--line); border-radius:16px; background:var(--white);
    overflow:hidden;
    opacity:0; transform:translateY(32px);
    transition:opacity .55s cubic-bezier(.16,.84,.44,1), transform .55s cubic-bezier(.16,.84,.44,1), box-shadow .3s ease;
  }
  /* Left via the top (scrolling down past it) — come back in from above when scrolling up */
  .industry-box[data-from="above"]{ transform:translateY(-32px); }
  .industry-box.in-view{ opacity:1; transform:translateY(0); }
  .industry-box:hover{ transform:translateY(-6px); box-shadow:0 16px 32px rgba(26,34,103,0.14); }
  .box-image{
    position:relative; width:100%; height:110px; display:flex; align-items:center; justify-content:center;
    color:rgba(255,255,255,0.92); overflow:hidden;
  }
  .box-image img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
  .industry-box:hover .box-image img{ transform:scale(1.05); }
  .box-image .placeholder-icon{ width:36px; height:36px; opacity:0.9; transition:transform .35s ease; }
  .industry-box:hover .box-image .placeholder-icon{ transform:scale(1.12); }
  .box-image .placeholder-label{
    position:absolute; bottom:10px; left:12px; font-size:11px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
    background:rgba(0,0,0,0.28); padding:3px 10px; border-radius:1000px;
  }
  .box-body{ padding:20px 20px 22px; display:flex; flex-direction:column; flex:1; }
  .box-title{ font-size:17px; font-weight:700; color:var(--navy); margin:0 0 8px; }
  .box-intro{ font-size:13px; line-height:1.55; color:var(--muted); margin:0 0 14px; }
  .box-domains-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--teal); margin:0 0 8px; }
  .box-domain-list{ margin:0 0 16px; padding-left:18px; }
  .box-domain-list li{ font-size:13px; color:var(--ink); line-height:1.6; }
  .box-subtopics-empty{ font-size:13px; font-style:italic; color:var(--muted); margin:0 0 16px; }
  .box-divider{ border:none; border-top:1px solid var(--line); margin:0 0 14px; }
  .box-cases-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--muted); margin:0 0 10px; }
  .box-pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
  .box-pill{
    display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; text-decoration:none; cursor:pointer;
    padding:6px 12px; border-radius:1000px; white-space:nowrap; font-family:inherit;
    background:transparent; color:var(--navy); border:1px solid var(--navy);
    transition:background .15s ease, transform .2s ease;
  }
  .box-pill:hover{ background:rgba(26,34,103,0.06); transform:translateY(-1px); }

  /* Domain box: no image slot — a brand-gradient header block leads instead
     (see JS's industryAccent()), then straight into the body. Just the
     domain name — no repeated industry tag, since the section header (or
     the active filter pill) already says which industry it's in. */
  .domain-header{ padding:20px; }
  .domain-body{ padding-top:16px; }

  /* Domain view: one section per industry, each with its own header and its
     own id (see renderDomainSection) so the left nav's items are real anchor
     targets for both click-to-scroll and scrollspy highlighting. */
  #card-list.domain-groups{ display:flex; flex-direction:column; gap:40px; scroll-margin-top:8px; }
  .domain-section-header{ display:flex; align-items:center; gap:12px; margin:0 0 16px; }
  .domain-section-dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
  .domain-section-title{ margin:0; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--navy); }
  .domain-section-rule{ flex:1; height:1px; background:var(--line); }

  /* ---------- Closing CTA footer (shown in both views) ---------- */
  .solutions-footer{ background:var(--ink); padding:64px 32px; }
  .footer-inner{ max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:24px; }
  .footer-card{
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:36px;
    opacity:0; transition:opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1), box-shadow .3s ease;
  }
  .footer-card:nth-child(1){ transform:translateX(-48px); }
  .footer-card:nth-child(2){ transform:translateX(48px); }
  .footer-card.in-view{ opacity:1; transform:translateX(0); }
  .footer-card:hover{ transform:translateY(-6px); box-shadow:0 20px 40px rgba(0,0,0,0.35); }
  .footer-icon{
    width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:20px;
    transition:transform .35s ease;
  }
  .footer-card:hover .footer-icon{ transform:scale(1.1); }
  .footer-icon svg{ width:22px; height:22px; }
  .footer-title{ font-family:"Manrope", sans-serif; font-size:20px; font-weight:700; color:var(--white); margin:0 0 12px; }
  .footer-text{ font-size:14px; line-height:1.6; color:#b7b8d1; margin:0 0 28px; }
  .footer-btn{
    display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; text-decoration:none; cursor:pointer;
    padding:12px 24px; border-radius:1000px; font-family:inherit;
    transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .footer-btn-primary{ background:var(--coral); color:var(--white); border:none; }
  .footer-btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 20px rgba(254,43,107,0.35); }
  .footer-btn-secondary{ background:transparent; color:var(--white); border:1px solid var(--cyan); }
  .footer-btn-secondary:hover{ background:rgba(255,255,255,0.1); transform:translateY(-2px); }

  @media (max-width: 1080px){
    .industry-grid{ grid-template-columns:repeat(2, 1fr); }
  }
  @media (max-width: 720px){
    main{ padding:20px 16px; }
    .hero{ padding:36px 16px 28px; }
    .hero h1{ font-size:26px; }
    .toolbar-inner{ padding:12px 16px; }
    .industry-grid{ grid-template-columns:1fr; }
    .footer-inner{ grid-template-columns:1fr; }
    .solutions-footer{ padding:48px 16px; }
  }

  @media (prefers-reduced-motion: reduce){
    .industry-box, .footer-card, .box-image img, .box-image .placeholder-icon, .footer-icon{
      transition:none !important;
    }
    .industry-box, .footer-card{ opacity:1 !important; transform:none !important; }
  }
