/*
Theme Name: Dispo Site
Theme URI: https://github.com/tisa-pixel/dispo-site
Author: Catalyst Partners
Author URI: https://conversionisourgame.com
Description: Professional wholesale property listing theme for REI wholesalers. Clean, deal-focused design with full Salesforce integration support. White-label ready.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dispo-site
Tags: full-site-editing, block-themes, real-estate, custom-colors, custom-logo
*/

/* ══════════════════════════════════════════
   CSS Custom Properties
   ══════════════════════════════════════════ */

:root {
	--dispo-navy: #1a202c;
	--dispo-navy-light: #2d3748;
	--dispo-surface: #ffffff;
	--dispo-surface-alt: #f7f8fa;
	--dispo-accent: #e94560;
	--dispo-success: #27ae60;
	--dispo-warning: #f39c12;
	--dispo-text-primary: #1a202c;
	--dispo-text-secondary: #4a5568;
	--dispo-text-muted: #a0aec0;
	--dispo-text-body: #718096;
	--dispo-border: #e2e8f0;
	--dispo-border-light: #edf2f7;
}

/* ══════════════════════════════════════════
   Global
   ══════════════════════════════════════════ */

html {
	scroll-behavior: smooth;
}

a {
	transition: color 0.2s;
}

/* ══════════════════════════════════════════
   Header
   ══════════════════════════════════════════ */

.dispo-header {
	height: 112px;
	overflow: hidden;
}

.dispo-logo-img img {
	margin: -32px 0;
}

.wp-block-navigation a {
	transition: color 0.2s;
}

.wp-block-navigation a:hover {
	color: var(--dispo-accent) !important;
}

/* Active page indicator — underline on current nav item */
.wp-block-navigation-item.current-menu-item > a,
.wp-block-navigation-item.current-menu-ancestor > a {
	color: var(--dispo-navy) !important;
	border-bottom: 3px solid var(--dispo-navy);
	padding-bottom: 4px;
}

/* ══════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════ */

.dispo-btn-primary {
	display: block;
	width: 100%;
	padding: 14px;
	background: var(--dispo-navy);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s;
	box-sizing: border-box;
}

.dispo-btn-primary:hover {
	background: var(--dispo-navy-light);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	color: #ffffff;
}

.dispo-btn-outline {
	display: inline-block;
	padding: 14px 32px;
	background: transparent;
	color: var(--dispo-navy);
	border: 2px solid var(--dispo-border);
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s;
}

.dispo-btn-outline:hover {
	border-color: var(--dispo-navy);
	color: var(--dispo-navy);
}

/* ══════════════════════════════════════════
   WordPress Block Gap Overrides
   ══════════════════════════════════════════ */

.dispo-home-hero .is-layout-flow > * + * {
	margin-top: 0 !important;
}

.dispo-hero-heading.is-layout-flow > * + * {
	margin-top: 10px !important;
}

.dispo-hero-right-col.is-layout-flow > * + * {
	margin-top: 0 !important;
}

.dispo-home-section-header.is-layout-flow > * + * {
	margin-top: 10px !important;
}

.dispo-home-cta.is-layout-constrained > * + * {
	margin-top: 0 !important;
}

.dispo-home-cta h2 + p {
	margin-top: 12px !important;
}

.dispo-home-cta p + .dispo-home-cta-buttons {
	margin-top: 32px !important;
}

/* ══════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════ */

.dispo-home-hero {
	position: relative;
	background-image: url('/wp-content/themes/dispo-theme/assets/images/hero-bg.jpg');
	background-size: cover;
	background-position: center bottom;
	overflow: hidden;
	margin-top: -1px;
}

.dispo-home-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(26,32,44,0.7) 0%, rgba(26,32,44,0.4) 100%);
}

.dispo-home-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px;
	display: flex;
	justify-content: flex-end;
}

.dispo-hero-right-col {
	width: 480px;
	max-width: 100%;
}

.dispo-hero-heading {
	text-align: center;
	margin-bottom: 20px;
}

