/* ============================================================
   Light Post Literacy — Main Stylesheet
   ============================================================ */

/* --- Layout helpers --- */
.section-pad {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 82px 0;
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px max(24px, calc((100% - 1180px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23,21,35,.04);
  backdrop-filter: blur(18px);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 245px;
}
.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 52px; height: 52px;
  padding: 7px;
  border-radius: 7px;
  background: #fff9dc;
  border: 2px solid #161421;
  box-shadow: inset 0 -5px 0 rgba(255,122,0,.18);
  transform: rotate(-2deg);
  flex-shrink: 0;
}
.brand-mark span {
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #fff;
  border: 2px solid var(--orange);
  font-weight: 900;
  line-height: 1;
  font-size: .75rem;
}
.brand-mark span + span { color: var(--pink); border-color: var(--pink); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; line-height: 1.15; }
.brand small { color: var(--muted); font-size: .76rem; font-weight: 600; }

/* Nav */
.nav-links { display: flex; gap: 4px; align-items: center; justify-content: center; }

/* Strip list styles from wp_nav_menu output */
.nav-links .nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links .nav-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links .nav-menu li::marker,
.nav-links .nav-menu li::before {
  display: none;
  content: none;
}

/* All nav links — default colour */
.nav-links a,
.nav-links .nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #646873;
  font-size: .9rem;
  font-weight: 800;
  transition: background .2s, color .2s;
}

/* Active / current page — green */
.nav-links .nav-menu .current-menu-item > a,
.nav-links .nav-menu .current_page_item > a,
.nav-links .nav-menu .current-menu-ancestor > a,
.nav-links .nav-menu .current_page_ancestor > a,
.nav-links .nav-menu a.is-active {
  color: #1fac05;
}

/* Hover */
.nav-links a:hover,
.nav-links .nav-menu a:hover {
  color: var(--forest);
  background: var(--soft);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(31,172,5,.22);
  transition: background .2s;
}
.header-cta:hover, .button.primary:hover { background: var(--green-dark); }

