/*
Theme Name: Photo Video London
Theme URI: https://photo-video.london
Description: Editorial black & white theme for Photo-Video London. v4.0 — full visual redesign (Geist type, refined grayscale system, sticky mega-menu, services directory). SEO structure preserved: money-keyword H1 override, JSON-LD schema graph, auto FAQPage, hardcoded internal-link nav.
Author: Ivan Siyanko
Author URI: https://siyanko.com
Version: 4.17
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pvl
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --ink:#0a0a0a;
  --paper:#ffffff;
  --mist:#f4f4f3;
  --mist-2:#ececea;
  --line:#e4e4e1;
  --line-2:#d7d7d3;
  --muted:#6c6c69;      /* 5.27:1 on --paper, 4.79:1 on --mist — WCAG AA */
  --faint:#6f6f6b;      /* 5.05:1 on --paper, 4.58:1 on --mist — WCAG AA.
                           Was #9b9b97 = 2.79:1, which failed AA for the small mono
                           labels (.eyebrow, .cat, .meta, .breadcrumb, .sitemap-date). */
  --faint-deco:#8e8e8a; /* decorative glyphs only (arrows, chevrons) — never text */
  --ph:#e7e7e4;
  --ph-2:#dededb;
  --header-h:74px;
  --sp:104px;          /* section vertical padding */
  --gap:26px;
  --maxw:1240px;
  --radius:18px;
  --font:"Geist","Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

*{box-sizing:border-box;}
html{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;
  font-family:var(--font);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-size:17px;
  line-height:1.5;
}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;height:auto;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px;}
.eyebrow{
  font-family:var(--mono);font-size:12px;letter-spacing:0.16em;text-transform:uppercase;
  color:var(--faint);font-weight:500;margin:0 0 18px;display:block;
}
h1,h2,h3{margin:0;letter-spacing:-0.03em;line-height:1.02;font-weight:700;}
.h2{font-size:clamp(30px,4vw,50px);letter-spacing:-0.035em;}
p{margin:0;}

