/* Shared presentation for the public agency and acquisition pages. */
.agency-page {
  --navy: #07192f;
  --navy2: #102c50;
  --ink: #10243c;
  --muted: #4d6075;
  --blue: #075ac5;
  --line: #d7e2ed;
  --agency-tint: #f2f6fa;
  --agency-radius: 16px;
  --agency-space: clamp(52px, 8vw, 108px);
  color: var(--ink);
  background: #fff;
}

.agency-page .shell { width: min(1160px, calc(100% - clamp(32px, 8vw, 104px))); }
.agency-page .nav-wrap { background: var(--navy); backdrop-filter: none; }
.agency-page .nav { height: 72px; }
.agency-page .brand-mark { font-size: 0; }
.agency-page .nav-links { gap: clamp(12px, 2vw, 28px); font-size: 14px; }
.agency-page .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.agency-page .nav-links .btn { font-size: 13px; }
.agency-page .nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

.agency-page .skip-link {
  position: fixed;
  z-index: 1100;
  top: 8px;
  left: 12px;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
}
.agency-page .skip-link:focus { transform: translateY(0); }
.agency-page :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.agency-page :is(.nav-wrap, .agency-case, .branch-cta, .quiz-section, .audit-header, footer) :is(a, button):focus-visible {
  outline-color: #a9d2ff;
}
.agency-page :is(section[id], #main-content, #directLeadForm, .quiz-card) { scroll-margin-top: 88px; }

.agency-page .btn {
  min-height: 46px;
  max-width: 100%;
  padding: 11px 17px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.4;
  text-align: center;
  box-shadow: none;
  white-space: normal;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.agency-page .btn:hover { transform: none; }
.agency-page .btn:not(.btn-dark, .btn-white, .btn-outline):hover { background: #064697; border-color: #064697; }
.agency-page .btn-white:hover { color: var(--navy); background: #eaf3ff; border-color: #eaf3ff; }
.agency-page .text-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
}
.agency-page .text-link:hover, .agency-page .industry-card:hover .text-link { text-decoration-color: currentColor; }

.agency-section, .agency-page .direct-section { padding-block: var(--agency-space); }
.agency-tint { background: var(--agency-tint); }
.agency-heading { max-width: 720px; margin-bottom: clamp(20px, 4vw, 36px); }
.agency-heading h2, .agency-page .direct-section .direct-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(29px, 4vw, 49px);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.agency-heading p, .agency-page .direct-section .direct-copy > p {
  max-width: 59ch;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}
.agency-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 24px); }
.agency-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--agency-radius);
}
.agency-card h3 { margin: 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.2; letter-spacing: -.024em; }
.agency-card p { margin: 0; color: var(--muted); }
.agency-card .text-link { margin-top: auto; }
.industry-card { border-top: 3px solid var(--blue); transition: border-color 150ms ease, background-color 150ms ease; }
.industry-card:hover { background: #f9fbfe; border-color: var(--blue); }
.agency-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 7vw, 90px); align-items: start; }
.agency-split .agency-heading { margin: 0; }

