/*
Theme Name:  Deed Your Dream
Theme URI:   https://deedyourdream.com
Description: Theme for Deed Your Dream: land listings with owner financing and cash prices.
Version:     1.3.4
Author:      Deed Your Dream
Requires at least: 6.4
Requires PHP: 8.1
License:     Proprietary
Text Domain: deedyourdream
*/

:root {
	--ground: #F8F4EC;
	--surface: #FFFFFF;
	--tint: #EFE7D8;
	--ink: #1F2A21;
	--muted: #4F574F;
	--primary: #2E5B3B;
	--primary-dark: #234731;
	--accent: #9C4A24;
	--band: #233A2B;
	--band-accent: #E7B97A;
	--photo: #BFB59A;
	--line: #E4DACA;
	--err: #A3261B;
	--focus: #2F6FB0;
	--head: 'Fraunces', Georgia, 'Times New Roman', serif;
	--body: 'Mulish', 'Segoe UI', Helvetica, Arial, sans-serif;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; color: var(--ink); margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 23px; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.muted { color: var(--muted); }
.screen-reader-text, .dyd-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 16px; border: 2px solid var(--primary); }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-gold { background: var(--band-accent); color: var(--band); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand-name { font-family: var(--head); font-size: 25px; font-weight: 700; line-height: 1.05; }
.brand-sub { display: block; margin-top: 3px; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; padding: 8px 0; }
.main-nav a:hover, .main-nav .current a { color: var(--primary); box-shadow: inset 0 -2px 0 var(--accent); }
.header-phone { font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 8px; min-width: 48px; min-height: 48px; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.header-cta, .header-phone { display: none; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
	.main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { background: var(--band); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 540px; min-width: 0; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--band-accent); }
.hero-lede { font-size: 20px; opacity: .93; max-width: 34em; margin-bottom: 28px; }
.hero-photo { flex: 1 1 420px; min-width: 0; min-height: 380px; border-radius: 16px; background: var(--photo); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.search-box { background: #fff; color: var(--ink); border-radius: 12px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 640px; }
.search-box label { flex: 1 1 170px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 800; }
.search-box select, .search-box .btn { min-height: 50px; }
.search-box select { font: inherit; font-size: 17px; font-weight: 400; padding: 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.search-box .btn { flex: 1 1 140px; }

.promises { background: var(--surface); border-bottom: 1px solid var(--line); }
.promises .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 20px; font-weight: 800; font-size: 16px; }
.promises span { display: inline-flex; align-items: center; gap: 8px; }
.promises svg { color: var(--primary); }

/* Sections */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.section-head h2 { margin: 0; }

/* Listing cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-photo { position: relative; aspect-ratio: 16 / 10; background: var(--photo); display: block; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 700; font-size: 15px; }
.badge { display: inline-block; font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); }
.card-photo .badge { position: absolute; top: 14px; left: 14px; }
.badge-sold { background: var(--accent); color: #fff; }
.badge-pending { background: var(--band-accent); color: var(--band); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 14px; font-weight: 700; color: var(--muted); }
.card h3 { margin: 6px 0 12px; font-size: 24px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price { font-size: 32px; font-weight: 800; line-height: 1.1; }
.price-label { font-weight: 700; color: var(--muted); }
.save { background: var(--tint); color: var(--accent); font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; }
.fin-line { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.cash-line { margin: 8px 0 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.card-body > .cash-line + .btn { margin-top: 18px; }
.price-box .lead-fin { margin: 0; font-size: 18px; font-weight: 800; color: var(--primary); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-body > .fin-line + .btn, .card-body > .price-row + .btn { margin-top: 18px; }
.sold-card { opacity: .85; }

/* Comparison table */
.split { display: flex; flex-wrap: wrap; gap: 52px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 17px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--tint); border-top: 0; }
.compare thead th:last-child, .compare td:last-child { color: var(--primary); font-weight: 800; }
.table-scroll { overflow-x: auto; border-radius: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-num { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-family: var(--body); font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.quote blockquote { margin: 0 0 16px; font-family: var(--head); font-size: 19px; }
.quote figcaption { font-weight: 800; }

.team { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.team-photos { display: flex; gap: 16px; }
.team-card { flex: 0 1 300px; width: 300px; max-width: 100%; min-width: 0; }
.team-card img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(35, 58, 43, .2); }
.avatar { width: 140px; height: 140px; border-radius: 50%; background: var(--tint); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 46px; color: var(--primary); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.band-cta { background: var(--band); color: #fff; }
.band-cta .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 68px; padding-bottom: 68px; }
.band-cta h2 { color: #fff; }
.band-cta .eyebrow { color: var(--band-accent); }
.band-cta p { opacity: .9; margin: 0; }
.alerts-form { flex: 1 1 440px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.alerts-form label { flex: 1 1 250px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 800; }
.alerts-form input[type=email] { font: inherit; font-size: 17px; padding: 12px; border-radius: 8px; border: 0; min-height: 50px; }
.alerts-form .form-msg { flex-basis: 100%; }

/* Forms */
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); padding: 11px 13px; border: 2px solid var(--line); border-radius: 8px; background: #fff; min-height: 50px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row .field { flex: 1 1 200px; }
.form-msg { border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; font-size: 16px; }
.form-msg.error { background: #FBEDEB; color: var(--err); border: 1px solid #F0C9C4; }
.form-msg.ok { background: #EAF3EC; color: var(--primary-dark); border: 1px solid #C7DDCC; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
/* Text-message consent (1.2.0): optional box on every form, two-step sign-up page. */
.consent-head { font-weight: 800; font-size: 15px; margin: 0 0 6px; }
.consent-opt { margin: 0 0 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--primary); }
.consent a { color: var(--primary); }
.so-opt { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 10px; margin: 8px 0 16px; background: var(--ground); }
.so-opt h3 { margin: 0 0 6px; font-size: 20px; }
.so-opt .consent-opt { margin-bottom: 14px; }
.so-links { font-size: 14px; margin: 12px 0 0; }
.btn-gated[disabled] { opacity: .45; cursor: not-allowed; }
.done:focus { outline: none; }
.small { font-size: 14px; }

/* Listing page */
.crumbs { font-size: 15px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.listing-head { padding-top: 10px; }
.listing-head h1 { margin: 10px 0 6px; font-size: clamp(32px, 4vw, 46px); }
.listing-sub { color: var(--muted); font-size: 19px; margin: 0; }
.listing-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 26px; padding-bottom: 72px; }
.listing-main { flex: 999 1 620px; min-width: 0; }
.listing-side { flex: 1 1 360px; min-width: 0; position: sticky; top: 96px; }
.gallery-main { border-radius: 14px; overflow: hidden; background: var(--photo); aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .nophoto { height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--tint); aspect-ratio: 4 / 3; }
.thumbs button[aria-current="true"] { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); margin: 0; }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 20px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { flex: 0 0 220px; font-weight: 800; }
.facts dd { flex: 1 1 200px; margin: 0; color: var(--muted); }
.listing-main h2 { font-size: 30px; margin-top: 44px; }
.listing-main .entry > :first-child { margin-top: 0; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--tint); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box { aspect-ratio: 16 / 9; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 16px 40px rgba(35, 58, 43, .09); }
.price-box .big { font-size: 46px; font-weight: 800; line-height: 1.05; margin: 2px 0 10px; }
.price-box .sub { font-size: 15px; font-weight: 800; color: var(--muted); }
.price-box .fin { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.price-box .row { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; font-size: 16px; }
.price-box .btn { width: 100%; margin-top: 14px; }
.price-box .ticks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; }
.price-box .ticks li { display: flex; gap: 8px; align-items: flex-start; }
.price-box .ticks svg { flex: 0 0 18px; margin-top: 3px; color: var(--primary); }
.disclosure { font-size: 15px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; white-space: pre-line; }
.sold-banner { background: var(--accent); color: #fff; border-radius: 12px; padding: 16px 20px; font-weight: 800; margin-bottom: 16px; }
#inquire { scroll-margin-top: 100px; }

/* Inner pages */
.page-hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { margin: 0; color: var(--muted); font-size: 20px; max-width: 42em; }
.content { padding: 52px 0 76px; }
.content .wrap { max-width: 880px; }
.content h2 { font-size: 32px; margin-top: 42px; }
.content h3 { margin-top: 28px; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin-bottom: 6px; }
.content .wrap > :first-child { margin-top: 0; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; background: var(--surface); }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.content details { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; background: var(--surface); }
.content summary { cursor: pointer; padding: 16px 20px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.content summary::-webkit-details-marker { display: none; }
.content summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--primary); }
.content details[open] summary::after { content: "–"; }
.content details > *:not(summary) { padding: 0 20px; }
.byline { color: var(--muted); font-size: 15px; margin-top: 8px; }
.post-list { display: grid; gap: 22px; }
.post-list article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.post-list h2 { font-size: 26px; margin: 0 0 8px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 28px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 800; }
.filters select { font: inherit; font-size: 16px; padding: 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; min-height: 48px; min-width: 190px; }
.empty { background: var(--surface); border: 2px dashed var(--line); border-radius: 14px; padding: 36px; text-align: center; color: var(--muted); }
.subareas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 32px; }
.subareas a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 700; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 16px; padding-bottom: 70px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 48px; padding-bottom: 26px; }
.site-footer .cols > div { flex: 1 1 200px; }
.site-footer .cols > div:first-child { flex-basis: 300px; }
.site-footer h2 { font-family: var(--body); font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: var(--ink); }
.footer-legal { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; padding-bottom: 22px; color: var(--muted); font-size: 15px; }
.footer-legal .copy { margin-right: auto; }
.footer-legal a { color: var(--muted); }
.mobile-bar { display: none; }
@media (max-width: 960px) {
	.mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--primary); box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
	.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 800; min-height: 56px; }
	.mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.25); }
	.listing-side { position: static; }
	.section { padding: 60px 0; }
	.cards { grid-template-columns: 1fr; }
}
@media (min-width: 961px) { .site-footer { padding-bottom: 0; } }
