/*
Theme Name: Front Porch Texas
Theme URI: https://frontporchtex.com
Author: Front Porch Texas
Description: Custom theme for Keith Mathews, REALTOR® · Front Porch Texas · Keller Williams Fort Worth. Brand colors, fonts and the required KW/TREC footer are built in.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: front-porch-texas
*/

/* ---------- Brand fonts (self-hosted, no outside requests) ---------- */
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(assets/fonts/PlayfairDisplay-Bold.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(assets/fonts/Montserrat-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(assets/fonts/Lato-Regular.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(assets/fonts/Lato-Bold.woff2) format("woff2"); }

/* ---------- Brand colors ---------- */
:root {
	--porch-black: #1A1A1A;
	--texas-gold: #B8862B;
	--porch-cream: #F6F3EE;
	--weathered-gray: #6D6D6D;
	--ranch-brown: #5A3A1D;
	--paper: #FFFFFF;
	--line: rgba(26, 26, 26, .14);
	--display: "Playfair Display", Georgia, serif;
	--subhead: "Montserrat", Arial, sans-serif;
	--body: "Lato", Arial, sans-serif;
	--max: 1120px;
	--gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--porch-cream);
	color: var(--porch-black);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--texas-gold); text-underline-offset: 3px; }
a:hover { color: var(--ranch-brown); }
:focus-visible { outline: 3px solid var(--texas-gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
	font-family: var(--subhead);
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ranch-brown);
	margin-bottom: 1rem;
}
.eyebrow::after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: var(--texas-gold);
	margin-top: .8rem;
}
.has-text-align-center.eyebrow::after, .center .eyebrow::after { margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--porch-black); color: var(--porch-cream); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-block;
	font-family: var(--subhead);
	font-weight: 600;
	font-size: .9rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 26px;
	border-radius: 2px;
	border: 2px solid var(--porch-black);
	background: var(--porch-black);
	color: var(--porch-cream);
	transition: background .15s, color .15s, border-color .15s;
	line-height: 1.2;
	text-align: center;
}
/* Hover/press colors: each button changes to a contrasting brand color, never to the page background. */
.btn:hover, .btn:active, .btn:focus-visible, .wp-block-button__link:hover, .wp-block-button__link:active, .wp-block-button__link:focus-visible { background: var(--texas-gold); border-color: var(--texas-gold); color: var(--porch-black); }
.btn-gold, .is-gold .wp-block-button__link { background: var(--texas-gold); border-color: var(--texas-gold); color: var(--porch-black); }
.btn-gold:hover, .btn-gold:active, .btn-gold:focus-visible, .is-gold .wp-block-button__link:hover, .is-gold .wp-block-button__link:active, .is-gold .wp-block-button__link:focus-visible { background: var(--ranch-brown); border-color: var(--ranch-brown); color: var(--porch-cream); }
.btn-ghost, .is-ghost .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover, .btn-ghost:active, .btn-ghost:focus-visible, .is-ghost .wp-block-button__link:hover, .is-ghost .wp-block-button__link:active, .is-ghost .wp-block-button__link:focus-visible { background: var(--texas-gold); color: var(--porch-black); border-color: var(--texas-gold); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.wp-block-buttons.is-content-justification-center, .center .wp-block-buttons { justify-content: center; }

/* ---------- Header ---------- */
.site-header { background: var(--porch-cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand img { width: 220px; height: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-list a {
	font-family: var(--subhead);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a[aria-current="page"], .nav-list .current-menu-item > a { border-bottom-color: var(--texas-gold); }
.header-call { padding: 11px 18px; font-size: .8rem; }

@media (max-width: 860px) {
	.hero::before { background: linear-gradient(0deg, rgba(20, 16, 12, .88) 0%, rgba(20, 16, 12, .55) 60%, rgba(20, 16, 12, .35) 100%); }
	.header-inner { flex-wrap: wrap; gap: 10px 18px; padding-top: 12px; padding-bottom: 12px; }
	.brand img { width: 160px; }
	.header-call { margin-left: auto; }
	.site-nav { order: 3; width: 100%; margin: 0; }
	.nav-list { gap: 22px; }
	.hide-sm { display: none; }
	.site-header { position: static; }
}

/* ---------- Home hero ---------- */
.hero {
	position: relative;
	color: var(--porch-cream);
	background: var(--porch-black) var(--hero-img) center 40% / cover no-repeat;
	min-height: min(78vh, 720px);
	display: flex;
	align-items: flex-end;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 16, 12, .86) 0%, rgba(20, 16, 12, .62) 45%, rgba(20, 16, 12, .15) 100%),
		linear-gradient(0deg, rgba(20, 16, 12, .55) 0%, rgba(20, 16, 12, 0) 45%);
}
.hero-inner { position: relative; width: 100%; padding-top: 120px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--porch-cream); }
.hero h1 { max-width: 15ch; color: var(--porch-cream); }
.hero-lead { font-size: 1.2rem; max-width: 34em; color: rgba(246, 243, 238, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }

/* ---------- Home search (under the hero) ---------- */
.home-search { background: var(--paper); padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.search-head { max-width: 760px; margin-bottom: 28px; }
.search-head h2 { margin-bottom: .4em; }
.search-frame { border: 1px solid var(--line); border-top: 3px solid var(--texas-gold); background: var(--porch-cream); }
.search-frame iframe { display: block; width: 100%; height: min(900px, 85vh); border: 0; }
.search-alt { margin: 12px 0 0; font-size: .95rem; }
.search-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: var(--porch-cream); border: 1px solid var(--line); border-top: 3px solid var(--texas-gold); padding: 28px 32px; }
.search-card p { margin: 0; flex: 1 1 340px; max-width: 40em; font-size: 1.08rem; }
.search-card .btn { flex: none; padding: 17px 30px; }
.search-card.is-pending { border-style: dashed; color: var(--weathered-gray); }

/* ---------- Page banner (About, Contact) ---------- */
.page-banner { background: var(--porch-black); color: var(--porch-cream); padding: 64px 0 56px; }
.page-banner.has-image {
	position: relative;
	background: var(--porch-black) var(--banner-img) center / cover no-repeat;
	padding: 140px 0 56px;
}
.page-banner.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 16, 12, .85), rgba(20, 16, 12, .25)); }
.page-banner .wrap { position: relative; }
.page-banner .eyebrow { color: var(--porch-cream); }
.page-banner h1 { margin: 0; color: var(--porch-cream); }

