/*
Theme Name: PathPal
Description: Public information site for PathPal. Layout follows the approved homepage mockups; the visual identity follows the live pathpal.net site (teal, Manrope). Built for WCAG 2.2 AA as a target.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: pathpal
*/

/* --------------------------------------------------------------------------
   Tokens. Palette and typeface are taken from the live pathpal.net site, not
   from the layout mockups, which use a different (forest green / Georgia)
   identity. --pp-text-scale is the hook the text-size control multiplies.
   -------------------------------------------------------------------------- */
:root{
  --pp-text-scale:1;
  --teal:#0f6266; --teal-mid:#178f8c; --teal-light:#6bb8ae;
  --ink:#123034; --deep:#0b5559;
  --muted:#53676a; --line:#d7e4e0;
  --pale:#ddefea; --surface:#f5faf8; --paper:#fbfdfc; --white:#fff;
  --max:1140px;
}

*,*::before,*::after{box-sizing:border-box}
html{font-size:calc(100% * var(--pp-text-scale));scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
body{margin:0;background:var(--white);color:var(--ink);
  font-family:Manrope,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased}

.wrap{width:min(var(--max),calc(100% - 2.5rem));margin-inline:auto}

/* Links: underlined by default so they are not identified by colour alone. */
a{color:var(--teal);text-underline-offset:.18em}
a:hover{color:var(--deep)}
:focus-visible{outline:3px solid var(--teal-mid);outline-offset:2px}

h1,h2,h3{line-height:1.2;letter-spacing:-.015em;margin:0 0 .6em;color:var(--ink);font-weight:700}
h1{font-size:clamp(2.1rem,5vw,3.4rem);letter-spacing:-.03em}
h2{font-size:clamp(1.55rem,3vw,2.3rem);margin-top:2.4em}
h3{font-size:1.15rem;margin-top:0}
p{margin:0 0 1.1em}

/* Skip link: visible on focus, never hidden from keyboard users. */
.pp-skip{position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--ink);color:#fff;padding:.9rem 1.2rem;border-radius:0 0 6px 0}
.pp-skip:focus{left:0}

.pp-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---- Text-size bar ---- */
.pp-textsize{background:var(--surface);border-bottom:1px solid var(--line)}
.pp-textsize-inner{display:flex;align-items:center;justify-content:space-between;
  gap:.4rem;flex-wrap:wrap;padding:.4rem 0}
.pp-textsize-tools{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.pp-textsize-label{font-size:.8rem;color:var(--muted);margin-right:.25rem}
.pp-textsize-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;
  justify-content:center;padding:0 .6rem;font:inherit;font-size:.95rem;font-weight:700;
  line-height:1;color:var(--teal);background:#fff;border:1px solid var(--line);
  border-radius:6px;cursor:pointer}
.pp-textsize-btn:hover{border-color:var(--teal-light);background:var(--paper)}
.pp-textsize-btn.is-limit{color:var(--muted);background:#eef4f2;cursor:default;
  opacity:.5;border-style:dashed}

/* ---- Header ---- */
.pp-header{border-bottom:1px solid var(--line);background:#fff}
.pp-nav{display:flex;align-items:center;justify-content:space-between;
  gap:1.5rem;min-height:74px;flex-wrap:wrap;padding:1.35rem 0 1.15rem}
.pp-brand{display:inline-flex;align-items:center;gap:13px;text-decoration:none;color:inherit}
.pp-symbol{width:64px;height:auto;flex:none}
.pp-brand>span{display:flex;flex-direction:column;justify-content:center}
.pp-brand-name,.pp-brand-sub{display:block}
.pp-brand-name{font-size:1.45rem;font-weight:600;letter-spacing:-.04em;line-height:1;color:var(--ink)}
.pp-brand-name span{color:var(--teal-mid)}
.pp-brand-sub{font-size:.69rem;color:var(--muted);margin-top:4px;line-height:1.3}
.pp-brand:hover .pp-brand-name{color:var(--teal)}
.pp-brand:focus-visible{outline:3px solid var(--teal-mid);outline-offset:4px;border-radius:6px}
@media(max-width:560px){.pp-symbol{width:50px}.pp-brand-name{font-size:1.2rem}.pp-brand-sub{display:none}}
.pp-menu{display:flex;gap:.25rem;align-items:center;flex-wrap:wrap}
.pp-menu a{display:inline-flex;align-items:center;min-height:44px;padding:.3rem .52rem;
  font-size:.9rem;font-weight:500;color:var(--ink);text-decoration:none;border-radius:6px;
  white-space:nowrap}
.pp-menu a:hover{background:var(--surface);color:var(--teal);text-decoration:underline}
.pp-menu a[aria-current="page"]{color:var(--teal);font-weight:700;
  box-shadow:inset 0 -2px 0 var(--teal)}
/* Language toggle: current language filled, the other a link. Sits in the
   utility bar so it reads as a site-wide setting, not another page. */
.pp-langbar{display:flex;align-items:center;gap:.5rem}
.pp-langbar-label{font-size:.8rem;color:var(--muted)}
.pp-langs{display:inline-flex;border:1px solid var(--line);border-radius:999px;
  background:#fff;overflow:hidden}
.pp-langs>*{display:inline-flex;align-items:center;min-height:34px;padding:.2rem .85rem;
  font-size:.83rem;font-weight:600;text-decoration:none;line-height:1}
.pp-langs .is-on{background:var(--teal);color:#fff;cursor:default}
.pp-langs a{color:var(--teal)}
.pp-langs a:hover{background:var(--surface);text-decoration:underline}
.pp-langs a:focus-visible{outline:3px solid var(--teal-mid);outline-offset:-3px}
@media(max-width:560px){.pp-langbar-label{display:none}}

.pp-lead{font-size:clamp(1.08rem,1.6vw,1.3rem);line-height:1.55;color:var(--ink);
  border-left:4px solid var(--teal-mid);padding:.1rem 0 .1rem 1.1rem;margin:0 0 2rem}

/* ---- Hero ---- */
.pp-hero{background:linear-gradient(140deg,var(--ink) 0%,var(--teal) 68%,var(--teal-mid) 100%);
  color:#fff;padding:clamp(3rem,8vw,6rem) 0}
.pp-hero h1{color:#fff;max-width:18ch}
.pp-hero p{color:#dcecea;font-size:clamp(1.05rem,2vw,1.25rem)}
.pp-hero a{color:#fff}
.pp-badge{display:inline-block;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.3);border-radius:999px;
  padding:.3rem .75rem;font-size:.78rem;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:#fff;margin-bottom:1rem}

/* ---- Page body ---- */
.pp-eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;color:var(--teal);margin-bottom:.6rem}
.pp-main{padding:clamp(2.5rem,6vw,4.5rem) 0}
.pp-main h2:first-of-type{margin-top:0}

/* Card grids: three or more short sections become cards, matching the mockup
   feature/persona/step blocks. Minmax keeps them readable when text is enlarged
   to 200% instead of clipping. */
.pp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap:1rem;margin:1.6rem 0 2.2rem}
.pp-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;
  padding:1.3rem}
.pp-card h3{color:var(--teal);margin-bottom:.4rem}
.pp-card p{font-size:.97rem;color:var(--muted);margin-bottom:.6em}
.pp-card p:last-child{margin-bottom:0}

/* Development-status note, carried through from the mockups. */
.pp-status{margin:2.5rem 0 0;padding:1.2rem 1.4rem;background:var(--surface);
  border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:8px}
.pp-status p{margin:0;color:var(--muted);font-size:.97rem}

.pp-placeholder{background:#fff4d6;border-bottom:1px dashed #b8860b;color:#6b4e00;
  padding:0 .2em;font-style:italic}

/* ---- Footer ---- */
.pp-footer{background:var(--ink);color:#cfe0de;padding:2.5rem 0;margin-top:3rem}
.pp-footer a{color:#fff}
.pp-footer-status{font-size:.95rem}
.pp-footer-nav{display:flex;gap:1.2rem;flex-wrap:wrap;margin:1.2rem 0}
.pp-footer-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:.93rem}
.pp-footer-support{margin:0 0 .55rem;font-size:.82rem;color:#cfe4de}
.pp-footer-support a{color:#fff;text-decoration:underline}
.pp-footer-legal{font-size:.86rem;color:#9fb8b6;margin:0}

/* ---- Narrow screens and enlarged text ---- */
@media (max-width:860px){
  .pp-nav{min-height:0;padding:1rem 0 .85rem}
  .pp-menu a{white-space:normal}
  .pp-menu{gap:0;width:100%}
  .pp-menu a{padding:.45rem .55rem}
}
