/* ============================================================
   POP — page-contact.css
   Path A custom template for the Contact page.
   Reproduces concept-a-contact.html at 1440 with Token Pack v1.
   Scoped to body.pop-contact-template.
   ============================================================ */

/* ---------- Kadence neutralization header ----------
   Kadence + theme.json inject inline color/font-family/weight on h1-h6
   and margin on p that collide with our page-scoped typography. Reset
   them at the top of the cascade so our rules below win without !important
   spread. :where() keeps specificity at zero so inline page-scoped rules
   take over cleanly.
   --------------------------------------------------- */
:where(body.pop-contact-template) h1,
:where(body.pop-contact-template) h2,
:where(body.pop-contact-template) h3,
:where(body.pop-contact-template) h4,
:where(body.pop-contact-template) h5,
:where(body.pop-contact-template) h6 {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}
:where(body.pop-contact-template) p {
  margin: 0;
}
:where(body.pop-contact-template) a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Local color aliases (concept compatibility) ----------
   The concept uses --navy, --coral, --teal, --cream, etc. directly —
   these come from the Token Pack but the concept also defines locals.
   Keep both pathways alive so concept selectors translate without diff.
   ----------------------------------------------------------------- */
body.pop-contact-template {
  --navy: #1B2A4A;
  --navy-light: #2D4066;
  --cream: #FAF8F5;
  --cream-warm: #F5F0E8;
  --white: #FFFFFF;
  --coral: #E85D4A;
  --coral-light: #FF7A6A;
  --amber: #E8A84C;
  --teal: #1A9B8C;
  --teal-light: #3DB8A9;
  --pop-purple: #8232AA;
  --text-primary: #1B2A4A;
  --text-secondary: #5A6B7F;
  --text-light: #6B7785;
  --border-subtle: rgba(27, 42, 74, 0.08);
  --font-display: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-brand: 'Space Grotesk', 'Inter', sans-serif;

  --section-pad:        var(--space-section-m);
  --hero-to-first-pad:  var(--space-section-s);
  --section-pad-tight:  clamp(1.5rem, calc(1.07rem + 2.14vw), 2.5rem);
  --container-pad:      var(--space-container-pad);

  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.pop-contact-template *,
body.pop-contact-template *::before,
body.pop-contact-template *::after {
  box-sizing: border-box;
}

body.pop-contact-template .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Reveal animations */
body.pop-contact-template .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);
}
body.pop-contact-template .reveal.visible { opacity: 1; transform: none; }
body.pop-contact-template .reveal-delay-1 { transition-delay: 0.1s; }
body.pop-contact-template .reveal-delay-2 { transition-delay: 0.2s; }
body.pop-contact-template .reveal-delay-3 { transition-delay: 0.3s; }
body.pop-contact-template .reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAV (standardized — matches other Path A pages)
   ============================================================ */
body.pop-contact-template .site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.4s; background: var(--cream);
}
body.pop-contact-template .site-nav.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(27, 42, 74, 0.08);
}
body.pop-contact-template .nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(24px, calc(0.86rem + 3.21vw), 60px);
  display: flex; align-items: center; justify-content: space-between;
}
body.pop-contact-template .nav-logo {
  display: flex; align-items: center; text-decoration: none; height: 52px;
}
body.pop-contact-template .nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none; margin: 0; padding: 0;
}
body.pop-contact-template .nav-links > li > a {
  font-family: var(--font-brand); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #5A6B7F; transition: color 0.3s; text-decoration: none;
}
body.pop-contact-template .nav-links a:hover { color: var(--navy); }
body.pop-contact-template .nav-links .active { color: var(--navy); font-weight: 700; }
body.pop-contact-template .nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--coral); color: #fff !important;
  border-radius: 100px; font-family: var(--font-brand);
  font-size: 14px; font-weight: 500; transition: all 0.3s;
}
body.pop-contact-template .nav-cta:hover {
  background: var(--coral-light); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 93, 74, 0.3);
}
body.pop-contact-template .nav-home {
  display: inline-flex; align-items: center; padding: 6px;
  border-radius: 6px; transition: all 0.2s; opacity: 0.5;
}
body.pop-contact-template .nav-home:hover {
  opacity: 1; background: rgba(27, 42, 74, 0.06);
}

