/*
Theme Name: QualityWordPress
Theme URI: https://qualitywordpress.com/
Author: QualityWordPress
Author URI: https://qualitywordpress.com/
Description: Bootstrap 5 theme for QualityWordPress, a WordPress agency and theme shop. On activation it imports the site's pages, blog posts (same slugs as the original site), categories, the Lumen theme listing, menus, featured images and permalink settings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qualitywordpress
*/

:root {
	--qw-teal-900: #0b3b3a;
	--qw-teal-700: #0f766e;
	--qw-teal-600: #0d9488;
	--qw-mint: #5eead4;
	--qw-mint-soft: #ccfbf1;
	--qw-ink: #0f172a;
	--qw-body: #334155;
	--qw-muted: #64748b;
	--qw-line: #e2e8f0;
	--qw-soft: #f8fafc;
	--bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bs-body-color: var(--qw-body);
	--bs-link-color: var(--qw-teal-700);
	--bs-link-color-rgb: 15, 118, 110;
	--bs-link-hover-color: var(--qw-teal-900);
	--bs-link-hover-color-rgb: 11, 59, 58;
	--bs-border-radius: .65rem;
}

body { background: #fff; color: var(--qw-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { color: var(--qw-ink); font-weight: 800; letter-spacing: -.02em; }
/* Display font for the big headings; h3 and below stay in Inter for readability. */
h1, h2, .h1, .h2, .display-5, .display-6, .qw-brand { font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; font-optical-sizing: auto; }
h1, .h1 { line-height: 1.08; }
h2, .h2 { line-height: 1.15; }
a { text-underline-offset: 3px; }

/* Buttons */
.btn { font-weight: 600; border-radius: .6rem; padding: .6rem 1.1rem; }
.btn-qw { background: var(--qw-teal-700); color: #fff; border: 0; }
.btn-qw:hover, .btn-qw:focus { background: var(--qw-teal-900); color: #fff; }
.btn-ink { background: var(--qw-ink); color: #fff; border: 0; }
.btn-ink:hover { background: #1e293b; color: #fff; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Header */
.qw-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--qw-line); }
.qw-brand { font-weight: 800; color: var(--qw-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.qw-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--qw-teal-700); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; }
.qw-brand span em { font-style: normal; color: var(--qw-teal-700); }
.qw-header .nav-link { color: var(--qw-body); font-weight: 500; }
.qw-header .nav-link:hover, .qw-header .current-menu-item > .nav-link { color: var(--qw-teal-700); }

/* Hero */
.qw-hero { background: radial-gradient(1200px 500px at 50% -10%, #14b8a6 0%, var(--qw-teal-700) 45%, var(--qw-teal-900) 100%); color: #d1fae5; padding: 6rem 0 5rem; }
/* Photo hero: the image sits under a teal tint so white text keeps strong contrast. */
.qw-hero--image { position: relative; isolation: isolate; background: var(--qw-teal-900) var(--qw-hero-img) center / cover no-repeat; padding: 7.5rem 0 6.5rem; }
.qw-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,47,46,.78) 0%, rgba(15,118,110,.72) 55%, rgba(4,47,46,.9) 100%); }
.qw-hero--image .lead { color: #e6fffa; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.qw-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; }
.qw-hero h1 .accent { color: var(--qw-mint); display: block; }
.qw-pill { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #ecfeff; font-size: .82rem; font-weight: 600; }
.qw-page-hero { background: linear-gradient(135deg, var(--qw-teal-700), var(--qw-teal-900)); color: #d1fae5; padding: 4rem 0 3rem; }
.qw-page-hero h1 { color: #fff; }
.qw-page-hero a { color: var(--qw-mint); }

/* Sections */
.qw-section { padding: 5rem 0; }
.qw-section-soft { background: var(--qw-soft); }
.qw-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--qw-teal-700); }
.qw-card { border: 1px solid var(--qw-line); border-radius: 1rem; background: #fff; transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.qw-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(15,23,42,.18); }
.qw-card .card-img-top { border-radius: 1rem 1rem 0 0; aspect-ratio: 16/9; object-fit: cover; }
.qw-card a.stretched-link { color: var(--qw-ink); text-decoration: none; }
.qw-badge { background: var(--qw-mint-soft); color: var(--qw-teal-900); font-weight: 600; border-radius: 999px; padding: .25rem .65rem; font-size: .75rem; text-decoration: none; }
.qw-check li { list-style: none; position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.qw-check li::before { content: "✓"; position: absolute; left: 0; color: var(--qw-teal-600); font-weight: 800; }
.qw-check { padding-left: 0; }
.qw-feature-box { background: linear-gradient(160deg, var(--qw-mint-soft), #fff); border: 1px solid var(--qw-line); border-radius: 1.25rem; }
.qw-cta { background: var(--qw-ink); color: #cbd5e1; border-radius: 1.25rem; }
.qw-cta h2 { color: #fff; }

/* Article */
.qw-article { font-size: 1.075rem; line-height: 1.75; }
.qw-article h2 { margin-top: 2.6rem; margin-bottom: .9rem; font-size: 1.65rem; scroll-margin-top: 90px; }
.qw-article h3 { margin-top: 1.8rem; font-size: 1.25rem; scroll-margin-top: 90px; }
.qw-article p, .qw-article ul, .qw-article ol { margin-bottom: 1.15rem; }
.qw-article li { margin-bottom: .35rem; }
.qw-article table { font-size: .95rem; }
.qw-article pre { background: var(--qw-ink); color: #e2e8f0; padding: 1rem 1.25rem; border-radius: .75rem; font-size: .9rem; overflow-x: auto; }
.qw-article code { color: var(--qw-teal-700); }
.qw-article pre code { color: inherit; }
.qw-article blockquote { border-left: 4px solid var(--qw-mint); padding-left: 1rem; color: var(--qw-muted); }
.qw-article img { max-width: 100%; height: auto; border-radius: .75rem; }
.qw-tldr { background: var(--qw-mint-soft); border: 1px solid #99f6e4; border-radius: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.qw-tldr ul { margin-bottom: 0; }
.qw-label { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 800; color: var(--qw-teal-900); margin-bottom: .5rem !important; }
.qw-answer { border-left: 4px solid var(--qw-teal-600); background: var(--qw-soft); padding: 1rem 1.25rem; border-radius: 0 .75rem .75rem 0; margin-bottom: 2rem; font-size: 1.1rem; }
.qw-answer p:last-child, .qw-note p:last-child, .qw-tldr p:last-child { margin-bottom: 0; }
.qw-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: .75rem; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.qw-featured-img { border-radius: 1.25rem; width: 100%; height: auto; aspect-ratio: 16/8; object-fit: cover; }
.qw-toc { position: sticky; top: 90px; font-size: .92rem; }
.qw-toc a { color: var(--qw-body); text-decoration: none; display: block; padding: .25rem 0; }
.qw-toc a:hover { color: var(--qw-teal-700); }
.qw-meta { color: var(--qw-muted); font-size: .92rem; }
.qw-faq .accordion-button:not(.collapsed) { background: var(--qw-mint-soft); color: var(--qw-teal-900); box-shadow: none; }
.qw-faq .accordion-button { font-weight: 600; }
.qw-breadcrumb a { color: inherit; }
.qw-credit { font-size: .78rem; color: var(--qw-muted); }

/* Footer */
.qw-footer { background: var(--qw-ink); color: #94a3b8; padding: 4rem 0 2rem; }
.qw-footer a { color: #cbd5e1; text-decoration: none; }
.qw-footer a:hover { color: var(--qw-mint); }
.qw-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.qw-footer ul { list-style: none; padding: 0; }
.qw-footer li { margin-bottom: .45rem; }

/* WP core */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--qw-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.page-numbers { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--qw-line); border-radius: .5rem; margin: 0 .15rem; text-decoration: none; }
.page-numbers.current { background: var(--qw-teal-700); color: #fff; border-color: var(--qw-teal-700); }
