/* ===== CMBD additions (child theme): nav dropdowns, CF7 skin, dynamic blog bits ===== */
.nav-links .has-sub{position:relative;display:flex;align-items:center}
.nav-links .sub-toggle{display:none;background:none;border:0;cursor:pointer;padding:.4em .5em;border-radius:8px;color:var(--ink-2)}
.nav-links .sub-toggle svg{width:14px;height:14px;transition:transform .2s}
.nav-links .has-sub.open>.sub-toggle svg{transform:rotate(180deg)}
.nav-links .sub{display:none;list-style:none;margin:0;padding:.45rem;min-width:280px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-md);z-index:70}
.nav-links .sub li{display:block}
.nav-links .sub a{display:block;border-radius:10px;font-size:.9rem;font-weight:600;white-space:nowrap;padding:.55em .8em}
@media (min-width:1021px){
  .nav-links .has-sub>a::after{content:"";display:inline-block;width:.42em;height:.42em;margin-left:.45em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-.15em) rotate(45deg)}
  .nav-links .sub{position:absolute;top:100%;left:0;padding-top:.45rem}
  .nav-links .has-sub::before{content:"";position:absolute;left:0;right:0;top:100%;height:.6rem}
  .nav-links .has-sub:hover>.sub,.nav-links .has-sub:focus-within>.sub,.nav-links .has-sub.open>.sub{display:block}
}
@media (max-width:1020px){
  .nav-links .has-sub{flex-wrap:wrap}
  .nav-links .has-sub>a{flex:1}
  .nav-links .sub-toggle{display:inline-flex}
  .nav-links .sub{position:static;width:100%;box-shadow:none;border:0;border-left:2px solid var(--leaf-2);border-radius:0;margin:.2rem 0 .4rem .9rem;padding:0 0 0 .4rem}
  .nav-links .has-sub.open>.sub{display:block}
  .nav-links .sub a{white-space:normal;padding:.7em .9em}
}
/* Contact Form 7 rendered inside the design's form card */
.cmbd-cf7 .wpcf7-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.cmbd-cf7 .hidden-fields-container{display:none}
.cmbd-cf7 .wpcf7-form>p{display:flex;flex-direction:column;gap:.4rem;margin:0}
.cmbd-cf7 .wpcf7-form>p:nth-of-type(n+3){grid-column:1/-1}
.cmbd-cf7 .wpcf7-form label{font-weight:600;font-size:max(14px,.85rem);color:var(--ink)}
.cmbd-cf7 .wpcf7-form label br{display:none}
.cmbd-cf7 .wpcf7-form-control-wrap{display:block;margin-top:.4rem}
.cmbd-cf7 .wpcf7-text,.cmbd-cf7 .wpcf7-textarea{width:100%;font-family:var(--font-body);font-size:max(15px,.95rem);color:var(--ink);border:1.5px solid var(--line);border-radius:12px;padding:.8em 1em;background:var(--paper)}
.cmbd-cf7 .wpcf7-text:focus,.cmbd-cf7 .wpcf7-textarea:focus{outline:none;border-color:var(--lime);background:#fff}
.cmbd-cf7 .wpcf7-textarea{resize:vertical;min-height:110px;height:auto}
.cmbd-cf7 .wpcf7-submit{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-body);font-weight:700;font-size:.99rem;padding:.92em 1.7em;border-radius:999px;border:0;cursor:pointer;background:var(--lime);color:var(--ink);transition:transform .15s,box-shadow .15s}
.cmbd-cf7 .wpcf7-submit:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(140,198,63,.4)}
.cmbd-cf7 .wpcf7-spinner{margin:0 0 0 .6em}
.cmbd-cf7 .wpcf7-response-output{grid-column:1/-1;margin:0;border-radius:12px;padding:.8em 1em;font-size:.9rem}
.cmbd-cf7 .wpcf7-not-valid-tip{font-size:.82rem;color:#B42318;margin-top:.3rem}
.cmbd-cf7 .form-hint{display:block;margin-top:.8rem;font-size:max(14px,.82rem);color:var(--mute)}
@media (max-width:640px){.cmbd-cf7 .wpcf7-form{grid-template-columns:1fr}}
/* dynamic blog: photo covers from the featured image */
.post-cover.photo{padding:0;overflow:hidden;background:var(--leaf)}
.post-cover.photo img{width:100%;height:100%;object-fit:cover;display:block}
.post-card .cover.shot img,.featured .cover.shot img{width:100%;height:100%;object-fit:cover}
.post-body h2:target{scroll-margin-top:90px}
.pager a{color:inherit}
/* ============ owner revisions (2026-08-23) ============ */

/* Real brand lockup instead of the drawn SVG + text. 1536x393, so ~3.91:1. */
.brand-logo{height:56px;width:auto;display:block}
@media(max-width:860px){.brand-logo{height:46px}}
@media(max-width:420px){.brand-logo{height:38px}}

/* Menu: never let a label break across two lines, and hand over to the burger
   before the row gets cramped. The design's own breakpoints disagreed - the burger
   appeared at 860px but the dropdowns became accordions at 1020px, leaving a band
   where the desktop bar was shown with mobile dropdown behaviour. Both now switch
   at 1200px, which is the width where the eight items + language + CTA stop fitting. */
.nav-inner{gap:1rem}
.nav-links{gap:.15rem}
.nav-links>li>a{white-space:nowrap;padding:.5em .62em;font-size:.9rem}

@media(max-width:1200px){
  .nav-links{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;
    border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;
    gap:.15rem;padding:.6rem 1rem 1.1rem;box-shadow:var(--shadow-md);
    max-height:calc(100vh - 4.6rem);overflow-y:auto}
  body.nav-open .nav-links{display:flex}
  .nav-links>li>a{white-space:normal;padding:.85em 1em;border-radius:12px;font-size:.95rem}
  .burger{display:block}
  .nav-cta{margin-left:auto}
  .nav-cta .btn{display:none}
  .nav-links .has-sub{flex-wrap:wrap}
  .nav-links .has-sub>a{flex:1}
  .nav-links .has-sub>a::after{display:none}
  .nav-links .sub-toggle{display:inline-flex}
  .nav-links .sub{position:static;width:100%;box-shadow:none;border:0;
    border-left:2px solid var(--leaf-2);border-radius:0;margin:.2rem 0 .4rem .9rem;
    padding:0 0 0 .4rem}
  .nav-links .has-sub:hover>.sub,.nav-links .has-sub:focus-within>.sub{display:none}
  .nav-links .has-sub.open>.sub{display:block}
  .nav-links .sub a{white-space:normal;padding:.7em .9em}
}
@media(min-width:1201px){
  .nav-links .sub{position:absolute;top:100%;left:0;padding-top:.45rem}
  .nav-links .has-sub:hover>.sub,.nav-links .has-sub:focus-within>.sub{display:block}
  .nav-links .sub-toggle{display:none}
}

/* Hero showcase on the four non-SEO service pages. Deliberately shares the rank demo's
   visual language (.serp-caption pill, .serp-foot) so the five heroes read as one family. */
.hero-show{background:var(--card);border:1px solid var(--line);border-radius:22px;
  box-shadow:var(--shadow-md);padding:1.3rem 1.3rem 1rem;position:relative}
.hs-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-top:.4rem}
.hs-tile{border:1px solid var(--line);border-radius:14px;background:#fff;
  aspect-ratio:4/3;display:grid;place-items:center;padding:.8rem;overflow:hidden}
