/* ========================================
   DIRECTION A: BOLD CANVAS — AI-POWERED SERVICES
   Ported from concept-a-ai-services.html
   Single-column hero with curly brace frame, AI accelerant
   illustration, what-changes 2-col, offerings grid, process timeline,
   why-section navy panel with comparison bars, final CTA.
   ======================================== */

:root {
  /* Color System */
  --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 Brand Colors */
  --pop-purple: #8232AA;
  --pop-coral: #E85D4A;
  --pop-yellow: #F5C300;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Space Grotesk', 'Inter', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --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 */
}

/* ========================================
   KADENCE NEUTRALIZATION LAYER (:where wrapped — specificity 0)
   Per feedback_wendy-kadence-neutralization-header — :where() pattern
   keeps neutralization at specificity 0 so per-element rules win naturally.
   ======================================== */
:where(body.pop-ai-services-template) h1,
:where(body.pop-ai-services-template) h2,
:where(body.pop-ai-services-template) h3,
:where(body.pop-ai-services-template) h4,
:where(body.pop-ai-services-template) h5,
:where(body.pop-ai-services-template) h6 {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

:where(body.pop-ai-services-template) p { margin: 0; }

:where(body.pop-ai-services-template) ul,
:where(body.pop-ai-services-template) ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Anchor baseline — :where wrapped to keep per-element button rules winning */
:where(body.pop-ai-services-template) a { color: inherit; text-decoration: none; }

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

/* ======== 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; }

/* ======== 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; height: 52px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links > li > a { font-family: var(--font-brand); font-size: var(--type-caption); font-weight: 700; 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; }
.mega-menu a { text-transform: none; letter-spacing: normal; font-family: var(--font-display); font-weight: 400; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #D33E26; color: var(--white) !important; border-radius: 100px; font-family: var(--font-brand); font-size: var(--type-caption); font-weight: 500; 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 / Mega menu */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.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; font-family: var(--font-brand); color: #1B2A4A; display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.mega-menu-item .mega-desc { font-size: 12.5px; color: #5A6B7F; 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: #FF7A6A; }
@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; }
}
@media (max-width: 768px) { .mega-menu { display: none; } }

/* ======== HERO (single-column with curly brace frame) ======== */
.service-hero {
  padding: 120px 0 36px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.service-hero-content { position: relative; z-index: 2; }

/* HERO FRAME — CURLY BRACES — positioned relative to <section>, not container */
.hero-frame {
  position: absolute;
  top: 147px;
  bottom: 20px;
  left: max(24px, calc(50% - 660px + 60px));
  right: max(24px, calc(50% - 255px));
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.hero-brace { width: 52px; flex-shrink: 0; }
.hero-brace path { fill: none; stroke: #1B2A4A; stroke-width: 3.5; stroke-linecap: round; }

.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-m);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  margin-left: 80px;
}
.service-hero-headline .serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.service-hero-headline .accent { color: var(--coral); }

.hero-sub-line {
  font-size: clamp(1.5rem, calc(1.43rem + 0.36vw), 1.75rem);
  font-weight: 600;
  color: var(--coral);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 13px;
  margin-left: 80px;
}

.service-hero-sub {
  font-size: var(--type-body-s);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 620px;
  margin-left: 80px;
}

/* Buttons — anchored to navy/cream system. Preserve nav-cta override above. */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 18px 36px; background: var(--navy); color: var(--white); border-radius: 100px; font-size: var(--type-body-s); font-weight: 500; font-family: var(--font-brand); transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(27,42,74,0.2); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 18px 32px; color: var(--navy); border: 2px solid var(--border-subtle); border-radius: 100px; font-size: var(--type-body-s); font-weight: 500; font-family: var(--font-brand); transition: all 0.3s; cursor: pointer; background: transparent; }
.btn-secondary:hover { border-color: var(--navy); }

