/* ================================================================
   Shared base CSS, sourced by push_*.ps1 scripts at push time.
   Contains design tokens, reset, typography, and component
   primitives that are universal across all four service pages.
   Page-specific CSS stays inline in each prototype's <style>
   block.

   Adding a new universal rule here propagates to every push
   script that sources this file. Single source of truth.
   ================================================================ */

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: #364B5D; background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Prototype annotation bar (stripped from post_content at push time;
   kept here so the .proto-bar class still renders during local dev) */
.proto-bar {
  background: #DEFF85; color: #022547; font-family: 'Lato', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-align: center; padding: 8px 16px;
  border-bottom: 2px solid #022547;
}

/* Design tokens */
:root {
  --navy:       #022547;
  --red:        #ED002B;
  --blue:       #107DFF;
  --body:       #364B5D;
  --light:      #F5F7FA;
  --light-blue: #F5FBFF;
  --light-gray: #F7F7F7;
  --green:      #00A865;
  --yellow:     #DEFF85;
  --border:     #D8DDE2;
  --white:      #ffffff;
}

/* Layout primitives */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Typography */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
h1 { font-size: 48px; font-weight: 700; line-height: 1.15; color: var(--white); }
h2 { font-size: 34px; font-weight: 700; line-height: 1.25; color: var(--navy); }
h3 { font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--navy); }
p  { font-size: 16px; line-height: 1.7; color: var(--body); }

/* Overview grid (eyebrow + 4-up info cards under section H2) */
.overview-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px;
}
.overview-item {
  background: var(--light); border-radius: 8px; padding: 14px 16px;
  border-left: 3px solid var(--navy);
  display: flex; align-items: flex-start; gap: 12px;
}
.overview-item-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.overview-item-icon svg { width: 14px; height: 14px; display: block; }
.overview-item p { font-size: 16px; color: var(--body); margin: 0; }

/* Platform chips (rounded pill row under hero) */
.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.platform-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px; font-weight: 700; color: var(--navy);
}

/* Utility components, used across multiple service pages.
   Promoted from inline styles in creative-services. Other pages
   can adopt by replacing matching inline patterns with class refs. */

/* Small uppercase tag pill (FAQ aside topic tags, similar callouts) */
.tag-pill {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 5px 10px; border-radius: 999px;
  background: #fff; color: var(--navy);
  border: 1px solid var(--border);
}

/* "Read more →" CTA link below cards */
.read-more {
  font-size: 14px; font-weight: 700; color: var(--blue);
}

/* Inline body-text links (the var(--blue) anchor pattern). Always underlined
   so links don't rely on color alone to be distinguishable from body text
   (Lighthouse a11y: "Links rely on color to be distinguishable"). */
a[style*="color:var(--blue)"],
a[style*="color: var(--blue)"] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Related-services card (used in the bottom-of-page cross-link grid) */
.related-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; display: block;
  box-shadow: 0 4px 18px rgba(13,27,42,0.04);
  text-decoration: none;
}

/* Portrait 9:16 image wrapped in a navy frame (UGC strips, ad mosaics) */
.frame-9-16-navy {
  background: #022547; border-radius: 8px; padding: 8px;
}
.frame-9-16-navy > img {
  width: 100%; aspect-ratio: 9/16; object-fit: cover;
  border-radius: 4px; display: block;
}

/* FAQ accordion (sidebar + open/close detail rows) */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white); border-radius: 8px; border: 1px solid var(--border);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; font-size: 17px; font-weight: 700; color: var(--navy);
  cursor: pointer; list-style: none; position: relative; padding-right: 48px;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 24px; top: 16px;
  font-size: 22px; font-weight: 400; color: var(--red);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body {
  padding: 0 24px 20px; font-size: 16px; color: var(--body); line-height: 1.65;
}
.faq-item .faq-body p { margin: 0 0 12px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }
.faq-item .faq-body a { color: var(--red); text-decoration: underline; }