/* Dropdown / Mega Menu */
body.pop-contact-template .nav-dropdown { position: relative; }
body.pop-contact-template .mega-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  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; pointer-events: none; z-index: 1001;
  transition: opacity 0.25s, transform 0.25s;
}
body.pop-contact-template .nav-dropdown:hover .mega-menu,
body.pop-contact-template .nav-dropdown:focus-within .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
body.pop-contact-template .mega-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px;
}
body.pop-contact-template .mega-menu-item {
  display: block; padding: 12px 14px; border-radius: 10px;
  transition: background 0.15s; text-decoration: none;
}
body.pop-contact-template .mega-menu-item:hover {
  background: rgba(27, 42, 74, 0.035);
}
body.pop-contact-template .mega-menu-item .mega-title {
  font-family: var(--font-brand); font-size: 14px; font-weight: 700;
  color: var(--navy); display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
}
body.pop-contact-template .mega-menu-item .mega-desc {
  font-size: 12.5px; color: #5A6B7F; line-height: 1.5;
}
body.pop-contact-template .mega-menu-item.mega-featured .mega-title {
  color: #D33E26;
}
body.pop-contact-template .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;
}
body.pop-contact-template .mega-menu-footer {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(27, 42, 74, 0.06);
  text-align: center;
}
body.pop-contact-template .mega-menu-footer a {
  font-size: 13px; font-weight: 600; color: #D33E26;
  transition: color 0.2s; text-decoration: none;
}
body.pop-contact-template .mega-menu-footer a:hover { color: var(--coral-light); }
body.pop-contact-template .mega-menu a {
  text-transform: none; letter-spacing: normal;
  font-family: var(--font-display); font-weight: 400;
}

@media (max-width: 1024px) and (min-width: 769px) {
  body.pop-contact-template .mega-menu {
    width: 520px; padding: 24px 24px 16px;
  }
}
@media (max-width: 1024px) {
  body.pop-contact-template .nav-links { display: none; }
}

/* ============================================================
   HERO — Two-column with square-bracket frame on right column
   ============================================================ */
body.pop-contact-template .service-hero {
  display: flex; align-items: center;
  padding: 120px 0 72px;
  position: relative; overflow: hidden;
  background: var(--cream);
}

/* Convergence watercolor — full-bleed, faded edges */
body.pop-contact-template .hero-bg-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  opacity: 0.78; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, transparent 6%,
    black 15%, black 85%,
    transparent 94%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0%, transparent 6%,
    black 15%, black 85%,
    transparent 94%, transparent 100%);
}

body.pop-contact-template .service-hero-content {
  width: 100%; position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 3fr 2fr;
  column-gap: 64px;
  align-items: start;
}

body.pop-contact-template .hero-left-col {
  display: flex; flex-direction: column; justify-content: center;
}

/* Hero right column — square brackets frame */
body.pop-contact-template .hero-right-col {
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 36px;
  position: relative;
  background: rgba(255, 255, 255, 0.47);
}
body.pop-contact-template .hero-right-col::before,
body.pop-contact-template .hero-right-col::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 22px;
  border-top: 4.5px solid var(--navy);
  border-bottom: 4.5px solid var(--navy);
  opacity: 1; pointer-events: none;
}
body.pop-contact-template .hero-right-col::before {
  left: 0; border-left: 4.5px solid var(--navy);
}
body.pop-contact-template .hero-right-col::after {
  right: 0; border-right: 4.5px solid var(--navy);
}

body.pop-contact-template .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-brand);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}
body.pop-contact-template .hero-eyebrow::before {
  content: ''; width: 32px; height: 2px;
  background: var(--text-primary);
}

body.pop-contact-template .service-hero-headline {
  font-family: var(--font-display);
  font-size: var(--type-hero-m);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.85);
}
body.pop-contact-template .service-hero-headline .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}

body.pop-contact-template .service-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(17px, calc(1.01rem + 0.27vw), 20px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 0;
}

/* ============================================================
   FORM SECTION — Two-column intake form + sidebar
   ============================================================ */
body.pop-contact-template .form-section {
  max-width: var(--container-max);
  margin: 2.5rem auto;
  padding: 0 var(--container-pad);
}

