/* ========================================
   DIRECTION A: BOLD CANVAS — WORDPRESS SOLUTIONS
   Ported from concept-a-wordpress-solutions.html
   Hero with brace frame + animated code typewriter + watermark "W",
   6-card "What We Build" grid, 4-tier pricing (Start/Grow/Scale/Custom),
   final CTA section. WD&D archetype.
   ======================================== */

/* Kadence Neutralization (:where wrapped — from line 1, applies before any custom rules) */
:where(body.pop-wordpress-solutions-template) h1,
:where(body.pop-wordpress-solutions-template) h2,
:where(body.pop-wordpress-solutions-template) h3,
:where(body.pop-wordpress-solutions-template) h4,
:where(body.pop-wordpress-solutions-template) h5,
:where(body.pop-wordpress-solutions-template) h6 {
  color: inherit; font-family: inherit; font-weight: inherit;
}
:where(body.pop-wordpress-solutions-template) p { margin: 0; }
:where(body.pop-wordpress-solutions-template) ul,
:where(body.pop-wordpress-solutions-template) ol { margin: 0; padding: 0; list-style: none; }
:where(body.pop-wordpress-solutions-template) a { color: inherit; text-decoration: none; }

:root {
  --navy: #1B2A4A;
  --navy-light: #2D4066;
  --cream: #FAF8F5;
  --cream-warm: #F5F0E8;
  --white: #FFFFFF;
  --coral: #E85D4A;
  --coral-light: #FF7A6A;
  --amber: #E8A84C;
  --teal: #1A9B8C;
  --teal-light: #3DB8A9;
  --blue-accent: #4A7FE5;
  --text-primary: #1B2A4A;
  --text-secondary: #5A6B7F;
  --text-light: #6B7785;
  --border-subtle: rgba(27, 42, 74, 0.08);
  --pop-purple: #8232AA;

  --font-display: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-brand: 'Space Grotesk', 'Inter', sans-serif;
  --section-pad: var(--space-section-m); /* 40 → 72 — Token Pack rem-based (was 40 → 64 px-based) */
  --hero-to-first-pad: var(--space-section-s); /* 32 → 56 — Token Pack rem-based */
  --section-pad-tight: clamp(1.5rem, calc(1.07rem + 2.14vw), 2.5rem); /* 24 → 40 — rem-based, was px-based */
  --container-max: 1320px;
  --container-pad: var(--space-container-pad); /* 24 → 60 — Token Pack rem-based */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-display); color: var(--text-primary); background: var(--cream); overflow-x: hidden; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }

    /* MAIN CONTENT */
    main {
      margin-top: 92px;
    }

    section {
      padding: var(--section-pad) 0;
    }


    section.cream-bg {
      background: var(--cream);
    }

    section.white-bg {
      background: var(--white);
    }

    /* ======== HERO ======== */
    .service-hero {
      display: flex;
      align-items: center;
      padding: 16px 0 32px;
      position: relative;
      overflow: hidden;
      background: var(--white);
    }

    .service-hero-content {
      width: 100%;
      position: relative;
      z-index: 2;
    }

    /* Bracket wrap: position:relative so hero-frame spans just this block */
    .hero-bracket-wrap {
      position: relative;
      padding: 24px 0;
    }

    .hero-main-row {
      display: grid;
      grid-template-columns: 2fr 3fr;
      gap: 60px;
      align-items: center;
      position: relative;
      z-index: 2;
    }

    .hero-left-col {
      position: relative;
      padding: 0 24px;
      min-width: 0;
      transform: translateY(-2px);
    }

    .hero-right-col {
      position: relative;
      transform: translateY(9px);
    }

    /* Desktop only: float the CTA button to the right, aligned with subhead's last line.
       min-height locks the right col so headline + subhead don't re-center when button leaves flow. */
    @media (min-width: 769px) {
      .hero-right-col {
        min-height: 280px;
      }
      .hero-right-col .hero-buttons {
        position: absolute;
        right: 30px;
        bottom: -8px;
      }
    }

    /* WP Code Accent Panel */
    .wp-code-accent {
      background: var(--white);
      border: 1px solid rgba(27, 42, 74, 0.1);
      border-top: 3px solid var(--teal);
      border-radius: 12px;
      padding: 14px 20px;
      width: 100%;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(27, 42, 74, 0.07);
      height: 280px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
    }

    .code-bg-art {
      position: absolute;
      top: calc(50% + 20px);
      left: 50%;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      transform: translate(-50%, -50%);
      opacity: 0.85;
      z-index: 0;
      pointer-events: none;
    }
    .code-file-label, .code-block {
      position: relative;
      z-index: 1;
    }

    .code-file-label {
      font-family: var(--font-brand);
      font-size: var(--type-micro);
      color: var(--text-light);
      letter-spacing: 0.5px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .code-file-label::before {
      content: '●';
      color: var(--teal);
      font-size: var(--type-micro);
    }

    .code-block {
      font-family: 'Courier New', Courier, monospace;
      font-size: var(--type-eyebrow);
      line-height: 1.35;
      color: var(--text-secondary);
      white-space: pre;
      overflow: hidden;
      flex: 1;
      min-width: 0;
    }

    .code-block .c-comment { color: var(--text-light); }
    .code-block .c-keyword { color: var(--teal); }
    .code-block .c-fn      { color: var(--coral); }
    .code-block .c-str     { color: var(--pop-purple); }
    .code-block .c-var     { color: var(--navy); }

    .code-scroll-inner {
      transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      min-width: 0;
    }

    /* Hero Frame — Angle Brackets
       Split: < on left col, > on right col.
       Each bracket is absolutely positioned within its column. */
    .hero-frame {
      display: none; /* replaced by per-column brackets */
    }
    .hero-brace-left,
    .hero-brace-right {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      z-index: 3;
    }
    .hero-brace-left {
      left: -12px;
    }
    .hero-brace-right {
      right: -12px;
    }
    .hero-brace-left path,
    .hero-brace-right path {
      fill: none;
      stroke: var(--navy);
      stroke-width: 5;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0.7;
      stroke-dasharray: 600;
      stroke-dashoffset: 600;
      transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .hero-brace-left.drawn path,
    .hero-brace-right.drawn path {
      stroke-dashoffset: 0;
    }

    /* CODE BLOCK LINE REVEAL */
    .code-line {
      display: block;
      min-height: 1.35em;
      opacity: 0;
      transform: translateX(-6px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .code-line.typed {
      opacity: 1;
      transform: translateX(0);
    }
    .code-cursor {
      display: inline;
      color: var(--teal);
      font-weight: 700;
      animation: blink-code-cursor 0.8s step-end infinite;
      opacity: 0;
    }
    .code-cursor.active {
      opacity: 1;
    }
    @keyframes blink-code-cursor {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    /* HERO HEADLINE — BETTER type-in (no caret) */
    .type-in {
      display: inline-block;
      position: relative;
      white-space: nowrap;
    }

    .hero-breadcrumb {
      font-size: var(--type-eyebrow);
      color: var(--text-light);
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .hero-breadcrumb a { transition: color 0.2s; }
    .hero-breadcrumb a:hover { color: var(--coral); }

    .service-hero-headline {
      font-size: var(--type-hero-l);
      font-weight: 800;
      line-height: 0.98;
      letter-spacing: -0.03em;
      margin-bottom: 20px;
    }

    .service-hero-headline .serif {
      font-family: var(--font-serif);
      font-weight: 400;
      font-style: italic;
      letter-spacing: -0.01em;
      font-size: 1.12em;
    }

    .service-hero-headline .accent { color: var(--coral); }

    .service-hero-sub {
      font-size: clamp(1.0625rem, calc(1.01rem + 0.27vw), 1.25rem);
      color: var(--text-secondary);
      line-height: 1.65;
      margin-bottom: 20px;
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn-primary, .btn-secondary {
      padding: 14px 32px;
      border-radius: 100px;
      text-decoration: none;
      font-weight: 500;
      font-family: var(--font-brand);
      font-size: var(--type-body-s);
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.3s;
      display: inline-block;
    }

    .btn-primary {
      background: var(--coral);
      color: var(--white);
    }

    .btn-primary:hover {
      background: #E85D4A;
      transform: translateY(-2px);
    }

    .btn-secondary {
      background: transparent;
      color: var(--text-primary);
      border: 2px solid var(--text-primary);
    }

    .btn-secondary:hover {
      background: var(--text-primary);
      color: var(--white);
    }

    /* Testimonial — removed (Phase 2) */

    /* SECTION HEADERS */
    .section-header {
      max-width: 760px;
      margin: 0 0 24px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: var(--type-eyebrow);
      font-weight: 700;
      font-family: var(--font-brand);
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--pop-purple);
      margin-bottom: 8px;
    }
    .eyebrow::before {
      content: '';
      width: 24px;
      height: 2px;
      background: currentColor;
    }
    .eyebrow.no-line::before { display: none; }

    .section-header h2 {
      font-size: 2.625rem; /* 42px @ 16px root — Tom P3-D-1 fix 2026-05-01: scales at 200% */
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 20px;
      color: var(--text-primary);
    }

    .section-header h2 em {
      font-family: 'Playfair Display', serif;
      font-style: italic;
    }

    .section-description {
      font-size: 17px;
      line-height: 1.8;
      color: var(--text-light);
      max-width: 750px;
    }

    /* CARDS GRID */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
    }

    .card-icon {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(130, 50, 170, 0.10);
      color: var(--pop-purple);
      font-size: 24px;
      margin-bottom: 20px;
    }

    .card h3 {
      font-size: 20px;
      font-weight: 700;
      font-family: var(--font-brand);
      margin-bottom: 12px;
      color: var(--text-primary);
    }

    .card p {
      font-size: var(--type-body-s);
      line-height: 1.7;
      color: var(--text-light);
    }

    /* PRICING SECTION */
    .pricing-section .section-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-brand);
      font-size: var(--type-eyebrow);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--pop-purple);
      margin-bottom: 16px;
    }
    .pricing-section .section-eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }

    .section-title {
      font-size: var(--type-h2-xl);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.02em;
      margin-bottom: 1.25rem;
    }
    .section-title .light { font-weight: 300; color: var(--text-secondary); }

    .pricing-section {
      padding: 60px 0 var(--section-pad);
      background: #F5F0E8;
    }

    .pricing-header {
      max-width: none;
      margin-bottom: 48px;
    }
    .pricing-header .section-title {
      white-space: nowrap;
    }
    @media (max-width: 900px) {
      .pricing-header .section-title {
        white-space: normal;
      }
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }

    .pricing-card {
      background: var(--white);
      border-radius: 16px;
      padding: 36px 28px;
      text-align: center;
      transition: all 0.4s;
      border: 2px solid var(--coral);
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .pricing-card::before {
      content: '';
      position: absolute;
      top: -6px;
      left: 20px;
      right: 20px;
      height: 10px;
      background: var(--coral);
      border-radius: 100px;
    }

    .pricing-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 60px rgba(27, 42, 74, 0.08);
    }

    .pricing-tier {
      font-family: var(--font-brand);
      font-size: var(--type-caption);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.10em;
      color: var(--pop-purple);
      margin-bottom: 16px;
    }

    .pricing-range {
      font-size: 28px;
      font-weight: 800;
      color: var(--navy);
      margin-bottom: 4px;
      letter-spacing: -0.02em;
    }

    .pricing-timeline-tag {
      font-size: var(--type-caption);
      color: var(--text-light);
      margin-bottom: 20px;
    }

    .pricing-desc {
      font-size: var(--type-body-s);
      color: var(--text-secondary);
      line-height: 1.6;
      padding-top: 4px;
    }

    .pricing-best-for {
      margin-top: auto;
      padding-top: 16px;
      border-top: 1px solid var(--border-subtle);
    }

    .pricing-best-for-label {
      font-family: var(--font-brand);
      font-size: var(--type-micro);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.10em;
      color: var(--text-light);
      margin-bottom: 6px;
    }

    .pricing-best-for-text {
      font-size: var(--type-body-s);
      color: var(--navy);
      line-height: 1.5;
    }

    .pricing-note {
      max-width: 640px;
      font-size: var(--type-body-s);
      color: var(--text-secondary);
      line-height: 1.5;
      margin-top: 40px;
    }

    /* FINAL CTA */
    .final-cta {
      max-width: 700px;
      margin: 0 auto;
      text-align: center;
    }

    .final-cta h2 {
      font-size: 2.625rem; /* 42px @ 16px root — Tom P3-D-1 fix 2026-05-01: scales at 200% */
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 16px;
    }

    .final-cta h2 em {
      font-family: 'Playfair Display', serif;
      font-style: italic;
    }

    .final-cta p {
      font-size: 17px;
      color: var(--text-light);
      margin-bottom: 32px;
      line-height: 1.7;
    }

    .cta-buttons {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }

    

    /* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: none; }

    /* Container z-index handled by inline styles where needed */

    /* CARD ENHANCEMENTS */
    .card {
      background: rgba(130, 50, 170, 0.05);
      padding: 32px;
      border-radius: 12px;
      border: 1px solid rgba(0, 0, 0, 0.05);
      position: relative;
      border-top: 3px solid transparent;
      overflow: hidden;
      transition: transform 0.3s, box-shadow 0.3s;
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: 16px;
      row-gap: 14px;
      align-items: start;
    }
    .card .card-icon {
      grid-row: 1;
      grid-column: 1;
      align-self: center;
      margin-bottom: 0;
    }
    .card h3 {
      grid-row: 1;
      grid-column: 2;
      align-self: center;
      margin-bottom: 0;
    }
    .card p {
      grid-row: 2;
      grid-column: 1 / -1;
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      height: 3px;
      width: 100%;
      background: var(--pop-purple);
      transition: left 0.8s cubic-bezier(0.16,1,0.3,1);
    }

    .card.reveal.visible::before {
      left: 0;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }

    /* Testimonial enhancements — removed (Phase 2) */

    /* WORDPRESS WATERMARK PARALLAX */
    .wp-watermark {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 420px;
      font-weight: 700;
      color: rgba(27, 42, 74, 0.05);
      white-space: nowrap;
      z-index: 0;
      pointer-events: none;
      line-height: 1;
      user-select: none;
    }

    /* WP INTRO — logo + text side by side */
    .wp-intro-row {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }
    .wp-intro-logo {
      flex-shrink: 0;
      width: 180px;
      opacity: 0.12;
    }
    .wp-intro-logo img {
      width: 100%;
      height: auto;
      display: block;
      margin-top: -30px;
    }
    .wp-intro-text {
      flex: 1;
      max-width: 620px;
    }
    .wp-intro-cta {
      flex-shrink: 0;
      align-self: center;
      margin-left: 48px;
      transform: translateY(-4px);
    }
    .wp-intro-cta .btn-primary {
      background: var(--navy) !important;
      color: var(--white) !important;
      transition: background 0.2s ease, transform 0.2s ease;
    }
    .wp-intro-cta .btn-primary:hover {
      background: var(--coral) !important;
      transform: translateY(-2px);
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      section {
        padding: 48px 24px;
      }

      .service-hero-headline {
        font-size: 36px;
      }

      .service-hero-sub {
        font-size: var(--type-body-s);
      }

      .hero-main-row {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .hero-left-col {
        order: 2;
        padding: 0 28px;
      }

      .hero-right-col {
        order: 1;
      }

      .wp-code-accent {
        padding: 20px 24px;
      }

      .code-block {
        font-size: var(--type-eyebrow);
      }

      .section-header h2 {
        font-size: 1.75rem; /* 28px @ 16px root — Tom P3-D-1 fix 2026-05-01: scales at 200% */
      }

      .wp-intro-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
      }
      .wp-intro-logo {
        width: 80px;
      }
      .wp-intro-text {
        max-width: 100%;
      }

      .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .pricing-grid {
        grid-template-columns: 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .cta-buttons {
        flex-direction: column;
        align-items: center;
      }

      .cta-buttons .btn-primary,
      .cta-buttons .btn-secondary {
        width: 100%;
        text-align: center;
      }

      .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
      }

      .hero-buttons .btn-primary {
        width: auto;
      }
    }
  


/* ======== FOOTER ======== */
.site-footer {
  padding: 64px 0 32px;
  background: #F5F0E8;
  border-top: 1px solid rgba(27, 42, 74, 0.08);
}
.site-footer .container { max-width: 1320px; margin: 0 auto; padding: 0 var(--space-container-pad); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-heading { font-size: var(--type-eyebrow); font-weight: 700; font-family: var(--font-brand); letter-spacing: 0.08em; text-transform: uppercase; color: #1B2A4A; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: var(--type-caption); font-family: var(--font-brand); color: #5A6B7F; transition: color 0.2s; text-decoration: none; }
.footer-links li.footer-address { font-size: var(--type-caption); color: #5A6B7F; line-height: 1.6; font-family: var(--font-brand); }
.footer-links a:hover { color: #1B2A4A; }
.footer-brand-desc { font-size: var(--type-caption); color: #5A6B7F; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(27, 42, 74, 0.08); display: flex; justify-content: space-between; align-items: center; font-size: var(--type-eyebrow); color: #6B7785; }
.footer-bottom a { color: #6B7785; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #1B2A4A; }
.ai-powered-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 16px 6px 8px;
  background: rgba(27, 42, 74, 0.04);
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-radius: 100px;
  font-size: var(--type-micro); font-weight: 600; color: #5A6B7F;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.3s ease;
}
.ai-powered-badge:hover { background: rgba(27, 42, 74, 0.08); color: #1B2A4A; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ======== NAV ======== */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.4s; background: #FAF8F5; }
.site-nav.scrolled { background: rgba(250,248,245,0.95); backdrop-filter: blur(20px); padding: 14px 0; box-shadow: 0 1px 0 var(--border-subtle); }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links > li > a { font-size: var(--type-caption); font-weight: 700; font-family: var(--font-brand); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); transition: color 0.3s; }
.nav-links > li > a:hover { color: var(--navy); }
.nav-links .active { color: var(--navy); font-weight: 700; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #D33E26; color: var(--white) !important; border-radius: 100px; font-size: var(--type-caption); font-weight: 500; font-family: var(--font-brand); transition: all 0.3s; }
.nav-cta:hover { background: var(--coral-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,93,74,0.3); }
.nav-home { display: inline-flex; align-items: center; padding: 6px; border-radius: 6px; transition: all 0.2s; opacity: 0.5; }
.nav-home:hover { opacity: 1; background: rgba(27, 42, 74, 0.06); }
/* Dropdown (standard — used by About) */
.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 220px; background: #FFF; border-radius: 12px; box-shadow: 0 8px 32px rgba(27,42,74,0.12); padding: 8px 0; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s; transform: translateX(-50%) translateY(8px); pointer-events: none; z-index: 1001; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .dropdown-menu, .nav-dropdown:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: var(--type-eyebrow); font-weight: 500; color: #5A6B7F; transition: all 0.15s; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(27,42,74,0.04); color: #1B2A4A; }

/* Mega Menu — Services */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 640px; background: #FFF; border-radius: 16px;
  box-shadow: 0 12px 48px rgba(27,42,74,0.14), 0 0 0 1px rgba(27,42,74,0.04);
  padding: 28px 32px 20px; opacity: 0; visibility: hidden;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none; z-index: 1001;
}
.mega-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px;
}
.mega-menu-item {
  display: block; padding: 12px 14px; border-radius: 10px;
  transition: background 0.15s;
}
.mega-menu-item:hover { background: rgba(27,42,74,0.035); }
.mega-menu-item .mega-title {
  font-size: var(--type-caption); font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 8px; margin-bottom: 3px;
}
.mega-menu-item .mega-desc {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.5;
}
.mega-menu-item.mega-featured .mega-title { color: #D33E26; }
.mega-menu-item.mega-featured .mega-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(232, 93, 74, 0.08); color: #C7402D;
  padding: 2px 7px; border-radius: 4px; line-height: 1.4;
}
.mega-menu-footer {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(27,42,74,0.06);
  text-align: center;
}
.mega-menu-footer a {
  font-size: var(--type-eyebrow); font-weight: 600; color: #D33E26;
  transition: color 0.2s;
}
.mega-menu-footer a:hover { color: var(--coral-light); }

/* Tablet: mega menu stays but narrows */
@media (max-width: 1024px) and (min-width: 769px) {
  .mega-menu { width: 520px; padding: 24px 24px 16px; }
  .mega-menu-grid { gap: 4px 20px; }
  .mega-menu-item { padding: 10px 12px; }
  /* Pricing tiers — Andie P1 finding 2026-04-26.
     4-tier grid stayed at 4 columns at 820 viewport (~190px column width)
     where tier name + price + feature list became unreadable.
     Collapse to 2×2 paired comparison at tablet, then to 1-col at <768 (existing). */
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: hide mega menu (hamburger takes over) */

@media (max-width: 1024px) {
  /* Tighten gap below hero at 820 — Deborah responsive pass 2026-05-04 */
  .service-hero + .cream-bg { padding-top: 27px !important; }
  /* WP intro at 820 — hide inline W image, reposition watermark behind text, body takes half width. Deborah responsive pass 2026-05-04 */
  .wp-intro-row > img { display: none !important; }
  .wp-intro-row { position: relative; }
  .wp-intro-text { width: 50% !important; max-width: 50% !important; flex: 0 0 50% !important; position: relative; z-index: 2; }
  .wp-watermark { left: auto !important; right: 0 !important; top: 50% !important; transform: translateY(-50%) !important; font-size: 360px !important; line-height: 0.9 !important; color: rgba(27, 42, 74, 0.06) !important; pointer-events: none; z-index: 0; }
  /* Stack button text at 820 to fit narrow space next to body. Deborah responsive pass 2026-05-04 */
  .wp-intro-cta .btn-primary { max-width: 180px !important; padding: 14px 22px !important; line-height: 1.25 !important; text-align: center; display: inline-block; }
}

/* Stack button on smaller breakpoints only — Deborah responsive pass 2026-05-04 */
.br-820 { display: none; }

@media (max-width: 1024px) {
  .br-820 { display: inline; }
  /* Shift button into the visible area at 820 */
  .wp-intro-cta { justify-content: flex-start !important; padding-left: 0 !important; }
  .wp-intro-cta .btn-primary { max-width: 200px !important; padding: 12px 20px !important; line-height: 1.3 !important; font-size: 14px !important; }
  .wp-intro-row { gap: 24px !important; }

  /* Pull button left at 820 — Deborah responsive pass 2026-05-04 */
  .wp-intro-cta { margin-left: 1px !important; }
}

/* Mobile-only artwork inside section header (paired with PHP edit). Deborah responsive pass 2026-05-04 */
.wp-mobile-art { display: none; }
.wp-mobile-art img { width: 100%; height: auto; display: block; }
@media (max-width: 480px) {
  /* WP intro at 360 — hide inline W, full-width text. Deborah responsive pass 2026-05-04 */
  .wp-intro-row > img { display: none !important; }
  .wp-intro-logo { display: none !important; }
  .wp-watermark { display: none !important; }
  .br-820 { display: none !important; }
  .wp-intro-text { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; }
  /* Tighten gap below hero at 360 — 60% reduction. Deborah responsive pass 2026-05-04 */
  .service-hero { padding-bottom: 0 !important; }
  .service-hero + .cream-bg { padding-top: 0 !important; margin-top: -26px !important; }
  .wp-mobile-art { display: block; margin: 12px 0 16px; }
  .wp-code-accent { display: none !important; }
  .hero-brace-left, .hero-brace-right { display: none !important; }
  .service-hero img { opacity: 0.75 !important; width: 100% !important; left: 0 !important; right: auto !important; object-fit: contain !important; object-position: center top !important; transform: scale(1.5) !important; transform-origin: center top !important; -webkit-mask-image: none !important; mask-image: none !important; }
  /* Headline at 360 — bump up. Deborah responsive pass 2026-05-04 */
  .service-hero-headline { font-size: 42px !important; line-height: 1.1 !important; }
  /* Body sub at 360 — match AI page recipe (panel + 16px). Deborah responsive pass 2026-05-04 */
  .service-hero-sub {
    background: rgba(255, 255, 255, 0.72) !important;
    padding: 16px 18px !important;
    border-radius: 8px !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
}

/* WP intro CTA — POP brand purple, all breakpoints. Deborah responsive pass 2026-05-04 */
.wp-intro-cta .btn-primary { background: var(--pop-purple) !important; border-color: var(--pop-purple) !important; }
.wp-intro-cta .btn-primary:hover { background: #6e2891 !important; border-color: #6e2891 !important; }