/* --- Hamburger (mobile) --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* --- Typography --- */
h1, h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { max-width: 900px; margin: 0 auto; font-size: 4.7rem; font-weight: 600; }
h2 { font-size: 3rem; font-weight: 700; }
h3 { margin: 0; color: #232333; font-size: 1.12rem; line-height: 1.28; }
h1,h2,h3,p { overflow-wrap: anywhere; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(31,172,5,.22);
}
.button.secondary {
  color: #2b2d34;
  background: #fff;
  border: 1px solid #d9dbe2;
  box-shadow: 0 10px 28px rgba(23,21,35,.05);
}
.button.light { color: var(--green-dark); background: #fff; }

/* --- Section Heading --- */
.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-heading.compact { margin-bottom: 28px; }
.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  align-items: start;
  justify-items: center;
  row-gap: 0;
  min-height: calc(100vh - 90px);
  padding-top: 70px;
  text-align: center;
}
.hero-copy { max-width: 930px; }
.hero-lede {
  max-width: 850px;
  margin: 28px auto 0;
  color: var(--text);
  font-size: 1.13rem;
  font-weight: 650;
}
.hero-actions, .cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.hero-actions { margin-top: 30px; }

/* Hero Visual */
.hero-visual {
  width: min(100%, 960px);
  margin-top: 42px;
  border-radius: 8px;
  background: var(--gold);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-image-wrap {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Full Literacy Scene Illustration ---- */
.literacy-scene {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.95) 0 7%, rgba(255,255,255,0) 28%),
    linear-gradient(180deg, #fff6b7 0%, #ffe36c 48%, #f7c43b 100%);
}
.literacy-scene::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
    #f4b92f;
  background-size: 42px 42px;
}

/* Sparkles */
.sky-sparkles span {
  position: absolute;
  width: 18px; height: 18px;
  background: #ffffff;
  clip-path: polygon(50% 0,61% 37%,100% 50%,61% 63%,50% 100%,39% 63%,0 50%,39% 37%);
  opacity: .92;
}
.sky-sparkles span:nth-child(1) { left: 18%; top: 52px; }
.sky-sparkles span:nth-child(2) { right: 22%; top: 68px; width: 24px; height: 24px; }
.sky-sparkles span:nth-child(3) { left: 34%; top: 118px; width: 14px; height: 14px; }

/* Light post */
.friendly-light-post {
  position: absolute;
  left: 50%; top: 18px;
  z-index: 5;
  width: 170px; height: 270px;
  transform: translateX(-50%);
}
.lamp-glow {
  position: absolute;
  left: 50%; top: -26px;
  width: 285px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.96) 0 18%, rgba(255,243,155,.58) 43%, rgba(255,243,155,0) 72%);
  transform: translateX(-50%);
}
.lamp-cap {
  position: absolute;
  left: 50%; top: 43px;
  z-index: 2;
  width: 112px; height: 22px;
  border: 4px solid #151421;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, #0aa8a8 0%, #08777d 100%);
  box-shadow: 0 8px 0 rgba(21,20,33,.1);
  transform: translateX(-50%);
}
.lamp-cap::before {
  content: "";
  position: absolute;
  left: 50%; top: -34px;
  width: 76px; height: 39px;
  border: 4px solid #151421;
  border-bottom: 0;
  border-radius: 46px 46px 7px 7px;
  background:
    radial-gradient(circle at 50% -12px, rgba(255,255,255,.45) 0 23px, transparent 24px),
    linear-gradient(180deg, #12bfc2 0%, #08777d 100%);
  transform: translateX(-50%);
}
.lamp-cap::after {
  content: "";
  position: absolute;
  left: 50%; top: -52px;
  width: 20px; height: 20px;
  border: 4px solid #151421;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 18px 0 -6px #151421;
  transform: translateX(-50%);
}
.lamp-face {
  position: absolute;
  left: 50%; top: 63px;
  z-index: 3;
  width: 76px; height: 78px;
  border: 4px solid #151421;
  border-radius: 8px 8px 26px 26px;
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(21,20,33,.75) 31% 36%, transparent 37% 63%, rgba(21,20,33,.75) 64% 69%, transparent 70%),
    linear-gradient(90deg, rgba(255,255,255,.85) 0 17%, rgba(255,255,255,0) 18%),
    linear-gradient(180deg, #fff8bb 0%, #ffd84b 100%);
  box-shadow:
    inset 0 -8px 0 rgba(255,185,32,.34),
    0 12px 24px rgba(255,205,54,.35);
  transform: translateX(-50%);
}
.lamp-face::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -15px;
  width: 60px; height: 15px;
  border: 4px solid #151421;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: #08777d;
  transform: translateX(-50%);
}
.lamp-post {
  position: absolute;
  left: 50%; top: 154px;
  z-index: 3;
  width: 18px; height: 92px;
  border: 4px solid #151421;
  border-top: 0; border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.32) 0 26%, rgba(255,255,255,0) 27%),
    #177a83;
  transform: translateX(-50%);
}
.lamp-post::before, .lamp-post::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 58px; height: 12px;
  border: 4px solid #151421;
  border-radius: 999px;
  background: #0aa8a8;
  transform: translateX(-50%);
}
.lamp-post::before { top: 26px; }
.lamp-post::after  { top: 62px; }

