/*
Theme Name: SPS Realtor
Theme URI: https://spsrealtor.co.in/
Author: SPS Realtor
Description: Custom theme for SPS Realtor — Pune real estate sales & marketing. Ported from the Airo design.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sps-realtor
*/

:root {
	--bg: hsl(38 48% 91%);
	--fg: hsl(0 0% 4%);
	--primary: hsl(19 38% 35%);
	--secondary: hsl(126 11% 18%);
	--muted: hsl(36 37% 83%);
	--muted-fg: hsl(40 9% 34%);
	--border: hsl(36 28% 74%);
	--card: hsl(41 62% 95%);
	--on-dark: 255 255 255;
	--sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-size: inherit; font-weight: inherit; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
.serif { font-family: var(--serif); font-weight: 400; }
.icon { flex-shrink: 0; }
.rel { position: relative; }

/* ---------- Layout ---------- */
.wrap { max-width: 80rem; margin: 0 auto; }
.section { position: relative; overflow: hidden; padding: 6rem 1.25rem; }
.bg-secondary { background: var(--secondary); color: #fff; }
.bg-muted { background: var(--muted); }
.bg-card { background: var(--card); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.deco { position: absolute; pointer-events: none; border: 1px solid var(--border); }

/* ---------- Type ---------- */
.eyebrow { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .16em; color: var(--primary); }
.bg-secondary .eyebrow { color: rgb(var(--on-dark) / .7); }
.h2 { margin-top: 1.25rem; font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--secondary); }
.h2.flush { margin-top: 0; }
.h2-cta { margin-top: 1.5rem; max-width: 42rem; }
.h2-sm { margin-top: 0; max-width: 48rem; font-size: 2.25rem; line-height: 1.25; }
.bg-secondary .h2 { color: #fff; }
.h3 { font-size: 1.875rem; line-height: 2.25rem; color: var(--secondary); }
.lead { margin-top: 1.75rem; max-width: 36rem; font-size: 1.125rem; line-height: 2rem; color: var(--muted-fg); }
.lead-wide { margin-top: 2rem; max-width: 42rem; }
.bg-secondary .lead { color: rgb(var(--on-dark) / .8); }
.small-copy { margin-top: 1rem; max-width: 20rem; font-size: .875rem; line-height: 1.75rem; color: var(--muted-fg); }
.small-copy.no-max { max-width: none; }
.side-copy { margin-top: 1.75rem; max-width: 24rem; line-height: 1.75rem; color: var(--muted-fg); }
.narrow { max-width: 42rem; }
.narrow-3 { max-width: 48rem; }
.u-link {
	font-weight: 500; color: var(--secondary);
	text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 4px;
}
.u-link-light { color: #fff; text-decoration-color: currentColor; }
.inline-icon { display: inline-flex; align-items: center; gap: .75rem; font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .75rem;
	padding: .75rem 1.25rem;
	font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .14em;
	border: 1px solid transparent; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); }
.btn-on-dark:hover { background: var(--card); color: var(--secondary); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { margin-top: 2.5rem; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--secondary); }
.btn-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.admin-bar .site-header { top: 32px; }
.hdr-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.hdr-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.25rem; }
.logo { min-width: 0; flex-shrink: 1; }
.logo img { max-height: 2.5rem; width: auto; object-fit: contain; }
.main-nav { display: none; align-items: center; gap: 1.75rem; }
.main-nav a { position: relative; padding: .5rem 0; font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .16em; color: var(--secondary); }
.main-nav a span { position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--primary); transition: width .3s; }
.main-nav a:hover span, .main-nav a.current span { width: 100%; }
.hdr-cta {
	display: none; border: 1px solid var(--primary); padding: .625rem 1rem;
	font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .12em; color: var(--primary);
	transition: background-color .2s, color .2s;
}
.hdr-cta:hover { background: var(--primary); color: #fff; }
.menu-toggle {
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	border: 1px solid var(--border); background: transparent; color: var(--secondary); cursor: pointer; padding: 0;
}
.menu-toggle .icon-x, .menu-toggle.open .icon-menu { display: none; }
.menu-toggle.open .icon-x { display: block; }
.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); padding: 1.25rem; }
.mobile-nav a { display: block; border-bottom: 1px solid var(--border); padding: .75rem 0; font-size: .875rem; color: var(--secondary); }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 650px; overflow: hidden; background: var(--secondary); color: #fff; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgb(17 24 39 / .85), rgb(17 24 39 / .55), rgb(17 24 39 / .2)); }
.shade-strong { background: linear-gradient(to right, rgb(17 24 39 / .9), rgb(17 24 39 / .75), rgb(17 24 39 / .35)); }
.vline { position: absolute; top: 0; bottom: 0; left: 9%; width: 1px; background: rgb(var(--on-dark) / .3); pointer-events: none; }
.hero-inner { position: relative; max-width: 80rem; margin: 0 auto; display: flex; align-items: flex-end; min-height: 650px; padding: 7rem 1.25rem 4rem; }
.hero-copy { max-width: 48rem; }
.kicker { margin-bottom: 1.5rem; font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .17em; color: rgb(var(--on-dark) / .8); }
.hero h1 { max-width: 42rem; font-size: 3.75rem; line-height: .92; letter-spacing: -.025em; }
.hero-body { margin-top: 1.75rem; max-width: 36rem; font-size: 1rem; line-height: 1.75rem; color: rgb(var(--on-dark) / .85); }

