/*
Theme Name: PMMA Advisory Group
Theme URI: https://pmmaadvisory.com/
Author: PMMA Advisory Group
Description: A conversion-focused, accessible WordPress theme for PMMA Advisory Group.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: pmma-advisory
*/

/* ------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------ */
:root {
  --navy: #081b33;
  --navy-2: #0f2a4d;
  --blue: #176bce;
  --blue-dark: #0f55a8;
  --signal: #58a6ff;
  --ink: #10253d;
  --muted: #4f607a;
  --muted-on-dark: #c9dcf2;
  --line: #dbe4ef;
  --line-on-dark: rgba(255, 255, 255, .16);
  --pale: #eaf4ff;
  --cloud: #f5f7fa;
  --white: #fff;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale: fixed floor on mobile, modest ceiling on desktop */
  --fs-body: clamp(1rem, .95rem + .25vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + .4vw, 1.2rem);
  --fs-h1: clamp(2.1rem, 1.35rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem);
  --fs-h3: clamp(1.1rem, 1.02rem + .3vw, 1.25rem);
  --fs-small: .875rem;
  --fs-eyebrow: .75rem;

  --lh-tight: 1.12;
  --lh-body: 1.6;

  --space-section: clamp(3.5rem, 3rem + 4vw, 6rem);
  --space-block: clamp(2rem, 1.5rem + 2vw, 3rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(8, 27, 51, .06), 0 4px 12px rgba(8, 27, 51, .05);
  --shadow: 0 12px 32px rgba(8, 27, 51, .10);

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 76px;
}

/* ------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); } /* anchors clear the sticky header */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; margin-bottom: .4em; }
p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { color: var(--navy); }
small { font-size: var(--fs-small); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section.blue :focus-visible, .cta :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .7rem 1rem; background: var(--blue); color: #fff; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ------------------------------------------------------------------
   3. Typography helpers
   ------------------------------------------------------------------ */
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .9rem;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.section-head { max-width: 720px; margin: 0 auto var(--space-block); text-align: center; }
.section-head h2 { margin-bottom: .5em; }
.section-head p { margin-inline: auto; }

/* ------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 10px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 6px 16px rgba(23, 107, 206, .22);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button .arrow { transition: transform .18s ease; }
.button:hover .arrow { transform: translateX(3px); }

.button.secondary { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.button.secondary:hover { background: var(--navy); color: #fff; }

/* Secondary buttons on dark backgrounds */
.hero .button.secondary, .section.blue .button.secondary, .cta .button.secondary, .page-hero .button.secondary {
  color: #fff; border-color: rgba(255, 255, 255, .7);
}
.hero .button.secondary:hover, .section.blue .button.secondary:hover, .cta .button.secondary:hover, .page-hero .button.secondary:hover {
  background: #fff; color: var(--navy); border-color: #fff;
}

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ------------------------------------------------------------------
   5. Header & navigation
   ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { position: relative; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1; flex: none; }
.brand:hover { color: var(--navy); }
.brand-word { font: 800 1.75rem/1 var(--font-display); letter-spacing: -.06em; }
/* width:0 + min-width:100% keeps the tagline from widening the lockup, so it
   stretches to exactly the PMMA wordmark: A under P, GROUP's P under the last A. */
.brand-sub { display: flex; justify-content: space-between; margin-top: .25rem; width: 0; min-width: 100%; font-size: .48rem; letter-spacing: .05em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.brand-sub span:last-child { margin-right: -.05em; }
.site-footer .brand, .site-footer .brand-sub { color: #fff; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  border-radius: 8px; color: #2b3f57; font-size: .92rem; font-weight: 600; text-decoration: none;
}
.nav-list a:hover { color: var(--blue); background: var(--pale); }
.nav-list a[aria-current="page"], .nav-list .current-menu-item > a, .nav-list .current-page-ancestor > a, .nav-list .current-menu-ancestor > a {
  color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 8px 8px 0 0;
}

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color .15s; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, top .2s ease;
}
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { min-height: 52px; padding: 0 .25rem; font-size: 1.05rem; border-radius: 0; }
  .nav-list a[aria-current="page"], .nav-list .current-menu-item > a, .nav-list .current-page-ancestor > a { box-shadow: inset 3px 0 0 var(--blue); padding-left: .75rem; border-radius: 0; }
}

