/*
Theme Name: Home Advantage
Description: One-page site for Home Advantage. Calm and credible: Hearth Green, Linen, Source Serif 4 and Inter.
Author: Dave Drury
Version: 1.0.3
Requires at least: 6.5
License: GNU General Public License v2 or later
Text Domain: home-advantage
*/

html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block: 0; }
.ha-main .wp-block-post-content > * { margin-block: 0; }
[id] { scroll-margin-top: 16px; }

/* Layout */
.ha-wrap { max-width: 1200px; margin-inline: auto !important; padding-inline: 24px; box-sizing: border-box; width: 100%; }
.ha-section { padding: 96px 0; }
.ha-section :where(p, h1, h2, h3, ul, ol, .wp-block-buttons, .wp-block-group, .wp-block-columns, .wp-block-column), .ha-band :where(p, h1, h2, h3, ul, ol, .wp-block-buttons, .wp-block-group, .wp-block-columns, .wp-block-column), .ha-area :where(p, h1, h2, h3, ul, ol, .wp-block-buttons, .wp-block-group, .wp-block-columns, .wp-block-column), .ha-call :where(p, h1, h2, h3, ul, ol, .wp-block-buttons, .wp-block-group, .wp-block-columns, .wp-block-column) { margin-block: 0; }
.ha-stack { display: flex; flex-direction: column; gap: 20px; }
.ha-white { background: #FFFFFF; border-top: 1px solid #D9D2C5; border-bottom: 1px solid #D9D2C5; }
.ha-section .wp-block-columns { gap: 56px; }
.ha-eyebrow { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #4B5751; font-weight: 600; }
.ha-lead { font-size: 19px; color: #2E3B35; }
.ha-note { font-size: 14px; color: #4B5751; }
.ha-small { font-size: 13px; color: #4B5751; }
.ha-section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.ha-section ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Header */
.ha-header { border-bottom: 1px solid #D9D2C5; background: #F6F2EA; }
.ha-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.ha-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #1F4A3D; }
.ha-logo span { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 22px; color: #1F4A3D; }
.ha-logo svg { color: #1F4A3D; }
.ha-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.ha-nav a { color: #18201C; text-decoration: none; }
.ha-nav a:hover { color: #1F4A3D; text-decoration: underline; }
.ha-nav a.ha-nav-cta { background: #1F4A3D; color: #FFFFFF; padding: 11px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.ha-nav a.ha-nav-cta:hover { background: #143328; color: #FFFFFF; }
@media (max-width: 760px) { .ha-nav a:not(.ha-nav-cta) { display: none; } }

/* Buttons */
.ha-actions { gap: 12px; align-items: center; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #1F4A3D; border: 1px solid #1F4A3D; padding: 14px 23px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #1F4A3D; color: #FFFFFF; }
.ha-btn-light > .wp-block-button__link { background: #F6F2EA; color: #143328; }
.ha-btn-light > .wp-block-button__link:hover { background: #FFFFFF; color: #143328; }

/* Hero */
.ha-hero { padding: 88px 0 96px; }
.ha-hero .wp-block-columns { align-items: center !important; }
.ha-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.ha-hero h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; }
.ha-card { background: #FFFFFF; border: 1px solid #D9D2C5; border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.ha-card-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 22px; }
.ha-stat { display: flex !important; gap: 18px; align-items: baseline; border-top: 1px solid #E6E0D4; padding-top: 18px; }
.ha-stat-num { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 38px; color: #1F4A3D; min-width: 120px; line-height: 1.1; }
.ha-stat-text { font-size: 16px; }

/* Dark band */
.ha-band { background: #143328; color: #F6F2EA; padding: 72px 0; }
.ha-band .wp-block-columns { align-items: center !important; gap: 40px; }
.ha-band h2 { color: #F6F2EA; font-size: clamp(28px, 3.5vw, 38px); }
.ha-band p { font-size: 18px; color: #D7E2DA; }
.ha-band .ha-stack { gap: 14px; }

/* Report */
.ha-cover-col { display: flex; justify-content: center; }
.ha-cover { width: 300px; max-width: 100%; height: 400px; background: #1F4A3D; border-radius: 6px; padding: 32px 28px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px rgba(20, 51, 40, 0.18); color: #F6F2EA; }
.ha-cover-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.15; margin: 0; }
.ha-cover-meta { font-size: 14px; color: #C9D6CD; margin: 0; }

/* Form */
.ha-form { display: flex; flex-direction: column; gap: 14px; background: #FFFFFF; border: 1px solid #D9D2C5; border-radius: 12px; padding: 24px; margin-top: 8px; }
.ha-form-row { display: flex; flex-wrap: wrap; gap: 14px; }
form.ha-form > label.ha-field { flex: none; }
.ha-form label.ha-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ha-form input[type=text], .ha-form input[type=email] { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #B8B1A3; border-radius: 8px; background: #FFFFFF; color: #18201C; }
.ha-form input:focus-visible { outline: 3px solid #9A6A25; outline-offset: 1px; }
.ha-form .ha-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #2E3B35; font-weight: 400; }
.ha-form .ha-check input { margin-top: 4px; width: 18px; height: 18px; }
.ha-form button { align-self: flex-start; background: #1F4A3D; color: #FFFFFF; border: none; padding: 15px 24px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.ha-form button:hover { background: #143328; }
.ha-form .ha-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ha-form-msg { padding: 14px 16px; border-radius: 8px; font-weight: 600; margin: 0; }
.ha-form-msg.ok { background: #DCE6DE; color: #143328; }
.ha-form-msg.err { background: #F6E3D3; color: #6B3A10; }

/* Pricing */
.ha-pricing .wp-block-columns { gap: 24px; }
.ha-price-card { border: 1px solid #D9D2C5; border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 18px; background: #F6F2EA; height: 100%; box-sizing: border-box; }
.ha-price-card.ha-featured { border: 2px solid #1F4A3D; background: #FFFFFF; }
.ha-price { display: flex; align-items: baseline; gap: 10px; color: #4B5751; }
.ha-price strong { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 52px; color: #1F4A3D; line-height: 1; }
.ha-price-card .ha-note { margin-top: auto !important; }
.ha-pricing .ha-pricing-head { max-width: 720px; gap: 12px; }
.ha-pricing .ha-pricing-head p { font-size: 18px; color: #2E3B35; }
.ha-callout { background: #DCE6DE; border-radius: 12px; padding: 22px 26px; }
.ha-callout .wp-block-columns { gap: 8px 32px; }

/* How it works */
.ha-how .wp-block-columns { gap: 24px; }
.ha-step { border-top: 3px solid #1F4A3D; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ha-step-num { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 20px; color: #9A6A25; }
.ha-step-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.2; }
.ha-step-text { color: #2E3B35; }

/* One agency per area */
.ha-area { padding: 0 0 96px; }
.ha-area-box { background: #DCE6DE; border-radius: 16px; padding: 48px; box-sizing: border-box; }
.ha-area-box .wp-block-columns { align-items: center !important; gap: 24px 40px; }
.ha-area-box h2 { color: #143328; font-size: clamp(28px, 3.5vw, 36px); }
.ha-area-box p { font-size: 18px; color: #2E3B35; }

/* About */
.ha-about .wp-block-columns { align-items: center !important; gap: 48px; max-width: 1000px; }
.ha-photo { width: 240px; height: 280px; border-radius: 14px; background: #DCE6DE; display: flex !important; align-items: center; justify-content: center; color: #2E3B35; font-size: 14px; overflow: hidden; }
.ha-photo img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.ha-faq-in { max-width: 900px; display: flex; flex-direction: column; gap: 28px; }
.ha-faq-item { border-top: 1px solid #D9D2C5; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.ha-faq-item h3 { font-family: Inter, system-ui, sans-serif; font-size: 19px; color: #18201C; font-weight: 600; }
.ha-faq-item p { color: #2E3B35; }

/* Call */
.ha-call { padding: 0 0 96px; }
.ha-call-box { background: #1F4A3D; border-radius: 16px; padding: 56px 48px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ha-call-box h2 { color: #F6F2EA; font-size: clamp(30px, 4vw, 40px); }
.ha-call-box p { font-size: 18px; color: #D7E2DA; max-width: 640px; }

/* Footer */
.ha-footer { background: #143328; color: #C9D6CD; padding: 48px 0; font-size: 14px; }
.ha-footer-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.ha-footer-brand, .ha-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ha-footer p { margin: 0; }
.ha-footer a { color: #F6F2EA; }
.ha-logo-light, .ha-logo-light span, .ha-logo-light svg { color: #F6F2EA; font-size: 20px; }

/* Inner pages */
.ha-page { padding: 64px 24px 96px; }
.ha-page h1 { font-size: clamp(34px, 5vw, 48px); }
.ha-page h2 { font-size: 26px; margin-top: 40px; }

@media (max-width: 781px) {
	.ha-section { padding: 64px 0; }
	.ha-hero { padding: 56px 0 64px; }
	.ha-area-box, .ha-call-box { padding: 32px 24px; }
	.ha-stat-num { min-width: 96px; font-size: 32px; }
	.ha-photo { width: 100%; max-width: 280px; }
}

/* Figures and photo */
.ha-fig { display: block; width: 100%; height: auto; }
.ha-figwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-top: 12px; }
.ha-scan-fig { max-width: 400px; margin-left: auto; }
.ha-band .ha-stack .wp-block-buttons { margin-top: 10px; }
.ha-anatomy { padding-top: 0; }
.ha-photo .wp-block-image { margin: 0; width: 100%; height: 100%; }
.ha-photo .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 781px) {
	.ha-figwrap .ha-fig { min-width: 720px; }
	.ha-scan-fig { margin: 0 auto; }
}