.agency-page .agency-hero {
  background: radial-gradient(ellipse at 86% 20%, #e4edfa, transparent 55%), #f5f8fc;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.agency-page .agency-hero::before { content: none; }
.agency-page .agency-hero .hero-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: clamp(28px, 5vw, 68px);
  padding-block: clamp(44px, 7vw, 104px);
}
.agency-page .agency-hero .hero-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.03;
  letter-spacing: -.06em;
  overflow-wrap: normal;
  hyphens: auto;
}
.agency-page .agency-hero .hero-copy { order: 0; }
.agency-page .hero-subtitle { margin: 16px 0 10px; font-size: clamp(18px, 2.15vw, 28px); font-weight: 680; line-height: 1.25; letter-spacing: -.025em; }
.agency-page .agency-hero .lead { max-width: 47ch; color: var(--muted); line-height: 1.55; }
.agency-page .agency-hero .hero-actions { gap: 6px 18px; margin: 23px 0 6px; align-items: flex-start; }
.agency-page .agency-hero .hero-third-link { color: var(--muted); margin: 0; font-size: 14px; }
.project-preview { margin: 0; padding: clamp(12px, 2vw, 22px); background: var(--navy); border-radius: var(--agency-radius); }
.project-preview-frame { overflow: hidden; border: 1px solid #3e5671; border-radius: 9px; background: #191713; }
.project-preview-bar { padding: 8px 12px; background: #142c48; color: #d1e2f5; font-size: 12px; }
.project-preview img { display: block; width: 100%; height: auto; }
.project-preview figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; color: #ebf3fd; font-size: 13px; }
.project-preview figcaption span { color: #b6cbe2; }
.agency-case { background: var(--navy); color: #fff; }
.agency-case .agency-heading h2 { color: #fff; }
.agency-case .agency-heading h2 span { color: #b9d4f1; }
.agency-case p { margin: 0 0 8px; max-width: 58ch; color: #c8d9ec; font-size: 17px; }
.agency-page :is(.agency-case, .branch-cta) .text-link { color: #cfe6ff; }
.agency-process .agency-card > span { color: var(--blue); font-weight: 750; font-variant-numeric: tabular-nums; }
.agency-page .home-pricing { padding-block: var(--agency-space); background: var(--agency-tint); }
.agency-page .pricing-compact .price-card { display: flex; flex-direction: column; border-radius: var(--agency-radius); padding: clamp(18px, 2.3vw, 29px); transform: none; box-shadow: none; }
.agency-page .price-card.featured { border-color: #91b7e9; }
.agency-page .price-card .price-note { margin-top: auto; }
.agency-page .price-card .price strong { font-size: clamp(29px, 3.2vw, 43px); }
.agency-page .pricing-compact .price-card ul { min-height: 0; }

.agency-page .direct-section { background: #fff; }
.agency-page .direct-form { border-radius: var(--agency-radius); border: 1px solid var(--line); box-shadow: 0 12px 36px #10243c0d; }
.agency-page .direct-form .audit-extra summary { min-height: 40px; padding-block: 9px; }
.agency-page .direct-form .audit-extra { padding-block: 3px; }
.agency-page .direct-form .audit-extra[open] { padding-bottom: 14px; }
.agency-page .audit-goal .field { margin-top: 8px; }
.agency-page .direct-form input[type="checkbox"] { width: 20px; height: 20px; }
.agency-page .audit-benefits li strong { display: block; }
.agency-page .direct-copy > .direct-trust { font-size: 14px; }
.agency-page .home-faq { padding-block: var(--agency-space); }
.agency-page .faq-list details { border-radius: 10px; }
.agency-contact .agency-card { width: fit-content; max-width: 100%; }
.agency-contact a { overflow-wrap: anywhere; }
.contact-phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.contact-phone:hover { text-decoration: underline; }
.agency-regions { padding-block: 28px; border-top: 1px solid var(--line); }
.agency-regions h2 { margin: 0; font-size: 17px; }
.agency-regions p { display: flex; gap: 4px 22px; flex-wrap: wrap; margin: 4px 0 0; }
.agency-regions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.agency-page .footer-bottom { color: #9fb3c7; }
.agency-page footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.branch-hero { padding-block: var(--agency-space); background: var(--agency-tint); }
.branch-hero .agency-split { align-items: center; }
.branch-hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 59px); line-height: 1.04; letter-spacing: -.048em; text-wrap: balance; overflow-wrap: anywhere; }
.branch-hero p { max-width: 49ch; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.branch-hero .btn { margin-top: 8px; }
.branch-hero .branch-note { margin: 9px 0 0; font-size: 14px; }
.branch-example {
  padding: clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--agency-radius);
}
.branch-example h2 { margin: 0; font-size: clamp(23px, 3vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.branch-example p { font-size: 16px; }
.branch-example dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 14px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.branch-example dt { font-weight: 720; }
.branch-example dd { margin: 0; color: var(--muted); }
.branch-path { margin: 0; padding-left: 24px; }
.branch-path li { padding: 13px 0 13px 7px; border-bottom: 1px solid var(--line); }
.branch-path li:last-child { border-bottom: 0; }
.branch-path li::marker { color: var(--blue); font-weight: 750; }
.branch-path p { margin: 3px 0 0; color: var(--muted); }
.branch-cta { padding-block: clamp(32px, 6vw, 68px); background: var(--navy); color: #fff; }
.branch-cta .agency-split { align-items: center; }
.branch-cta .agency-heading h2 { color: #fff; }
.branch-cta .agency-heading p { color: #d2e1f3; }
.branch-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-block: 18px; }
.branch-links p { margin: 0; color: var(--muted); }
.agency-page .branch-footer { padding-block: 16px; }
.agency-page .branch-footer .footer-bottom { margin-top: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; border: 0; }
.branch-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.branch-service .branch-hero { background: #fff; }
.branch-service .branch-example { background: var(--agency-tint); }
.branch-auto .branch-hero { background: #eaf1fa; }
.branch-auto .branch-example { border-left: 4px solid var(--blue); }
.agency-page .info-hero { background: var(--agency-tint); color: var(--ink); }
.agency-page .info-hero :is(p, .info-kicker) { color: var(--muted); }
.agency-page .info-hero .shell { max-width: 960px; }
.agency-page .info-content { border-radius: var(--agency-radius); }
.agency-page .info-aside { position: static; }
.agency-page .info-content .info-cta { background: var(--navy); }
.agency-page .info-location { color: var(--muted); font-size: 13px; }
.agency-page .audit-step { color: var(--blue); }
.agency-page .browser-bar span { color: #4d6075; }
.agency-page .request-card em { color: #176238; }
.agency-page .uw-support-launcher { min-width: 44px; min-height: 44px; background-color: var(--blue); }
.agency-page .uw-support-symbol { display: none; }
.agency-page .uw-support :is(.uw-support-user, .uw-support-input-row button, .uw-ticket-submit) { background-color: var(--blue); }
.agency-page .uw-support-close { min-width: 44px; min-height: 44px; }
.agency-page .uw-support-head button:focus-visible { outline-color: #a9d2ff; }

@media (max-width: 600px) {
  .agency-page .uw-support-launcher { padding: 0; width: 44px; height: 44px; font-size: 21px; }
  .agency-page .uw-support-symbol { display: inline; }
  .agency-page .uw-support-launcher-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .agency-page .agency-hero .hero-grid { grid-template-columns: 1fr; }
  .project-preview { max-width: 600px; }
  .agency-page .pricing-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .agency-page .nav-links { top: 72px; gap: 2px; max-height: calc(100dvh - 72px); }
  .agency-page .nav-links a { justify-content: flex-start; }
  .agency-page .nav-links .btn { justify-content: center; }
  .agency-page .menu-toggle { min-height: 44px; min-width: 44px; }
  .agency-split { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .agency-cards, .agency-page .pricing-compact { grid-template-columns: 1fr; }
  .agency-page .agency-hero .hero-copy h1 { font-size: clamp(35px, 8.5vw, 58px); }
  .agency-page .agency-hero .hero-actions { flex-direction: row; }
  .agency-page .agency-hero .hero-actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.agency-page) { scroll-behavior: auto; }
  .agency-page *, .agency-page *::before, .agency-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.region-page .region-nav { justify-content: flex-start; gap: clamp(8px, 3vw, 28px); }
.region-nav .brand { margin-right: auto; }
.region-nav > a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #d1e2f5; }
.region-nav > a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.region-page .region-content { max-width: 960px; overflow-wrap: anywhere; }
.region-content section + section { margin-top: clamp(25px, 6vw, 54px); }
.region-content h2 { margin: 0 0 8px; line-height: 1.18; font-size: clamp(23px, 3.5vw, 35px); }
.region-content p, .region-content li { color: var(--muted); }
.region-content .agency-card { margin-top: 12px; }
.region-content a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.region-page .info-hero p { margin-bottom: 20px; }

@media (max-width: 380px) {
  .region-nav .brand-mark { width: 34px; flex-basis: 34px; }
  .region-nav .brand { gap: 5px; }
  .region-nav > a:not(.brand) { font-size: 13px; }
}

.case-facts { display: grid; gap: 4px 16px; margin: 0 0 14px; }
.case-facts dt { color: #fff; font-weight: 750; }
.case-facts dd { margin: 0 0 10px; color: #c8d9ec; }
.pricing-scope { margin-top: 22px; padding: clamp(16px, 3vw, 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--agency-radius); }
.pricing-scope h3 { margin: 0; font-size: 19px; }
.pricing-scope p { max-width: 74ch; margin: 6px 0 0; color: var(--muted); }
.agency-page .audit-example { margin-top: 20px; color: var(--ink); }
.audit-example summary { min-height: 32px; padding-top: 5px; }
.audit-example p { margin: 10px 0 0; font-weight: 700; }
.audit-example ol { margin: 7px 0 0; padding-left: 20px; }
.audit-example li + li { margin-top: 6px; }
