/*
Theme Name: The Yellow India — Real Estate Growth
Theme URI: https://theyellowindia.in
Author: The Yellow India
Description: Lead-generation theme for The Yellow India. Segment pages for developers, brokers and channel partners, city pages, a CPL calculator, a qualifying lead form with budget routing, lead inbox with CSV export, schema and llms.txt.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: tyi
*/

:root {
	--yellow: #FFC400;
	--yellow-soft: #FFE48A;
	--ink: #17150F;
	--ink-2: #4A463C;
	--cream: #FAF5EA;
	--white: #FFFFFF;
	--line: rgba(23, 21, 15, 0.16);
	--line-strong: rgba(23, 21, 15, 0.32);
	--display: "Bricolage Grotesque", "Montserrat", "Arial Black", sans-serif;
	--body: "Spline Sans", "Open Sans", "Segoe UI", sans-serif;
	--wrap: 1180px;
	--gut: clamp(20px, 4vw, 40px);
	--r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.screen-reader-text { 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: 999; width: auto; height: auto; clip: auto; background: var(--yellow); padding: 10px 16px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	font: 600 16px/1 var(--body);
	border: 2px solid var(--ink); border-radius: var(--r);
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--yellow); }
.btn-primary:hover { background: #2c2920; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-soft); }
.btn-wa svg { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 245, 234, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { max-height: 46px; width: auto; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.wordmark b { background: var(--yellow); padding: 2px 6px; margin: 0 2px; border-radius: 3px; }

.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav-primary a { display: block; white-space: nowrap; padding: 10px 11px; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: var(--r); }
.nav-primary a:hover, .nav-primary .current-menu-item > a { background: var(--white); }
.nav-primary .sub-menu { display: none; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.btn-short { display: none; }
.menu-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--r); height: 44px; padding: 0 14px; font: 600 15px var(--body); cursor: pointer; }

@media (max-width: 1180px) {
	.menu-toggle { display: inline-flex; align-items: center; }
	.header-cta .btn-ghost { display: none; }
	.nav-primary { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
	.nav-primary.is-open { display: block; }
	.nav-primary ul { flex-direction: column; align-items: stretch; padding: 12px var(--gut) 20px; }
	.nav-primary a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
}
@media (max-width: 520px) {
	.btn-long { display: none; }
	.btn-short { display: inline; }
	.header-cta .btn { padding: 0 14px; }
	.wordmark { font-size: 19px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink .muted, .bg-ink .section-head p { color: rgba(250, 245, 234, 0.72); }
.bg-yellow { background: var(--yellow); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--ink-2); }

/* The tower: a building section where each floor is a funnel stage. */
.tower { position: relative; padding-bottom: 4px; }
.tower-caption { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.floors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.floor {
	position: relative;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 64px; padding: 0 20px;
	border: 2px solid var(--ink); border-bottom-width: 0;
	background: var(--white);
}
.floor-win { flex: 1 1 auto; min-width: 14px; height: 20px; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(23,21,15,.09) 10px 22px); }
.floor.is-roof .floor-win { background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(23,21,15,.14) 10px 22px); }
.floor:last-child { border-bottom-width: 2px; }
.floor-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; flex: none; }
.floor-what { flex: 0 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.25; color: var(--ink-2); text-align: right; }
.floor.is-roof { background: var(--yellow); }
.floor.is-roof .floor-what { color: var(--ink); }
.floor:nth-child(1) { margin: 0 10%; }
.floor:nth-child(2) { margin: 0 7%; }
.floor:nth-child(3) { margin: 0 5%; }
.floor:nth-child(4) { margin: 0 2%; }
.ground { height: 10px; background: var(--ink); margin: 0 -12px; border-radius: 2px; }

@media (prefers-reduced-motion: no-preference) {
	.floor-name { flex: none; }
	.floor { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
	.floor:nth-child(5) { animation-delay: .05s; }
	.floor:nth-child(4) { animation-delay: .17s; }
	.floor:nth-child(3) { animation-delay: .29s; }
	.floor:nth-child(2) { animation-delay: .41s; }
	.floor:nth-child(1) { animation-delay: .53s; }
	@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 1100px) { .floor-what { display: none; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Proof strip ---------- */
.proof { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.proof .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { padding: 28px 24px 28px 0; }
.proof-item + .proof-item { border-left: 1px solid var(--line-strong); padding-left: 24px; }
.proof-value { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; display: block; }
.proof-label { font-size: 15px; color: var(--ink-2); }
@media (max-width: 700px) {
	.proof .wrap { grid-template-columns: 1fr; }
	.proof-item + .proof-item { border-left: 0; border-top: 1px solid var(--line-strong); padding-left: 0; }
}

/* ---------- Segment chooser ---------- */
.choose { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.choose li { border-bottom: 2px solid var(--ink); }
.choose a {
	display: grid; grid-template-columns: minmax(200px, 1fr) 1.4fr auto; gap: 24px; align-items: center;
	padding: 30px 8px; text-decoration: none;
	transition: background-color .15s ease, padding .2s ease;
}
.choose a:hover { background: var(--yellow); padding-left: 20px; padding-right: 20px; }
.choose-who { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.05; }
.choose-pain { color: var(--ink-2); }
.choose a:hover .choose-pain { color: var(--ink); }
.choose-go { font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
	.choose a { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Ruled lists (services, deliverables) ---------- */
.ruled { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
.ruled-item { padding: 26px 0; border-top: 1px solid var(--line-strong); }
.ruled-item h3 { margin-bottom: 8px; }
.ruled-item h3 a { text-decoration: none; }
.ruled-item h3 a:hover { text-decoration: underline; }
.ruled-item p { color: var(--ink-2); margin: 0; }
.bg-ink .ruled-item { border-color: rgba(250,245,234,.25); }
.bg-ink .ruled-item p { color: rgba(250,245,234,.72); }
@media (max-width: 760px) { .ruled { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li::before {
	content: counter(step);
	display: grid; place-items: center;
	width: 44px; height: 44px; margin-bottom: 18px;
	border-radius: 50%; background: var(--yellow); color: var(--ink);
	font: 800 18px/1 var(--display);
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: 12px; height: 2px; background: rgba(250,245,234,.25); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: rgba(250,245,234,.72); font-size: 16px; }
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Funnel row on segment pages ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.flow li { flex: 1 1 160px; padding: 18px 20px; border: 2px solid var(--ink); margin-right: -2px; margin-bottom: -2px; background: var(--white); font-weight: 600; }
.flow li:last-child { background: var(--yellow); }
.flow small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* ---------- Feature case / pricing teaser ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.price-big { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; color: var(--yellow); letter-spacing: -0.03em; }

.packages { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--white); }
.package { padding: 32px 28px; display: flex; flex-direction: column; }
.package + .package { border-left: 2px solid var(--ink); }
.package.is-featured { background: var(--yellow); }
.package-for { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.package.is-featured .package-for { color: var(--ink); }
.package-price { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; margin-bottom: 18px; }
.package ul { margin: 0 0 24px; padding-left: 20px; }
.package li { margin-bottom: 6px; }
.package .btn { margin-top: auto; }
@media (max-width: 860px) {
	.packages { grid-template-columns: 1fr; }
	.package + .package { border-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; gap: 20px; align-items: center;
	padding: 22px 0; font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 28px/1 var(--display); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Lead form ---------- */
.lead-section .split { align-items: start; }
.lead-form {
	background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
	padding: clamp(24px, 4vw, 40px);
}
.form-note { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; padding: 10px 14px; background: var(--cream); border-radius: var(--r); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field select {
	width: 100%; min-height: 50px; padding: 0 14px;
	font: 400 16px var(--body); color: var(--ink);
	background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: 2px solid var(--yellow); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.lead-form .btn { width: 100%; margin-top: 6px; }
.form-error { background: #FDE8E4; border: 1.5px solid #B3261E; color: #5C130F; padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; font-size: 15px; }
.is-hidden { display: none; }
.form-after { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

.lead-points { list-style: none; padding: 0; margin: 28px 0 0; }
.lead-points li { padding: 14px 0 14px 34px; border-top: 1px solid rgba(23,21,15,.25); position: relative; }
.lead-points li::before { content: ""; position: absolute; left: 0; top: 20px; width: 18px; height: 10px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 2px solid var(--ink); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 16ch; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); background: var(--white); }
.calc-in { padding: clamp(24px, 4vw, 40px); }
.calc-out { padding: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--cream); }
.calc-out dl { margin: 0; }
.calc-out dt { font-size: 15px; color: rgba(250,245,234,.72); margin-top: 22px; }
.calc-out dt:first-child { margin-top: 0; }
.calc-out dd { margin: 4px 0 0; font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.05 var(--display); color: var(--yellow); }
.calc-out .small { font-size: 14px; color: rgba(250,245,234,.6); margin-top: 26px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Entry content ---------- */
.entry { max-width: 72ch; }
.entry h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 16px; }
.entry th, .entry td { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: left; }
.entry th { background: var(--white); }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); }
.entry img { border-radius: var(--r); }

/* ---------- Blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--line-strong); padding: 26px 0; display: grid; grid-template-columns: 140px 1fr; gap: 24px; }
.post-list time { font-size: 14px; color: var(--ink-2); padding-top: 6px; }
.post-list h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 8px; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
@media (max-width: 600px) { .post-list li { grid-template-columns: 1fr; gap: 4px; } }
.pagination { margin-top: 40px; display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: var(--r); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--yellow); }

.post-cta { margin-top: 56px; padding: 32px; background: var(--yellow); border-radius: var(--r); }
.post-cta h3 { margin-bottom: 10px; }

/* ---------- Tools hub ---------- */
.tools { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tools li { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.tools h3 { margin: 0; }
.tools p { margin: 0; color: var(--ink-2); }
.tools .btn { min-height: 46px; }
@media (max-width: 760px) { .tools li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 16px; letter-spacing: 0; margin-bottom: 14px; color: var(--yellow); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; color: rgba(250,245,234,.85); }
.footer-grid a { color: var(--cream); text-decoration: none; opacity: .85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-brand p { color: rgba(250,245,234,.72); max-width: 34ch; }
.footer-brand .wordmark b { color: var(--ink); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(250,245,234,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(250,245,234,.6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
	position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
	display: inline-flex; align-items: center; gap: 8px;
	height: 54px; padding: 0 18px 0 14px;
	background: #1FAF54; color: #fff; border-radius: 27px;
	font-weight: 600; text-decoration: none;
	box-shadow: 0 6px 18px rgba(23,21,15,.25);
}
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 0 14px; } }

/* ---------- Thanks ---------- */
.thanks-box { border: 2px solid var(--ink); background: var(--white); padding: clamp(28px, 5vw, 48px); max-width: 760px; border-radius: var(--r); }