.hs-tile img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  transition:opacity .38s ease}
.hs-frame{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;margin-top:.4rem}
.hs-bar{display:flex;align-items:center;gap:.4rem;padding:.5rem .7rem;
  border-bottom:1px solid var(--line);background:var(--leaf)}
.hs-dot{width:9px;height:9px;border-radius:50%;background:#CBD5C0;flex:none}
.hs-url{flex:1;font-family:var(--font-mono);font-size:.64rem;color:var(--green-deep);
  text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;min-width:0}
.hs-shot{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top center;
  transition:opacity .38s ease}
.hs-list{margin-top:.5rem}
.hs-foot{margin-top:1rem}
@media(max-width:860px){
  .hs-foot{flex-direction:column;align-items:flex-start;gap:.3rem}
}

/* About Us: founder photo (falls back to initials until one is uploaded) + proof band. */
.founder-face{width:104px;height:104px;border-radius:50%;object-fit:cover;display:block;
  margin:0 0 1rem;border:3px solid var(--lime)}
.founder-card .fine{font-size:.82rem;color:#9FB0A4;border-top:1px solid rgba(255,255,255,.12);
  padding-top:.75rem;margin-top:.85rem}
.pb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(228px,1fr));gap:1rem;margin-top:1.6rem}
.pb-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.35rem}
.pb-card b{display:block;font-family:var(--font-display);font-size:2.05rem;line-height:1;
  color:var(--green-deep);letter-spacing:-.01em}
.pb-card span{display:block;margin-top:.6rem;font-size:.9rem;color:var(--ink-2);line-height:1.55}
.pb-note{margin-top:1.3rem;font-family:var(--font-mono);font-size:.72rem;letter-spacing:.06em;color:var(--mute)}
@media(max-width:640px){
  .pb-grid{grid-template-columns:1fr}
  .pb-card b{font-size:1.8rem}
  .founder-face{width:84px;height:84px}
}

/* About Us: the team. Initials avatars keep it consistent and premium without
   shipping the placeholder headshots the source site uses. */
