/* ===== OPTECOS — Insights page CSS (auto-generated from source HTML) ===== */
/* Base64 url()s in source have been replaced with 'none'; logos render via header.php. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  button { font: inherit; cursor: pointer; border: none; background: none; }
  a { text-decoration: none; color: inherit; }
  img, svg { max-width: 100%; display: block; }
  :focus-visible { outline: 2px solid #C6A76A; outline-offset: 3px; border-radius: 2px; }

  .i-wrap {
    --warm-white: #F8F7F3;
    --ivory-2: #F2F0E9;
    --ink-navy: #17243A;
    --navy-70: rgba(23,36,58,0.70);
    --navy-50: rgba(23,36,58,0.50);
    --navy-15: rgba(23,36,58,0.15);
    --navy-10: rgba(23,36,58,0.10);
    --navy-08: rgba(23,36,58,0.08);
    --navy-04: rgba(23,36,58,0.04);
    --muted-gold: #C6A76A;
    --apricot: #E9B99A;
    --sky-blue: #A8C8EC;
    background: var(--warm-white); color: var(--ink-navy);
    font-family: 'Inter', sans-serif;
  }
  .i-wrap em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }

  .c-logo { display: inline-flex; align-items: center; line-height: 1; }
  
  
  


  .c-skip { position: absolute; left: -9999px; top: 0; background: #17243A; color: #F8F7F3; padding: 12px 20px; z-index: 200; border-radius: 0 0 6px 0; font-size: 14px; }
  .c-skip:focus { left: 0; }
  .c-btn-primary { padding: 15px 28px; border-radius: 100px; background: var(--ink-navy); color: var(--warm-white); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s, background 0.2s; }
  .c-btn-primary:hover { transform: translateY(-2px); background: #0d1626; }
  .c-btn-primary::after { content: '→'; transition: transform 0.2s; }
  .c-btn-primary:hover::after { transform: translateX(4px); }


  
  
  
  

  
  
  
  
  
  

  
  

  
  
  

  
  

  /* --- Mega menu --- anchored to the nav__inner, width-capped to prevent overflow --- */
  
  
  
  
  
  
  
  
  
  /* Offerings are informational text — no hover, no pointer, no link styling. */
  
  
  
  
  

  /* --- Mobile menu --- */
  
  
  
  
  
  
  
  
  
  
  

  /* Nested category trigger inside Services */
  
  
  
  
  
  
  /* Offerings on mobile are informational text — not links. */
  
  
  
  
  

  /* --- Responsive --- */
  
  @media (max-width: 960px) {
    
    
        /* no duplicate CTA on mobile */
    
  }
  
  

  .c-footer {
    background: #0F1826; color: var(--warm-white);
    padding: 64px 48px 28px;
  }
  .c-footer-inner { max-width: 1240px; margin: 0 auto; }
  .c-footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(248,247,243,0.1);
    margin-bottom: 22px;
  }
  .c-footer-brand .c-logo-img { height: 36px; width: 165px; }
  .c-footer-brand p {
    font-size: 13.5px; line-height: 1.6; opacity: 0.6; margin-top: 16px;
    max-width: 320px;
  }
  .c-footer-col h4 {
    font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted-gold); font-weight: 500; margin-bottom: 16px;
  }
  .c-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .c-footer-col a {
    font-size: 13.5px; color: var(--warm-white); opacity: 0.72;
    transition: opacity 0.2s;
  }
  .c-footer-col a:hover { opacity: 1; }
  .c-footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; opacity: 0.5;
  }
  .c-footer-bottom a { margin-left: 18px; color: inherit; }

  

  /* ===== INSIGHTS PAGE — i-prefixed ===== */

  /* Editorial intro */
  .i-intro { padding: 108px 48px 72px; }
  .i-intro-inner { max-width: 1240px; margin: 0 auto; }
  .i-eyebrow {
    display: inline-block;
    font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted-gold); font-weight: 500;
    padding-bottom: 10px; margin-bottom: 28px; position: relative;
  }
  .i-eyebrow::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 32px; height: 1px; background: var(--muted-gold);
  }
  .i-h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(40px, 6.2vw, 80px); font-weight: 400; line-height: 1.02;
    letter-spacing: -0.028em; margin-bottom: 28px; max-width: 16ch;
    color: var(--ink-navy); text-wrap: balance;
  }
  .i-h1 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; color: var(--ink-navy); }
  .i-intro-p {
    font-size: 18px; line-height: 1.6; opacity: 0.76;
    max-width: 640px;
  }

  /* Featured insight */
  .i-featured { padding: 20px 48px 100px; background: var(--warm-white); }
  .i-featured-inner { max-width: 1240px; margin: 0 auto; }
  .i-section-label {
    display: flex; align-items: center; gap: 14px;
    font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-navy); font-weight: 500;
    margin-bottom: 36px;
  }
  .i-section-label::before { content: ''; width: 24px; height: 1px; background: var(--muted-gold); }
  .i-featured-card {
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: 60px; align-items: center;
    padding-top: 40px; border-top: 1px solid var(--navy-10);
  }
  .i-featured-card.hidden { display: none; }
  .i-featured-visual {
    position: relative; aspect-ratio: 4/3;
    background: var(--ivory-2); overflow: hidden;
    border: 1px solid var(--navy-08);
  }
  .i-featured-visual svg { width: 100%; height: 100%; display: block; }

  /* Section-level preview note (one disclosure, not stamped per item) */
  .i-preview-note {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; margin-bottom: 36px;
    border: 1px solid var(--navy-10);
    background: var(--warm-white);
    font-size: 13px; color: var(--navy-70); line-height: 1.5;
  }
  .i-preview-note::before {
    content: ''; display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: var(--muted-gold); flex-shrink: 0;
  }
  .i-preview-note strong { color: var(--ink-navy); font-weight: 500; }

  .i-featured-meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted-gold); font-weight: 500;
    margin-bottom: 22px;
  }
  .i-featured-meta .dot { width: 3px; height: 3px; background: var(--navy-50); border-radius: 50%; }
  .i-featured-meta .read { color: var(--navy-70); }
  .i-featured-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; line-height: 1.15;
    letter-spacing: -0.015em; color: var(--ink-navy);
    margin-bottom: 20px; text-wrap: balance;
  }
  .i-featured-desc {
    font-size: 16px; line-height: 1.65; opacity: 0.76;
    margin-bottom: 30px; max-width: 54ch;
  }
  .i-read-link {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500; color: var(--ink-navy);
    padding-bottom: 4px; border-bottom: 1px solid var(--ink-navy);
    transition: color 0.2s, border-color 0.2s;
  }
  .i-read-link:hover { color: var(--muted-gold); border-color: var(--muted-gold); }
  .i-read-link .arrow { transition: transform 0.2s; display: inline-block; }
  .i-read-link:hover .arrow { transform: translateX(4px); }

  /* Explore by topic — filters */
  .i-topics { padding: 56px 48px 28px; border-top: 1px solid var(--navy-10); background: var(--ivory-2); }
  .i-topics-inner { max-width: 1240px; margin: 0 auto; }
  .i-topics-head {
    margin-bottom: 24px;
  }
  .i-topics-head h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.15;
    letter-spacing: -0.015em; color: var(--ink-navy);
    margin: 0;
  }
  .i-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
  .i-filter {
    padding: 10px 18px; border: 1px solid var(--navy-15);
    background: transparent; border-radius: 100px;
    font-size: 13px; font-weight: 500; color: var(--navy-70);
    transition: all 0.2s; white-space: nowrap;
    font-family: inherit;
  }
  .i-filter:hover { border-color: var(--ink-navy); color: var(--ink-navy); }
  .i-filter.active { background: var(--ink-navy); color: var(--warm-white); border-color: var(--ink-navy); }

  /* Latest thinking */
  .i-latest { padding: 72px 48px 110px; background: var(--ivory-2); }
  .i-latest-inner { max-width: 1240px; margin: 0 auto; }
  .i-latest-head { margin-bottom: 52px; max-width: 760px; }
  .i-latest-head h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 4.4vw, 46px); font-weight: 400; line-height: 1.08;
    letter-spacing: -0.02em; margin-bottom: 16px;
    color: var(--ink-navy); text-wrap: balance;
  }
  .i-latest-head h2 em { font-weight: 400; font-style: italic; }
  .i-latest-head p { font-size: 15.5px; opacity: 0.72; max-width: 60ch; line-height: 1.6; }

  /* Two prominent cards */
  .i-feature-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    padding-bottom: 56px; border-bottom: 1px solid var(--navy-10);
    margin-bottom: 8px;
  }
  .i-card {
    display: block; transition: transform 0.3s;
    /* Preview cards aren't clickable — the structure is ready for a real
       post URL when WordPress is wired up. */
    cursor: default;
  }
  .i-card.hidden, .i-row.hidden { display: none; }
  .i-card-visual {
    aspect-ratio: 16/10; overflow: hidden;
    background: var(--warm-white); border: 1px solid var(--navy-10);
    margin-bottom: 24px;
  }
  .i-card-visual svg { width: 100%; height: 100%; display: block; }
  .i-card-meta-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; flex-wrap: wrap;
  }
  .i-card-cat {
    font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted-gold); font-weight: 500;
  }
  .i-card-title {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 400; line-height: 1.22; letter-spacing: -0.014em;
    color: var(--ink-navy); margin-bottom: 14px;
    /* `pretty` avoids short orphan last lines; `balance` falls back where
       `pretty` isn't supported. Browsers that know neither just wrap normally. */
    text-wrap: pretty;
    text-wrap: balance;
  }
  .i-card-desc { font-size: 14.5px; line-height: 1.6; opacity: 0.74; margin-bottom: 16px; }
  .i-card-foot {
    display: flex; align-items: center; gap: 14px;
    font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--navy-50); font-weight: 500;
  }

  /* Editorial rows — metadata inline above the title, thumbnail on the right */
  .i-rows { display: flex; flex-direction: column; }
  .i-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    grid-template-areas:
      "meta  thumb"
      "body  thumb";
    column-gap: 40px; row-gap: 10px;
    padding: 28px 0; border-top: 1px solid var(--navy-10);
    align-items: start;
  }
  .i-row:last-child { border-bottom: 1px solid var(--navy-10); }

  .i-row-meta {
    grid-area: meta; align-self: start;
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
    font-weight: 500;
  }
  .i-row-cat { color: var(--muted-gold); letter-spacing: 0.14em; }
  .i-row-read { color: var(--navy-50); position: relative; padding-left: 14px; }
  .i-row-read::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 4px; height: 1px; background: var(--navy-15); transform: translateY(-50%);
  }

  .i-row-body { grid-area: body; min-width: 0; }
  .i-row-title {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 400; line-height: 1.22; letter-spacing: -0.012em;
    color: var(--ink-navy); margin-bottom: 8px; text-wrap: balance;
  }
  .i-row-desc { font-size: 14.5px; line-height: 1.55; opacity: 0.72; margin: 0; max-width: 64ch; }

  .i-row-thumb {
    grid-area: thumb; align-self: center;
    width: 160px; height: 100px;
    background: var(--warm-white);
    border: 1px solid var(--navy-10);
    overflow: hidden;
  }
  .i-row-thumb svg { width: 100%; height: 100%; display: block; }

  .i-empty { padding: 80px 0; text-align: center; color: var(--navy-70); font-size: 15px; display: none; }
  .i-empty.show { display: block; }

  /* Closing CTA */
  .i-cta { background: var(--ink-navy); color: var(--warm-white); padding: 110px 48px; }
  .i-cta-inner {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: 1.3fr 1fr;
    gap: 48px; align-items: end;
  }
  .i-cta-eyebrow {
    font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted-gold); font-weight: 500;
    margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px;
  }
  .i-cta-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--muted-gold); }
  .i-cta h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 4.5vw, 54px); font-weight: 400; line-height: 1.08;
    letter-spacing: -0.02em; color: var(--warm-white);
    margin-bottom: 20px; max-width: 16ch; text-wrap: balance;
  }
  .i-cta h2 em { color: var(--muted-gold); font-weight: 400; font-style: italic; }
  .i-cta-sub { font-size: 16px; opacity: 0.78; max-width: 50ch; line-height: 1.6; color: var(--warm-white); }
  .i-cta-action { display: flex; justify-content: flex-end; }
  .i-cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 30px; border-radius: 100px;
    background: var(--muted-gold); color: var(--ink-navy);
    font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
    transition: transform 0.2s, background 0.2s;
  }
  .i-cta-btn:hover { background: #d9ba82; transform: translateY(-2px); }
  .i-cta-btn .arrow { transition: transform 0.2s; display: inline-block; }
  .i-cta-btn:hover .arrow { transform: translateX(4px); }

  /* Cross-link above footer */
  .c-crosslink {
    padding: 28px 48px; background: var(--warm-white);
    text-align: center; font-size: 13.5px; opacity: 0.68; line-height: 1.5;
  }
  .c-crosslink a {
    color: var(--ink-navy); font-weight: 500;
    border-bottom: 1px solid rgba(198,167,106,0.4);
    padding-bottom: 1px; transition: border-color 0.2s;
  }
  .c-crosslink a:hover { border-color: var(--muted-gold); }
  .c-crosslink-sep {
    font-family: 'Fraunces', serif; font-style: italic;
    color: var(--muted-gold); opacity: 0.8; margin: 0 10px;
  }

  /* Responsive */
  @media (max-width: 1100px) {
    .i-featured-card { grid-template-columns: 1fr; gap: 40px; }
    .i-cta-inner { grid-template-columns: 1fr; gap: 36px; }
    .i-cta-action { justify-content: flex-start; }
  }
  @media (max-width: 900px) {
    .i-feature-row { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
    /* On tablet + mobile, the row becomes a single column: thumbnail on top,
       then meta and title/description beneath. Gives the title the full
       column width instead of fighting the thumbnail for space. */
    .i-row {
      grid-template-columns: 1fr;
      grid-template-areas:
        "thumb"
        "meta"
        "body";
      column-gap: 0; row-gap: 14px;
      padding: 28px 0;
    }
    .i-row-thumb {
      width: 100%; height: auto; aspect-ratio: 16/9; max-height: 180px;
    }
  }
  @media (max-width: 640px) {
    .i-intro, .i-featured, .i-topics, .i-latest, .i-cta { padding-left: 20px; padding-right: 20px; }
    .i-intro { padding-top: 56px; padding-bottom: 36px; }
    .i-featured { padding-top: 16px; padding-bottom: 60px; }
    .i-topics { padding-top: 40px; padding-bottom: 20px; }
    .i-latest { padding-top: 48px; padding-bottom: 64px; }
    .i-cta { padding-top: 64px; padding-bottom: 64px; }

    /* Topics / filters — intentional mobile design */
    .i-topics-head { margin-bottom: 18px; }
    .i-topics-head h2 { font-size: 22px; }
    .i-filters {
      flex-wrap: nowrap; overflow-x: auto;
      /* Bleed to the viewport edges, with padding inside so first/last
         chips aren't glued to the wall. */
      margin: 0 -20px;
      padding: 6px 20px 16px;
      gap: 8px;
      scrollbar-width: none; -webkit-overflow-scrolling: touch;
      scroll-padding-left: 20px;
    }
    .i-filters::-webkit-scrollbar { display: none; }
    .i-filter {
      padding: 11px 18px;      /* comfortable touch target */
      font-size: 13px;
      flex-shrink: 0;
    }

    /* Latest thinking — mobile */
    .i-latest-head { margin-bottom: 32px; }
    .i-row { row-gap: 12px; padding: 24px 0; }
    .i-row-thumb { max-height: 160px; }
    .i-row-title { font-size: 19px; }
    .i-row-desc { display: none; }
    .i-row-meta { font-size: 10.5px; gap: 10px; }
    .i-card-title { font-size: 21px; }
    .i-featured-title { font-size: 26px; }
    .i-featured-desc { font-size: 15px; }

    /* Footer — clean up mobile stacking */
    .c-footer { padding: 48px 20px 24px; }
    .c-footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 24px; }
    .c-footer-brand { grid-column: auto; }
    .c-footer-brand .c-logo-img { height: 30px; width: 138px; }
    .c-footer-brand p { margin-top: 14px; }
    .c-footer-bottom {
      flex-direction: column; align-items: flex-start; gap: 12px;
      font-size: 12px;
    }
    .c-footer-bottom > span:last-child {
      display: flex; gap: 20px;
    }
    .c-footer-bottom a { margin-left: 0; }
  }
  @media (max-width: 420px) {
    .i-h1 { font-size: 36px; }
    .i-topics-head h2 { font-size: 20px; }
    .i-filter { padding: 10px 16px; font-size: 12.5px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
  }

/* WordPress build: visuals are anchors wrapping an image or SVG fallback. */
.i-featured-visual, .i-card-visual, .i-row-thumb { display: block; overflow: hidden; }
.i-featured-visual img, .i-card-visual img, .i-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
