/*
Theme Name: Hemingway Child
Template: hemingway
Version: 1.0.0
Description: Child theme for Hemingway — styled to match BillAcco.com
Author: Yara
Text Domain: hemingway-child
License: GNU General Public License version 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   BASE — Font & Color overrides
   ========================================================= */

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

body {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: #374151;
	background: #ffffff;
	overflow-x: hidden;
	padding-top: 64px; /* offset for fixed navbar */
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', sans-serif;
	color: #111827;
	line-height: 1.2;
	font-weight: 800;
	margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; font-weight: 900; }
h2 { font-size: 1.875rem; font-weight: 800; }
h3 { font-size: 1.5rem;   font-weight: 700; }
h4 { font-size: 1.25rem;  font-weight: 700; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem;     font-weight: 600; }

p {
	font-size: 1rem;
	color: #4b5563;
	line-height: 1.7;
	margin-bottom: 1.25rem;
}

a {
	color: #4338ca;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #3730a3;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.ba-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: 64px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #f0f0f0;
}

.ba-nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 32px;
}

/* Logo */
.ba-logo a {
	display: flex;
	align-items: center;
}

.ba-logo-img {
	height: 30px;
	width: auto;
	display: block;
}

/* Nav links */
.ba-nav-links-wrap {
	flex: 1;
}

.ba-nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 32px;
}

.ba-nav-links li {
	margin: 0;
	padding: 0;
}

.ba-nav-links li a {
	font-size: 14px;
	font-weight: 500;
	color: #4b5563;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ba-nav-links li a:hover,
.ba-nav-links li.current-menu-item > a,
.ba-nav-links li.current_page_item > a {
	color: #4338ca;
}

/* Sub-menus */
.ba-nav-links .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 8px 0;
	min-width: 180px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	z-index: 100;
}

.ba-nav-links li {
	position: relative;
}

.ba-nav-links li:hover > .sub-menu {
	display: block;
}

.ba-nav-links .sub-menu li a {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
}

/* CTA button */
.ba-nav-actions {
	flex-shrink: 0;
}

.ba-btn-trial {
	display: inline-block;
	padding: 8px 20px;
	background: #4338ca;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
}

.ba-btn-trial:hover {
	background: #3730a3;
	color: #ffffff !important;
	transform: translateY(-1px);
}

/* Mobile toggle */
.ba-mobile-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	margin-left: auto;
}

.ba-mobile-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #374151;
	border-radius: 2px;
	transition: all 0.25s ease;
}

.ba-mobile-toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ba-mobile-toggle.is-open span:nth-child(2) {
	opacity: 0;
}
.ba-mobile-toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   SITE WRAPPER / CONTENT AREA
   ========================================================= */

.ba-site-wrapper {
	background: #ffffff;
}

