/*
Theme Name: Global Business Work
Theme URI: https://webbusinesslive.com
Author: Global Business Work
Description: Fast, lead-focused block theme for webbusinesslive.com. No page builder required. Includes built-in callback/quote forms with a Leads inbox, affiliate tools (disclosure, sponsored links, offer boxes), auto table of contents, breadcrumbs and schema.
Version: 1.2.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: gbw
*/

/* ---------- Base ---------- */
:root{--gbw-radius:18px;--gbw-radius-sm:10px;--gbw-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px -8px rgba(15,23,42,.12)}
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where(h1,h2,h3,h4){text-wrap:balance}
:where(p){text-wrap:pretty}
img{height:auto}
a{text-underline-offset:.18em;text-decoration-thickness:1px}
:focus-visible{outline:2px solid var(--wp--preset--color--accent);outline-offset:3px;border-radius:4px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}

/* ---------- Header ---------- */
.gbw-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--wp--preset--color--base) 88%,transparent);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--wp--preset--color--line)}
.admin-bar .gbw-header{top:32px}
@media (max-width:782px){.admin-bar .gbw-header{top:0}}
.gbw-logo{font-weight:800;letter-spacing:-.02em;font-size:1.15rem;margin:0}
.gbw-logo a{text-decoration:none;color:var(--wp--preset--color--ink);display:inline-flex;align-items:center;gap:.55rem}
.gbw-logo a::before{content:"";width:28px;height:28px;border-radius:8px;background:var(--wp--preset--color--accent);box-shadow:inset -8px -8px 0 0 var(--wp--preset--color--ink);flex:none}
.gbw-header .wp-block-navigation a{text-decoration:none;font-weight:500}
.gbw-header .wp-block-navigation a:hover{color:var(--wp--preset--color--accent)}

/* ---------- Buttons ---------- */
.wp-block-button__link{transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease}
.wp-block-button__link:hover{transform:translateY(-1px)}
.is-style-outline>.wp-block-button__link{border:1.5px solid currentColor!important;background:transparent!important}
.is-style-outline>.wp-block-button__link:hover{background:var(--wp--preset--color--ink)!important;color:var(--wp--preset--color--base)!important;border-color:var(--wp--preset--color--ink)!important}
.gbw-dark .is-style-outline>.wp-block-button__link:hover{background:var(--wp--preset--color--base)!important;color:var(--wp--preset--color--ink)!important}