body.pop-contact-template .form-container {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* Form group / row scaffolding */
body.pop-contact-template .form-group { margin-bottom: 1.5rem; }
body.pop-contact-template .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
body.pop-contact-template .form-row .form-group { margin-bottom: 1.5rem; }

body.pop-contact-template .form-group label {
  display: block;
  font-family: var(--font-brand);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--navy);
}
body.pop-contact-template .form-group label .required { color: #D33E26; }

body.pop-contact-template .form-group fieldset {
  border: 0; padding: 0; margin: 0;
}
body.pop-contact-template .form-group fieldset legend {
  display: block;
  font-family: var(--font-brand);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0;
}

body.pop-contact-template .form-group input[type="text"],
body.pop-contact-template .form-group input[type="email"],
body.pop-contact-template .form-group input[type="tel"],
body.pop-contact-template .form-group input[type="url"],
body.pop-contact-template .form-group select,
body.pop-contact-template .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(27, 42, 74, 0.6);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* Tom P1-A fix — page-contact override removed 2026-05-02. Theme-level :focus-visible (theme-accessibility.css) now provides WCAG-clean 2px coral-deeper outline + 2px offset. */
body.pop-contact-template .form-group textarea {
  min-height: 120px; resize: vertical;
}

/* Checkboxes */
body.pop-contact-template .checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
body.pop-contact-template .checkbox-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
body.pop-contact-template .checkbox-item input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 0.25rem;
  accent-color: var(--coral);
  cursor: pointer;
}
body.pop-contact-template .checkbox-item label {
  margin: 0; font-weight: 400; cursor: pointer;
}

