/*
Theme Name: Workflow Owl
Theme URI: https://workflowowl.com
Author: Workflow Owl
Description: Fast, accessible block theme for Workflow Owl — practical AI tutorials for small business owners. Built-in SEO, structured data and AI-search (GEO) support.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: workflowowl
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:where(a) { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(a:hover) { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--amber); outline-offset: 3px; border-radius: 4px; }
img { height: auto; max-width: 100%; }
::selection { background: #FCE4B6; color: var(--wp--preset--color--ink); }
.skip-link:focus { background: var(--wp--preset--color--ink); color: #fff; padding: .6rem 1rem; z-index: 9999; }

/* ---------- Header ---------- */
.wfo-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); background: rgba(250,248,244,.86) !important; border-bottom: 1px solid rgba(14,23,38,.07); }
.admin-bar .wfo-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wfo-header { top: 46px; } }
.wfo-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.wfo-brand svg { width: 36px; height: 36px; flex: none; }
.wfo-brand span em { font-style: normal; color: var(--wp--preset--color--amber-dark); }
.wfo-header .wp-block-navigation a { font-weight: 600; font-size: .95rem; text-decoration: none; }
.wfo-header .wp-block-navigation a:hover { color: var(--wp--preset--color--amber-dark); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(14,23,38,.35); }
.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; }

/* ---------- Hero ---------- */
.wfo-hero { position: relative; overflow: hidden; }
.wfo-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(244,166,42,.22), transparent); pointer-events: none; }
.wfo-hero::after { content: ""; position: absolute; inset: auto auto -45% -10%; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(30,158,143,.14), transparent); pointer-events: none; }
.wfo-hero > * { position: relative; z-index: 1; }
.wfo-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid rgba(14,23,38,.08); font-size: .82rem; font-weight: 600; color: var(--wp--preset--color--slate); box-shadow: 0 1px 2px rgba(14,23,38,.05); }
.wfo-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--teal); box-shadow: 0 0 0 4px rgba(30,158,143,.18); }
.wfo-hl { background: linear-gradient(transparent 62%, #FCE4B6 62%); padding: 0 .1em; }

/* Workflow demo card (pure CSS, no images) */
.wfo-demo { background: #fff; border: 1px solid rgba(14,23,38,.08); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(14,23,38,.35), 0 2px 6px rgba(14,23,38,.05); padding: 1.4rem; font-size: .92rem; }
.wfo-demo__bar { display: flex; gap: 6px; margin-bottom: 1rem; }
.wfo-demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: #E5E1D8; display: block; }
.wfo-demo__row { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: 12px; background: var(--wp--preset--color--paper); margin-bottom: .6rem; }
.wfo-demo__row b { font-weight: 600; color: var(--wp--preset--color--ink); }
.wfo-demo__row small { display: block; color: var(--wp--preset--color--slate); font-size: .8rem; }
.wfo-demo__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; font-family: var(--wp--preset--font-family--heading); }
.wfo-demo__icon.a { background: var(--wp--preset--color--amber); }
.wfo-demo__icon.b { background: var(--wp--preset--color--teal); }
.wfo-demo__icon.c { background: var(--wp--preset--color--ink); }
.wfo-demo__tag { margin-left: auto; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: #E3F4F1; color: #12796D; white-space: nowrap; }
.wfo-demo__foot { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; padding-top: .9rem; border-top: 1px dashed rgba(14,23,38,.12); color: var(--wp--preset--color--slate); font-size: .82rem; }

/* ---------- Trust strip ---------- */
.wfo-trust { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center; }
.wfo-trust p { margin: 0; display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--wp--preset--color--slate); font-size: .95rem; }
.wfo-trust p::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #E3F4F1; color: #12796D; font-size: .75rem; font-weight: 800; }

/* ---------- Cards ---------- */
.wfo-card { background: #fff; border: 1px solid rgba(14,23,38,.08); border-radius: 18px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%; }
.wfo-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(14,23,38,.35); border-color: rgba(244,166,42,.5); }
.wfo-card .wfo-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .2rem; }
.wfo-icon.amber { background: #FDF0D9; } .wfo-icon.teal { background: #E3F4F1; } .wfo-icon.ink { background: #E8EAF0; }
.wfo-card a.wfo-more { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--ink); }
.wfo-card a.wfo-more::after { content: " →"; transition: margin .15s; }
.wfo-card:hover a.wfo-more::after { margin-left: 4px; }

/* Post cards in query loops */
.wfo-posts .wp-block-post { background: #fff; border: 1px solid rgba(14,23,38,.08); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.wfo-posts .wp-block-post:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(14,23,38,.35); }
.wfo-posts .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg,#FDF0D9,#E3F4F1); }
.wfo-posts .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.wfo-posts .wfo-post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.wfo-posts .wp-block-post-title a { text-decoration: none; }
.wfo-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--amber-dark); }
.wfo-posts .taxonomy-category a { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #12796D; text-decoration: none; }
.wfo-empty { text-align: center; padding: 2.5rem 1.5rem; border: 2px dashed rgba(14,23,38,.12); border-radius: 18px; color: var(--wp--preset--color--slate); }

/* ---------- Steps ---------- */
.wfo-step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--ink); color: #fff; font-weight: 800; font-family: var(--wp--preset--font-family--heading); }