/* ---------- Page content sections (built from editor blocks) ---------- */
.entry > .wp-block-group {
	padding: clamp(56px, 8vw, 96px) max(var(--gutter), calc((100% - var(--max)) / 2));
	margin: 0;
}
.entry > :not(.wp-block-group) { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-white { background: var(--paper); }
.section-dark { background: var(--porch-black); color: var(--porch-cream); }
.section-dark .eyebrow { color: var(--texas-gold); }
.section-dark a { color: var(--porch-cream); }
.narrow { max-width: 760px; }
.entry > .wp-block-group.narrow { padding-left: max(var(--gutter), calc((100% - 760px) / 2)); padding-right: max(var(--gutter), calc((100% - 760px) / 2)); max-width: none; }
.center { text-align: center; }
.center p { max-width: 46em; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.22rem; }

/* Columns */
.wp-block-columns { display: flex; gap: 32px; margin: 2rem 0 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 860px) {
	.wp-block-columns { flex-direction: column; gap: 28px; }
}
.wp-block-image { margin: 0 0 1.2rem; }
.wp-block-image img { width: 100%; }

/* "How I can help" cards */
.cards .wp-block-column { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--texas-gold); padding: 0 0 24px; }
.cards .wp-block-image { margin: 0 0 18px; }
.cards .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.cards h3, .cards p { padding: 0 22px; }
.cards p { font-size: 1rem; margin: 0; }
@media (min-width: 861px) and (max-width: 1100px) {
	.cards { flex-wrap: wrap; }
	.cards .wp-block-column { flex: 1 1 calc(50% - 16px); }
}

/* "How I work" steps */
.steps .wp-block-column { border-top: 2px solid var(--texas-gold); padding-top: 20px; }
.step-num { font-family: var(--subhead); font-weight: 600; font-size: .8rem; letter-spacing: .2em; color: var(--texas-gold); margin-bottom: .4rem; }
.steps p { font-size: 1.02rem; }

/* Areas list */
.areas { font-family: var(--subhead); font-weight: 600; letter-spacing: .04em; font-size: 1.05rem; line-height: 2; }