.tm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:1rem;margin-top:2rem}
.tm-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem 1.3rem;text-align:center;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.tm-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--lime)}
.tm-av{display:grid;place-items:center;width:64px;height:64px;margin:0 auto .9rem;
  border-radius:50%;background:linear-gradient(135deg,var(--lime),#B7DE7C);
  color:var(--ink);font-family:var(--font-display);font-weight:800;font-size:1.32rem;letter-spacing:.02em}
.tm-card h3{font-size:1.02rem;line-height:1.25;margin:0}
.tm-role{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--green-deep);margin:.45rem 0 0;line-height:1.5}
@media(max-width:640px){
  .tm-grid{grid-template-columns:1fr 1fr;gap:.7rem}
  .tm-card{padding:1.1rem .8rem}
  .tm-av{width:52px;height:52px;font-size:1.1rem}
  .tm-card h3{font-size:.92rem}
  .tm-role{font-size:.6rem}
}

/* Client strip: readable names, the way the old site listed them. */
.mq-chip{white-space:nowrap}
.marquee{gap:.7rem}

/* Rank demo sits where the stat cards were. */
.sd-media .serp{width:100%}
/* .serp-us-txt / -title / -url are <span>s, so they default to display:inline --
   and overflow:hidden + text-overflow:ellipsis simply do not apply to inline boxes.
   The nowrap title therefore escaped its column and pushed the whole page ~80px
   wider at 375. The design never hit this because the component was never used. */
.serp-us-txt{display:block;min-width:0;overflow:hidden}
.serp-us-title,.serp-us-url{display:block;max-width:100%}
@media(max-width:860px){
  .serp-foot{flex-direction:column;align-items:flex-start;gap:.3rem}
}

/* ============ About Us rebuild (2026-08-23) ============ */

/* Hero: photo led, the way the owner's other sites open. */
.about-head{padding-bottom:clamp(44px,6vw,72px)}
.ah-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.ah-copy .lead{margin-top:1rem}
.ah-copy .hero-cta{margin-top:1.6rem}
.ah-portrait{position:relative}
.ah-fig{margin:0;position:relative;border-radius:26px;overflow:hidden;background:var(--leaf);
  border:1px solid var(--line);box-shadow:var(--shadow-md)}
.ah-fig img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.ah-plate{position:absolute;left:0;right:0;bottom:0;padding:1.5rem 1.3rem .95rem;
  background:linear-gradient(180deg,rgba(16,26,20,0),rgba(16,26,20,.86) 58%);color:#fff}
.ah-plate b{display:block;font-family:var(--font-display);font-size:1.16rem;line-height:1.2}
.ah-plate span{display:block;margin-top:.2rem;font-family:var(--font-mono);font-size:.68rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--lime)}
.ah-sig{margin:1rem 0 0;font-size:.92rem;font-style:italic;color:var(--ink-2);text-align:center}
@media(max-width:860px){
  .ah-grid{grid-template-columns:1fr}
  .ah-portrait{max-width:420px;margin-inline:auto;order:-1}
}

/* Combined proof band. Eight cards want a hard four up rather than auto-fit, which
   otherwise lands five on the first row and three orphaned on the second. */
@media(min-width:1040px){ .pb-4{grid-template-columns:repeat(4,1fr)} }
@media(min-width:641px) and (max-width:1039px){ .pb-4{grid-template-columns:repeat(2,1fr)} }

.geo-strip{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1.5rem}
.geo-label{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--green-deep);margin-right:.3rem}
.geo-chip{display:inline-flex;align-items:center;background:var(--card);border:1px solid var(--line);
  border-radius:999px;padding:.4rem .85rem;font-size:.85rem;font-weight:600;color:var(--ink-2);
  white-space:nowrap}

/* Story: signature card replaces the old founder sidebar, which now has a section of its own. */
.sig-card{background:var(--dark);border-radius:22px;color:#B9C4C6;padding:2.1rem 1.9rem;
  position:sticky;top:96px}
.sig-quote{margin:0;font-family:var(--font-display);font-size:1.32rem;line-height:1.32;color:#fff;
  border:0;padding:0}
