/*
Theme Name: MLReaves
Theme URI: https://mlreaves.com/
Author: MLReaves Consulting
Description: Custom theme for ML Reaves Consulting LLC. Pair with the "MLReaves Editor" plugin for frontend inline editing. Ports the single-page tax consulting design (hero + about + Melissa + services + FAQ + contact).
Version: 1.0.0
Requires PHP: 8.0
License: Proprietary
Text Domain: mlreaves
*/

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1f2b; background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }
a { color: #7c2ee0; text-decoration: none; transition: color .15s; }
a:hover { color: #22ccdf; }
img { max-width: 100%; display: block; }
::selection { background: #22ccdf; color: #fff; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ===== Reveal-on-scroll ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Buttons ===== */
.mlr-btn-primary {
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(100deg, #22ccdf, #7c2ee0);
	color: #fff !important; font-weight: 600; padding: 16px 34px;
	border-radius: 999px; font-size: 16px;
	box-shadow: 0 12px 28px rgba(124, 46, 224, .3);
	transition: transform .15s, box-shadow .15s, filter .15s;
	border: none; cursor: pointer;
}
.mlr-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(124, 46, 224, .4); color: #fff !important; filter: brightness(1.05); }
.mlr-btn-outline {
	display: inline-flex; align-items: center; justify-content: center;
	border: 1.5px solid #d9dce4; color: #1a1f2b !important; font-weight: 600;
	padding: 15px 30px; border-radius: 999px; font-size: 16px;
	background: transparent; cursor: pointer; transition: border-color .15s, color .15s;
}
.mlr-btn-outline:hover { border-color: #7c2ee0; color: #7c2ee0 !important; }

/* ===== Top contact bar ===== */
.mlr-topbar {
	background: #0f2229; color: #cfe0e2; font-size: 13.5px;
	padding: 9px 6vw; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.mlr-topbar a { color: #cfe0e2; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.mlr-topbar a:hover { color: #22ccdf; }
.mlr-topbar-left { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.mlr-topbar-right { color: #8fa2a5; }

/* ===== Nav ===== */
.mlr-nav {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
	border-bottom: 1px solid #eef0f4;
	padding: 16px 6vw; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.mlr-nav img.mlr-logo { height: 42px; width: auto; }
.mlr-nav-links { display: flex; align-items: center; gap: 32px; }
.mlr-nav-links a { color: #4a515e; font-weight: 500; font-size: 15px; }
.mlr-nav-links a.active, .mlr-nav-links a:hover { color: #7c2ee0; }
.mlr-nav-links a.cta {
	background: linear-gradient(100deg, #22ccdf, #7c2ee0);
	color: #fff !important; font-weight: 600; font-size: 14px;
	padding: 12px 24px; border-radius: 999px;
	box-shadow: 0 8px 20px rgba(124, 46, 224, .28);
}
.mlr-nav-links a.cta:hover { filter: brightness(1.05); color: #fff !important; }
.mlr-nav-toggle { display: none; background: none; border: none; font-size: 26px; color: #1a1f2b; cursor: pointer; }

/* ===== Footer ===== */
.mlr-footer { background: #0f2229; color: #a9bcbf; padding: 64px 6vw 30px; }
.mlr-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mlr-footer-grid img { height: 44px; margin-bottom: 20px; }
.mlr-footer-grid p { font-size: 14px; line-height: 1.75; max-width: 360px; }
.mlr-footer-grid h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.mlr-footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.mlr-footer-col a { color: #a9bcbf; }
.mlr-footer-col a:hover { color: #22ccdf; }
.mlr-footer-copyright { text-align: center; font-size: 12.5px; padding-top: 26px; color: #6f8286; }

/* ===== Forms ===== */
.mlr-form { display: grid; gap: 16px; }
.mlr-form input, .mlr-form textarea, .mlr-form select {
	width: 100%; padding: 14px 16px; border: 1.5px solid #e6e8ee; border-radius: 12px;
	font-family: inherit; font-size: 15px; color: #1a1f2b; background: #fff; outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.mlr-form input:focus, .mlr-form textarea:focus, .mlr-form select:focus { border-color: #7c2ee0; box-shadow: 0 0 0 3px rgba(124,46,224,.12); }
.mlr-form textarea { min-height: 140px; resize: vertical; }
.mlr-form label { font-size: 13px; font-weight: 600; color: #4a515e; letter-spacing: 0.2px; }
.mlr-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mlr-form-notice { padding: 14px 18px; border-radius: 12px; background: #e8fbfd; color: #0a5f6a; font-size: 14px; font-weight: 500; }

/* ===== Blog cards ===== */
.mlr-post-card { display: grid; grid-template-rows: 200px 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(21,56,64,.07); transition: transform .2s, box-shadow .2s; }
.mlr-post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21,56,64,.12); }
.mlr-post-card .thumb { background-size: cover; background-position: center; background-color: #eafafc; }
.mlr-post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.mlr-post-card .body h3 { font-size: 18px; font-weight: 700; color: #153840; line-height: 1.3; }
.mlr-post-card .body h3 a { color: inherit; }
.mlr-post-card .body h3 a:hover { color: #7c2ee0; }
.mlr-post-card .meta { font-size: 12.5px; color: #7a828f; }
.mlr-post-card .excerpt { font-size: 14px; color: #565e6d; line-height: 1.65; }

/* ===== Single post ===== */
.mlr-single-wrap { max-width: 780px; margin: 0 auto; padding: 60px 6vw 90px; }
.mlr-single-wrap h1 { font-size: 44px; line-height: 1.15; margin-bottom: 18px; }
.mlr-single-meta { color: #7a828f; font-size: 14px; margin-bottom: 34px; }
.mlr-single-wrap .featured { margin: 0 0 34px; border-radius: 20px; overflow: hidden; }
.mlr-single-wrap p, .mlr-single-wrap ul, .mlr-single-wrap ol { font-size: 17px; line-height: 1.75; color: #2b323f; margin-bottom: 20px; }
.mlr-single-wrap h2, .mlr-single-wrap h3 { margin: 34px 0 14px; }
.mlr-single-wrap a { color: #7c2ee0; text-decoration: underline; }
.mlr-single-wrap img { border-radius: 12px; margin: 22px 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
	.mlr-nav-toggle { display: block; }
	.mlr-nav-links {
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; flex-direction: column; align-items: stretch; gap: 0;
		padding: 12px 6vw; box-shadow: 0 12px 24px rgba(0,0,0,.08);
		display: none;
	}
	.mlr-nav-links.open { display: flex; }
	.mlr-nav-links a { padding: 12px 0; border-bottom: 1px solid #f0f1f5; }
	.mlr-nav-links a.cta { margin-top: 8px; text-align: center; }

	.mlr-footer-grid { grid-template-columns: 1fr; gap: 34px; }
	.mlr-form-row-2 { grid-template-columns: 1fr; }
}