/* Submit button */
body.pop-contact-template .submit-btn {
  background: var(--coral);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 100px;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: 1rem;
}
body.pop-contact-template .submit-btn:hover:not([disabled]) {
  background: var(--coral-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(232, 93, 74, 0.2);
}
body.pop-contact-template .submit-btn:active:not([disabled]) {
  transform: translateY(0);
}
body.pop-contact-template .submit-btn[disabled] {
  background: rgba(27, 42, 74, 0.2);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
}

/* .trust-line rule removed 2026-05-01 — see header note in submit-container
   block below. Orphan after HTML and pseudo-element removal. */

body.pop-contact-template .form-fallback-notice {
  background: rgba(232, 168, 76, 0.12);
  border: 1px solid rgba(232, 168, 76, 0.4);
  color: #6B4F1F;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
body.pop-contact-template .form-fallback-notice a {
  color: #6B4F1F; font-weight: 700;
  text-decoration: underline;
}

/* WPForms honeypot field — visually hidden but accessible to bots that ignore CSS.
   WPForms Lite renders the anti-spam-v3 honeypot as a fully-formed field with
   aria-hidden="true" on both the label and the input, plus tabindex="-1" on the
   input. We use :has() where supported and fall back to attribute selectors on
   the input for browsers without :has() support. The fallback rule hides the
   parent .wpforms-field via the wrapping .wpforms-field-container that contains
   the honeypot via JS at runtime. */
body.pop-contact-template .intake-form--wpforms .wpforms-field-hp,
body.pop-contact-template .intake-form--wpforms .wpforms-field[data-field-type="hidden"],
body.pop-contact-template .intake-form--wpforms .wpforms-field-honeypot,
body.pop-contact-template .intake-form--wpforms .wpforms-honeypot,
body.pop-contact-template .intake-form--wpforms .wpforms-field:has(input[aria-hidden="true"]),
body.pop-contact-template .intake-form--wpforms .wpforms-field:has(label[aria-hidden="true"]) {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* WPForms checkbox group — 2-column at >=769px, 1-column at <769px.
   WPForms renders checkboxes as <ul><li>, not as our concept's
   .checkbox-group div, so we have to target the native structure. */
body.pop-contact-template .intake-form--wpforms .wpforms-field-checkbox ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.pop-contact-template .intake-form--wpforms .wpforms-field-checkbox li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
}
body.pop-contact-template .intake-form--wpforms .wpforms-field-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  accent-color: var(--coral);
  cursor: pointer;
  flex-shrink: 0;
}
body.pop-contact-template .intake-form--wpforms .wpforms-field-checkbox label {
  margin: 0;
  font-weight: 400 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer;
}
@media (max-width: 768px) {
  body.pop-contact-template .intake-form--wpforms .wpforms-field-checkbox ul {
    grid-template-columns: 1fr;
  }
}

/* Trust line below the WPForms submit button — concept has it after the static
   submit. Inject as ::after on the form-container button-wrapper. */
/* Trust-line pseudo-element removed 2026-05-01 per Deborah/Ross — POP forms
   shouldn't carry SLA promises ("respond within X") or defensive privacy
   copy ("never shared"). Privacy policy covers data handling. Form copy
   stays quiet and neutral. */

/* WPForms render parity — when shortcode renders, normalize to our type/spacing */
body.pop-contact-template .intake-form--wpforms .wpforms-field-label,
body.pop-contact-template .intake-form--wpforms .wpforms-field label {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
body.pop-contact-template .intake-form--wpforms input[type="text"],
body.pop-contact-template .intake-form--wpforms input[type="email"],
body.pop-contact-template .intake-form--wpforms input[type="tel"],
body.pop-contact-template .intake-form--wpforms input[type="url"],
body.pop-contact-template .intake-form--wpforms select,
body.pop-contact-template .intake-form--wpforms textarea {
  border: 1.5px solid rgba(27, 42, 74, 0.6) !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  color: var(--navy) !important;
}
body.pop-contact-template .intake-form--wpforms button[type="submit"],
body.pop-contact-template .intake-form--wpforms .wpforms-submit {
  background: var(--coral) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 1rem 2rem !important;
  font-family: var(--font-brand) !important;
  font-weight: 500 !important;
  width: 100%;
  color: #FFF !important;
  transition: all 0.3s;
}
body.pop-contact-template .intake-form--wpforms button[type="submit"]:hover,
body.pop-contact-template .intake-form--wpforms .wpforms-submit:hover {
  background: var(--coral-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(232, 93, 74, 0.2);
}

/* ============================================================
   SIDEBAR — Contact info card (coral) + Process card (cream-warm)
   ============================================================ */
body.pop-contact-template .sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}
body.pop-contact-template .sidebar-card h2 {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

/* Coral contact-info card */
body.pop-contact-template .sidebar-card.contact-info-card {
  background: var(--coral); color: var(--white);
}
body.pop-contact-template .contact-info-card h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
body.pop-contact-template .contact-info-card .contact-item {
  margin-bottom: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.9rem;
  align-items: start;
  color: var(--white);
}
body.pop-contact-template .contact-info-card .contact-item:first-of-type { padding-top: 0; }
body.pop-contact-template .contact-info-card .contact-item:last-child {
  border-bottom: none; padding-bottom: 0;
}
body.pop-contact-template .contact-info-card .contact-icon {
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.2;
  padding-top: 2px;
}
body.pop-contact-template .contact-info-card .contact-body { min-width: 0; color: var(--white); }
body.pop-contact-template .contact-info-card .contact-body a,
body.pop-contact-template .contact-info-card .contact-body > div {
  font-size: 1.19rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}
body.pop-contact-template .contact-info-card .contact-label {
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.2rem;
  display: block;
  font-weight: 700;
}
body.pop-contact-template .contact-info-card .contact-item a {
  text-decoration: none; transition: opacity 0.3s;
}
body.pop-contact-template .contact-info-card .contact-item a:hover { opacity: 0.85; }

/* Process card — cream-warm gradient */
body.pop-contact-template .sidebar-card.process-card {
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--white) 100%);
}
body.pop-contact-template .process-steps {
  list-style: none; margin: 0; padding: 0;
}
body.pop-contact-template .process-steps li {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
  font-size: 0.95rem; line-height: 1.6;
  color: var(--text-primary);
}
body.pop-contact-template .process-steps li:last-child { margin-bottom: 0; }
body.pop-contact-template .process-steps .step-number {
  background: var(--coral);
  color: var(--white);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brand);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER (standardized — matches other Path A pages)
   ============================================================ */
body.pop-contact-template .site-footer {
  padding: 64px 0 32px;
  background: #F5F0E8;
  border-top: 1px solid rgba(27, 42, 74, 0.08);
}
body.pop-contact-template .site-footer .container {
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(24px, calc(0.86rem + 3.21vw), 60px);
}
body.pop-contact-template .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
body.pop-contact-template .footer-heading {
  font-family: var(--font-brand);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}
body.pop-contact-template .footer-links {
  list-style: none; display: flex;
  flex-direction: column; gap: 12px;
  margin: 0; padding: 0;
}
body.pop-contact-template .footer-links a {
  font-family: var(--font-brand);
  font-size: 14px; color: #5A6B7F;
  transition: color 0.2s;
  text-decoration: none;
}
body.pop-contact-template .footer-links li.footer-address {
  font-size: 14px; color: #5A6B7F;
  line-height: 1.6;
  font-family: var(--font-brand);
}
body.pop-contact-template .footer-links a:hover { color: var(--navy); }
body.pop-contact-template .footer-brand-desc {
  font-size: 14px;
  color: #5A6B7F;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
body.pop-contact-template .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: 13px; color: #6B7785;
}
body.pop-contact-template .footer-bottom a {
  color: #6B7785; text-decoration: none;
  transition: color 0.2s;
}
body.pop-contact-template .footer-bottom a:hover { color: var(--navy); }
body.pop-contact-template .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: 12px; font-weight: 600; color: #5A6B7F;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.3s ease;
}
body.pop-contact-template .ai-powered-badge:hover {
  background: rgba(27, 42, 74, 0.08); color: var(--navy);
}