/* ======== WHAT AI CHANGES ======== */
.what-changes { padding: var(--section-pad) 0; background: var(--white); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.section-eyebrow { font-size: var(--type-eyebrow); font-weight: 600; font-family: var(--font-brand); letter-spacing: 0.15em; text-transform: uppercase; color: var(--pop-purple); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.section-eyebrow.no-line::before { display: none; }
.section-title { font-size: var(--type-h2-xl); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.section-title .light { font-weight: 300; }
.section-body { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }

.change-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.change-card { background: var(--cream); border-radius: 16px; padding: 28px 24px; transition: all 0.3s; }
.change-card:hover { background: var(--white); box-shadow: 0 12px 40px rgba(27,42,74,0.06); }
.change-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.change-card h3 { font-size: 16px; font-weight: 700; font-family: var(--font-brand); margin-bottom: 8px; }
.change-card p { font-size: var(--type-caption); color: var(--text-secondary); line-height: 1.6; }

/* ======== AI SERVICE OFFERINGS ======== */
.offerings { padding: var(--section-pad) 0; background: var(--cream); }
/* What We Deliver section — tighten whitespace above eyebrow and below heading. Deborah responsive pass 2026-05-04 */
.offerings { padding-top: calc(var(--section-pad) - 30px); }
.offerings .section-header { margin-bottom: 36px; }
.offerings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.offering-card { background: var(--white); border-radius: 20px; padding: 28px 36px 37px 36px; /* Deborah responsive pass 2026-05-04: tighter top, slightly tighter bottom */ border: 1px solid transparent; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); position: relative; overflow: hidden; }
.offering-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(27,42,74,0.08); border-color: var(--border-subtle); }
.offering-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-color, var(--coral)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.offering-card:hover::before { transform: scaleX(1); }
.offering-number { font-size: 48px; font-weight: 900; color: var(--card-color, var(--coral)); opacity: 0.45; line-height: 1; margin-bottom: 16px; } /* Deborah responsive pass 2026-05-04: bumped from 0.15 for readability */
.offering-card h3 { font-size: 22px; font-weight: 700; font-family: var(--font-brand); margin-bottom: 12px; letter-spacing: -0.01em; }
.offering-card p { font-size: var(--type-body-s); color: var(--text-secondary); line-height: 1.65; margin-bottom: 20px; }
.offering-benefits { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.offering-benefits li { font-size: var(--type-caption); color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.offering-benefits li::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: var(--type-caption); }

/* ======== PROCESS ======== */
.process { padding: var(--section-pad) 0; background: var(--cream-warm); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.process-step { text-align: center; position: relative; }
.process-step:not(:last-child)::after { content: ''; position: absolute; top: 32px; right: -12px; width: 24px; height: 2px; background: var(--border-subtle); }
.step-number { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin: 0 auto 20px; color: var(--white); }
.step-1 .step-number { background: var(--coral); }
.step-2 .step-number { background: var(--teal); }
.step-3 .step-number { background: var(--blue-accent); }
.step-4 .step-number { background: var(--amber); }
.process-step h3 { font-size: 18px; font-weight: 700; font-family: var(--font-brand); margin-bottom: 8px; }
.process-step p { font-size: var(--type-body-s); color: var(--text-secondary); line-height: 1.6; max-width: 240px; margin: 0 auto; }

/* ======== WHY EXPERIENCE + AI (NAVY) ======== */
.why-section { padding: var(--section-pad) 0; background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.why-section::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: var(--coral); opacity: 0.04; right: -100px; top: -100px; }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.why-title { font-size: clamp(2rem, calc(1.68rem + 1.61vw), 3.125rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 24px; }
.why-title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: #F5C300; }
.why-text { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 36px; }
.why-points { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-point-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.why-point h4 { font-size: 16px; font-weight: 700; font-family: var(--font-brand); margin-bottom: 4px; color: var(--white); }
.why-point p { font-size: var(--type-caption); color: rgba(255,255,255,0.55); line-height: 1.6; }

/* Comparison visual */
.comparison-visual { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 40px; }
.compare-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.compare-row:last-child { border-bottom: none; }
.compare-label { font-size: var(--type-caption); font-weight: 500; color: rgba(255,255,255,0.5); width: 140px; }
.compare-bar { flex: 1; display: flex; align-items: center; margin: 0 20px; position: relative; }
.compare-fill { flex: 1; height: 3px; position: relative; }
.compare-fill::after { content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.compare-fill.coral { background: #F5C300; }
.compare-fill.coral::after { border-left: 8px solid #F5C300; }
.compare-fill.teal { background: var(--teal); }
.compare-fill.teal::after { border-left: 8px solid var(--teal); }
.compare-value { font-size: var(--type-caption); font-weight: 700; width: 60px; text-align: right; }
.compare-header { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.compare-header span { font-size: var(--type-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.compare-header .highlight { color: #F5C300; }

/* ======== FINAL CTA ======== */
.page-cta { padding: var(--section-pad) 0; background: var(--white); text-align: center; }
.page-cta-headline { font-size: clamp(2rem, calc(1.5rem + 2.5vw), 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.page-cta-sub { font-size: 17px; color: var(--text-secondary); margin-bottom: 36px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ======== 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 a:hover { color: #1B2A4A; }
.footer-links li.footer-address { font-size: var(--type-caption); color: #5A6B7F; line-height: 1.6; font-family: var(--font-brand); }
.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; font-family: var(--font-brand); }
.footer-bottom a { color: #6B7785; text-decoration: none; font-family: var(--font-brand); 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; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .two-col, .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .offerings-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* AI hero image — widen box at 820 so wide-aspect artwork fits without cropping. Deborah responsive pass 2026-05-04 */
  .service-hero img { width: 75% !important; right: calc(2% + 40px) !important; opacity: 0.7 !important; }
  /* AI hero right bracket — align with right edge of body content at 820. Deborah responsive pass 2026-05-04 */
  .hero-frame { right: 40px !important; }
  /* AI hero text — slide headline + sub-line + body 25px left at 820. Deborah responsive pass 2026-05-04 */
  .service-hero-headline, .hero-sub-line, .service-hero-sub { margin-left: 55px !important; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .change-cards { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  /* AI hero 360 — match Services hub pattern: brackets hidden, text aligned with breadcrumb. Deborah responsive pass 2026-05-04 */
  .service-hero-headline, .hero-sub-line, .service-hero-sub { margin-left: 0 !important; }
  .hero-frame { display: none; }
}

@media (max-width: 480px) {
  /* AI hero body — screen panel for legibility at 360. Deborah responsive pass 2026-05-04 */
  .service-hero-sub {
    background: rgba(255, 255, 255, 0.72);
    padding: 16px 18px;
    border-radius: 8px;
    margin-left: 12px !important;
    margin-right: 12px;
    font-size: 16px;
    line-height: 1.55;
  }
  /* AI hero image — move up 30px at 360. Deborah responsive pass 2026-05-04 */
  .service-hero img { top: 18px !important; width: 100% !important; right: 0 !important; }
  /* Coral sub-line — tight white glow for legibility against busy artwork at 360. Deborah 2026-05-04 */
  .hero-sub-line {
    text-shadow: 0 0 1.5px rgba(255,255,255,1), 0 0 1.5px rgba(255,255,255,1), 0 0 2px rgba(255,255,255,1);
  }
  /* Tighten gap between AI hero and next section at 360 — 45% reduction. Deborah responsive pass 2026-05-04 */
  .service-hero { padding-bottom: 16px !important; }
  .what-changes { padding-top: 16px !important; }


  /* Bump hero headline + coral subhero at 360 (Wendy May 5). */
  .service-hero-headline {
    font-size: 42px !important;
    line-height: 1.1 !important;
  }
  .hero-sub-line {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
}