.dispo-hero-heading h1 {
	font-size: 2.5rem !important;
	font-weight: 900 !important;
	line-height: 1.08 !important;
	color: #ffffff !important;
	margin-bottom: 10px !important;
	letter-spacing: -0.02em;
}

.dispo-home-hero-tagline {
	font-size: 1rem !important;
	color: rgba(255,255,255,0.8) !important;
	line-height: 1.5;
	margin: 0 !important;
}

/* ══════════════════════════════════════════
   Hero Form Card
   ══════════════════════════════════════════ */

.dispo-hero-form-card {
	background: var(--dispo-surface);
	border-radius: 12px;
	padding: 24px 28px 16px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.dispo-hero-form-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--dispo-text-primary);
	margin: 0 0 12px;
	text-align: center;
}

.dispo-hero-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.dispo-hero-field {
	margin-bottom: 8px;
}

.dispo-hero-field label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--dispo-text-secondary);
	margin-bottom: 1px;
	line-height: 1.2;
}

.dispo-hero-signup input[type="text"],
.dispo-hero-signup input[type="email"],
.dispo-hero-signup input[type="tel"] {
	width: 100%;
	padding: 10px 14px;
	margin: 0;
	background: var(--dispo-surface-alt);
	border: 1px solid var(--dispo-border);
	border-radius: 8px;
	color: var(--dispo-text-primary);
	font-size: 0.95rem;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.dispo-hero-signup input:focus {
	outline: none;
	border-color: var(--dispo-accent);
	box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
	background: var(--dispo-surface);
}

.dispo-hero-signup input::placeholder {
	color: var(--dispo-text-muted);
}

.dispo-hero-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 4px 0 8px;
	cursor: pointer;
}

.dispo-hero-consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--dispo-accent);
	cursor: pointer;
}

.dispo-hero-consent span {
	font-size: 0.75rem;
	color: var(--dispo-text-body);
	line-height: 1.4;
}

/* ══════════════════════════════════════════
   Trust Bar
   ══════════════════════════════════════════ */

.dispo-home-trust-bar {
	background: var(--dispo-surface);
	border-bottom: 1px solid var(--dispo-border);
}

.dispo-home-trust-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 36px 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 60px;
	flex-wrap: wrap;
}

.dispo-trust-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.dispo-trust-number {
	font-size: 2rem;
	font-weight: 800;
	color: var(--dispo-accent);
	line-height: 1;
}

.dispo-trust-label {
	font-size: 0.85rem;
	color: var(--dispo-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.dispo-trust-divider {
	width: 1px;
	height: 44px;
	background: var(--dispo-border);
}

/* ══════════════════════════════════════════
   Homepage Sections
   ══════════════════════════════════════════ */

.dispo-home-section {
	padding: 80px 0;
}

.dispo-home-section-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.dispo-home-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.dispo-home-section-header h2 {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--dispo-text-primary);
	margin: 0 0 10px;
}

.dispo-home-section-header p {
	font-size: 1.05rem;
	color: var(--dispo-text-muted);
	margin: 0;
}

.dispo-home-properties {
	background: var(--dispo-surface-alt);
}

.dispo-home-sold {
	background: var(--dispo-surface);
}

/* ══════════════════════════════════════════
   Process Steps
   ══════════════════════════════════════════ */

.dispo-home-process {
	background: var(--dispo-surface);
}

.dispo-process-grid {
	display: flex;
	align-items: flex-start;
	gap: 0;
	justify-content: center;
}

.dispo-process-step {
	flex: 1;
	max-width: 260px;
	text-align: center;
	padding: 0 16px;
}

.dispo-process-number {
	width: 40px;
	height: 40px;
	background: var(--dispo-navy);
	color: #ffffff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 800;
	margin-bottom: 16px;
}

.dispo-process-icon {
	color: var(--dispo-text-body);
	margin-bottom: 12px;
}

.dispo-process-step h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--dispo-text-primary);
	margin: 0 0 8px;
}