/* Accessibility */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}
.skip-link:focus{position:fixed;left:16px;top:12px;z-index:400;width:auto;height:auto;clip:auto;background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;gap:9px;
  font-weight:600;font-size:15px;letter-spacing:-0.01em;
  padding:13px 22px;border-radius:999px;border:1px solid transparent;
  cursor:pointer;transition:transform .15s ease,background .2s ease,color .2s ease,border-color .2s ease;
  white-space:nowrap;font-family:inherit;
}
.btn:active{transform:translateY(1px);}
.btn-dark,.btn{background:var(--ink);color:#fff;}
.btn-dark:hover,.btn:hover{background:#262625;color:#fff;}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line-2);}
.btn-ghost:hover{border-color:var(--ink);background:transparent;}
.btn-light{background:#fff;color:var(--ink);}
.btn-light:hover{background:#ececec;color:var(--ink);}
.btn-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.32);}
.btn-outline-light:hover{border-color:#fff;color:#fff;}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:200;background:rgba(255,255,255,.86);
  backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--maxw);margin:0 auto;padding:0 32px;height:var(--header-h);
  display:flex;align-items:center;gap:34px;
}
.logo{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:15px;letter-spacing:0.01em;color:var(--ink);}
/* Logo mark — proportions measured from the master icon (pvl-icon.png, 600×600):
   corner radius 104/600 = 17.3%, ring outer Ø 419/600 = 69.8%, ring thickness 88/600 = 14.7%,
   inner Ø 242/600 = 40.3%. Everything is a percentage of .lens, so the mark stays true if the
   22px box ever changes size — the old version hardcoded 9px/2px/3px and would have distorted.

   Built from two centred circles rather than a bordered element or a radial-gradient: borders
   can't take a percentage, and gradient stops alias badly at 22px. Solid circles with
   border-radius:50% antialias cleanly. ::before paints first (white ring), ::after over it
   (ink centre), so no z-index is needed.

   The earlier mark also carried a small white "flash" dot at 5px/-5px offset. The master icon
   has no dot, so it's gone. */
.logo .lens{
  position:relative;width:22px;height:22px;border-radius:17.3%;background:var(--ink);
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.logo .lens::before,
.logo .lens::after{content:"";position:absolute;inset:0;margin:auto;border-radius:50%;}
.logo .lens::before{width:69.8%;height:69.8%;background:#fff;}
.logo .lens::after{width:40.3%;height:40.3%;background:var(--ink);}
.logo b{letter-spacing:-0.01em;}
.nav{display:flex;align-items:center;gap:4px;margin-left:6px;}
.nav-item{position:static;}
.nav-link{
  display:inline-flex;align-items:center;gap:5px;
  padding:9px 14px;border-radius:10px;font-weight:500;font-size:15px;color:#1c1c1b;
  cursor:pointer;transition:background .15s ease,color .15s ease;background:none;border:0;font-family:inherit;
}
.nav-link:hover{background:var(--mist);}
.nav-item.open .nav-link{background:var(--mist);}
.nav-link .caret{transition:transform .2s ease;display:inline-flex;}
.nav-item.open .nav-link .caret{transform:rotate(180deg);}
.header-cta{margin-left:auto;display:flex;align-items:center;gap:10px;}

/* Mega menu */
.mega-wrap{
  position:absolute;left:0;right:0;top:var(--header-h);
  background:var(--paper);border-bottom:1px solid var(--line);
  box-shadow:0 26px 50px -28px rgba(0,0,0,.28);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:190;
}
.mega-wrap.show{opacity:1;visibility:visible;transform:translateY(0);}
.mega{max-width:var(--maxw);margin:0 auto;padding:34px 32px 30px;}
/* auto-fit rather than a fixed 4: the cluster count is driven by nav-data.php, so the grid
   has to stay tidy whether there are 8 clusters or 12. At 1240px this resolves to 5 columns. */
.mega-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:28px 30px;align-content:start;}
.mega-areas .mega-cols{grid-template-columns:repeat(3,1fr);}
.mcol-head{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-weight:600;font-size:14.5px;letter-spacing:-0.01em;}
.mcol-head .ico{width:26px;height:26px;border-radius:7px;background:var(--mist);border:1px solid var(--line);flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#3a3a38;font-size:13px;}
.mcol ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;}
.mcol li a{display:flex;align-items:center;gap:10px;padding:6px 8px;margin-left:-8px;border-radius:8px;font-size:14.5px;color:var(--muted);transition:background .14s,color .14s;}
.mcol li a:hover{background:var(--mist);color:var(--ink);}
.mega-foot{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line);flex-wrap:wrap;}
.mega-foot .muted{color:var(--faint);font-size:13.5px;}
.mega-foot .all,.section-link{font-weight:600;font-size:14.5px;display:inline-flex;align-items:center;gap:7px;color:var(--ink);}
.mega-foot .all:hover,.section-link:hover{gap:11px;}

/* ============================================================
   PLACEHOLDERS (graceful when no image yet)
   ============================================================ */
.ph{
  background:repeating-linear-gradient(135deg,transparent 0 11px,rgba(0,0,0,.018) 11px 12px),var(--ph);
  position:relative;overflow:hidden;
}
.ph::after{content:attr(data-label);position:absolute;left:14px;bottom:11px;font-family:var(--mono);font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--faint);}
.ph .aperture{position:absolute;inset:0;margin:auto;width:40px;height:40px;opacity:.5;display:flex;align-items:center;justify-content:center;}

/* ============================================================
   HERO
   ============================================================ */