/* ---------- CTA band ---------- */
.wfo-cta { border-radius: 28px; position: relative; overflow: hidden; }
.wfo-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(244,166,42,.35), transparent); }

/* ---------- Article ---------- */
.wfo-article .wp-block-post-content { font-size: 1.125rem; line-height: 1.75; }
.wfo-article .wp-block-post-content > * + * { margin-block-start: 1.25em; }
.wfo-article .wp-block-post-content h2 { margin-block-start: 2.2em; scroll-margin-top: 90px; }
.wfo-article .wp-block-post-content h3 { margin-block-start: 1.8em; scroll-margin-top: 90px; }
.wfo-article .wp-block-post-content img { border-radius: 14px; }
.wfo-article .wp-block-post-content blockquote { border-left: 4px solid var(--wp--preset--color--amber); padding: .2em 0 .2em 1.2em; margin-left: 0; font-style: normal; color: var(--wp--preset--color--slate); }
.wfo-article .wp-block-post-content pre, .wfo-article .wp-block-post-content code { font-size: .92em; }
.wfo-article .wp-block-post-content pre { background: var(--wp--preset--color--ink); color: #EDE9E0; padding: 1.2rem; border-radius: 12px; overflow-x: auto; }
.wfo-article .wp-block-post-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.wfo-article .wp-block-post-content th, .wfo-article .wp-block-post-content td { border-bottom: 1px solid rgba(14,23,38,.1); padding: .7rem .6rem; text-align: left; }
.wfo-article .wp-block-post-content th { background: var(--wp--preset--color--paper); font-weight: 700; }
.wfo-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; color: var(--wp--preset--color--slate); font-size: .92rem; }
.wfo-meta > * { margin: 0 !important; }
.wfo-disclosure { font-size: .85rem; color: var(--wp--preset--color--slate); background: #fff; border: 1px solid rgba(14,23,38,.08); border-radius: 12px; padding: .7rem 1rem; }
.wfo-toc { background: #fff; border: 1px solid rgba(14,23,38,.08); border-radius: 16px; padding: 1.1rem 1.3rem; font-size: 1rem; }
.wfo-toc summary { font-weight: 800; cursor: pointer; font-family: var(--wp--preset--font-family--heading); list-style: none; display: flex; justify-content: space-between; }
.wfo-toc summary::-webkit-details-marker { display: none; }
.wfo-toc summary::after { content: "+"; font-weight: 800; }
.wfo-toc[open] summary::after { content: "–"; }
.wfo-toc ol { margin: .8rem 0 0; padding-left: 1.2rem; }
.wfo-toc li { margin: .35rem 0; }
.wfo-toc a { text-decoration: none; }
.wfo-toc a:hover { text-decoration: underline; }
.wfo-keytakeaways { background: #FFF8EC; border: 1px solid #F6D9A3; border-radius: 16px; padding: 1.1rem 1.3rem; }
.wfo-author { background: #fff; border: 1px solid rgba(14,23,38,.08); border-radius: 18px; }
.wfo-author .wp-block-avatar img { border-radius: 50%; }
.wfo-crumbs { font-size: .85rem; color: var(--wp--preset--color--slate); }
.wfo-crumbs a { color: inherit; text-decoration: none; }
.wfo-crumbs a:hover { text-decoration: underline; }
.wfo-crumbs span[aria-hidden] { margin: 0 .45rem; opacity: .5; }

/* ---------- Footer ---------- */
.wfo-footer a { color: #D8D3C8; text-decoration: none; }
.wfo-footer a:hover { color: #fff; text-decoration: underline; }
.wfo-footer .wfo-brand { color: #fff; }
.wfo-footer ul { list-style: none; padding: 0; margin: 0; }
.wfo-footer li { margin: .45rem 0; }

/* ---------- Pagination ---------- */
.wp-block-query-pagination { gap: .5rem; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(14,23,38,.1); text-decoration: none; margin: 0 2px; }
.wp-block-query-pagination-numbers .current { background: var(--wp--preset--color--ink); color: #fff; border-color: transparent; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
  .wfo-hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem) !important; }
  .wfo-demo { margin-top: 1rem; }
  .wfo-cta { border-radius: 20px; }
}