.sig-by{margin:.75rem 0 0;font-family:var(--font-mono);font-size:.68rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--lime)}
.sig-rule{border:0;border-top:1px solid rgba(255,255,255,.14);margin:1.6rem 0 1.3rem}
.sig-card h3{color:#fff;font-size:1.1rem;margin:0 0 .7rem}
.sig-card p{margin:0 0 .8rem;font-size:.93rem;line-height:1.62}
.sig-fine{font-size:.82rem;color:#9FB0A4;border-top:1px solid rgba(255,255,255,.12);
  padding-top:.8rem;margin-top:.9rem}

/* Founder section. Photo column left, bio right, the way webxsoft sets out its executives. */
.fo-wrap{display:grid;grid-template-columns:300px 1fr;gap:clamp(1.6rem,4vw,3.2rem);
  align-items:start;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:clamp(1.4rem,3vw,2.4rem);box-shadow:var(--shadow-sm)}
.fo-side{text-align:center;position:sticky;top:96px}
.fo-photo{width:100%;max-width:230px;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:20px;
  display:block;margin:0 auto 1.1rem;border:1px solid var(--line)}
.fo-side h3{margin:0;font-size:1.16rem;line-height:1.25}
.fo-role{margin:.35rem 0 0;font-family:var(--font-mono);font-size:.68rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--green-deep)}
.fo-place{margin:.45rem 0 0;font-size:.85rem;color:var(--mute)}
.fo-cta{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-top:1.1rem}
.fo-cta .btn{font-size:.85rem;padding:.6em 1.1em}
.fo-body>p{margin:0 0 1.05rem;font-size:1rem;line-height:1.7;color:var(--ink-2)}
.fo-h4{font-family:var(--font-display);font-size:1.05rem;margin:1.6rem 0 .7rem}
.fo-skills{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.fo-skills li{position:relative;padding-left:1.4rem;font-size:.93rem;line-height:1.6;color:var(--ink-2)}
.fo-skills li::before{content:"";position:absolute;left:0;top:.55em;width:7px;height:7px;
  border-radius:2px;background:var(--lime)}
.fo-skills b{color:var(--ink)}
.fo-note{margin-top:1.7rem;background:var(--leaf);border:1px solid var(--leaf-2);
  border-radius:16px;padding:1.2rem 1.25rem}
.fo-note-tag{display:inline-block;font-family:var(--font-mono);font-size:.62rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--green-deep);background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:.24rem .7rem;margin-bottom:.7rem}
.fo-note p{margin:0 0 .6rem;font-size:.92rem;line-height:1.64;color:var(--ink-2)}
.fo-note b{color:var(--green-deep)}
.fo-fine{font-size:.82rem;color:var(--mute);border-top:1px solid var(--leaf-2);
  padding-top:.65rem;margin-top:.65rem}
@media(max-width:900px){
  .fo-wrap{grid-template-columns:1fr}
  .fo-side{position:static}
  .fo-photo{max-width:190px}
}
@media(max-width:860px){
  .sig-card{position:static}
}

/* ============ /service/ and /contact-us/ (built from the design system) ============ */
.svc-grid-lg{display:grid;grid-template-columns:repeat(auto-fit,minmax(288px,1fr));gap:1.1rem}
.svc-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.4rem;text-decoration:none !important;color:inherit;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.svc-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--lime)}
.svc-shot{display:grid;place-items:center;height:132px;margin-bottom:1rem;border-radius:14px;
  background:var(--leaf-2);overflow:hidden}
.svc-shot img{max-width:78%;max-height:82%;width:auto;height:auto;object-fit:contain}
/* CSS-drawn rank graphic for the SEO card (no matching illustration exists). */
.svc-rank{flex-direction:column;justify-content:center;gap:.42rem;padding:1rem 1.1rem;
  display:flex;align-items:stretch}
.sr-row{display:flex;align-items:center;gap:.6rem;font-style:normal}
.sr-row em{font-family:var(--font-mono);font-size:.66rem;color:var(--mute);font-style:normal;width:10px}
.sr-row s{flex:1;height:9px;border-radius:5px;background:#E4E8E1;text-decoration:none;display:block}
.sr-win s{background:var(--lime);box-shadow:0 2px 8px rgba(140,198,63,.4)}
.sr-win em{color:var(--green-deep);font-weight:700}
.svc-card h3{font-size:1.12rem;margin:0}
.svc-card p{font-size:.93rem;color:var(--ink-2);margin:.5rem 0 1rem;flex:1}
.svc-go{font-family:var(--font-mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--green-deep);font-weight:600}

.ch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(236px,1fr));gap:1rem}
.ch-card{display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.3rem;text-decoration:none !important;color:inherit;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.ch-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--lime)}
.ch-kind{font-family:var(--font-mono);font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--green-deep)}
.ch-value{display:block;margin:.5rem 0 .25rem;font-size:1rem;color:var(--ink);word-break:break-word}
.ch-note{font-size:.85rem;color:var(--mute)}
.ch-address{margin-top:1.6rem;padding:1.2rem 1.4rem;border:1px dashed var(--line);border-radius:var(--radius);
  background:var(--leaf-2)}
.ch-address p{margin:.35rem 0 0;font-weight:600;color:var(--ink)}
@media(max-width:640px){
  .svc-shot{height:104px}
  .ch-grid,.svc-grid-lg{grid-template-columns:1fr}
}

/* ============ /price/ ============ */
@media (min-width:1021px) and (max-width:1239px){
  .price-grid.cols-5{grid-template-columns:repeat(3,1fr)}
}