.hero{padding:clamp(48px,7vw,96px) 0 calc(var(--sp) - 16px);}
.hero-grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:center;}
.badge{display:inline-flex;align-items:center;gap:9px;padding:7px 15px 7px 12px;border:1px solid var(--line-2);border-radius:999px;font-weight:600;font-size:13.5px;margin-bottom:30px;background:#fff;}
.dot{width:8px;height:8px;border-radius:50%;background:#1f9d55;box-shadow:0 0 0 4px rgba(31,157,85,.16);}
.hero h1{font-size:clamp(46px,6.4vw,88px);letter-spacing:-0.045em;line-height:0.98;font-weight:700;}
.hero-sub{font-size:clamp(17px,1.5vw,20px);color:var(--muted);line-height:1.5;max-width:30em;margin:28px 0 36px;}
.hero-actions{display:flex;gap:13px;flex-wrap:wrap;}
.hero-visual{position:relative;}
.hero-visual .ph{border-radius:var(--radius);border:1px solid var(--line);}
.hero-main-img{aspect-ratio:4/5;}
.hero-photo{display:block;width:100%;object-fit:cover;object-position:50% 20%;border-radius:var(--radius);border:1px solid var(--line);background:var(--ph);}
.hero-visual .float-card{position:absolute;left:-26px;bottom:26px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 18px;box-shadow:0 22px 40px -24px rgba(0,0,0,.3);display:flex;align-items:center;gap:13px;}
.float-card .stars{font-size:13px;letter-spacing:1px;}
.float-card .fc-num{font-weight:700;font-size:20px;letter-spacing:-0.02em;}
.float-card .fc-lbl{font-size:12px;color:var(--muted);}

/* stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;}
.stat{padding:28px 26px;border-right:1px solid var(--line);}
.stat:last-child{border-right:0;}
.stat .num{font-size:clamp(28px,3vw,40px);font-weight:700;letter-spacing:-0.03em;}
.stat .lbl{font-size:13.5px;color:var(--muted);margin-top:6px;}

/* ============================================================
   SECTIONS
   ============================================================ */
section{scroll-margin-top:90px;}
.band{background:var(--mist);}
.band-dark{background:var(--ink);color:#fff;}
.sec{padding:var(--sp) 0;}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:48px;flex-wrap:wrap;}
.sec-head .h2{max-width:16ch;}
.link-arrow{font-weight:600;font-size:15px;display:inline-flex;align-items:center;gap:8px;border-bottom:1.5px solid var(--ink);padding-bottom:3px;color:var(--ink);}
.link-arrow:hover{gap:12px;}
.band-dark .eyebrow{color:#8a8a87;}

/* services grid (homepage) */
/* auto-fit keeps the card grid whole as clusters are added in nav-data.php — at 1240px this
   resolves to 3 columns, so the 9 clusters fill a clean 3x3 with no orphan row. */
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:var(--gap);}
.svc-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px 24px 24px;display:flex;flex-direction:column;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;}
.svc-card:hover{border-color:var(--line-2);transform:translateY(-3px);box-shadow:0 24px 40px -30px rgba(0,0,0,.3);}
.svc-ico{width:42px;height:42px;border-radius:11px;background:var(--mist);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;margin-bottom:20px;color:#2c2c2a;}
.svc-card h3{font-size:19px;letter-spacing:-0.02em;margin-bottom:9px;}
.svc-desc{font-size:14px;color:var(--muted);line-height:1.5;margin-bottom:18px;}
.svc-links{list-style:none;margin:auto 0 0;padding:16px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:7px;}
.svc-links a{font-size:13.5px;color:#3a3a38;display:inline-flex;align-items:center;gap:6px;transition:gap .15s,color .15s;}
.svc-links a:hover{gap:9px;color:var(--ink);}
.svc-links a .ar{color:var(--faint-deco);}

/* why grid */
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);}
.why-card{border:1px solid var(--line);border-radius:16px;padding:30px 30px 32px;background:#fff;}
.why-card h3{font-size:21px;letter-spacing:-0.02em;margin-bottom:12px;display:flex;align-items:center;gap:12px;}
.why-card .wn{font-family:var(--mono);font-size:13px;color:var(--faint);font-weight:500;}
.why-card p{font-size:15px;color:var(--muted);line-height:1.55;}

/* how it works */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);}
.step{border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:26px 24px 28px;background:rgba(255,255,255,.025);}
.step-n{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;margin-bottom:38px;}
.step h3{font-size:19px;letter-spacing:-0.02em;margin-bottom:10px;}
.step p{font-size:14px;color:#a9a9a6;line-height:1.55;}

/* projects */
.proj-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;gap:var(--gap);}
.proj{position:relative;border-radius:14px;overflow:hidden;border:1px solid var(--line);}
.proj .ph{aspect-ratio:4/3;}
.proj.tall .ph{aspect-ratio:4/5;}
.proj img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3;}
.proj .cap{position:absolute;left:0;right:0;bottom:0;padding:16px 18px;background:linear-gradient(transparent,rgba(0,0,0,.55));}
.proj .cap .t{color:#fff;font-weight:600;font-size:15px;letter-spacing:-0.01em;}
.proj .cap .s{color:rgba(255,255,255,.78);font-size:12.5px;margin-top:2px;}
.proj-note{margin-top:26px;font-size:14.5px;color:var(--muted);text-align:center;}
.proj-note a{border-bottom:1px solid currentColor;}

/* review */
.review{max-width:760px;margin:0 auto;text-align:center;padding:14px 0;}
.review .stars{font-size:18px;letter-spacing:3px;margin-bottom:22px;}
.review blockquote{margin:0;font-size:clamp(22px,2.6vw,30px);letter-spacing:-0.025em;line-height:1.32;font-weight:600;}
.review cite{display:block;margin-top:22px;font-size:14px;color:var(--muted);font-weight:600;font-style:normal;}

/* areas */
.area-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);}
.area{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:14px;padding:22px 24px;background:#fff;transition:border-color .2s,transform .2s;}
.area:hover{border-color:var(--line-2);transform:translateY(-2px);}
.area .a-name{font-weight:600;font-size:16px;letter-spacing:-0.01em;}
.area .a-sub{font-size:13.5px;color:var(--muted);margin-top:3px;}
.area .a-ar{color:var(--faint-deco);flex:0 0 auto;}

/* ============================================================
   PROSE (the_content) — extended for WordPress output
   ============================================================ */
.prose{max-width:760px;margin:0 auto;color:#33332f;}
.prose .lead,.prose > p:first-of-type{font-size:19px;line-height:1.6;color:#2a2a27;}
.prose h2{font-size:28px;letter-spacing:-0.03em;margin:48px 0 16px;line-height:1.1;color:var(--ink);}
.prose h3{font-size:23px;letter-spacing:-0.025em;margin:40px 0 14px;color:var(--ink);}
.prose h4{font-size:18px;margin:30px 0 10px;color:var(--ink);}
.prose p{font-size:16.5px;line-height:1.68;color:#46463f;margin:0 0 16px;}
.prose ul,.prose ol{margin:0 0 18px;padding-left:22px;}
.prose li{font-size:16.5px;line-height:1.7;color:#46463f;margin-bottom:9px;}
.prose strong{color:#26261f;font-weight:650;}
.prose a{border-bottom:1px solid var(--line-2);}
.prose a:hover{border-color:var(--ink);}
.prose img,.prose figure{border-radius:14px;margin:24px 0;}
.prose figure img{margin:0;}
.prose figcaption{font-size:13px;color:var(--faint);text-align:center;margin-top:8px;}
.prose blockquote{margin:24px 0;padding:6px 0 6px 24px;border-left:3px solid var(--ink);font-size:19px;font-weight:600;letter-spacing:-0.01em;color:var(--ink);}
.prose table{width:100%;border-collapse:collapse;margin:24px 0;font-size:15px;}
.prose th,.prose td{border:1px solid var(--line);padding:10px 12px;text-align:left;}
.prose th{background:var(--mist);font-weight:600;}
.prose .cta-line{margin-top:30px;padding-top:24px;border-top:1px solid var(--line);font-weight:500;}
.prose .alignwide{max-width:1040px;margin-left:calc(380px - 50vw);margin-right:calc(380px - 50vw);}
.prose .aligncenter{text-align:center;}

/* ============================================================
   BIG CTA
   ============================================================ */
.cta-band{padding:calc(var(--sp) - 20px) 0;}
.cta-box{background:var(--ink);color:#fff;border-radius:24px;padding:clamp(34px,4vw,56px);display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap;}
.cta-box h2{font-size:clamp(28px,3.6vw,44px);letter-spacing:-0.035em;}
.cta-box p{color:#a9a9a6;font-size:16px;margin-top:14px;max-width:36ch;}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap;}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{background:var(--ink);color:#fff;padding:80px 0 36px;}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1fr;gap:36px;}
.foot-brand .logo{color:#fff;margin-bottom:20px;}
/* Inverted on the dark footer: white tile, ink ring, white centre. */
.foot-brand .logo .lens{background:#fff;}
.foot-brand .logo .lens::before{background:var(--ink);}
.foot-brand .logo .lens::after{background:#fff;}
.foot-brand p{color:#9b9b97;font-size:14.5px;line-height:1.6;max-width:24ch;margin-bottom:16px;}
.foot-brand .contact a{color:#cfcfca;font-size:14.5px;display:block;margin-bottom:6px;}
.foot-brand .contact a:hover{color:#fff;}
.socials{display:flex;gap:10px;margin-top:18px;}
.socials a{width:38px;height:38px;border-radius:9px;border:1px solid rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#cfcfca;transition:background .2s,color .2s;}
.socials a:hover{background:#fff;color:var(--ink);}
.foot-col h4{font-family:var(--mono);font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:#8a8a87;font-weight:500;margin:0 0 16px;}
.foot-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;}
.foot-col li a{color:#b4b4af;font-size:14px;transition:color .15s;}
.foot-col li a:hover{color:#fff;}
.foot-col .all{color:#fff;font-weight:600;display:inline-flex;gap:6px;align-items:center;}
.foot-bottom{margin-top:56px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:13.5px;color:#86867f;}
.foot-bottom a{color:#86867f;}
.foot-bottom a:hover{color:#fff;}
.foot-bottom .legal{display:flex;gap:18px;}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line-2);border-radius:12px;background:#fff;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;padding:0;}
.menu-toggle .bars{position:relative;width:18px;height:12px;display:block;}
.menu-toggle .bars span{position:absolute;left:0;width:18px;height:1.8px;background:var(--ink);border-radius:2px;transition:transform .25s ease,opacity .2s ease,top .25s ease;}
.menu-toggle .bars span:nth-child(1){top:0;}
.menu-toggle .bars span:nth-child(2){top:5px;}
.menu-toggle .bars span:nth-child(3){top:10px;}
body.menu-open .menu-toggle .bars span:nth-child(1){top:5px;transform:rotate(45deg);}
body.menu-open .menu-toggle .bars span:nth-child(2){opacity:0;}
body.menu-open .menu-toggle .bars span:nth-child(3){top:5px;transform:rotate(-45deg);}
body.menu-open{overflow:hidden;}

.md-scrim{position:fixed;inset:0;background:rgba(10,10,10,.45);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s;z-index:300;}
.md-scrim.open{opacity:1;visibility:visible;}
/* visibility:hidden (not just translateX) keeps the closed drawer's ~20 links out of the
   tab order and out of the accessibility tree on browsers without `inert` support. */
.mobile-drawer{position:fixed;top:0;right:0;height:100dvh;width:min(400px,90vw);background:var(--paper);z-index:310;transform:translateX(100%);visibility:hidden;transition:transform .32s cubic-bezier(.4,0,.1,1),visibility .32s;display:flex;flex-direction:column;box-shadow:-24px 0 60px -30px rgba(0,0,0,.45);}
.mobile-drawer.open{transform:translateX(0);visibility:visible;}
.mobile-drawer[inert]{pointer-events:none;}
.md-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-bottom:1px solid var(--line);flex:0 0 auto;}
.md-head .logo{font-size:13px;}
.md-close{width:40px;height:40px;border:1px solid var(--line-2);border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:15px;color:var(--ink);flex:0 0 auto;}
.md-nav{padding:16px 20px 36px;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;}
.md-cta{justify-content:center;margin:4px 0 14px;padding:15px;font-size:16px;}
.md-link,.md-acc{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 2px;font-size:18px;font-weight:600;letter-spacing:-0.02em;color:var(--ink);border:0;border-top:1px solid var(--line);background:none;width:100%;text-align:left;cursor:pointer;font-family:inherit;}
.md-acc .chev{transition:transform .25s ease;color:var(--faint-deco);flex:0 0 auto;}
.md-acc.open .chev{transform:rotate(180deg);}
.md-acc-body{max-height:0;overflow:hidden;transition:max-height .32s ease;}
.md-acc-body .mega-cols{display:flex!important;flex-direction:column;gap:4px;padding:4px 0 12px;}
.md-acc-body .mcol{padding:6px 0;}
.md-acc-body .mcol-head{font-size:13px;margin-bottom:6px;}
.md-acc-body .mcol-head .ico{width:24px;height:24px;}
.md-acc-body .mcol li a{font-size:15px;padding:11px 8px;margin-left:-8px;}

/* ============================================================
   INNER PAGE HERO + BREADCRUMB
   ============================================================ */
.page-hero{padding:clamp(40px,5vw,72px) 0 clamp(34px,4vw,52px);border-bottom:1px solid var(--line);}
/* Centred hero (blog posts). text-align alone isn't enough: .page-h1 and .page-lead are
   width-capped so they need auto side margins to sit centrally, and the breadcrumb and
   button row are flex containers that centre via justify-content, not text-align. */
.page-hero-center{text-align:center;}
.page-hero-center .page-h1,
.page-hero-center .page-lead{margin-left:auto;margin-right:auto;}
.page-hero-center .breadcrumb,
.page-hero-center .crumbs,
.page-hero-center .hero-actions{justify-content:center;}
.crumbs,.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:13.5px;color:var(--faint);margin-bottom:26px;}
.crumbs a:hover,.breadcrumb a:hover{color:var(--ink);}
.crumbs span:last-child,.breadcrumb .breadcrumb_last{color:var(--muted);}
.page-h1{font-size:clamp(38px,5.2vw,66px);letter-spacing:-0.04em;line-height:1.0;max-width:18ch;}
.page-lead{font-size:clamp(17px,1.5vw,20px);color:var(--muted);line-height:1.55;max-width:60ch;margin:24px 0 32px;}
/* .page-lead is a wrapper now, not a <p> — the page_lead field runs through wpautop so a
   multi-paragraph lead renders properly. These keep the spacing identical to the old markup. */
.page-lead p{margin:0 0 14px;}
.page-lead p:last-child{margin-bottom:0;}
/* Pages share the full-width hero, so their body column is flush-left under the H1 rather
   than centred — a centred column would start ~240px right of the heading above it.
   Blog posts and portfolio items keep the centred .prose, matched by .hero-narrow. */
.page-prose{margin-left:0;margin-right:0;}
@media(max-width:860px){.page-prose{margin-left:auto;margin-right:auto;}}
/* .prose .alignwide pulls out symmetrically from a centred column; under a flush-left one it
   only has room to grow rightwards, so it extends 280px past the 760px body to reach 1040px. */
.page-prose .alignwide{margin-left:0;margin-right:-280px;max-width:1040px;}

/* narrow reading column for single pages/posts — aligns the heading block with the .prose body */
.hero-narrow{max-width:760px;margin:0 auto;}
.hero-narrow .page-h1{max-width:none;font-size:clamp(32px,4.4vw,52px);}
.post-meta{color:var(--muted);font-size:14.5px;margin:18px 0 0;}
.post-cta,.post-back,.post-lead,.post-faq{max-width:760px;margin-left:auto;margin-right:auto;}
/* Page-level FAQ (page_faq field). The preceding .sec already supplies 104px of bottom
   padding, so stacking .sec top padding + .post-faq margin-top would leave a ~208px hole. */
.page-faq-wrap{padding-top:0;}
.page-faq-wrap .post-faq{margin-top:0;}

/* Posts page (home.php): the Blog page's own intro copy sits above the post list, so the
   two sections would otherwise stack 104px + 104px of padding between them. */
.blog-intro{padding-bottom:0;}
.blog-list{padding-top:var(--sp);}
.blog-intro + .blog-list{padding-top:56px;border-top:1px solid var(--line);margin-top:56px;}
.post-back{margin-top:28px;}

/* AEO/GEO quick answer */
.pvl-featured{width:100%;border-radius:var(--radius);}
/* Flush-left to line up with .page-prose and the full-width hero above it. */
.featured-wrap{max-width:1040px;margin:0 0 36px;}
/* …but centred under a centred hero (blog posts). */
.featured-wrap.is-center{margin-left:auto;margin-right:auto;}
@media(max-width:860px){.featured-wrap{margin-left:auto;margin-right:auto;}}
.post-lead{margin-bottom:32px;padding:22px 24px;border-left:3px solid var(--ink,#111);background:var(--mist);border-radius:var(--radius);}
.post-lead p{margin:0 0 12px;font-size:18.5px;line-height:1.6;color:#2a2a27;}
.post-lead p:last-child{margin-bottom:0;}

/* FAQ */
.post-faq{margin-top:52px;}
.post-faq h2{font-size:clamp(24px,2.4vw,30px);margin:0 0 20px;}
.post-faq .faq-item{border-bottom:1px solid var(--line);padding:4px 0;}
.post-faq .faq-item summary{cursor:pointer;list-style:none;padding:16px 34px 16px 0;position:relative;font-weight:600;font-size:17.5px;color:#1c1c1a;}
.post-faq .faq-item summary::-webkit-details-marker{display:none;}
.post-faq .faq-item summary::after{content:"+";position:absolute;right:4px;top:50%;transform:translateY(-50%);font-weight:400;font-size:22px;color:var(--muted);line-height:1;}
.post-faq .faq-item[open] summary::after{content:"\2212";}
.post-faq .faq-a{padding:0 0 18px;}
.post-faq .faq-a p{margin:0 0 12px;color:#33332f;line-height:1.65;}
.post-faq .faq-a p:last-child{margin-bottom:0;}

/* ============================================================
   SERVICES DIRECTORY (/services/)
   ============================================================ */
.svc-chipbar{position:sticky;top:var(--header-h);z-index:120;background:rgba(255,255,255,.9);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line);}
.svc-chips{display:flex;gap:8px;overflow-x:auto;padding:13px 0;scrollbar-width:none;}
.svc-chips::-webkit-scrollbar{display:none;}
.svc-chip{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;flex:0 0 auto;padding:8px 15px;border:1px solid var(--line-2);border-radius:999px;font-size:13.5px;font-weight:600;color:#2a2a28;transition:background .15s,border-color .15s,color .15s;}
.svc-chip:hover{background:var(--ink);color:#fff;border-color:var(--ink);}
.svc-chip .sc-n{font-family:var(--mono);font-size:11px;color:var(--faint);font-weight:500;}
.svc-chip:hover .sc-n{color:rgba(255,255,255,.6);}
.svc-directory{display:flex;flex-direction:column;gap:0;}
.svc-row{display:grid;grid-template-columns:minmax(280px,0.85fr) 1.15fr;gap:48px;padding:46px 0;border-top:1px solid var(--line);scroll-margin-top:140px;}
.svc-row:first-of-type{border-top:0;padding-top:8px;}
.svc-row-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;}
.svc-row-ico{width:48px;height:48px;border-radius:13px;background:var(--mist);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:#2c2c2a;}
.svc-row-n{font-family:var(--mono);font-size:12px;letter-spacing:0.12em;color:var(--faint);font-weight:500;}
.svc-row-title{font-size:clamp(24px,2.6vw,32px);letter-spacing:-0.03em;margin-bottom:12px;}
.svc-row-desc{font-size:15.5px;color:var(--muted);line-height:1.55;max-width:34ch;}
.svc-row-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 24px;align-content:start;}
.svc-row-links li{border-top:1px solid var(--line);}
.svc-row-links a{display:flex;align-items:center;gap:12px;padding:15px 4px;font-size:16px;font-weight:550;letter-spacing:-0.01em;color:var(--ink);transition:padding .18s ease,color .15s;}
.svc-row-links a:hover{padding-left:10px;}
.svc-row-links .sl-dot{width:6px;height:6px;border-radius:50%;background:var(--line-2);flex:0 0 auto;transition:background .15s;}
.svc-row-links a:hover .sl-dot{background:var(--ink);}
.svc-row-links .sl-ar{margin-left:auto;color:var(--faint-deco);transition:transform .18s,color .15s;}
.svc-row-links a:hover .sl-ar{color:var(--ink);transform:translateX(3px);}
.svc-advise{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-top:36px;padding:28px 30px;border:1px solid var(--line);border-radius:16px;background:var(--mist);}
.svc-advise h3{font-size:20px;letter-spacing:-0.02em;margin-bottom:6px;}
.svc-advise p{font-size:15px;color:var(--muted);max-width:46ch;}

/* ============================================================
   BLOG LIST + POST
   ============================================================ */
.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);}
.post-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:border-color .2s,transform .2s,box-shadow .2s;}
.post-card:hover{border-color:var(--line-2);transform:translateY(-3px);box-shadow:0 24px 40px -30px rgba(0,0,0,.3);}
.post-card .thumb{display:block;aspect-ratio:16/10;background:var(--ph);}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;}
.post-card .body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1 1 auto;}
.post-card .cat,.cat{font-family:var(--mono);font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--faint);font-weight:500;margin-bottom:10px;display:inline-block;}
.post-card h3{font-size:19px;letter-spacing:-0.02em;line-height:1.18;margin-bottom:10px;}
.post-card .excerpt{font-size:14px;color:var(--muted);line-height:1.55;margin-bottom:16px;}
.post-card .meta{margin-top:auto;font-size:12.5px;color:var(--faint);font-family:var(--mono);}
.post-meta{color:var(--muted);font-size:14px;margin:2px 0 26px;}
.post-meta .post-author{font-weight:600;color:var(--ink);}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:48px;flex-wrap:wrap;}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--line-2);border-radius:11px;font-size:14px;font-weight:600;color:var(--ink);}
.pagination .page-numbers.current{background:var(--ink);color:#fff;border-color:var(--ink);}
.pagination a.page-numbers:hover{border-color:var(--ink);}
.empty-note{font-size:15.5px;color:var(--muted);line-height:1.6;}
.empty-note a{border-bottom:1px solid currentColor;}
.post-cta{margin-top:44px;padding:24px 26px;border:1px solid var(--line);border-radius:var(--radius);display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:center;background:var(--mist);}

/* search form */
.search-form{display:flex;gap:8px;}
.search-field{flex:1 1 auto;padding:12px 16px;border:1px solid var(--line-2);border-radius:999px;font:inherit;font-size:15px;}
.search-submit{padding:12px 20px;}

/* ============================================================
   ICONS
   ============================================================ */
.i{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.svc-ico .i{width:25px;height:25px;}
.svc-row-ico .i{width:26px;height:26px;}
.mcol-head .ico .i{width:16px;height:16px;stroke-width:1.7;}

/* ============================================================
   FLOATING WHATSAPP (mobile only)
   ============================================================ */
/* Ink on WhatsApp green, not the usual white.
   White on #25D366 is 1.98:1 — it fails WCAG AA outright, and fails the 3:1 non-text minimum
   too, which is why the standard WhatsApp button is an accessibility problem almost everywhere
   it appears. Ink on the same green is 9.98:1 and keeps the colour instantly recognisable.
   The green itself is only 1.98:1 against a white page, so the button needs its own border to
   have a visible edge — the shadow alone wouldn't satisfy a non-text contrast boundary. */
.wa-fab{
  display:none;
  position:fixed;right:16px;z-index:150;
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  align-items:center;gap:9px;
  padding:13px 18px;border-radius:999px;
  background:#25D366;color:var(--ink);
  border:1px solid rgba(10,10,10,.22);
  font-weight:600;font-size:15px;letter-spacing:-0.01em;
  box-shadow:0 12px 28px -10px rgba(0,0,0,.4);
  transition:transform .15s ease,background .2s ease;
}
.wa-fab:active{transform:scale(.97);}
.wa-fab:hover{background:#1FBF5B;color:var(--ink);}
.wa-fab .wa-ico{flex:0 0 auto;}
/* Shown from the burger-menu breakpoint down — the same point at which the desktop nav and its
   "Get a quote" button disappear, so it never competes with a visible header CTA. */
@media(max-width:1080px){ .wa-fab{display:inline-flex;} }
/* Very small screens: the label is the whole point (an unlabelled circle is guessy), so it
   stays — but the button tightens up to leave more of the page visible. */
@media(max-width:380px){
  .wa-fab{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:12px 15px;font-size:14.5px;gap:8px;}
}
@media (prefers-reduced-motion:reduce){ .wa-fab{transition:none;} .wa-fab:active{transform:none;} }

/* ============================================================
   REVEAL (progressive; visible by default if JS/IO absent)
   ============================================================ */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease;}
.reveal.in{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none;}}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1080px){
  :root{ --header-h:64px; }
  .nav{display:none;}
  .menu-toggle{display:inline-flex;}
  .hero-grid{grid-template-columns:1fr;gap:30px;}
  .hero-visual{max-width:none;order:2;}
  .hero-main-img{aspect-ratio:16/11;}
  .svc-grid{grid-template-columns:repeat(2,1fr);}
  .steps{grid-template-columns:repeat(2,1fr);}
  .proj-grid{grid-template-columns:repeat(2,1fr);}
  .post-list{grid-template-columns:repeat(2,1fr);}
  .area-grid{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr 1fr;}
  .foot-brand{grid-column:1 / -1;}
  .sec-head{margin-bottom:36px;}
  .svc-row{grid-template-columns:1fr;gap:24px;padding:38px 0;}
  .svc-row-desc{max-width:none;}
  .prose .alignwide{margin-left:0;margin-right:0;max-width:100%;}
}
@media(max-width:680px){
  :root{ --sp:64px; }
  .wrap,.header-inner{padding:0 18px;}
  .hero{padding:28px 0 52px;}
  .hero-actions{gap:10px;}
  .hero-actions .btn{flex:1 1 auto;justify-content:center;}
  .stats{grid-template-columns:repeat(2,1fr);}
  .stat{padding:20px 18px;}
  .stat:nth-child(2){border-right:0;}
  .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid var(--line);}
  .svc-grid,.why-grid,.steps,.proj-grid,.area-grid,.post-list{grid-template-columns:1fr;}
  .svc-row-links{grid-template-columns:1fr;}
  .proj .ph,.proj.tall .ph{aspect-ratio:16/10;}
  .float-card{left:14px;right:auto;bottom:14px;padding:11px 14px;gap:10px;}
  .why-card,.svc-card{padding:24px 22px;}
  .cta-box{flex-direction:column;align-items:flex-start;border-radius:20px;}
  .cta-actions{width:100%;}
  .cta-actions .btn{flex:1 1 auto;justify-content:center;}
  .foot-grid{grid-template-columns:1fr 1fr;gap:28px 24px;}
  .review blockquote{font-size:21px;}
  .prose .lead,.prose > p:first-of-type{font-size:17px;}
}
@media(max-width:430px){
  .wrap,.header-inner{padding:0 16px;}
  .header-cta .header-quote{display:none;}
  .foot-grid{grid-template-columns:1fr;}
}

/* ============================================================
   SITEMAP PAGE (page-sitemap.php)
   ============================================================ */
.sitemap-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:var(--gap);align-items:start;}
.sitemap-block{border:1px solid var(--line);border-radius:var(--radius);padding:30px 32px 34px;background:#fff;}
.sitemap-block h2{font-size:19px;letter-spacing:-0.02em;margin:0 0 20px;display:flex;align-items:center;gap:10px;}
.sitemap-count{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--faint);background:var(--mist);border:1px solid var(--line);border-radius:999px;padding:2px 10px;}
.sitemap-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;}
.sitemap-list>li>a{font-size:14.5px;color:var(--ink);font-weight:600;display:inline-block;padding:5px 0;}
.sitemap-list>li>a:hover{text-decoration:underline;}
.sitemap-sub{list-style:none;margin:2px 0 8px 18px;padding:0 0 0 14px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:2px;}
.sitemap-sub li a{font-size:13.5px;color:var(--muted);display:inline-block;padding:4px 0;}
.sitemap-sub li a:hover{color:var(--ink);text-decoration:underline;}
.sitemap-posts-list li{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:8px 0;border-bottom:1px solid var(--line);}
.sitemap-posts-list li:last-child{border-bottom:0;}
.sitemap-posts-list a{font-size:14.5px;color:var(--ink);font-weight:600;}
.sitemap-posts-list a:hover{text-decoration:underline;}
.sitemap-date{font-family:var(--mono);font-size:12px;color:var(--faint);white-space:nowrap;}
@media (max-width:860px){.sitemap-grid{grid-template-columns:1fr;}}