/* ---------- Utility ---------- */
.gbw-eyebrow{display:flex;align-items:center;gap:.5rem;font-size:.8rem!important;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--accent);margin-bottom:0}
.gbw-eyebrow::before{content:"";width:18px;height:2px;background:currentColor}
.gbw-lead{font-size:clamp(1.05rem,1.5vw,1.2rem);color:var(--wp--preset--color--muted)}
.gbw-dark{background:var(--wp--preset--color--ink);color:#E7E9EE}
.gbw-dark :where(h1,h2,h3,h4){color:#fff}
.gbw-dark .gbw-lead,.gbw-dark .gbw-muted{color:#A9B1C1}
.gbw-muted{color:var(--wp--preset--color--muted)}
.gbw-card{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:var(--gbw-radius);padding:clamp(1.25rem,3vw,2rem);box-shadow:var(--gbw-shadow);height:100%}
.gbw-section{padding-top:clamp(3.5rem,8vw,6.5rem)!important;padding-bottom:clamp(3.5rem,8vw,6.5rem)!important}
.gbw-soft{background:var(--wp--preset--color--soft)}

/* ---------- Hero ---------- */
.gbw-hero{position:relative;overflow:hidden}
.gbw-hero::before{content:"";position:absolute;inset:-40% -10% auto auto;width:720px;height:720px;background:radial-gradient(closest-side,color-mix(in srgb,var(--wp--preset--color--accent) 22%,transparent),transparent);pointer-events:none}
.gbw-hero h1{font-size:clamp(2.4rem,5.6vw,4.4rem)!important;line-height:1.02;letter-spacing:-.035em}
.gbw-hero h1 em{font-style:normal;color:var(--wp--preset--color--accent)}
.gbw-checks{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;font-size:.92rem;color:var(--wp--preset--color--muted)}
.gbw-checks li{display:flex;align-items:center;gap:.4rem}
.gbw-checks li::before{content:"";width:16px;height:16px;border-radius:50%;background:var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;flex:none}

/* Hero form card */
.gbw-formcard{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:22px;padding:clamp(1.25rem,3vw,2rem);box-shadow:0 30px 60px -20px rgba(15,23,42,.25)}
.gbw-formcard h3{margin-top:0}

/* ---------- Tiers ---------- */
.gbw-tier{display:flex;flex-direction:column;gap:.75rem}
.gbw-tier .wp-block-buttons{margin-top:auto}
.gbw-tier.is-featured{background:var(--wp--preset--color--ink);color:#E7E9EE;border-color:var(--wp--preset--color--ink);position:relative}
.gbw-tier.is-featured :where(h3,h4){color:#fff}
.gbw-tier.is-featured .gbw-muted{color:#A9B1C1}
.gbw-tag{display:inline-block;font-size:.72rem!important;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:.3rem .6rem;border-radius:999px;background:var(--wp--preset--color--soft);color:var(--wp--preset--color--ink);margin:0;align-self:flex-start}
.gbw-tier.is-featured .gbw-tag{background:var(--wp--preset--color--accent);color:#fff}
.gbw-list{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.gbw-list li{position:relative;padding-left:1.6rem}
.gbw-list li::before{content:"";position:absolute;left:0;top:.35em;width:14px;height:14px;border-radius:4px;background:color-mix(in srgb,var(--wp--preset--color--accent) 18%,transparent);box-shadow:inset 0 0 0 4px color-mix(in srgb,var(--wp--preset--color--accent) 18%,transparent)}
.gbw-list li::after{content:"";position:absolute;left:4px;top:calc(.35em + 4px);width:6px;height:6px;border-radius:2px;background:var(--wp--preset--color--accent)}

/* ---------- Steps ---------- */
.gbw-steps{counter-reset:step}
.gbw-step{counter-increment:step;border-top:1px solid rgba(255,255,255,.15);padding-top:1.25rem}
.gbw-step::before{content:"0" counter(step);display:block;font-weight:700;font-size:.85rem;color:var(--wp--preset--color--accent);margin-bottom:.75rem;letter-spacing:.06em}
.gbw-soft .gbw-step,.gbw-section:not(.gbw-dark) .gbw-step{border-top-color:var(--wp--preset--color--line)}

/* ---------- Feature icons ---------- */
.gbw-icon{width:44px;height:44px;border-radius:12px;background:color-mix(in srgb,var(--wp--preset--color--accent) 12%,transparent);display:grid;place-items:center;margin:0 0 .75rem!important;font-size:1.2rem!important;line-height:1}

/* ---------- Posts ---------- */
.gbw-postcard{display:flex;flex-direction:column;height:100%;background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:var(--gbw-radius);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.gbw-postcard:hover{transform:translateY(-3px);box-shadow:var(--gbw-shadow)}
.gbw-postcard .wp-block-post-featured-image{margin:0;aspect-ratio:16/9;overflow:hidden;background:var(--wp--preset--color--soft)}
.gbw-postcard .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover}
.gbw-postcard .wp-block-post-title a{text-decoration:none;color:inherit}
.gbw-postcard .wp-block-post-title a:hover{color:var(--wp--preset--color--accent)}
.gbw-postcard-body{padding:1.25rem 1.4rem 1.5rem!important;display:flex;flex-direction:column;gap:.6rem;flex:1}
.gbw-postcard .wp-block-read-more{margin-top:auto;font-weight:600;text-decoration:none;color:var(--wp--preset--color--accent)}
.gbw-postmeta{font-size:.82rem!important;color:var(--wp--preset--color--muted);display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.gbw-postmeta a{color:inherit}
.wp-block-post-terms a{text-decoration:none}
.gbw-postcard .wp-block-post-terms a{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--accent)}
.wp-block-query-pagination{gap:.5rem}
.wp-block-query-pagination-numbers .page-numbers{display:inline-grid;place-items:center;min-width:2.4rem;height:2.4rem;border-radius:10px;border:1px solid var(--wp--preset--color--line);text-decoration:none;margin:0 .15rem}
.wp-block-query-pagination-numbers .current{background:var(--wp--preset--color--ink);color:#fff;border-color:var(--wp--preset--color--ink)}

/* ---------- Single post ---------- */
.gbw-article .wp-block-post-content{font-size:1.075rem;line-height:1.75}
.gbw-article .wp-block-post-content :where(h2){margin-top:2.4em;scroll-margin-top:96px}
.gbw-article .wp-block-post-content :where(h3){margin-top:1.8em;scroll-margin-top:96px}
.gbw-article .wp-block-post-content a{color:var(--wp--preset--color--accent)}
.gbw-article .wp-block-post-content img{border-radius:var(--gbw-radius-sm)}
.gbw-article .wp-block-post-content :where(table){border-collapse:collapse;width:100%;font-size:.95rem}
.gbw-article .wp-block-post-content :where(th,td){border:1px solid var(--wp--preset--color--line);padding:.6rem .8rem;text-align:left}
.gbw-article .wp-block-post-content :where(th){background:var(--wp--preset--color--soft)}
.gbw-article .wp-block-post-featured-image img{border-radius:var(--gbw-radius)}
.gbw-crumbs{font-size:.85rem;color:var(--wp--preset--color--muted);display:flex;flex-wrap:wrap;gap:.4rem;margin:0}
.gbw-crumbs a{color:inherit;text-decoration:none}
.gbw-crumbs a:hover{color:var(--wp--preset--color--accent)}
.gbw-crumbs span[aria-hidden]{opacity:.5}
.gbw-toc{background:var(--wp--preset--color--soft);border-radius:var(--gbw-radius-sm);padding:1.1rem 1.4rem;margin:1.75rem 0;font-size:.95rem}
.gbw-toc summary{font-weight:700;cursor:pointer}
.gbw-toc ol{margin:.75rem 0 0;padding-left:1.2rem;display:grid;gap:.35rem}
.gbw-toc a{text-decoration:none;color:var(--wp--preset--color--ink)!important}
.gbw-toc a:hover{color:var(--wp--preset--color--accent)!important}
.gbw-disclosure{font-size:.85rem;color:var(--wp--preset--color--muted);border-left:3px solid var(--wp--preset--color--accent);padding:.5rem .9rem;background:var(--wp--preset--color--soft);border-radius:0 8px 8px 0;margin:0}
.gbw-authorbox{display:flex;gap:1rem;align-items:flex-start}
.gbw-authorbox .wp-block-avatar img{border-radius:50%}

/* Affiliate offer box (pattern) */
.gbw-offer{border:2px solid var(--wp--preset--color--ink);border-radius:var(--gbw-radius);padding:1.5rem!important;background:var(--wp--preset--color--surface);position:relative;margin:2rem 0}
.gbw-offer .gbw-tag{background:var(--wp--preset--color--accent);color:#fff}
.gbw-offer h3{margin:.5rem 0}
.gbw-proscons .gbw-card{box-shadow:none}

/* ---------- Forms ---------- */
.gbw-form{display:grid;gap:.85rem}
.gbw-form .gbw-row{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}
@media (max-width:600px){.gbw-form .gbw-row{grid-template-columns:1fr}}
.gbw-form label{display:block;font-size:.82rem;font-weight:600;margin-bottom:.3rem;color:var(--wp--preset--color--ink)}
.gbw-form input,.gbw-form select,.gbw-form textarea{width:100%;box-sizing:border-box;font:inherit;font-size:1rem;padding:.75rem .9rem;border:1px solid var(--wp--preset--color--line);border-radius:10px;background:var(--wp--preset--color--base);color:var(--wp--preset--color--ink);transition:border-color .15s,box-shadow .15s}
.gbw-form input:focus,.gbw-form select:focus,.gbw-form textarea:focus{outline:none;border-color:var(--wp--preset--color--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--wp--preset--color--accent) 18%,transparent)}
.gbw-form textarea{min-height:120px;resize:vertical}
.gbw-form button{font:inherit;font-weight:600;font-size:1rem;border:0;cursor:pointer;padding:.95rem 1.4rem;border-radius:999px;background:var(--wp--preset--color--accent);color:#fff;transition:background .15s,transform .15s}
.gbw-form button:hover{background:var(--wp--preset--color--accent-dark);transform:translateY(-1px)}
.gbw-form .gbw-hp{position:absolute!important;left:-9999px!important;height:0;overflow:hidden}
.gbw-form .gbw-fine{font-size:.78rem;color:var(--wp--preset--color--muted);margin:0}
.gbw-notice{padding:.9rem 1.1rem;border-radius:10px;font-weight:500;margin-bottom:1rem}
.gbw-notice.ok{background:#E7F7EE;color:#14532D;border:1px solid #BBE5CB}
.gbw-notice.err{background:#FDECEC;color:#7F1D1D;border:1px solid #F5C2C2}
.gbw-dark .gbw-form label{color:#E7E9EE}

/* ---------- FAQ ---------- */
.gbw-faq .wp-block-details{border-bottom:1px solid var(--wp--preset--color--line);padding:1.1rem 0}
.gbw-faq .wp-block-details summary{font-weight:600;font-size:1.08rem;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.gbw-faq .wp-block-details summary::-webkit-details-marker{display:none}
.gbw-faq .wp-block-details summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--wp--preset--color--accent);transition:transform .2s}
.gbw-faq .wp-block-details[open] summary::after{transform:rotate(45deg)}
.gbw-faq .wp-block-details p{color:var(--wp--preset--color--muted);margin-top:.75rem}

/* ---------- Contact info ---------- */
.gbw-info{list-style:none;padding:0;margin:0;display:grid;gap:1rem}
.gbw-info li{display:flex;gap:.85rem;align-items:flex-start}
.gbw-info strong{display:block;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--muted);font-weight:600}
.gbw-info a{color:inherit;text-decoration:none}
.gbw-info a:hover{color:var(--wp--preset--color--accent)}
.gbw-info .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--wp--preset--color--accent) 12%,transparent);flex:none}
.gbw-dark .gbw-info strong{color:#A9B1C1}

/* ---------- Footer ---------- */
.gbw-footer{font-size:.95rem}
.gbw-footer a{color:#C9CFDA;text-decoration:none}
.gbw-footer a:hover{color:#fff}
.gbw-footer .gbw-logo a{color:#fff}
.gbw-footer .gbw-logo a::before{box-shadow:inset -8px -8px 0 0 #fff}
.gbw-footer h4{font-size:.8rem!important;letter-spacing:.08em;text-transform:uppercase;color:#8A93A6!important;font-weight:600}
.gbw-footer .gbw-links{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.gbw-footer-bottom{border-top:1px solid rgba(255,255,255,.1)}

/* ---------- Mobile ---------- */
@media (max-width:781px){
  .gbw-hide-mobile{display:none!important}
  .gbw-hero h1{font-size:2.35rem!important}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---------- Extras ---------- */
.gbw-strip-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem 1.5rem;font-weight:600;color:var(--wp--preset--color--muted);font-size:.95rem}
.gbw-strip-list li{display:flex;align-items:center;gap:.6rem}
.gbw-strip-list li+li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--wp--preset--color--accent);margin-right:.4rem}
@media (max-width:781px){.gbw-strip-list{justify-content:flex-start}}
.gbw-steps{counter-reset:none}
.gbw-section:has(.gbw-steps){counter-reset:step}
.gbw-dark .gbw-formcard,.gbw-dark .gbw-formcard :where(h1,h2,h3,h4){color:var(--wp--preset--color--ink)}
.gbw-dark .gbw-formcard label{color:var(--wp--preset--color--ink)}
.gbw-dark .gbw-card:not(.gbw-dark){color:var(--wp--preset--color--ink)}
.gbw-card.gbw-dark{border-color:var(--wp--preset--color--ink)}
.gbw-pagehead{border-bottom:1px solid var(--wp--preset--color--line);background:linear-gradient(180deg,var(--wp--preset--color--soft),var(--wp--preset--color--base))}
.gbw-pagehead h1{font-size:clamp(2.2rem,5vw,3.6rem)!important;letter-spacing:-.035em;margin:0}
.gbw-pagehead + .gbw-section{border-top:0}
.gbw-catpills{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem}
.gbw-catpills li a{display:inline-block;padding:.45rem .9rem;border:1px solid var(--wp--preset--color--line);border-radius:999px;text-decoration:none;font-size:.88rem;font-weight:500;background:var(--wp--preset--color--surface)}
.gbw-catpills li a:hover{border-color:var(--wp--preset--color--ink)}
.gbw-catpills li.current-cat a{background:var(--wp--preset--color--ink);color:#fff;border-color:var(--wp--preset--color--ink)}
.gbw-ph,.gbw-postcard .gbw-ph{margin:0;aspect-ratio:16/9;background:linear-gradient(135deg,var(--wp--preset--color--ink) 0%,#1E293B 55%,var(--wp--preset--color--accent) 160%);display:block;position:relative;overflow:hidden}
.gbw-ph a{position:absolute;inset:0;display:flex;align-items:flex-end;padding:1.25rem;color:#fff!important;text-decoration:none;font-weight:700;font-size:1.05rem;line-height:1.25;letter-spacing:-.01em}
.gbw-ph::after{content:"";position:absolute;right:-30px;top:-30px;width:140px;height:140px;border-radius:32px;background:var(--wp--preset--color--accent);opacity:.85;transform:rotate(18deg)}
.gbw-postmeta p{margin:0}
.gbw-article .gbw-eyebrow a{color:inherit;text-decoration:none}
.gbw-article .wp-block-post-title{margin-top:.5rem}
.gbw-article .gbw-postmeta{margin-top:.75rem}
.wp-block-search__input{border:1px solid var(--wp--preset--color--line);border-radius:999px;padding:.7rem 1.1rem;background:var(--wp--preset--color--surface)}
.wp-block-search__button{border-radius:999px;background:var(--wp--preset--color--accent);color:#fff;border:0;padding:.7rem 1.3rem;font-weight:600}
.gbw-card.gbw-dark{background:var(--wp--preset--color--ink);color:#E7E9EE}
.gbw-card.gbw-dark :where(h2,h3,h4){color:#fff}
.wp-site-blocks>*{margin-block-start:0!important}
