/* Premium city-site presentation. Loaded only for explicitly enabled pilots. */
body[class*="tpl-"] {
  --premium-radius: 14px;
  text-rendering: optimizeLegibility;
}

body[class*="tpl-"] .site-header .nav-inner {
  min-height: 76px;
  gap: 20px;
}
body[class*="tpl-"] .site-header .brand-block { flex: 0 1 280px; }
body[class*="tpl-"] .site-header .brand-name { line-height: 1.3; }
body[class*="tpl-"] .site-header .main-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(10px, 1.25vw, 22px);
}
body[class*="tpl-"] .site-header .nav-link { white-space: nowrap; }
body[class*="tpl-"] .site-header .nav-phone { display: none; }
body[class*="tpl-"] .nav-toggle {
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
body[class*="tpl-"] .nav-toggle-bar { background: currentColor; }

body[class*="tpl-"] .city-coverage-section { content-visibility: auto; contain-intrinsic-size: 900px; }
body[class*="tpl-"] .city-coverage-card { border-radius: var(--premium-radius); box-shadow: 0 10px 28px rgba(15,23,42,.055); }
body[class*="tpl-"] .city-coverage-card > strong { display: inline-block; margin-right: 6px; }
body[class*="tpl-"] .city-coverage-card a { overflow-wrap: anywhere; }
body[class*="tpl-"] .city-pill-list a {
  display: inline-flex;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  color: var(--text-2);
  text-decoration: none;
}
.city-eeat-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 28px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--premium-radius);
  background: var(--bg-1);
}
.city-eeat-panel h3 { margin: 4px 0 10px; }
.city-eeat-panel p { margin: 0; color: var(--text-3); line-height: 1.8; }
.city-evidence-list { margin: 0; padding: 0; list-style: none; }
.city-evidence-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.city-evidence-list li:last-child { border-bottom: 0; }
.city-evidence-list a, .city-evidence-list span { display: block; color: var(--text-1); font-weight: 700; }
.city-evidence-list small { display: block; margin-top: 3px; color: var(--text-3); }
.city-crawl-ring { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.city-crawl-ring a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-1);
  color: var(--text-1);
  text-decoration: none;
}
.city-crawl-ring small { color: var(--text-3); }

/* Corporate: restrained blue professional system. */
body.tpl-corporate {
  --primary: #1d4ed8;
  --primary-soft: #eff6ff;
}
body.tpl-corporate .svc-hero::before { background: linear-gradient(90deg, rgba(7,22,48,.94), rgba(15,23,42,.68)); }
body.tpl-corporate .home-service-item,
body.tpl-corporate .credential-strip { border-radius: 2px; }

/* Growth: brighter conversion-led presentation. */
body.tpl-growth {
  --primary: #7c3aed;
  --primary-soft: #f5f3ff;
}
body.tpl-growth .svc-hero::before { background: linear-gradient(110deg, rgba(35,16,70,.94), rgba(124,58,237,.56)); }
body.tpl-growth .svc-hero-kicker { color: #ddd6fe; }
body.tpl-growth .home-service-item { border-radius: 18px; box-shadow: 0 16px 36px rgba(76,29,149,.08); }

/* Local: warm, approachable regional-service presentation. */
body.tpl-local {
  --primary: #047857;
  --primary-soft: #ecfdf5;
}
body.tpl-local .svc-hero::before { background: linear-gradient(100deg, rgba(6,45,35,.95), rgba(4,120,87,.55)); }
body.tpl-local .city-coverage-section { background: linear-gradient(180deg, #f0fdf4, #fff); }
body.tpl-local .city-coverage-card { border-color: #bbf7d0; }

@media (max-width: 1120px) {
  body[class*="tpl-"] .site-header .nav-phone { display: none; }
  body[class*="tpl-"] .site-header .brand-block { flex-basis: 250px; }
}

@media (max-width: 900px) {
  body[class*="tpl-"] .site-header .nav-inner { min-height: 68px; }
  body[class*="tpl-"] .site-header .nav-toggle {
    top: 14px;
    right: 18px;
    color: #fff;
    background: rgba(255,255,255,.12);
  }
  body[class*="tpl-"] .site-header .main-nav.is-open {
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15,23,42,.22);
  }
  body[class*="tpl-"] .site-header .main-nav.is-open .nav-link { color: #172033; }
}

@media (max-width: 640px) {
  body[class*="tpl-"] .container { width: min(100% - 28px, 1180px); }
  body[class*="tpl-"] .site-header .brand-name { font-size: 13px; }
  body[class*="tpl-"] .svc-hero { min-height: 0; padding: 44px 0 52px; }
  body[class*="tpl-"] .svc-hero-inner { min-height: 420px; }
  body[class*="tpl-"] .svc-hero h1,
  body[class*="tpl-"] .banner-title {
    max-width: 100%;
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.16;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  body[class*="tpl-"] .svc-hero-slogan { font-size: 18px; line-height: 1.45; }
  body[class*="tpl-"] .city-coverage-section .section-title {
    font-size: clamp(25px, 7vw, 32px);
    overflow-wrap: anywhere;
  }
  body[class*="tpl-"] .city-coverage-card { padding: 16px; }
  body[class*="tpl-"] .city-pill-list { gap: 7px; }
  body[class*="tpl-"] .city-pill-list a,
  body[class*="tpl-"] .city-pill-list li { max-width: 100%; font-size: 12px; }
  .city-eeat-panel { grid-template-columns: 1fr; padding: 18px; }
  .city-crawl-ring { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body[class*="tpl-"] *, body[class*="tpl-"] *::before, body[class*="tpl-"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
