/* ============================================================
   POP — default-chrome.css
   Nav + footer + base typography for non-Path-A surfaces.
   Loads on any page that uses header.php / footer.php (i.e. doesn't
   have a Path A page-*.php template). Scoped to body.pop-default-template.
   ============================================================ */

/* ---------- Kadence neutralization header ----------
   Same pattern as page-contact.css — neutralize Kadence + theme.json
   inline color/font-family/weight on h1-h6 and margin on p so our
   page-scoped rules win without !important spread. */
:where(body.pop-default-template) h1,
:where(body.pop-default-template) h2,
:where(body.pop-default-template) h3,
:where(body.pop-default-template) h4,
:where(body.pop-default-template) h5,
:where(body.pop-default-template) h6 {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}
:where(body.pop-default-template) p {
  margin: 0 0 1em 0;
}
:where(body.pop-default-template) a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Local color aliases ---------- */
body.pop-default-template {
  --navy: #1B2A4A;
  --navy-light: #2D4066;
  --cream: #FAF8F5;
  --cream-warm: #F5F0E8;
  --white: #FFFFFF;
  --coral: #E85D4A;
  --coral-light: #FF7A6A;
  --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;

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

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

body.pop-default-template .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad, clamp(1.5rem, calc(0.86rem + 3.21vw), 3.75rem));
}

/* ---------- Main content area ----------
   Pages using header.php/footer.php put their post_content directly inside
   <main>. Give it a sensible reading wrapper, padding from the fixed nav. */
body.pop-default-template main#main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(120px, calc(6.43rem + 5.36vw), 180px) clamp(1.5rem, calc(0.86rem + 3.21vw), 3.75rem) clamp(4rem, calc(3.14rem + 4.29vw), 7rem);
  min-height: 60vh;
}

body.pop-default-template main#main .entry-content,
body.pop-default-template main#main .post-content,
body.pop-default-template main#main > * {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 72ch;
}

body.pop-default-template main#main h1 {
  font-family: var(--font-display);
  font-size: var(--type-hero-m, clamp(2.25rem, calc(1.82rem + 2.14vw), 3.75rem));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
body.pop-default-template main#main h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2-l, clamp(1.75rem, calc(1.50rem + 1.25vw), 2.625rem));
  font-weight: 700;
  line-height: 1.15;
  margin: 2em 0 0.75em;
  color: var(--text-primary);
}
body.pop-default-template main#main h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3, clamp(1.375rem, calc(1.27rem + 0.54vw), 1.75rem));
  font-weight: 700;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

body.pop-default-template main#main a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
body.pop-default-template main#main a:hover {
  color: var(--coral-light);
}

body.pop-default-template main#main ul,
body.pop-default-template main#main ol {
  margin: 0 0 1em 1.25em;
}
body.pop-default-template main#main li {
  margin-bottom: 0.4em;
}

/* ============================================================
   NAV (matches Path A nav styling — extracted from page-about.css)
   ============================================================ */
body.pop-default-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-default-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-default-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-default-template .nav-logo {
  display: flex; align-items: center; text-decoration: none; height: 52px;
}
body.pop-default-template .nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none; margin: 0; padding: 0;
}
body.pop-default-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-default-template .nav-links a:hover { color: var(--navy); }
body.pop-default-template .nav-links .active { color: var(--navy); font-weight: 700; }
body.pop-default-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;
  text-decoration: none;
}
body.pop-default-template .nav-cta:hover {
  background: var(--coral-light); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 93, 74, 0.3);
}
body.pop-default-template .nav-home {
  display: inline-flex; align-items: center; padding: 6px;
  border-radius: 6px; transition: all 0.2s; opacity: 0.5;
}
body.pop-default-template .nav-home:hover {
  opacity: 1; background: rgba(27, 42, 74, 0.06);
}

/* Dropdown / Mega Menu */
body.pop-default-template .nav-dropdown { position: relative; }
body.pop-default-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-default-template .nav-dropdown:hover .mega-menu,
body.pop-default-template .nav-dropdown:focus-within .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
body.pop-default-template .mega-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px;
}
body.pop-default-template .mega-menu-item {
  display: block; padding: 12px 14px; border-radius: 10px;
  transition: background 0.15s; text-decoration: none;
}
body.pop-default-template .mega-menu-item:hover {
  background: rgba(27, 42, 74, 0.035);
}
body.pop-default-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-default-template .mega-menu-item .mega-desc {
  font-size: 12.5px; color: #5A6B7F; line-height: 1.5;
}
body.pop-default-template .mega-menu-item.mega-featured .mega-title {
  color: #D33E26;
}
body.pop-default-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-default-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-default-template .mega-menu-footer a {
  font-size: 13px; font-weight: 600; color: #D33E26;
  transition: color 0.2s; text-decoration: none;
}
body.pop-default-template .mega-menu-footer a:hover { color: var(--coral-light); }
body.pop-default-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-default-template .mega-menu {
    width: 520px; padding: 24px 24px 16px;
  }
}
@media (max-width: 1024px) {
  body.pop-default-template .nav-links { display: none; }
}

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

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

/* ============================================================
   WP admin-bar offsets — preserve theme-accessibility.css behavior.
   Default-chrome CSS loads after theme-accessibility (priority 100 vs 31),
   so we must re-apply offsets here. Same pattern as page-contact.css.
   ============================================================ */
body.pop-default-template.admin-bar .site-nav { top: 32px; }
body.pop-default-template.admin-bar .mobile-menu-trigger { top: 48px; }
body.pop-default-template.admin-bar .mobile-menu-overlay { top: 32px; }

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