/* Headshot */
.headshot img { aspect-ratio: 4 / 5; object-fit: cover; border-bottom: 3px solid var(--texas-gold); }
.intro { align-items: center; gap: 56px; }
.intro .wp-block-image { margin: 0; }
@media (max-width: 860px) { .intro .headshot { max-width: 320px; } }

/* Reviews carousel */
.reviews-carousel { text-align: left; margin-top: 2rem; }
.reviews-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; margin: 0; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--texas-gold); padding: 26px 24px 22px; display: flex; flex-direction: column; }
.review-stars { color: var(--texas-gold); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 12px; }
.review-text { margin: 0; font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-card.is-open .review-text { -webkit-line-clamp: unset; display: block; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 6px 0 0; font-family: var(--subhead); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ranch-brown); cursor: pointer; text-decoration: underline; text-decoration-color: var(--texas-gold); text-underline-offset: 3px; }
.review-by { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.review-name { font-family: var(--subhead); font-weight: 600; letter-spacing: .04em; }
.review-src { font-size: .8rem; color: var(--weathered-gray); }
.reviews-nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.reviews-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--porch-black); background: transparent; color: var(--porch-black); font-size: 1.1rem; cursor: pointer; }
.reviews-btn:hover:not(:disabled), .reviews-btn:active:not(:disabled), .reviews-btn:focus-visible { background: var(--texas-gold); border-color: var(--texas-gold); color: var(--porch-black); }
.reviews-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 1000px) { .review-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .review-card { flex-basis: 86%; } }

/* About */
.about-photo { background: #EDE6DA url(assets/img/lantern-mark.svg) center 40% / 38% no-repeat; border: 1px solid var(--line); aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center; }
.about-photo p { color: var(--weathered-gray); font-size: .85rem; padding: 14px; margin: 0; }
.about-photo img, .wp-block-image.headshot img { aspect-ratio: 4 / 5; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { border-top: 1px solid var(--line); }
.section-dark .facts li { border-color: rgba(246, 243, 238, .2); }

/* Contact */
.contact-cards .wp-block-column { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--texas-gold); padding: 26px 24px; }
.contact-cards h3 { font-size: 1.15rem; }
.contact-cards p { margin: 0 0 .4rem; }
.big-link { font-family: var(--subhead); font-weight: 600; font-size: 1.15rem; }

/* ---------- Footer (compliance area) ---------- */
.site-footer { background: var(--porch-black); color: var(--porch-cream); padding: 64px 0 40px; font-size: 15px; border-top: 1px solid rgba(246, 243, 238, .16); }
.site-footer a { color: var(--porch-cream); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid rgba(246, 243, 238, .2); }
.footer-lockup { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lockup-fpt { width: 233px; }
.lockup-div { width: 1px; align-self: stretch; min-height: 64px; background: rgba(246, 243, 238, .5); }
.lockup-kw img { width: 220px; }
.ownership { font-size: 12px; margin: 8px 0 0; color: rgba(246, 243, 238, .85); }
.footer-name { font-family: var(--subhead); font-weight: 600; letter-spacing: .04em; }
.footer-contact p { margin: 0 0 .8em; }
.footer-brokerage { font-size: 15px; }
.footer-nav .nav-list { flex-direction: column; gap: 10px; }
.footer-nav .nav-list a { color: var(--porch-cream); }
.footer-legal { display: flex; gap: 18px; align-items: flex-start; padding-top: 24px; font-size: 13.5px; color: rgba(246, 243, 238, .82); }
.footer-legal p { margin: 0 0 .5em; }
.footer-legal .eho { width: 46px; flex: none; }
.footer-contact { padding-left: 12px; }
.trec-links a { color: var(--porch-cream); }
@media (max-width: 860px) {
	.footer-top { grid-template-columns: 1fr; gap: 28px; }
	.lockup-fpt { width: 190px; }
	.lockup-kw img { width: 180px; }
	.lockup-div { display: none; }
	.footer-contact { padding-left: 0; }
}

/* Social icons (footer) */
.social-links { list-style: none; display: flex; gap: 12px; margin: 4px 0 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(246, 243, 238, .35); border-radius: 50%; color: var(--porch-cream); transition: background .2s, color .2s, border-color .2s; }
.social-links a:hover, .social-links a:active, .social-links a:focus-visible { background: var(--texas-gold); border-color: var(--texas-gold); color: var(--porch-black); }
