/*
Theme Name: Four VS Realty
Description: Custom theme for Four VS Realty and Titling Services, Cagayan de Oro. Property listings, titling services, a title tracker and an agent inquiry form.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fourvs
*/

:root {
	--paper: #ffffff;
	--paper-2: #f3f3f2;
	--card: #ffffff;
	--ink: #111111;
	--forest: #0d0d0d;
	--forest-2: #2a2a2a;
	--brass: #8c6a1c;
	--brass-lt: #d4af37;
	--muted: #666666;
	--line: #dededc;
	--bad: #9b2c1f;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; }

.eyebrow {
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brass); margin: 0 0 1rem;
}
.eyebrow a { color: inherit; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 44em; }

/* Buttons and links */
.btn {
	display: inline-block; padding: .85em 1.5em; border-radius: var(--radius); border: 1px solid transparent;
	font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center;
	transition: background .15s, color .15s, border-color .15s;
}
.btn-ink { background: var(--forest); color: #fff; }
.btn-ink:hover { background: var(--brass-lt); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-brass { background: var(--brass-lt); color: var(--ink); }
.btn-brass:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.link-arrow { font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* Header */
.topbar { background: var(--forest); color: #cfcfcf; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: var(--brass-lt); text-decoration: none; }
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 54px; max-width: 220px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; align-items: flex-start; }
.brand-text strong { font: 700 1.7rem/1 var(--serif); text-transform: uppercase; letter-spacing: .01em; }
.brand-text span { font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); margin-top: 5px; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; 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(--brass); color: var(--ink); }
.nav-cta { padding: .7em 1.1em; font-size: .88rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: 8px 14px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brass); }
.deed {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; box-shadow: 10px 10px 0 var(--brass-lt); position: relative;
}
.deed::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 2px; pointer-events: none; }
.deed > * { position: relative; }
.deed-label { font: 500 1.2rem var(--serif); margin-bottom: .8rem; }
.deed ol { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.deed li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.deed li span { font: 500 .85rem var(--serif); color: var(--brass); min-width: 1.6em; font-variant-numeric: tabular-nums; }

.hero.has-image { position: relative; background: #111 center / cover no-repeat; border-bottom: 0; color: #fff; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.35) 100%); }
.hero.has-image .hero-grid { position: relative; }
.hero.has-image h1 em { color: var(--brass-lt); }
.hero.has-image .eyebrow { color: var(--brass-lt); }
.hero.has-image .lede { color: #e4e4e4; }
.hero.has-image .btn-ink { background: var(--brass-lt); color: var(--ink); }
.hero.has-image .btn-ink:hover { background: #fff; }
.hero.has-image .btn-line { border-color: #fff; color: #fff; }
.hero.has-image .btn-line:hover { background: #fff; color: var(--ink); }
.hero.has-image .deed { color: var(--ink); box-shadow: none; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lede { margin: .8rem 0 0; }
.section-head .eyebrow { margin-bottom: .5rem; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .3em; }
.page-head .lede { margin: 0; }
.prose { font-size: 1.1rem; }
.prose > *:last-child { margin-bottom: 0; }

/* Home pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.pillar { padding: 28px 28px 8px 0; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 28px; }
.pillar:last-child { border-right: 0; }
.pillar-no { font: italic 400 1rem var(--serif); color: var(--brass); }
.pillar h2 { margin: .3em 0 .4em; }
.pillar p { color: var(--muted); }
.pillar:hover { color: var(--ink); }
.pillar:hover h2 { color: var(--forest-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Listings */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.listing { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.listing[hidden] { display: none; }
.listing-media { position: relative; display: block; aspect-ratio: 3 / 2; background: repeating-linear-gradient(135deg, #ececea 0 14px, #f4f4f3 14px 28px); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip { position: absolute; left: 12px; top: 12px; background: var(--forest); color: var(--brass-lt); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.chip-static { position: static; display: inline-block; margin-bottom: 1rem; }
.listing-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.listing-price { font: 500 1.6rem var(--serif); margin: 0 0 .2em; font-variant-numeric: tabular-nums; }
.listing h3 { font: 600 1.02rem var(--sans); letter-spacing: 0; margin-bottom: .3em; }
.listing h3 a { color: var(--ink); text-decoration: none; }
.listing h3 a:hover { text-decoration: underline; }
.listing-info { color: var(--muted); font-size: .93rem; flex: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Single property */
.property { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.property-photo { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.property-price { font: 500 2.2rem var(--serif); margin-bottom: .6em; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--ink); }
.services li { display: grid; grid-template-columns: 3.2rem 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-no { font: italic 400 1.1rem var(--serif); color: var(--brass); grid-row: span 2; padding-top: .15em; }
.services h2 { font-size: 1.35rem; margin-bottom: .3em; }
.services p { margin: 0; color: var(--muted); }

/* Panels and forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h2 { font-size: 1.5rem; }
.panel-dark { background: var(--forest); border-color: var(--forest); color: #e2e2e2; }
.panel-dark h2 { color: var(--brass-lt); }
.panel-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3em; }
.panel-note { font-size: .88rem; margin: 1em 0 0; opacity: .85; }
label { display: block; font-size: .88rem; font-weight: 600; margin: 16px 0 6px; }
input, textarea {
	width: 100%; background: #fff; color: var(--ink); border: 1px solid #b5b5b5; border-radius: var(--radius);
	padding: 12px 14px; font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--brass-lt); outline-offset: 1px; border-color: var(--ink); }
textarea { resize: vertical; }
form .btn { margin-top: 20px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: var(--radius); border-left: 4px solid; margin: 0 0 4px; }
.notice-ok { background: var(--paper-2); border-color: var(--brass-lt); }
.notice-bad { background: #f7e6e2; border-color: var(--bad); color: var(--bad); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--brass); font-weight: 700; }

/* Tracker */
.lookup label { margin-top: 0; }
.lookup-row { display: flex; gap: 12px; }
.lookup-row .btn { margin: 0; white-space: nowrap; }
.lookup input { text-transform: uppercase; letter-spacing: .04em; }
.lookup input::placeholder { text-transform: none; letter-spacing: 0; }
.result { margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0 0 1.4rem; }
.facts dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts-stack { flex-direction: column; margin: 1.2rem 0 0; }
.meter { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brass-lt); }
.meter-text { font-size: .92rem; color: var(--muted); margin: .5em 0 1.2em; }
.note { background: var(--paper-2); border-left: 3px solid var(--brass); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.timeline { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding-bottom: 20px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 15.5px; top: 32px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #b5b5b5; background: var(--paper); display: grid; place-items: center; font-size: .8rem; font-weight: 600; position: relative; z-index: 1; }
.timeline li > span:last-child { padding-top: 3px; }
.timeline .is-done { color: var(--ink); }
.timeline .is-done::before { background: var(--forest-2); }
.timeline .is-done .timeline-dot { background: var(--forest-2); border-color: var(--forest-2); color: #fff; }
.timeline .is-current { color: var(--ink); font-weight: 600; }
.timeline .is-current .timeline-dot { border: 2px solid var(--brass); color: var(--brass); }
.timeline em { font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-left: 8px; white-space: nowrap; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px; }
.member-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.member-initial { display: grid; place-items: center; background: var(--forest); color: var(--brass-lt); font: 500 2rem var(--serif); }
.member h3 { margin-bottom: .15em; }
.member-role { color: var(--brass); font-weight: 600; font-size: .9rem; margin-bottom: .5em; }
.member p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.panel-dark .btn { margin-top: 8px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }

/* CTA + footer */
.cta { background: #161616; color: #cfcfcf; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(40px, 6vw, 64px) 0; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; }
.site-foot { background: #0a0a0a; border-top: 1px solid #2a2a2a; color: #b0b0b0; font-size: .93rem; padding-top: 56px; }
.site-foot a { color: #ededed; text-decoration: none; }
.site-foot a:hover { color: var(--brass-lt); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; }
.site-foot h2 { font: 600 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lt); margin-bottom: 1em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.foot-brand { font: 500 1.4rem var(--serif); color: #fff; margin-bottom: .4em; }
.foot-base { border-top: 1px solid #2a2a2a; margin-top: 40px; padding: 18px 0 22px; font-size: .82rem; }

/* How-it-works steps */
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.howto li { padding: 26px 26px 10px 0; border-bottom: 1px solid var(--line); }
.howto-no { font: 500 2rem var(--serif); color: var(--brass-lt); display: block; margin-bottom: .3em; font-variant-numeric: tabular-nums; }
.howto h3 { margin-bottom: .3em; }
.howto p { color: var(--muted); font-size: .96rem; }

/* Feature points */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brass-lt); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Service preview list */
.mini-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 40px; border-top: 1px solid var(--ink); }
.mini-services li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-services strong { display: block; font: 500 1.12rem var(--serif); }
.mini-services span { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font: 500 1.12rem var(--serif); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--sans); color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

/* Two-column text + panel band */
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.band .lede { margin-bottom: 1.4rem; }
.step-list { margin: 0; padding-left: 1.3em; color: var(--muted); }
.step-list li { padding: 5px 0; }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map iframe { width: 100%; height: 380px; border: 0; }

/* Floating contact button */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brass-lt); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.chat-btn:hover { background: var(--ink); color: var(--brass-lt); }
.chat-panel { width: min(290px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 12px 36px rgba(0,0,0,.22); }
.chat-title { font: 600 1.2rem var(--serif); margin: 0; }
.chat-sub { font-size: .82rem; color: var(--muted); margin: .2em 0 .9em; }
.chat-link { display: block; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.chat-link:hover { border-color: var(--ink); color: var(--ink); }
.chat-link-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.chat-link-main:hover { background: var(--brass-lt); border-color: var(--brass-lt); color: var(--ink); }

/* Responsive */
@media (max-width: 1000px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; flex-direction: column; align-items: stretch; gap: 12px; }
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.contact { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.hero-grid, .split, .property, .services, .band { grid-template-columns: 1fr; }
	.pillars { grid-template-columns: 1fr; }
	.pillar, .pillar + .pillar { padding: 24px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
	.topbar-inner span:first-child { display: none; }
	.topbar-inner { justify-content: center; }
}
@media (max-width: 520px) {
	body { font-size: 16px; }
	.lookup-row { flex-direction: column; }
	.foot-grid { grid-template-columns: 1fr; }
	.brand-text strong { font-size: 1.35rem; }
	.brand-text span { font-size: .5rem; }
	.listings { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}