/* ============================================================
   RESPONSIVE — match concept's two breakpoints (1024 + 768)
   Token Pack handles fluid type below
   ============================================================ */
@media (max-width: 1024px) {
  body.pop-contact-template .service-hero { padding: 100px 0 36px; }
  body.pop-contact-template .service-hero-content {
    grid-template-columns: 1fr; column-gap: 0; row-gap: 32px;
  }
  body.pop-contact-template .hero-right-col { padding: 24px 28px; }
  body.pop-contact-template .hero-right-col::before,
  body.pop-contact-template .hero-right-col::after { display: none; }

  body.pop-contact-template .form-container {
    grid-template-columns: 1fr; gap: 2rem;
  }


  /* Move sub box up at 820 — collapse grid row-gap, align rows to start, AND tighten right-col padding-top to bring sub closer to headline. Brackets already display:none at 820 so unaffected. (Wendy May 5) */
  .service-hero-content {
    row-gap: 0 !important;
    align-items: start !important;
  }
  .hero-right-col {
    padding-top: 4px !important;
  }


  /* Reduce whitespace between hero and form by ~65% at 820 (Wendy May 5).
     Hero pad-bottom 36 → 13, form-section margin-top 40 → 14. */
  .service-hero {
    padding-bottom: 0 !important;
  }
  .form-section {
    margin-top: -6px !important;
  }
}

@media (max-width: 768px) {
  body.pop-contact-template .checkbox-group { grid-template-columns: 1fr; }
  body.pop-contact-template .form-row { grid-template-columns: 1fr; gap: 0; }
  body.pop-contact-template .footer-grid {
    grid-template-columns: 1fr; gap: 32px;
  }
  body.pop-contact-template .footer-bottom {
    flex-direction: column; gap: 12px; text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.pop-contact-template .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body.pop-contact-template .submit-btn:hover { transform: none !important; }
}

/* ============================================================
   WP admin-bar offsets — preserve theme-accessibility.css behavior.
   Page-scoped CSS loads at priority 100, AFTER theme-accessibility.css
   (priority 31), so we must re-apply the admin-bar offsets here or
   page-contact's .site-nav { top: 0 } will win and the admin bar will
   overlap the fixed nav. Same offsets as theme-accessibility.css:181-203.
   ============================================================ */
body.pop-contact-template.admin-bar .site-nav { top: 32px; }
body.pop-contact-template.admin-bar .mobile-menu-trigger { top: 48px; }
body.pop-contact-template.admin-bar .mobile-menu-overlay { top: 32px; }

@media (max-width: 782px) {
  body.pop-contact-template.admin-bar .site-nav { top: 46px; }
  body.pop-contact-template.admin-bar .mobile-menu-trigger { top: 62px; }
  body.pop-contact-template.admin-bar .mobile-menu-overlay { top: 46px; }
}

/* Screen-reader-only utility */
body.pop-contact-template .screen-reader-text {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

@media (max-width: 480px) {
  /* Match About hero eyebrow position at 360 — pad-top 100 → 120 (Wendy May 5). */
  section.service-hero {
    padding-top: 120px !important;
  }


  /* Bump hero headline at 360 — bigger, opened leading (Wendy May 5). */
  .service-hero-headline {
    font-size: 44px !important;
    line-height: 1.1 !important;
  }
}