/* ------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 27, 51, .98) 0%, rgba(8, 27, 51, .95) 45%, rgba(8, 27, 51, .78) 72%, rgba(8, 27, 51, .55) 100%),
    linear-gradient(180deg, rgba(8, 27, 51, .2), rgba(8, 27, 51, .5));
}
.hero-inner { display: flex; align-items: center; min-height: clamp(460px, 60vh, 620px); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.hero-content { max-width: 680px; transform: translateY(-1.25rem); }
.hero .eyebrow { color: #a9cdf7; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .lead { color: #e4eefb; max-width: 58ch; }
.hero .button-row { margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; font-size: var(--fs-small); color: #b9d2ee; }
@media (max-width: 600px) {
  .hero-inner { min-height: 0; padding: 3rem 0 3.5rem; }
  .hero-content { transform: translateY(-.5rem); }
  .hero-media img { object-position: 70% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 27, 51, .92), rgba(8, 27, 51, .96)); }
  .hero .button-row .button { width: 100%; }
}

/* ------------------------------------------------------------------
   7. Sections & layout primitives
   ------------------------------------------------------------------ */
.section { padding: var(--space-section) 0; }
.section.alt { background: var(--cloud); }
.section.blue { background: var(--navy); color: #fff; }
.section.blue h2, .section.blue h3, .section.blue strong { color: #fff; }
.section.blue p, .section.blue .lead { color: var(--muted-on-dark); }
.section.blue .eyebrow { color: #a9cdf7; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.split > * { min-width: 0; }
.split .copy h2 { max-width: 20ch; }
.split .copy .button, .split .copy .button-row { margin-top: 1.5rem; }
.split.reverse .copy { order: 2; }
.split.reverse .media { order: 1; }

.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.media-card img { width: 100%; height: auto; }

@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .copy { order: 1; }
  .split.reverse .media { order: 2; }
  .split .copy h2 { max-width: none; }
}

/* Generic card */
.card {
  display: block; height: 100%;
  padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
}
.card h3 { margin-bottom: .35rem; }
.card p { font-size: .95rem; margin: 0; }

/* Card grids */
.grid { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.grid > li { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; } }

/* Feature list (experience section) */
.feature-list .card { padding: 1.2rem 1.3rem; }
.feature-list strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: .25rem; }
.feature-list span { display: block; color: var(--muted); font-size: .93rem; }

/* Problem chips */
.outcome { display: flex; align-items: flex-start; gap: .7rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600; color: var(--navy); }
.outcome::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--blue); }