/* ---------- Inner page hero ---------- */
.page-hero-copy { position: relative; max-width: 48rem; }
.page-hero h1 { margin-top: 1.5rem; font-size: 3.75rem; line-height: .93; }
.hero-lead { margin-top: 1.75rem; max-width: 42rem; font-size: 1.125rem; line-height: 2rem; color: rgb(var(--on-dark) / .85); }
.page-hero .eyebrow { color: rgb(var(--on-dark) / .75); }
.half-line { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; border-left: 1px solid rgb(var(--on-dark) / .2); pointer-events: none; }

/* ---------- Home: intro ---------- */
.deco-intro { right: -7rem; top: 4rem; width: 20rem; height: 20rem; }
.grid-intro { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.big-num { margin-top: 3rem; font-size: 4.5rem; line-height: 1; color: var(--secondary); }
.rule { margin-top: 1.75rem; height: 1px; width: 5rem; background: var(--primary); }
.statement { margin-top: 4rem; max-width: 48rem; font-size: 2.25rem; line-height: 1.25; color: var(--primary); }

/* ---------- Home: approach ---------- */
.grid-approach { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
.grid-approach .h2 { font-size: 3rem; }
.approach-img { margin-left: auto; width: 100%; max-width: 28rem; aspect-ratio: 3 / 2; object-fit: cover; }
.cols3 { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.cols3 article { border-bottom: 1px solid var(--border); padding: 2rem 0; }

/* ---------- Home: enquire ---------- */
.deco-enquire { bottom: -8rem; right: 13%; width: 24rem; height: 24rem; border-color: hsl(19 38% 35% / .5); }
.grid-enquire { position: relative; display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-lines { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; color: var(--muted-fg); }
.contact-lines address { max-width: 28rem; line-height: 1.5rem; }
.strong { font-weight: 500; color: var(--secondary); }

/* ---------- Enquiry form ---------- */
.enq-form {
	position: relative; border: 1px solid var(--border); background: var(--card); padding: 1.5rem;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}
.enq-form h3 { font-size: 1.875rem; line-height: 2.25rem; color: var(--secondary); }
.enq-intro { margin-top: .5rem; font-size: .875rem; line-height: 1.5rem; color: var(--muted-fg); }
.enq-fields { margin-top: 1.5rem; display: grid; gap: 1rem; }
.enq-fields label { display: grid; gap: .5rem; font-size: .875rem; font-weight: 500; color: var(--secondary); }
.enq-fields input, .enq-fields select, .enq-fields textarea {
	width: 100%; height: 2.75rem; border: 1px solid var(--border); border-radius: 0; background: var(--bg);
	padding: 0 .75rem; color: var(--fg); font-weight: 400; outline: none;
}
.enq-fields textarea { height: auto; padding: .5rem .75rem; resize: vertical; }
.enq-fields input:focus, .enq-fields select:focus, .enq-fields textarea:focus { box-shadow: 0 0 0 2px var(--primary); }
.hp { position: absolute; left: -9999px; }
.enq-note { margin-top: 1rem; font-size: .875rem; }
.enq-note.ok { color: var(--secondary); }
.enq-note.err { color: #b42318; }
.enq-submit { margin-top: 1.5rem; }

/* ---------- Inner page grids ---------- */
.grid-side { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.gap-portfolio { gap: 4rem; }
.gap-list { gap: 3.5rem; }
.grid-cta { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.grid-cta-dark { gap: 2.5rem; }
.story p { margin-bottom: 1.75rem; font-size: 1.125rem; line-height: 2rem; color: var(--muted-fg); }
.story p:last-child { margin-bottom: 0; }
.story { max-width: 42rem; }

/* Developments */
.dev-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.dev { display: flex; min-height: 7rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.dev p { font-size: 1.875rem; line-height: 1.25; color: var(--secondary); }
.dev span { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .14em; color: var(--primary); }

/* Careers */
.roles { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
.role { display: flex; min-height: 18rem; flex-direction: column; justify-content: space-between; background: var(--card); padding: 1.75rem; }
.role-open { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .14em; color: var(--primary); }
.role h3 { margin-top: 1.5rem; font-size: 1.875rem; line-height: 1.25; color: var(--secondary); }
.role .small-copy { margin-top: 1.25rem; }
.role-apply {
	margin-top: 2.5rem; display: inline-flex; width: fit-content; align-items: center; gap: .75rem;
	border-bottom: 1px solid var(--primary); padding-bottom: .5rem;
	font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .14em; color: var(--primary); transition: color .2s;
}
.role-apply:hover { color: var(--secondary); }

/* Resources */
.steps { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.steps article { border-bottom: 1px solid var(--border); padding: 2rem 0; }
.steps h3 { margin-top: 1.25rem; }
.steps p { margin-top: 1rem; max-width: 28rem; line-height: 1.75rem; color: var(--muted-fg); }
.step-num { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .16em; color: var(--primary); }
.guides { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.guides article { border: 1px solid var(--border); background: var(--card); padding: 1.75rem; }
.list { border-top: 1px solid var(--border); }
.list-item { border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.list-item h3 { font-size: 1.5rem; line-height: 2rem; color: var(--secondary); }
.list-item p { margin-top: .75rem; line-height: 1.75rem; color: var(--muted-fg); }
.faq-item p { margin-top: 1rem; max-width: 42rem; }
.check-item { display: flex; gap: 1rem; }
.check-item .icon { margin-top: .25rem; color: var(--primary); }

/* Generic content (blog, pages) */
.prose-wrap { max-width: 48rem; }
.entry-content { margin-top: 2rem; font-size: 1.125rem; line-height: 2rem; color: var(--muted-fg); }
.entry-content p { margin: 0 0 1.5rem; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-card { border-bottom: 1px solid var(--border); padding: 2rem 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--secondary); color: #fff; }
.deco-footer { bottom: -6rem; right: -3rem; width: 18rem; height: 18rem; border-color: rgb(var(--on-dark) / .2); }
.ft-inner { position: relative; max-width: 80rem; margin: 0 auto; padding: 4rem 1.25rem; }
.ft-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; border-bottom: 1px solid rgb(var(--on-dark) / .2); padding-bottom: 3.5rem; }
.ft-logo { display: inline-flex; }
.ft-logo img { max-height: 3rem; width: auto; object-fit: contain; }
.ft-tagline { margin-top: 1.5rem; max-width: 20rem; font-size: .875rem; line-height: 1.5rem; color: rgb(var(--on-dark) / .75); }
.ft-label { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .16em; color: rgb(var(--on-dark) / .6); }
.ft-location { margin-top: 1rem; font-family: var(--serif); font-size: 1.5rem; line-height: 2rem; }
.ft-desc { margin-top: .5rem; font-size: .875rem; line-height: 1.5rem; color: rgb(var(--on-dark) / .7); }
.ft-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.ft-nav a { font-size: .875rem; color: rgb(var(--on-dark) / .75); transition: color .2s; }
.ft-nav a:hover { color: #fff; }
.ft-bottom { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; font-size: .75rem; color: rgb(var(--on-dark) / .55); }
.ft-legal { display: flex; gap: 1.5rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- sm: 640px ---------- */
@media (min-width: 640px) {
	.section { padding-left: 2rem; padding-right: 2rem; }
	.hdr-inner, .ft-inner { padding-left: 2rem; padding-right: 2rem; }
	.hero-inner { padding-left: 2rem; padding-right: 2rem; }
	.hdr-cta { display: block; }
	.hero h1 { font-size: 4.5rem; }
	.hero-body { font-size: 1.125rem; }
	.page-hero h1 { font-size: 4.5rem; }
	.h2 { font-size: 3.75rem; }
	.h2-sm { font-size: 3rem; }
	.statement { font-size: 3rem; line-height: 1.15; }
	.grid-approach .h2 { font-size: 3.75rem; }
	.enq-form { padding: 2rem; }
	.role { padding: 2.25rem; }
	.dev-grid { grid-template-columns: 1fr 1fr; }
	.dev { padding: 1.75rem 1.5rem; }
	.dev:nth-child(odd) { padding-left: 0; }
	.dev:nth-child(even) { border-left: 1px solid var(--border); }
	.ft-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- md: 768px ---------- */
@media (min-width: 768px) {
	.logo img { max-height: 3rem; }
	.cols3 { grid-template-columns: repeat(3, 1fr); }
	.cols3 article { border-bottom: 0; padding: 2rem; }
	.cols3 article:first-child { padding-left: 0; }
	.roles, .guides { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: 1fr 1fr; }
	.steps article { padding: 2rem; }
	.steps article:nth-child(odd) { padding-left: 0; }
	.steps article:nth-child(even) { border-left: 1px solid var(--border); }
	.ft-grid { grid-template-columns: 1.4fr .6fr .7fr; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

/* ---------- lg: 1024px ---------- */
@media (min-width: 1024px) {
	.section { padding-top: 8rem; padding-bottom: 8rem; }
	.main-nav { display: flex; }
	.menu-toggle, .mobile-nav { display: none !important; }
	.hero, .hero-inner { min-height: 720px; }
	.hero-inner { padding-bottom: 6rem; }
	.hero h1 { font-size: 6rem; }
	.grid-intro { grid-template-columns: .8fr 1.2fr; gap: 6rem; }
	.grid-approach { grid-template-columns: 1fr 1fr; align-items: end; }
	.grid-enquire { grid-template-columns: 1.2fr .8fr; align-items: center; }
	.form-col { padding-left: 3rem; }
	.grid-side { grid-template-columns: .75fr 1.25fr; gap: 6rem; }
	.grid-cta { grid-template-columns: 1fr .7fr; align-items: end; }
	.grid-cta-dark { grid-template-columns: 1fr .65fr; }
	.ft-inner { padding-top: 5rem; padding-bottom: 5rem; }
}

/* Contact page: numbered "what to expect" steps */
.step-title { margin-top: 1.25rem; }
