/*
Theme Name: FiverrFusion Premium
Theme URI: https://fiverrfusion.com/
Author: FiverrFusion
Description: A clean, fast block theme for AI tools, freelancing, SEO, WordPress and hosting content. Edit the header, footer, homepage sections and every template in Appearance > Editor.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fiverrfusion-premium
*/

/* Colours, fonts and sizes live in theme.json. This file styles the layout pieces. */

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--wp--preset--color--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons: blue, white text, never underlined ---------- */
.wp-block-button__link, a.wp-element-button { text-decoration: none !important; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--blue); color: #fff; box-shadow: 0 8px 20px rgba(66, 99, 235, .22); transition: background-color .2s, transform .2s; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus { background: var(--wp--preset--color--blue-dark); color: #fff; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: #fff; color: #36435b; border: 1px solid #d5dcec; box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue-dark); }

/* ---------- Header ---------- */
header.ff-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar header.ff-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar header.ff-site-header { top: 46px; } }
.ff-announcement { background: var(--wp--preset--color--navy); color: #dbe3f6; font-size: .875rem; padding: 6px 20px; }
.ff-announcement p { margin: 0; }
.ff-announcement a { color: #fff; text-decoration: none; font-weight: 600; }
.ff-announcement a:hover { text-decoration: underline; }
.ff-announcement-inner { gap: 6px 16px; }
.ff-header { background: #fff; border-bottom: 1px solid #edf0f6; padding: 0 20px; }
.ff-header-inner { min-height: 76px; gap: 20px; }
.ff-brand { gap: 10px; }
.ff-brand .wp-block-site-title { margin: 0; line-height: 1; }
.ff-brand .wp-block-site-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.ff-brand .wp-block-site-title a::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: var(--wp--preset--color--blue); }
.ff-nav { margin-left: auto; }
.ff-nav a { color: #3d4a62; text-decoration: none; }
.ff-nav a:hover { color: var(--wp--preset--color--blue-dark); }
.ff-header-cta { margin: 0; }
@media (max-width: 1000px) { .ff-header-cta { display: none; } }

/* ---------- Sections ---------- */
.ff-section { padding: 72px 20px; }
.ff-section--soft { background: var(--wp--preset--color--soft); }
.ff-section > * { margin-block-start: 0; }
.ff-section h2, .ff-section h3 { margin: 0; }
.ff-eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--wp--preset--color--blue-dark); }
.ff-eyebrow a { color: inherit; text-decoration: none; }
.ff-eyebrow--light { color: #dbe3ff; }
.ff-section-head { gap: 16px 24px; margin-bottom: 28px; }
.ff-section-head-copy > * { margin: 0; }
.ff-section-head-copy h2 { margin: 10px 0 8px; }
.ff-section-sub { color: var(--wp--preset--color--slate); font-size: 1rem; }
.ff-text-link { margin: 0; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.ff-text-link a { color: var(--wp--preset--color--blue-dark); text-decoration: none; }
.ff-text-link a:hover { text-decoration: underline; }

.ff-grid { display: grid; gap: 16px; }
.ff-grid > * { margin: 0; }
.ff-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ff-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ff-card { position: relative; padding: 24px 22px; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: #fff; transition: transform .2s, box-shadow .2s; }
.ff-card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(32, 53, 104, .09); }
.ff-card > * { margin: 0; }
.ff-card > * + * { margin-top: 8px; }
.ff-card--blue { background: linear-gradient(155deg, #fff 35%, #eef2ff); }
.ff-card--lavender { background: linear-gradient(155deg, #fff 35%, #f6f0ff); }
.ff-card--mint { background: linear-gradient(155deg, #fff 35%, #ecfaf5); }
.ff-card--peach { background: linear-gradient(155deg, #fff 35%, #fff4e8); }
.ff-card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px !important; border-radius: 12px; background: #e9eeff; color: var(--wp--preset--color--blue-dark); font-size: 1.25rem; font-weight: 900; }
.ff-card-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; color: var(--wp--preset--color--slate); }
.ff-card h3 { margin-top: 4px; }
.ff-card-text { color: var(--wp--preset--color--slate); font-size: .95rem; line-height: 1.65; }
.ff-card-link { margin-top: 14px !important; font-weight: 700; font-size: .9rem; }
.ff-card-link a { color: var(--wp--preset--color--blue-dark); text-decoration: none; }
.ff-card-link a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.ff-step-num { font-size: 1.6rem; font-weight: 900; color: var(--wp--preset--color--blue); letter-spacing: -.03em; }
.ff-topic { font-size: .95rem; color: #3d4a62; margin-top: 4px !important; }
.ff-criterion .ff-card-icon { background: #e6f9f2; color: var(--wp--preset--color--green); }

.ff-topics { margin-top: 36px; }
.ff-topics > * { margin: 0; }
.ff-topics-title { font-weight: 800; margin-bottom: 12px !important; }
.ff-chips { gap: 10px; }
.ff-chip { margin: 0; }
.ff-chip a { display: inline-block; padding: 8px 16px; border: 1px solid #d5dcec; border-radius: 999px; background: #fff; color: #36435b; text-decoration: none; font-size: .9rem; font-weight: 600; }
.ff-chip a:hover { border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue-dark); }

/* ---------- Hero ---------- */
.ff-hero { padding: 64px 20px 0; overflow: hidden; background: radial-gradient(ellipse at 78% 18%, #e6ebff 0, transparent 32%), linear-gradient(120deg, #fff, #f2f5ff); }
.ff-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; min-height: 420px; }
.ff-hero-grid > * { margin: 0; }
.ff-hero-copy > * { margin: 0; }
.ff-hero-title { margin: 16px 0 !important; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -.05em; }
.ff-hero-text { max-width: 540px; font-size: 1.1rem; line-height: 1.8; color: var(--wp--preset--color--slate); }
.ff-hero-actions { margin-top: 26px !important; }
.ff-hero-proof { margin-top: 26px !important; }
.ff-hero-proof > * { margin: 0; }
.ff-proof-title { font-size: .95rem; }
.ff-proof-text { font-size: .9rem; color: var(--wp--preset--color--slate); }
.ff-hero-art { min-width: 0; padding: 24px 0; }
.ff-hero-bottom { margin-top: 22px; padding: 18px 0; border-top: 1px solid #e3e8f6; color: var(--wp--preset--color--slate); font-size: .8rem; letter-spacing: .06em; gap: 6px 16px; }
.ff-hero-bottom p { margin: 0; }

.ff-dashboard { padding: 22px; background: #fff; border: 1px solid #e3e8f4; border-radius: 20px; box-shadow: 0 28px 80px rgba(37, 61, 124, .14); transform: rotate(1deg); font-size: .875rem; }
.ff-dash-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #eff2f8; font-weight: 800; }
.ff-dash-status { padding: 5px 10px; border-radius: 99px; background: #e7f9f1; color: #0f7a59; font-size: .75rem; }
.ff-dash-welcome { padding: 18px 0 14px; }
.ff-dash-welcome small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--wp--preset--color--slate); }
.ff-dash-welcome strong { display: block; margin-top: 6px; font-size: 1.6rem; line-height: 1.2; }
.ff-dash-welcome em { font-style: normal; color: var(--wp--preset--color--blue); }
.ff-dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ff-dash-card { min-height: 96px; padding: 12px 10px; border-radius: 12px; background: #edf1ff; }
.ff-dash-card:nth-child(2) { background: #f3edff; }
.ff-dash-card:nth-child(3) { background: #e6f9f2; }
.ff-dash-card b, .ff-dash-card small { display: block; }
.ff-dash-card b { margin-top: 10px; font-size: .82rem; }
.ff-dash-card small { font-size: .72rem; color: var(--wp--preset--color--slate); }
.ff-dash-bottom { margin-top: 12px; padding: 12px; border-radius: 10px; background: #f8faff; font-size: .8rem; font-weight: 700; }

/* ---------- Posts ---------- */
.ff-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ff-post-grid > li { margin: 0; }
.ff-post-card { height: 100%; overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: #fff; transition: transform .2s, box-shadow .2s; }
.ff-post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(32, 53, 104, .09); }
.ff-post-card > * { margin: 0; }
.ff-thumb { margin: 0 !important; background: linear-gradient(135deg, #e7edff, #f8faff); }
.ff-thumb img { display: block; width: 100%; border-radius: 0; }
.ff-post-body { padding: 18px 20px 22px; }
.ff-post-body > * { margin: 0; }
.ff-post-body > * + * { margin-top: 8px; }
.ff-post-meta { gap: 4px 12px; font-size: .8rem; color: var(--wp--preset--color--slate); text-transform: uppercase; letter-spacing: .05em; }
.ff-post-meta > * { margin: 0; }
.ff-post-meta a { color: var(--wp--preset--color--blue-dark); text-decoration: none; }
.ff-post-body .wp-block-post-title { font-size: 1.15rem; line-height: 1.4; letter-spacing: -.01em; }
.ff-post-body .wp-block-post-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.ff-post-body .wp-block-post-title a:hover { color: var(--wp--preset--color--blue-dark); }
.ff-post-body .wp-block-post-excerpt__more-link { font-weight: 700; color: var(--wp--preset--color--blue-dark); text-decoration: none; }
.ff-pagination { margin-top: 32px; gap: 8px; }
.ff-pagination a, .ff-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; text-decoration: none; color: var(--wp--preset--color--navy); }
.ff-pagination .current { background: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); color: #fff; }

/* ---------- Value, FAQ, CTA ---------- */
.ff-value-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.ff-value-grid > * { margin: 0; }
.ff-value-intro > * { margin: 0; }
.ff-value-intro h2 { margin: 14px 0 !important; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.045em; }
.ff-value-intro > p:not(.ff-eyebrow):not(.ff-text-link) { color: var(--wp--preset--color--slate); }
.ff-value-intro .ff-text-link { margin-top: 18px; }
.ff-value-list > * { margin: 0; }
.ff-value-item { gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--wp--preset--color--line); align-items: center; }
.ff-value-item:first-child { border-top: 1px solid var(--wp--preset--color--line); }
.ff-value-num { margin: 0; flex: 0 0 34px; font-weight: 900; color: #7f8ba2; }
.ff-value-copy { flex: 1; }
.ff-value-copy > * { margin: 0; }
.ff-value-copy h3 { margin-bottom: 4px; font-size: 1.05rem; }
.ff-value-copy p { color: var(--wp--preset--color--slate); font-size: .95rem; }
.ff-check { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; margin: 0; border-radius: 50%; background: #e4f8ef; color: var(--wp--preset--color--green); font-weight: 900; font-size: .85rem; }

.ff-faq { max-width: 820px; }
.ff-faq > * { margin: 0; }
.ff-faq .wp-block-details { padding: 18px 0; border-top: 1px solid var(--wp--preset--color--line); }
.ff-faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.ff-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.ff-faq .wp-block-details p { margin: 10px 0 0; color: var(--wp--preset--color--slate); }

.ff-section--cta { padding: 0 20px 76px; }
.ff-cta-panel { display: grid; grid-template-columns: 1fr .6fr; gap: 30px; align-items: center; padding: 46px 54px; overflow: hidden; border-radius: 24px; color: #fff; background: var(--wp--preset--gradient--cta); }
.ff-cta-panel > * { margin: 0; }
.ff-cta-copy > * { margin: 0; }
.ff-cta-copy h2 { margin: 14px 0 !important; color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.045em; }
.ff-cta-copy > p:not(.ff-eyebrow) { color: #e6ebff; }
.ff-cta-actions { margin-top: 22px !important; }
.ff-cta-actions .wp-block-button__link { background: #fff !important; color: #2b45c7 !important; box-shadow: none; }
.ff-cta-mark { justify-self: center; display: grid; place-items: center; width: 150px; height: 150px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 40px; background: rgba(255, 255, 255, .12); font-size: 4.6rem; font-weight: 900; transform: rotate(-8deg); }

/* ---------- Footer ---------- */
.ff-footer { padding: 52px 20px 20px; background: #111b31; color: #dce4f6; }
.ff-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.ff-footer-grid > * { margin: 0; }
.ff-footer-brand > * { margin: 0; }
.ff-footer-brand .wp-block-site-title a { color: #fff; text-decoration: none; }
.ff-footer-brand p { max-width: 300px; margin-top: 12px; color: #b9c4da; font-size: .95rem; }
.ff-footer-col > * { margin: 0; }
.ff-footer-title { margin-bottom: 12px !important; color: #fff; font-size: 1rem; letter-spacing: 0; }
.ff-footer-links a { color: #b9c4da; text-decoration: none; font-size: .95rem; }
.ff-footer-links a:hover { color: #fff; text-decoration: underline; }
.ff-footer-links .wp-block-navigation__container { gap: 10px; }
.ff-footer-bottom { padding-top: 16px; border-top: 1px solid #2b3956; color: #a7b3cb; font-size: .85rem; gap: 6px 12px; }
.ff-footer-bottom p { margin: 0; }

/* ---------- Content pages, posts, archives ---------- */
.ff-content { padding: 56px 20px 84px; }
.ff-archive-head { margin-bottom: 32px; text-align: center; }
.ff-archive-head > * { margin-block-start: 0; }
.ff-archive-head h1 { margin: 10px 0; font-size: clamp(2rem, 4.4vw, 3rem); }
.ff-search { max-width: 520px; margin: 18px auto 0; }
.ff-center { text-align: center; }
.ff-center > * { margin-inline: auto; }
.ff-article-head > * { margin-block-start: 0; }
.ff-article-head h1, .ff-article-head .wp-block-post-title { margin: 10px 0 12px; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.ff-article-head .ff-eyebrow a { text-decoration: none; }
.ff-page-title { margin-bottom: 20px; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.ff-center h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 10px auto 14px; }
.ff-hero-image { margin: 24px 0; }
.ff-hero-image img { border-radius: 16px; }
.ff-entry { font-size: 1.0625rem; line-height: 1.85; color: #38455d; }
.ff-entry h2, .ff-entry h3 { margin-top: 1.7em; color: var(--wp--preset--color--navy); }
.ff-entry a { color: var(--wp--preset--color--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.ff-entry a.wp-element-button { color: #fff; }
.ff-entry img { border-radius: 12px; }
.ff-entry blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--wp--preset--color--blue); color: var(--wp--preset--color--slate); }
.ff-entry table { width: 100%; border-collapse: collapse; }
.ff-entry th, .ff-entry td { padding: 10px; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; }
.ff-entry code { padding: .1em .35em; border-radius: 5px; background: #eef1f9; font-size: .92em; }
.ff-fullwidth .ff-entry { font-size: 1rem; }
.ff-tags { margin-top: 28px; font-size: .9rem; color: var(--wp--preset--color--slate); }
.ff-author { margin-top: 36px; padding: 20px; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: var(--wp--preset--color--soft); }
.ff-post-nav { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); gap: 12px; }
.ff-post-nav a { font-weight: 700; text-decoration: none; }
.ff-comments { margin-top: 48px; }
.ff-comment { padding: 18px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.ff-comment > * { margin-block-start: 8px; }
.ff-comments input[type="text"], .ff-comments input[type="email"], .ff-comments input[type="url"], .ff-comments textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd7e8; border-radius: 8px; }
.ff-comments .submit { border: 0; border-radius: 10px; padding: 12px 20px; background: var(--wp--preset--color--blue); color: #fff; font-weight: 700; cursor: pointer; }
.wp-block-search__inside-wrapper { gap: 8px; }
.wp-block-search__input { padding: 12px; border: 1px solid #cfd7e8; border-radius: 10px; }
.wp-block-search__button { border: 0; border-radius: 10px; background: var(--wp--preset--color--blue); color: #fff; font-weight: 700; padding: 12px 18px; }
.wp-block-search__button:hover { background: var(--wp--preset--color--blue-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.ff-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ff-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ff-hero-grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
	.ff-value-grid { grid-template-columns: 1fr; gap: 28px; }
	.ff-footer-grid { grid-template-columns: 1fr 1fr; }
	.ff-footer-brand { grid-column: 1 / -1; }
	.ff-cta-panel { padding: 36px 32px; }
}
@media (max-width: 680px) {
	.ff-section { padding: 52px 18px; }
	.ff-hero { padding: 40px 18px 0; }
	.ff-grid-4, .ff-grid-3 { grid-template-columns: 1fr; }
	.ff-dashboard { transform: none; padding: 16px; }
	.ff-dash-cards { gap: 6px; }
	.ff-dash-card { padding: 10px 8px; }
	.ff-cta-panel { grid-template-columns: 1fr; padding: 30px 22px; }
	.ff-cta-mark { width: 100px; height: 100px; font-size: 3rem; justify-self: start; }
	.ff-section--cta { padding: 0 18px 56px; }
	.ff-footer { padding: 40px 18px 18px; }
	.ff-footer-grid { gap: 24px 16px; }
	.ff-announcement-inner > p:last-child { display: none; }
	.ff-content { padding: 36px 18px 60px; }
	.ff-text-link { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
