/*
Theme Name: Accio Blog
Theme URI: https://acciocontent.com/
Author: Accio Content
Description: Blog theme for Accio Content. Layout modelled on the Hello Paralegal blog, styled with the Accio Content brand (blue → coral gradient, Manrope + Inter).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: accio-blog
*/

:root {
	--accio-blue: #336699;
	--accio-coral: #fd454c;
	--accio-coral-dark: #b13035;
	--accio-gradient: linear-gradient(90deg, #336699, #fd454c);
	--accio-ink: #1a1a1a;
	--accio-text: #212529;
	--accio-muted: #6b7280;
	--accio-slate: #2f4858;
	--accio-heading-soft: #4b4242;
	--accio-tint: #eef5fd;
	--accio-tint-2: rgba(140, 185, 239, 0.12);
	--accio-border: #e5e7eb;
	--accio-footer: #ebebeb;
	--radius-pill: 90px;
	--radius-card: 16px;
	--shadow-header: 0 4px 14px rgba(0, 0, 0, 0.08);
	--shadow-card: 0 10px 30px rgba(51, 102, 153, 0.10);
	--container: 1200px;
	--font-head: "Manrope", sans-serif;
	--font-body: "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--accio-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accio-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accio-coral); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--accio-ink);
	line-height: 1.25;
	margin: 0 0 .6em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 26px;
	border-radius: var(--radius-pill);
	font-family: var(--font-body); font-weight: 500; font-size: 17px;
	border: 0; cursor: pointer; line-height: 1.2;
	transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-gradient { background: var(--accio-gradient); color: #fff; }
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(253, 69, 76, .3); }
.btn-outline { background: #fff; color: var(--accio-blue); box-shadow: inset 0 0 0 2px var(--accio-blue); }
.btn-outline:hover { background: var(--accio-blue); color: #fff; }
.btn .arrow { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff; box-shadow: var(--shadow-header);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 76px;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { max-height: 34px; width: auto; }
.text-logo {
	font-family: var(--font-body); font-weight: 600; font-size: 24px;
	color: var(--accio-ink); letter-spacing: -.3px;
}
.text-logo .logo-a { color: var(--accio-coral); font-weight: 700; }
.text-logo .logo-content { color: var(--accio-coral); }
.text-logo sup { font-size: 12px; color: var(--accio-ink); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
	display: block; padding: 8px 16px; border-radius: 10px;
	color: var(--accio-ink); font-weight: 500;
}
.main-nav a:hover { color: var(--accio-coral); }
.main-nav .current-menu-item > a,
.main-nav .current_page_parent > a,
.main-nav .current-menu-ancestor > a {
	background: var(--accio-tint); color: var(--accio-blue);
}

.menu-toggle {
	display: none; background: none; border: 0; cursor: pointer; padding: 6px;
	color: var(--accio-coral);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Blog hero ---------- */
.blog-hero {
	position: relative; overflow: hidden;
	background: var(--accio-tint);
	padding: 72px 0 64px; text-align: center;
}
.blog-hero::before, .blog-hero::after {
	content: ""; position: absolute; border-radius: 50%;
	filter: blur(2px); opacity: .55; pointer-events: none;
}
.blog-hero::before { width: 380px; height: 380px; right: -120px; top: -140px; background: #dfe3fb; }
.blog-hero::after  { width: 260px; height: 260px; left: -90px; bottom: -130px; background: #d3f6ff; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; margin-bottom: 14px; position: relative; }
.gradient-text {
	background: var(--accio-gradient);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p { max-width: 640px; margin: 0 auto 26px; font-size: 18px; color: var(--accio-slate); position: relative; }
.blog-hero .btn { position: relative; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 28px; color: var(--accio-ink); }

/* ---------- Post meta ---------- */
.post-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 600; color: var(--accio-blue); margin-bottom: 10px;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accio-coral); }
.post-meta .read-time { color: var(--accio-muted); font-weight: 500; }

.cat-pill {
	display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill);
	background: var(--accio-tint); color: var(--accio-blue);
	font-size: 13px; font-weight: 600; line-height: 1.6;
}
.cat-pill:hover { background: var(--accio-blue); color: #fff; }

/* ---------- Thumbnails ---------- */
.thumb {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--radius-card); aspect-ratio: 16 / 9;
	background: var(--accio-tint);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img, .recent-main:hover .thumb img, .recent-side-item:hover .thumb img { transform: scale(1.04); }
.thumb-placeholder {
	position: absolute; inset: 0; display: flex; align-items: flex-end;
	padding: 22px; color: #fff;
	background:
		radial-gradient(circle at 85% 15%, rgba(253, 69, 76, .55), transparent 45%),
		linear-gradient(135deg, #1d3557 0%, #336699 60%, #5a7fb0 100%);
}
.thumb-placeholder span {
	font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.25;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.thumb-placeholder::before {
	content: "AccioContent"; position: absolute; top: 16px; left: 22px;
	font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
	padding: 3px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px;
}

/* ---------- Recent blogs (1 big + 2 side) ---------- */
.recent-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; }
.recent-main .thumb { aspect-ratio: 16 / 8.5; margin-bottom: 20px; }
.recent-side { display: flex; flex-direction: column; gap: 28px; }
.recent-side-item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.recent-side-item .thumb { aspect-ratio: 4 / 3; }
.recent-side-item .thumb-placeholder span { font-size: 14px; }
.recent-side-item .thumb-placeholder::before { display: none; }

.card-title {
	display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
	font-size: 22px; font-weight: 700; margin-bottom: 10px;
}
.card-title a { color: var(--accio-ink); }
.card-title a:hover { color: var(--accio-coral); }
.card-title .title-text {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title .arrow-link { flex-shrink: 0; color: var(--accio-ink); margin-top: 4px; }
.card-title .arrow-link:hover { color: var(--accio-coral); }
.card-excerpt {
	color: var(--accio-muted); margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-side-item .card-title { font-size: 19px; }
.recent-side-item .card-excerpt { -webkit-line-clamp: 2; }

/* ---------- Category tabs ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.cat-tabs a {
	padding: 8px 18px; border-radius: var(--radius-pill);
	background: #f1f3f5; color: var(--accio-ink); font-weight: 500; font-size: 15px;
}
.cat-tabs a:hover { background: var(--accio-tint); color: var(--accio-blue); }
.cat-tabs a.active { background: var(--accio-gradient); color: #fff; }

/* ---------- Post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.card .thumb { margin-bottom: 18px; }
.card .card-title { font-size: 20px; }

.no-posts {
	text-align: center; padding: 60px 20px; border-radius: var(--radius-card);
	background: var(--accio-tint); color: var(--accio-slate);
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 14px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-pill); background: #f1f3f5;
	color: var(--accio-ink); font-weight: 600;
}
.pagination .page-numbers:hover { background: var(--accio-tint); color: var(--accio-blue); }
.pagination .page-numbers.current { background: var(--accio-gradient); color: #fff; }
.pagination .page-numbers.dots { background: none; }

/* ---------- Single post ---------- */
.breadcrumb { font-size: 15px; color: var(--accio-muted); padding: 28px 0 0; }
.breadcrumb a { color: var(--accio-blue); }
.breadcrumb .sep { margin: 0 10px; }
.breadcrumb .current {
	display: inline-block; max-width: 320px; vertical-align: bottom;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.single-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px;
	padding: 28px 0 70px; align-items: start;
}
.single-thumb { aspect-ratio: 16 / 8; margin-bottom: 26px; }
.single-thumb .thumb-placeholder span { font-size: 32px; max-width: 70%; }
.single-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; margin: 6px 0 18px; }
.single-cats {
	display: flex; flex-wrap: wrap; gap: 8px;
	padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--accio-border);
}

/* TOC */
.toc {
	background: var(--accio-tint); border-left: 4px solid var(--accio-coral);
	border-radius: 12px; padding: 20px 24px; margin: 0 0 32px;
}
.toc-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 0 0 10px; color: var(--accio-ink); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; }
.toc li.toc-h3 { margin-left: 18px; list-style: circle; font-size: 15px; }
.toc a { color: var(--accio-slate); }
.toc a:hover, .toc a.active { color: var(--accio-coral); }

/* Article content */
.entry-content { font-size: 17.5px; line-height: 1.8; color: #2b2f33; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { font-size: 28px; font-weight: 700; margin-top: 1.8em; }
.entry-content h3 { font-size: 22px; font-weight: 700; margin-top: 1.5em; color: var(--accio-heading-soft); }
.entry-content h4 { font-size: 19px; margin-top: 1.4em; }
.entry-content a { color: var(--accio-blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accio-coral); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accio-coral); }
.entry-content blockquote {
	margin-left: 0; padding: 18px 24px; border-left: 4px solid var(--accio-blue);
	background: var(--accio-tint); border-radius: 0 12px 12px 0; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--accio-border); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--accio-tint); font-family: var(--font-head); }
.entry-content tr:nth-child(even) td { background: #fafbfc; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--accio-muted); text-align: center; }
.entry-content pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: 12px; overflow: auto; }
.entry-content code { font-size: .9em; }
.entry-content .wp-block-button__link { background: var(--accio-gradient); border-radius: var(--radius-pill); text-decoration: none; color: #fff; }

/* Share */
.share-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	margin: 40px 0 0; padding: 22px 0; border-top: 1px solid var(--accio-border); border-bottom: 1px solid var(--accio-border);
}
.share-bar .share-label { font-family: var(--font-head); font-weight: 700; margin-right: 6px; }
.share-btn {
	width: 40px; height: 40px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--accio-tint); color: var(--accio-blue); border: 0; cursor: pointer;
	transition: background .2s, color .2s;
}
.share-btn:hover { background: var(--accio-gradient); color: #fff; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.copied { background: var(--accio-blue); color: #fff; }

/* CTA box */
.post-cta {
	margin-top: 40px; padding: 32px; border-radius: var(--radius-card);
	background: var(--accio-gradient); color: #fff;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.post-cta h3 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.post-cta p { margin: 0; opacity: .92; }
.post-cta .btn { background: #fff; color: var(--accio-coral-dark); }
.post-cta .btn:hover { color: var(--accio-blue); transform: translateY(-2px); }

/* Sidebar */
.single-sidebar { position: sticky; top: 104px; }
.admin-bar .single-sidebar { top: 136px; }
.sidebar-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.similar-list { display: flex; flex-direction: column; gap: 22px; }
.similar-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.similar-item .thumb { aspect-ratio: 1 / 1; border-radius: 12px; }
.similar-item .thumb-placeholder { padding: 10px; }
.similar-item .thumb-placeholder::before { display: none; }
.similar-item .thumb-placeholder span { font-size: 11px; }
.similar-item .cat-pill { font-size: 12px; padding: 2px 10px; margin-bottom: 6px; }
.similar-item h4 {
	font-size: 15px; font-weight: 700; margin: 0 0 4px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.similar-item h4 a { color: var(--accio-ink); }
.similar-item h4 a:hover { color: var(--accio-coral); }
.similar-item .small-meta { font-size: 12.5px; color: var(--accio-muted); }

.sidebar-cta {
	margin-top: 32px; padding: 24px; border-radius: var(--radius-card);
	background: var(--accio-tint); text-align: center;
}
.sidebar-cta h4 { font-size: 19px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 14.5px; color: var(--accio-slate); margin: 0 0 16px; }

/* Comments */
.comments-area { margin-top: 48px; }
.comments-title { font-size: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 18px 20px; border-radius: 12px; background: #f8f9fb; margin-bottom: 14px; }
.comment-author { font-weight: 600; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 10px; }
.comment-metadata { font-size: 13px; margin-bottom: 8px; }
.comment-metadata a { color: var(--accio-muted); }
.comment-respond { padding: 28px; border-radius: var(--radius-card); background: var(--accio-tint); }
.comment-reply-title { font-family: var(--font-head); font-size: 22px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d5dbe3;
	font: inherit; background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--accio-blue); border-color: transparent; }
.comment-form .submit {
	background: var(--accio-gradient); color: #fff; border: 0; cursor: pointer;
	padding: 12px 28px; border-radius: var(--radius-pill); font: 500 16px var(--font-body);
}
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; position: relative; }
.search-form input[type="search"] {
	flex: 1; padding: 13px 20px; border-radius: var(--radius-pill);
	border: 1px solid #d5dbe3; font: inherit; background: #fff;
}
.search-form button { padding: 12px 24px; }

/* ---------- Generic page ---------- */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; }
.page-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--accio-footer); color: var(--accio-text); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-about p { margin: 16px 0 0; font-size: 15px; color: #444; max-width: 340px; }
.footer-col h4 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: 15px; color: #444; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #333; }
.footer-col a:hover { color: var(--accio-coral); }
.footer-bottom {
	margin-top: 44px; padding: 20px 0; border-top: 1px solid #d6d6d6;
	text-align: center; font-size: 14px; color: #555;
}
.footer-bottom p { margin: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 16px !important; }
.footer-social a {
	width: 38px; height: 38px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--accio-blue); transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--accio-gradient); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #555; }

.whatsapp-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 40;
	width: 52px; height: 52px; border-radius: 50%;
	background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.recent-grid { grid-template-columns: 1fr; }
	.single-layout { grid-template-columns: 1fr; }
	.single-sidebar { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; order: -1; }
	.header-inner { gap: 12px; }
	.site-logo { margin-right: auto; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; box-shadow: var(--shadow-header);
		display: none; padding: 12px 24px 20px;
	}
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; }
	.header-cta .btn { padding: 10px 18px; font-size: 15px; }
}
@media (max-width: 640px) {
	.post-grid { grid-template-columns: 1fr; }
	.recent-side-item { grid-template-columns: 120px 1fr; gap: 14px; }
	.recent-side-item .card-excerpt { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
	.blog-hero { padding: 52px 0 46px; }
	.breadcrumb .current { max-width: 180px; }
	.header-cta .btn span.label-long { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