/* Link cards (service pillars, services overview, insights) */
.card-link { position: relative; display: flex; flex-direction: column; gap: .4rem; padding-right: 3rem; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card-link:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-link h3 { color: var(--navy); }
.card-link .arrow-icon { position: absolute; right: 1.1rem; top: 1.3rem; width: 28px; height: 28px; border-radius: 50%; background: var(--pale); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 1rem; transition: background-color .18s ease, color .18s ease; }
.card-link:hover .arrow-icon { background: var(--blue); color: #fff; }
.section.blue .card-link { background: #fff; border-color: transparent; }
.section.blue .card-link h3 { color: var(--navy); }
.section.blue .card-link p { color: var(--muted); }

/* Process steps (ordered) */
.steps { counter-reset: step; }
.steps .step { position: relative; height: 100%; padding: 1.4rem 1.25rem 1.25rem; border: 1px solid var(--line-on-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.steps .step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1.1rem; font: 700 .9rem/1 var(--font-display); letter-spacing: .08em; color: #9ed0ff; }
.steps .step h3 { font-size: 1.05rem; }
.steps .step p { font-size: .93rem; }

/* Engagement ladder (ordered, light) */
.ladder { counter-reset: rung; }
.ladder .rung { position: relative; height: 100%; padding: 1.3rem 1.2rem; border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.ladder .rung::before { counter-increment: rung; content: counter(rung, decimal-leading-zero); display: block; margin-bottom: .5rem; font: 700 .8rem/1 var(--font-display); letter-spacing: .1em; color: var(--blue); }
.ladder .rung strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.ladder .rung span { display: block; margin-top: .35rem; font-size: .88rem; color: var(--muted); }
.ladder-note { max-width: 62ch; margin: 1.75rem auto 0; text-align: center; font-size: .95rem; }

/* Check list */
.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin: .6rem 0; color: var(--ink); }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .1em; border-radius: 50%; background: var(--pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176bce' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Insight cards */
.insight-card { min-height: 160px; }
.insight-card .eyebrow { margin-bottom: .25rem; font-size: .7rem; }
.insight-card h3 { font-size: 1.05rem; }
.insight-card .read { margin-top: auto; padding-top: .75rem; font-size: .88rem; font-weight: 700; color: var(--blue); }

/* CTA band */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-2); color: #fff; }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 27, 51, .97) 0%, rgba(8, 27, 51, .92) 45%, rgba(8, 27, 51, .6) 100%); }
.cta .container { display: flex; align-items: center; min-height: 360px; padding-block: var(--space-section); }
.cta-copy { max-width: 600px; }
.cta-copy .eyebrow { color: #a9cdf7; }
.cta-copy h2 { color: #fff; }
.cta-copy p { color: var(--muted-on-dark); }
.cta-copy .button-row { margin-top: 1.75rem; }
@media (max-width: 600px) { .cta::after { background: rgba(8, 27, 51, .94); } .cta .container { min-height: 0; } }

/* ------------------------------------------------------------------
   8. Inner pages
   ------------------------------------------------------------------ */
.page-hero { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.page-hero .eyebrow { color: #a9cdf7; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: var(--muted-on-dark); max-width: 60ch; }
.breadcrumb { margin: 0 0 1.25rem; font-size: var(--fs-small); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; color: #b9d2ee; }
.breadcrumb li { display: flex; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; opacity: .55; }
.breadcrumb a { color: #d9e8f8; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.35em; color: var(--muted); }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); }
.prose .button { margin-top: .5rem; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose img { border-radius: var(--radius); }

.service-grid .card-link h3 { font-size: 1.12rem; }
.service-grid .card-link p { font-size: .95rem; }

/* ------------------------------------------------------------------
   9. Forms
   ------------------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-aside .card + .card { margin-top: 1rem; }
.contact-aside h3 { font-size: 1rem; }
.contact-aside p { font-size: .93rem; }
.contact-aside a { font-weight: 600; }
.contact-aside ol { margin: .5rem 0 0; padding-left: 1.2em; color: var(--muted); font-size: .93rem; }
.contact-aside li + li { margin-top: .3em; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  border: 1px solid #b6c5d6; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 107, 206, .2); }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310253d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; }
.field.checkbox { flex-direction: row; align-items: flex-start; gap: .75rem; }
.field.checkbox input { flex: none; width: 20px; height: 20px; margin: .2em 0 0; accent-color: var(--blue); }
.field.checkbox label { font-weight: 500; color: var(--ink); }
.field.checkbox .hint { display: block; margin-top: .35rem; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-actions .hint { font-size: .85rem; color: var(--muted); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.required-mark { color: var(--blue); }

.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 1.5rem; font-size: .95rem; }
.notice.error { background: #fff5f5; border-color: #f2b8b5; color: #8a1c1c; }
.notice.success { background: #eefaf3; border-color: #b5e3c8; color: #14532d; }
.notice p { margin: 0; color: inherit; }

@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .form-actions { grid-column: auto; }
  .form-actions .button { width: 100%; }
}

/* ------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--navy); color: #fff; padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem 2rem; }
.footer-about p { margin-top: 1.1rem; color: var(--muted-on-dark); font-size: .95rem; max-width: 34ch; }
.footer-title { font: 700 .95rem/1.2 var(--font-display); color: #fff; margin: 0 0 .75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: #c8dcf5; text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line-on-dark); font-size: var(--fs-small); color: #a9c2e3; }
.footer-bottom a { color: #c8dcf5; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ------------------------------------------------------------------
   11. Navbar: utility bar, dropdowns, mega menu
   ------------------------------------------------------------------ */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 27, 51, .08); }

/* Utility bar scrolls away; only the main nav row stays pinned. */
:root { --utility-h: 36px; }
.site-header { top: calc(-1 * var(--utility-h)); }
.utility-bar { height: var(--utility-h); overflow: hidden; background: var(--navy); color: #c9dcf2; font-size: .8rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--utility-h); }
@media (max-width: 1080px) { .site-header { top: 0; } }
.post-card-media { aspect-ratio: 16 / 9; }
.utility-tagline { margin: 0; color: #a9cdf7; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; }
.utility-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.utility-links a { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; color: #e4eefb; text-decoration: none; font-weight: 500; }
.utility-links a:hover { color: #fff; text-decoration: underline; }
.nav-mobile-contact { display: none; }

.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > .has-children > a { padding-right: .35rem; }
.submenu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 44px; padding: 0; margin-right: .25rem;
  border: 0; background: transparent; color: #2b3f57; cursor: pointer; border-radius: 6px;
}
.submenu-toggle svg { transition: transform .2s ease; }
.submenu-toggle:hover { color: var(--blue); background: var(--pale); }
.has-children.is-expanded > .submenu-toggle svg { transform: rotate(180deg); }
.has-children.is-expanded > a, .has-children.is-expanded > .submenu-toggle { color: var(--blue); }

.submenu {
  display: none; position: absolute; top: calc(100% + 6px); left: -1rem; z-index: 60;
  min-width: 300px; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* hover bridge */
.has-children.is-expanded > .submenu { display: block; }
.submenu-list { list-style: none; margin: 0; padding: 0; }
.nav-list .submenu-list li { display: block; border: 0; }
.nav-list .submenu-list a { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; min-height: 0; padding: .7rem .85rem; border-radius: 10px; color: var(--navy); font-size: inherit; font-weight: 400; text-decoration: none; text-align: left; box-shadow: none; }
.nav-list .submenu-list a:hover, .nav-list .submenu-list a:focus-visible { background: var(--pale); color: var(--navy); }
.nav-list .submenu-list a[aria-current="page"] { background: var(--pale); box-shadow: inset 3px 0 0 var(--blue); border-radius: 10px; }
.submenu-label { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.submenu-desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* Mega variant (Services): anchored to the header container, not the trigger */
.nav-list > li.is-mega { position: static; }
.is-mega > .submenu { left: 50%; transform: translateX(-50%); top: calc(100% - 14px); width: min(760px, 100%); min-width: 0; padding: 0; overflow: hidden; }
.nav-list .submenu-all, .nav-list .submenu-all:hover { color: #fff; }
.is-mega .submenu-inner { display: grid; grid-template-columns: 1.3fr .9fr; }
.is-mega .submenu-list { padding: .75rem; display: grid; grid-template-columns: 1fr; gap: .1rem; }
.submenu-featured { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.4rem 1.25rem; background: var(--navy); color: #fff; }
.submenu-featured .eyebrow { color: #a9cdf7; margin-bottom: .1rem; }
.submenu-featured-title { font: 800 1.05rem/1.25 var(--font-display); color: #fff; margin: 0; }
.submenu-featured p { color: var(--muted-on-dark); font-size: .88rem; margin: 0; }
.submenu-featured .button { margin-top: .75rem; align-self: flex-start; min-height: 40px; padding: .5rem 1rem; font-size: .9rem; color: #fff; border-color: rgba(255, 255, 255, .7); }
.submenu-featured .button:hover { background: #fff; color: var(--navy); }
.submenu-all { margin-top: auto; padding-top: .9rem; font-size: .88rem; font-weight: 700; color: #fff; text-decoration: none; }
.submenu-all:hover { text-decoration: underline; color: #fff; }

@media (max-width: 1080px) {
  .utility-bar { display: none; }
  .nav-list > li { flex-wrap: wrap; align-items: stretch; }
  .nav-list > li > a { flex: 1 1 auto; }
  .submenu-toggle { width: 52px; height: 52px; margin: 0; border-radius: 0; }
  .submenu, .is-mega > .submenu {
    position: static; transform: none; min-width: 0; width: 100%; padding: 0 0 .5rem;
    border: 0; box-shadow: none; border-radius: 0; background: var(--cloud); animation: none;
  }
  .is-mega .submenu-inner { grid-template-columns: 1fr; }
  .is-mega .submenu-list { padding: .25rem .5rem; }
  .submenu-list a { padding: .7rem .75rem; }
  .submenu-featured { margin: .5rem; border-radius: var(--radius); }
  .nav-mobile-contact { display: flex; flex-direction: column; gap: .25rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .93rem; }
  .nav-mobile-contact a { min-height: 36px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-weight: 600; }
}

/* ------------------------------------------------------------------
   12. Blog / Insights (E-E-A-T patterns: byline, dates, author box)
   ------------------------------------------------------------------ */
.topic-filter { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 var(--space-block); padding: 0; }
.topic-filter a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: .88rem; font-weight: 600; text-decoration: none; }
.topic-filter a:hover { border-color: var(--blue); color: var(--blue); }
.topic-filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card-media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #174a86 100%); position: relative; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media .post-card-kicker { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; color: #a9cdf7; font: 700 .72rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.post-card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.4rem 1.4rem; flex: 1; }
.post-card-body .eyebrow { margin: 0; }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole-card click */
.post-card h3 a:hover { color: var(--blue); }
.post-card { position: relative; }
.post-card p { font-size: .93rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: auto; padding-top: .5rem; font-size: .82rem; color: var(--muted); }
.post-meta .sep { opacity: .5; }
.post-meta a { position: relative; z-index: 1; color: var(--navy); font-weight: 600; text-decoration: none; }
.post-meta a:hover { color: var(--blue); }
.post-meta time { white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.pagination { display: flex; justify-content: center; margin-top: var(--space-block); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }

.empty-state { max-width: 640px; margin: 0 auto; text-align: center; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Article */
.article-hero { background: var(--navy); color: #fff; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.article-hero .container { max-width: 860px; }
.article-hero h1 { color: #fff; max-width: 24ch; }
.article-hero .lead { color: var(--muted-on-dark); max-width: 60ch; }
.article-hero .eyebrow a { color: #a9cdf7; text-decoration: none; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.5rem; font-size: .9rem; color: #c9dcf2; }
.byline .avatar { width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, .3); }
.byline a { color: #fff; font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.byline .byline-role { color: #a9cdf7; }
.byline .sep { opacity: .5; }
.article-body { padding: var(--space-section) 0; }
.article-body .container { max-width: 860px; }
.article-figure { margin: 0 0 2rem; }
.article-figure img { border-radius: var(--radius-lg); }
.article-figure figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.prose.article { font-size: 1.0625rem; max-width: 72ch; }
.prose.article h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
.prose.article blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blue); background: var(--cloud); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy); font-weight: 500; }
.prose.article blockquote p { color: inherit; }
.article-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); }
.article-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.article-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: .82rem; font-weight: 600; text-decoration: none; }
.article-tags a:hover { border-color: var(--blue); color: var(--blue); }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cloud); }
.author-box .avatar { width: 72px; height: 72px; }
.author-box .eyebrow { margin-bottom: .25rem; }
.author-box h2 { font-size: 1.15rem; margin: 0 0 .1rem; }
.author-box .author-role { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.author-box p { font-size: .95rem; }
.author-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; font-size: .9rem; }
.author-links a { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; }
@media (max-width: 600px) { .author-box { grid-template-columns: 1fr; } }

.related { padding: var(--space-section) 0; }
.related h2 { text-align: center; margin-bottom: var(--space-block); }

/* Subscribe */
.subscribe { background: var(--pale); border: 1px solid #cfe3fa; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.subscribe h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.subscribe p { font-size: .95rem; }
.subscribe-form { display: flex; flex-direction: column; gap: .6rem; }
.subscribe-form .row { display: flex; gap: .6rem; }
.subscribe-form input[type="email"] { flex: 1; min-width: 0; min-height: 48px; padding: .7rem .85rem; border: 1px solid #b6c5d6; border-radius: var(--radius-sm); font: inherit; font-size: 1rem; }
.subscribe-form .consent { font-size: .82rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.subscribe-form .consent input { width: 18px; height: 18px; margin-top: .15em; flex: none; accent-color: var(--blue); }
@media (max-width: 880px) { .subscribe { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .subscribe-form .row { flex-direction: column; } }

/* ------------------------------------------------------------------
   13. Motion & print
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .menu-toggle, .skip-link { display: none !important; }
  body { color: #000; }
}
