/* For Agencies page-specific CSS */

:root {
    --bg: #ffffff; --bg-soft: #f7f7f5; --bg-darker: #050510;
    --ink: #0a0a14; --ink-2: #2a2a35; --muted: #6b6b78;
    --line: #e8e8e3;
    --brand: {{ theme.brand.primary_color.color }}; --brand-2: {{ theme.brand.primary_color_2.color }}; --brand-soft: #efeaff;
    --accent: {{ theme.brand.accent_color.color }};
    --radius-md: 12px; --radius-lg: 18px;
    --shadow-md: 0 12px 24px -10px rgba(20,20,40,0.10);
    --shadow-lg: 0 30px 60px -20px rgba(20,20,40,0.18), 0 12px 28px -10px rgba(91,61,245,0.10);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink); background: var(--bg);
    font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
  .wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
  .serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--brand);
    background: var(--brand-soft); padding: 6px 12px; border-radius: 999px;
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

  .nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
  .logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
  .logo-img { height: 56px; display: block; }
  .logo-img.invert { filter: invert(1) brightness(2); }
  .nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--ink-2); font-weight: 500; }
  .nav-links a:hover { color: var(--brand); }
  .nav-cta { display: flex; gap: 10px; align-items: center; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1;
    border: 1px solid transparent; transition: all 0.15s ease; cursor: pointer; white-space: nowrap; }
  .btn-ghost { background: transparent; color: var(--ink-2); }
  .btn-ghost:hover { background: var(--bg-soft); }
  .btn-primary { background: var(--brand); color: #fff; }
  .btn-primary:hover { background: #4a30d4; }
  .btn-lg { padding: 14px 28px; font-size: 16px; }
  .btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
  .btn-outline:hover { background: var(--brand); color: #fff; }

  /* HERO */
  .agency-hero {
    background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
    padding: 88px 0 64px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .agency-hero h1 {
    font-size: var(--fs-h1); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.05;
    margin: 18px auto 20px; max-width: 880px;
  }
  .agency-hero h1 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400; font-style: italic; color: var(--brand);
  }
  .agency-hero .lede {
    color: var(--muted); font-size: 19px; max-width: 720px;
    margin: 0 auto 28px; line-height: 1.55;
  }
  .agency-hero .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

  /* SECTION COMMON */
  section { padding: 80px 0; border-bottom: 1px solid var(--line); }
  section:last-of-type { border-bottom: none; }
  section.dark { background: var(--bg-darker); color: #fff; border-bottom: none; }
  section h2 {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.1; margin: 12px 0 18px;
  }
  section h2 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400; font-style: italic; color: var(--brand);
  }
  section.dark h2 em { color: var(--brand-2); }
  section p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; }
  section.dark p { color: rgba(255,255,255,0.75); }

  /* BREAKTHROUGH */
  .breakthrough { text-align: center; }
  .breakthrough .wrap-narrow { text-align: left; }

  /* QUOTE CARDS */
  .quote-block { padding: 72px 0; background: var(--bg-soft); }
  .quote-card {
    background: #fff; border-left: 4px solid var(--brand);
    padding: 32px 36px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-md); max-width: 900px; margin: 0 auto;
  }
  .quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-size: 14px; }
  .quote-card .q {
    font-size: 19px; line-height: 1.6; color: var(--ink); font-weight: 500;
    margin-bottom: 22px;
  }
  .quote-card .q em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400; font-style: italic;
  }
  .quote-card .by { display: flex; align-items: center; gap: 14px; }
  .quote-card .by-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #2c1798);
    color: #fff; display: grid; place-items: center;
    font-weight: 700; font-size: 16px; flex-shrink: 0;
  }
  .quote-card .by-name { font-size: 15px; font-weight: 700; color: var(--ink); }
  .quote-card .by-title { font-size: 13px; color: var(--muted); margin-top: 2px; }

  /* HOW IT WORKS */
  .how-it-works { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
  .how-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
    margin-top: 36px;
  }
  .how-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px;
  }
  .how-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    font-weight: 800; font-size: 16px;
    margin-bottom: 16px;
  }
  .how-card h3 {
    font-size: 17px; font-weight: 700; color: var(--ink);
    margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.55; }
  .how-card p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

  /* CASE STUDY */
  .case-study { background: #fff; }
  .case-study .head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
  .case-study .head h2 em { color: var(--brand); }
  .case-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-bottom: 40px;
  }
  .case-cell {
    background: var(--bg-soft); border-radius: var(--radius-lg); padding: 28px;
  }
  .case-cell h3 {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--brand); margin: 0 0 12px; line-height: 1.55; }
  .case-cell p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
  .case-cell p:last-child { margin-bottom: 0; }
  .case-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    background: var(--bg-darker); color: #fff; padding: 40px;
    border-radius: var(--radius-lg); text-align: center;
  }
  .case-stat .num {
    font-size: 40px; font-weight: 800; color: var(--brand-2);
    letter-spacing: -0.02em; line-height: 1;
  }
  .case-stat .lbl {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.65); margin-top: 8px; font-weight: 600;
  }

  /* FINAL CTA */
  .final-cta { text-align: center; }
  .final-cta h2 em { color: var(--brand); }

  /* AWARDS */
  .awards-row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 24px; margin-top: 36px;
  }
  .award-tile {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; color: var(--ink-2);
    letter-spacing: 0.04em; text-transform: uppercase;
  }
  .award-tile .ic {
    color: var(--brand); font-size: 18px;
  }

  /* FOOTER */
  footer { background: var(--bg-darker); color: rgba(255,255,255,0.60); padding: 64px 0 28px; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
  .footer-cta-card { color: rgba(255,255,255,0.80); }
  .footer-cta-card .lede { font-size: 14px; line-height: 1.5; margin: 14px 0 18px; color: rgba(255,255,255,0.65); }
  footer .footer-heading { font-size: 11px; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; line-height: 1.55; }
  footer ul { list-style: none; padding: 0; margin: 0; }
  footer ul li { margin-bottom: 10px; }
  footer ul li a { color: rgba(255,255,255,0.60); font-size: 14px; transition: color 0.15s ease; }
  footer ul li a:hover { color: #fff; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
    display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.45); }

  @media (max-width: 800px) {
    .nav-links { display: none; }
    .how-grid { grid-template-columns: 1fr; }
    .case-grid, .case-stats { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }

  /* Nav dropdown — Resources */
  .nav-links .has-submenu { position: relative; }
  .nav-links .submenu-trigger {
    display: inline-flex; align-items: center; gap: 4px;
    cursor: pointer;
  }
  .nav-links .submenu-trigger .caret {
    font-size: 10px; transition: transform 0.15s ease;
    margin-top: 1px; color: var(--muted);
  }
  .nav-links .has-submenu:hover .submenu-trigger .caret,
  .nav-links .has-submenu:focus-within .submenu-trigger .caret {
    transform: rotate(180deg); color: var(--brand);
  }
  .nav-links .submenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 16px 40px -12px rgba(20,20,40,0.18);
    padding: 8px;
    min-width: 240px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 100;
  }
  .nav-links .submenu::before {
    content: ''; position: absolute; top: -4px; left: 0; right: 0; height: 12px;
  }
  .nav-links .has-submenu:hover .submenu,
  .nav-links .has-submenu:focus-within .submenu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
  }
  .nav-links .submenu a {
    display: block; padding: 10px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--ink-2);
    transition: all 0.12s ease;
  }
  .nav-links .submenu a:hover { background: var(--brand-soft); color: var(--brand); }