.dispo-process-step p {
	font-size: 0.9rem;
	color: var(--dispo-text-body);
	line-height: 1.5;
	margin: 0;
}

.dispo-process-connector {
	color: var(--dispo-border);
	font-size: 1.5rem;
	padding-top: 16px;
	flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CTA Section
   ══════════════════════════════════════════ */

.dispo-home-cta {
	background: var(--dispo-navy) !important;
	text-align: center !important;
}

.dispo-home-cta > * {
	max-width: 700px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.dispo-home-cta h2,
.dispo-home-cta .wp-block-heading,
.dispo-home-cta .has-text-align-center {
	font-size: 2rem !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	margin: 0 0 12px !important;
	text-align: center !important;
}

.dispo-home-cta p:not(.has-text-align-center),
.dispo-home-cta p.has-text-align-center {
	font-size: 1.1rem !important;
	color: rgba(255,255,255,0.65) !important;
	margin: 0 0 32px !important;
	text-align: center !important;
}

.dispo-home-cta-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.dispo-home-cta-buttons .dispo-btn-primary {
	width: auto;
	padding: 16px 40px;
}

.dispo-home-cta-buttons .dispo-btn-outline {
	color: #ffffff;
	border-color: rgba(255,255,255,0.3);
}

.dispo-home-cta-buttons .dispo-btn-outline:hover {
	border-color: #ffffff;
	color: #ffffff;
}

/* ══════════════════════════════════════════
   No Properties State
   ══════════════════════════════════════════ */

.dispo-no-properties {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: var(--dispo-text-muted);
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
	.dispo-home-hero-inner {
		justify-content: center;
		padding: 32px 16px;
	}
	.dispo-hero-heading h1 { font-size: 2rem !important; }
	.dispo-hero-field-row { grid-template-columns: 1fr; }
	.dispo-home-section { padding: 60px 0; }

	.dispo-process-grid { flex-direction: column; align-items: center; gap: 24px; }
	.dispo-process-connector { display: none; }
	.dispo-process-step { max-width: 100%; }

	.dispo-home-trust-inner { gap: 24px; }
	.dispo-trust-divider { display: none; }
}

@media (max-width: 600px) {
	.dispo-home-cta-buttons { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */

.dispo-footer {
	background: var(--dispo-navy) !important;
	border-top: none !important;
	color: rgba(255,255,255,0.7);
}

.dispo-footer .wp-block-columns {
	gap: 48px;
}

.dispo-footer .dispo-footer-brand {
	font-size: 1.2rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 12px;
}

.dispo-footer .dispo-footer-desc {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.5);
	line-height: 1.6;
	margin: 0;
}

.dispo-footer .dispo-footer-heading {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255,255,255,0.4);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 16px;
}

.dispo-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dispo-footer ul li {
	margin-bottom: 10px;
}

.dispo-footer ul li a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.dispo-footer ul li a:hover {
	color: #ffffff;
}

.dispo-footer .dispo-footer-contact p {
	color: rgba(255,255,255,0.6);
	font-size: 0.9rem;
	margin: 0 0 8px;
}

.dispo-footer .dispo-footer-contact a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
}

.dispo-footer .dispo-footer-contact a:hover {
	color: #ffffff;
}

.dispo-footer .wp-block-social-links .wp-social-link {
	background: none !important;
}

.dispo-footer .wp-block-social-links .wp-social-link svg {
	fill: rgba(255,255,255,0.4);
	transition: fill 0.2s;
}

.dispo-footer .wp-block-social-links .wp-social-link:hover svg {
	fill: #ffffff;
}

.dispo-footer hr.wp-block-separator {
	border-color: rgba(255,255,255,0.1) !important;
	background: none !important;
	opacity: 1;
}

.dispo-footer .dispo-footer-copyright {
	color: rgba(255,255,255,0.35);
	font-size: 0.8rem;
	margin: 0;
}

@media (max-width: 768px) {
	.dispo-footer .wp-block-columns {
		gap: 32px;
	}
}