/* Hide Hemingway's original header cover & navigation */
.header-cover,
.navigation {
	display: none !important;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.section-inner {
	max-width: 1200px;
}

.content {
	padding-top: 48px;
	padding-bottom: 48px;
}

/* Divider between posts on archive/home */
.post-preview {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 48px;
	margin-bottom: 48px;
}

/* Post titles */
.post-header .post-title a,
.post-header .post-title {
	font-family: 'Inter', sans-serif;
	font-size: 30px;
	font-weight: 800;
	color: #111827;
}

.post-header .post-title a:hover {
	color: #4338ca;
}

/* Post meta */
.post-meta,
.post-meta a {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #9ca3af;
}

.post-meta a:hover {
	color: #4338ca;
}

/* Category / tag labels */
.category-links a,
.tag-links a {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #4338ca;
	background: #eef2ff;
	padding: 3px 10px;
	border-radius: 4px;
	margin-right: 4px;
	text-decoration: none;
}

.category-links a:hover,
.tag-links a:hover {
	background: #4338ca;
	color: #fff;
}

/* Post content */
.post-content,
.entry-content {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: #374151;
	line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	color: #111827;
	margin-top: 2rem;
}

.post-content a,
.entry-content a {
	color: #4338ca;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.post-content a:hover,
.entry-content a:hover {
	color: #3730a3;
}

/* Blockquote */
blockquote {
	border-left: 4px solid #4338ca;
	background: #eef2ff;
	margin: 1.5rem 0;
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #4b5563;
}

/* Code */
code, pre {
	font-family: 'Fira Code', 'Courier New', monospace;
	background: #f3f4f6;
	border-radius: 4px;
}

code {
	padding: 2px 6px;
	font-size: 0.875em;
	color: #7c3aed;
}

pre {
	padding: 16px;
	overflow-x: auto;
	font-size: 0.875rem;
	line-height: 1.6;
}

/* Read more button */
.post-more-wrap {
	display: block;
	margin-top: 16px;
}

.more-link,
a.more-link {
	display: inline-block;
	padding: 10px 22px;
	background: #4338ca;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.more-link:hover {
	background: #3730a3;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar .widget-title {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #4338ca;
	margin-bottom: 14px;
}

.sidebar .widget {
	margin-bottom: 32px;
}

.sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar .widget ul li {
	border-bottom: 1px solid #f3f4f6;
	padding: 8px 0;
	font-size: 14px;
	color: #4b5563;
}

.sidebar .widget ul li a {
	color: #4b5563;
}

.sidebar .widget ul li a:hover {
	color: #4338ca;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination .nav-links a,
.pagination .nav-links span,
.paginav a,
.paginav span {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #4338ca;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 14px;
	display: inline-block;
	transition: all 0.2s ease;
}

.pagination .nav-links a:hover,
.paginav a:hover {
	background: #4338ca;
	border-color: #4338ca;
	color: #fff;
}

/* =========================================================
   COMMENTS
   ========================================================= */

.comment-respond .comment-reply-title,
#comments .comments-title {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	color: #111827;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 14px;
	color: #374151;
	width: 100%;
	transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: #4338ca;
	box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.comment-form input[type="submit"],
.form-submit input {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	background: #4338ca;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 24px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.comment-form input[type="submit"]:hover,
.form-submit input:hover {
	background: #3730a3;
}

/* =========================================================
   FOOTER
   ========================================================= */

.ba-footer {
	background: #111827;
	color: #9ca3af;
	padding: 64px 0 0;
}

.ba-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.ba-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
}

/* Brand column */
.ba-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ba-footer-logo-link {
	display: inline-block;
}

.ba-footer-logo {
	height: 28px;
	width: auto;
	filter: brightness(0) invert(1) opacity(0.85);
	display: block;
}

.ba-footer-desc {
	font-size: 14px;
	color: #9ca3af;
	line-height: 1.6;
	margin: 0;
	max-width: 260px;
}

.ba-footer-social {
	display: flex;
	gap: 14px;
	align-items: center;
}

.ba-footer-social a {
	color: #9ca3af;
	display: flex;
	align-items: center;
	transition: color 0.2s ease;
}

.ba-footer-social a:hover {
	color: #ffffff;
}

/* Footer columns */
.ba-footer-heading {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px 0;
	letter-spacing: 0;
	text-align: left;
	padding: 0;
}

.ba-footer .ba-footer-links {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
}

.ba-footer .ba-footer-links li {
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	border: none !important;
}

.ba-footer .ba-footer-links a {
	font-size: 14px;
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s ease;
	padding: 0 !important;
	margin: 0 !important;
}

.ba-footer .ba-footer-links a:hover {
	color: #ffffff;
}

/* Divider */
.ba-footer-divider {
	border: none;
	border-top: 1px solid #1f2937;
	margin: 0;
}

/* Bottom bar */
.ba-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	flex-wrap: wrap;
	gap: 8px;
}

.ba-footer-copy {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
}

.ba-footer-bottom-links {
	display: flex;
	gap: 32px;
	align-items: center;
}

.ba-footer-bottom-links a {
	font-size: 13px;
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.ba-footer-bottom-links a:hover {
	color: #ffffff;
}

/* Hemingway original footer — hide */
.footer.section.large-padding.bg-dark,
.credits.section.bg-dark {
	display: none !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media ( max-width: 992px ) {
	.ba-nav-links-wrap {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: #ffffff;
		border-bottom: 1px solid #e5e7eb;
		padding: 16px 24px;
		box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	}

	.ba-nav-links-wrap.is-open {
		display: block;
	}

	.ba-nav-links {
		flex-direction: column;
		gap: 4px;
		align-items: flex-start;
	}

	.ba-nav-links li a {
		display: block;
		padding: 10px 0;
		font-size: 15px;
	}

	.ba-mobile-toggle {
		display: flex;
	}

	.ba-nav-actions {
		display: none;
	}

	.ba-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.ba-footer-brand {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 600px ) {
	body {
		font-size: 15px;
	}

	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }

	.ba-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.ba-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}