.lamp-base {
  position: absolute;
  left: 50%; bottom: 0;
  z-index: 3;
  width: 104px; height: 44px;
  border: 4px solid #151421;
  border-radius: 999px 999px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 18%, #7ce354 0 26%, transparent 27%),
    linear-gradient(180deg, #20b804 0%, var(--green-dark) 100%);
  transform: translateX(-50%);
}

/* Brick path */
.brick-path {
  position: absolute;
  left: 50%; bottom: -18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 7px;
  width: 460px;
  padding: 22px 28px 28px;
  background:
    linear-gradient(90deg, rgba(21,20,33,.24), rgba(21,20,33,0) 14% 86%, rgba(21,20,33,.24)),
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(21,20,33,.08));
  border: 4px solid rgba(21,20,33,.88);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 18px 0 rgba(140,92,12,.25), 0 28px 36px rgba(21,20,33,.18);
  transform: translateX(-50%) perspective(420px) rotateX(54deg);
  transform-origin: bottom center;
  clip-path: polygon(42% 0,58% 0,100% 100%,0 100%);
}
.brick-path span {
  min-height: 34px;
  border: 3px solid rgba(21,20,33,.88);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    inset 0 5px 0 rgba(255,255,255,.55),
    inset 0 -8px 0 rgba(0,0,0,.13),
    0 8px 0 rgba(21,20,33,.18);
}
.brick-path span:nth-child(5n+1) { background: #ff6d36; }
.brick-path span:nth-child(5n+2) { background: #12a7b0; }
.brick-path span:nth-child(5n+3) { background: #fff; }
.brick-path span:nth-child(5n+4) { background: #f22591; }
.brick-path span:nth-child(5n)   { background: #83d63d; }

/* Figures */
.figure-group {
  position: absolute;
  bottom: 74px;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.left-figures  { left: 250px; }
.right-figures { right: 250px; flex-direction: row-reverse; }

.figure {
  --skin: #8f5737;
  --shirt: #1fac05;
  --pants: #153d6f;
  --hair: #22160f;
  --shoe: #ffffff;
  position: relative;
  display: block;
  width: 76px; height: 148px;
  transform-origin: bottom center;
  animation: figure-breathe 4.2s ease-in-out infinite;
}
.child { width: 58px; height: 116px; animation-duration: 3.6s; }
.figure-two   { --skin:#d79662; --shirt:#f22591; --pants:#126b72; --hair:#3b2116; animation-delay:-.7s; }
.figure-three { --skin:#5f3524; --shirt:#12a7b0; --pants:#1d315c; --hair:#141016; animation-delay:-1.1s; }
.figure-four  { --skin:#f0bc82; --shirt:#ff6d36; --pants:#2d6d38; --hair:#6b3e1f; animation-delay:-1.6s; }

.person-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.right-figures .person-svg { transform: scaleX(-1); }

.person-shadow { fill: rgba(21,20,33,.18); }
.person-head, .neck, .hand {
  fill: var(--skin);
  stroke: #151421;
  stroke-linejoin: round;
  stroke-width: 3.2;
}
.person-hair {
  fill: var(--hair);
  stroke: #151421;
  stroke-linejoin: round;
  stroke-width: 3.2;
}
.person-body {
  fill: var(--shirt);
  stroke: #151421;
  stroke-linejoin: round;
  stroke-width: 3.4;
}
.person-leg {
  fill: none;
  stroke: var(--pants);
  stroke-linecap: round;
  stroke-width: 11;
}
.shoe { fill: var(--shoe); stroke: #151421; stroke-width: 3; }
.arm-rest, .arm-point { fill: none; stroke: var(--skin); stroke-linecap: round; stroke-width: 9; }
.arm-rest  { stroke-width: 8; }
.arm-point {
  animation: point-reach 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50px 61px;
}
.eye   { fill: #151421; }
.smile { fill: none; stroke: #151421; stroke-linecap: round; stroke-width: 2.4; }

@keyframes figure-breathe {
  0%,100% { transform: translateY(0) rotate(-.5deg); }
  50%      { transform: translateY(-3px) rotate(.75deg); }
}
@keyframes point-reach {
  0%,100% { transform: rotate(0deg) translate(0,0); }
  50%      { transform: rotate(-4deg) translate(2px,-1px); }
}

/* Letter blocks */
.block-row {
  position: absolute;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 12px;
}
.left-blocks  { left: 48px; transform: rotate(-4deg); }
.right-blocks { right: 48px; transform: rotate(4deg); }
.letter-block {
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border: 5px solid #151421;
  border-radius: 8px;
  color: #151421;
  background: #fff;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 8px 8px 0 rgba(21,20,33,.12);
}
.letter-block:nth-child(1) { border-color: var(--orange); color: var(--pink); }
.letter-block:nth-child(2) { border-color: var(--teal);   color: var(--teal); }

/* ---- Mobile overrides for scene ---- */
@media (max-width: 760px) {
  .literacy-scene { min-height: 350px; }
  .friendly-light-post { top: 18px; width: 140px; height: 235px; }
  .lamp-glow  { width: 220px; height: 172px; }
  .lamp-cap   { top: 40px; width: 90px; height: 20px; }
  .lamp-face  { top: 59px; width: 64px; height: 66px; }
  .lamp-post  { top: 136px; height: 84px; }
  .brick-path { width: 390px; gap: 5px; padding: 20px 24px 24px; transform: translateX(-50%) perspective(360px) rotateX(56deg); }
  .brick-path span { min-height: 28px; border-width: 2px; }
  .figure-group { bottom: 120px; gap: 7px; }
  .left-figures  { left: 18px; }
  .right-figures { right: 18px; }
  .figure { width: 43px; height: 91px; }
  .child  { width: 36px; height: 77px; }
  .block-row { bottom: 38px; gap: 7px; }
  .left-blocks  { left: 13px; }
  .right-blocks { right: 13px; }
  .letter-block { width: 58px; height: 58px; border-width: 4px; font-size: 2.35rem; box-shadow: 5px 5px 0 rgba(21,20,33,.12); }
}

/* Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  width: 100%;
  margin: 30px 0 0;
  text-align: left;
}
.trust-strip div {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(23,21,35,.06);
}
.trust-strip dt { color: #242633; font-weight: 900; }
.trust-strip dd { margin: 5px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }

/* --- Intro Band --- */
.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 48px rgba(23,21,35,.06);
}
.intro-band div { padding: 26px; background: #fff; }
.intro-band strong, .intro-band span { display: block; }
.intro-band strong { margin-bottom: 7px; color: #242633; font-size: 1.02rem; font-weight: 900; }
.intro-band span { color: var(--muted); }

/* --- Services --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.service-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  gap: 14px;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(23,21,35,.06);
}
.service-card p { color: var(--muted); }
.service-icon {
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

/* --- Approach --- */
.approach {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background: var(--soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.steps div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(23,21,35,.05);
}
.steps p { color: var(--muted); }
.step-number {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

/* --- About --- */
.about-panel {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 42px;
  align-items: start;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 5px solid #161421;
  border-radius: 8px;
  background: #fff;
  box-shadow: 12px 12px 0 var(--gold);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.about-copy p { color: var(--muted); }
.cred-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.cred-list li {
  position: relative;
  padding-left: 28px;
  color: #343742;
  font-weight: 700;
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--green);
}

/* --- CTA Band --- */
.cta-band {
  justify-content: space-between;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 38px;
  border-radius: 8px;
  color: #fff;
  background: #151421;
}
.cta-band .eyebrow { color: #83df72; }
.cta-band h2 { max-width: 760px; font-size: 2.65rem; }

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.blog-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 13px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23,21,35,.06);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(23,21,35,.1); }
.blog-card p { margin: 0; color: var(--muted); }
.blog-card .blog-meta {
  color: var(--forest);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.blog-card a.read-link {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 4px;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- Contact --- */
.contact {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(330px,1fr);
  gap: 44px;
  align-items: start;
}
.contact-copy p { color: var(--muted); }
.contact-details {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  color: #343742;
  font-weight: 800;
}
.contact-details a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(23,21,35,.08);
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: #2c2e38;
  font-weight: 900;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfd2da;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,172,5,.12);
}
.contact-form textarea { resize: vertical; }
.contact-form .wpcf7-response-output { margin: 0; font-size: .9rem; }
.contact-form .wpcf7-not-valid-tip { font-size: .8rem; color: #c0392b; }

/* --- Footer --- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--green-dark); font-weight: 900; }

/* --- Single Post / Archive --- */
.post-header { margin-bottom: 32px; }
.post-header .eyebrow { margin-bottom: 10px; }
.post-header h1 { font-size: 3rem; margin-bottom: 16px; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.post-thumbnail { margin-bottom: 32px; border-radius: 10px; overflow: hidden; }
.post-thumbnail img { width: 100%; }
.post-content { max-width: 760px; margin: 0 auto; }
.post-content p { margin: 0 0 1.5em; color: var(--text); }
.post-content h2, .post-content h3 { margin: 1.5em 0 .5em; }
.post-content a { color: var(--green-dark); text-decoration: underline; }
.post-nav { display: flex; gap: 16px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { color: var(--green-dark); font-weight: 700; font-size: .9rem; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin-top: 40px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
}
.pagination a { border: 1px solid var(--line); color: var(--ink); }
.pagination a:hover { background: var(--soft); }
.pagination .current { background: var(--green); color: #fff; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease forwards; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1060px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { order: 3; grid-column: 1/-1; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .nav-links .nav-menu { flex-wrap: nowrap; }
  h1 { font-size: 3.8rem; }
  h2 { font-size: 2.6rem; }
  .service-grid, .blog-grid, .archive-grid, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-panel, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .brand { min-width: 0; }
  .brand-mark { width: 46px; height: 46px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .72rem; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(23,21,35,.08);
    z-index: 99;
  }
  .nav-links.is-open .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-links.is-open .nav-menu li { width: 100%; }
  .nav-links.is-open .nav-menu a { width: 100%; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .section-pad { width: min(100% - 24px, var(--max)); padding: 58px 0; }
  .hero { min-height: auto; padding-top: 46px; }
  h1 { font-size: 2.58rem; }
  h2 { font-size: 2.15rem; }
  .hero-lede { font-size: 1.02rem; font-weight: 600; }
  .hero-actions .button, .cta-band .button { width: 100%; }
  .trust-strip, .intro-band, .service-grid, .blog-grid, .archive-grid, .steps { grid-template-columns: 1fr; }
  .intro-band, .cta-band, .site-footer { width: min(100% - 24px, var(--max)); }
  .service-card, .blog-card { min-height: auto; }
  .about-panel, .cta-band { padding: 24px; }
  .portrait { width: 190px; }
  .cta-band h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-in { animation: none; }
}
