/*
 * Landing pages (/rental-appraisal/, /property-management/) and their
 * thank-you pages — templates/pages/landing.php. Standalone pages: no site
 * header/footer, their own top bar and copyright line.
 */

.landing { --landing-pad: 48px 64px; }
.landing .title { font-size: 50px; line-height: 70px; }
.landing .label { letter-spacing: 1.12px; }
/* Body copy paragraphs keep the original's spacing (18px above, 27px below). */
.landing .lead > p, .landing-points p, .landing-step__text p { margin: 18px 0 27px; }
@media (max-width: 1024px) { .landing .title { font-size: 3rem; line-height: 1.4; } }
@media (max-width: 767px) {
	.landing { --landing-pad: 32px; }
	.landing .title { font-size: 2rem; line-height: 1.5; }
}

/* "Get Free Appraisal Now" (links back to the form). */
.landing-cta { display: flex; justify-content: center; }
.landing-cta .btn { padding: 15px 20px; border: 0; font-size: 1.125rem; line-height: 1; font-weight: 700; text-transform: none; }

/* Hero: top bar, headline, form card, review badges ----------------------- */

.landing-hero { position: relative; isolation: isolate; min-height: 100vh; padding: 20px 20px 60px; color: var(--c-white); background: var(--c-ink); }
.landing--thanks .landing-hero { min-height: 80vh; }
.landing-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .25); }
.landing-hero__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }

.landing-bar { display: flex; flex-direction: column; align-items: flex-start; padding: 10px; }
.landing-bar__logo { width: auto; height: 60px; }
.landing--rental-appraisal .landing-bar__logo { height: 50px; }
.landing-bar__name { margin: 18px 0 -3px; font-size: var(--fs-body); line-height: 1.5; font-weight: 300; text-align: center; }

.landing-intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto auto auto 1fr; gap: 20px; padding: 10px; }
.landing-intro > * { grid-column: 1; padding-right: 80px; }
.landing-intro__title { color: inherit; }
.landing-intro__lead { color: inherit; }
.landing-intro__badges { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.landing-intro__badges img:first-child { max-width: 250px; }
.landing-intro__badges img:last-child { max-width: 400px; }

.landing-form { grid-column: 2; grid-row: 1 / -1; padding: 40px; border-radius: 20px; background: var(--c-white); color: var(--c-text); display: flex; flex-direction: column; gap: 20px; }
.landing-form__title { font-family: var(--f-body); font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: 1.12px; text-transform: uppercase; color: var(--c-gold); }

@media (max-width: 1024px) {
	.landing-intro { grid-template-columns: 1fr; grid-template-rows: none; }
	.landing-intro > *, .landing-form { grid-column: 1; grid-row: auto; padding-right: 0; }
	.landing-form { padding: 40px; }
}
@media (max-width: 767px) {
	.landing-hero { padding-bottom: 20px; }
	.landing-form { padding: 20px; }
	.landing-form__title { font-size: 1.125rem; line-height: 30px; }
	.landing-intro__badges { align-items: center; }
	.landing-intro__badges img:last-child { max-width: 100%; }
}

/* The 4-step form, styled like the original Elementor form. */
.landing-form .form { row-gap: 10px; column-gap: 10px; font-family: var(--f-body); }
.landing-form .form__progress { height: 20px; margin-bottom: 10px; background: #7a7a7a; font-size: .8125rem; line-height: 20px; font-weight: 500; }
.landing-form .form__progress span { padding: 0 15px 0 0; background: var(--c-line); color: #7a7a7a; text-align: right; }
.landing-form .form__field { gap: 0; }
.landing-form .form__field:has(> input.form__input) { margin-bottom: 16px; }
.landing-form .form__group { gap: 0; }
.landing-form .form__label, .landing-form .form__legend { padding-bottom: 8px; font-size: var(--fs-body); line-height: 1.8; color: #333; }
.landing-form .form__options { gap: 0; }
.landing-form .form__check { min-height: 36px; gap: 13px; font-size: var(--fs-ui); line-height: 1.8; color: #333; }
.landing-form .form__check input { width: 13px; height: 13px; }
.landing-form .form__input { min-height: 40px; padding: 5px 14px; border: 1px solid #69727d; border-radius: 3px; font-size: var(--fs-ui); line-height: 1.4; color: #7a7a7a; }
.landing-form .form__input::placeholder { color: #7a7a7a; }
.landing-form select.form__input { padding-right: 20px; }
.landing-form .form__actions { gap: 10px; }
.landing-form .form__actions .btn { min-height: 40px; padding: 0 24px; border: 0; background: var(--c-gold-soft); color: var(--c-white); font-size: .9375rem; line-height: 1; font-weight: 600; text-transform: none; }
.landing-form .form__actions .btn:hover { background: var(--c-ink); }
@media (max-width: 767px) {
	.landing-form .form__label, .landing-form .form__legend { font-size: var(--fs-ui); }
	.landing-form .form__actions { justify-content: center; }
	.landing-form .form__captcha { justify-self: center; width: 100%; }
}

/* Two-column text bands ("Why it matters", "How it works") ---------------- */

.landing-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 70vh; }
.landing-cols__col { display: flex; flex-direction: column; gap: 20px; padding: var(--landing-pad); }
@media (max-width: 767px) { .landing-cols { grid-template-columns: 1fr; min-height: 0; } }

.landing-points { margin: 0; list-style: none; gap: 5px; }
.landing-points .label { padding-bottom: 5px; }
.landing--thanks .landing-points { gap: 20px; }
.landing--thanks .landing-points .label { padding-bottom: 20px; }
.landing-points p, .landing-step__text { font-size: var(--fs-body); line-height: 1.5; font-weight: 300; color: var(--c-text); }
.landing-points a { text-decoration: underline; text-underline-offset: 2px; }

/* How your free appraisal works: icon + connector, big number, text. */
.landing-steps { grid-template-columns: 40% 60%; }
.landing-steps__body { gap: 5px; padding-inline: 16px; }
.landing-steps__list { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.landing-step { counter-increment: step; display: grid; grid-template-columns: 123px auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px; padding: 10px; }
.landing-step__icon { grid-area: 1 / 1; justify-self: center; width: 100px; }
.landing-step::after { content: "|\A|"; white-space: pre; grid-area: 2 / 1; text-align: center; font-size: var(--fs-lead); line-height: 1.3; font-weight: 600; color: var(--c-gold); }
.landing-step:last-child::after { content: none; }
.landing-step::before { content: counter(step); grid-area: 1 / 2 / 3 / 3; font-family: "Roboto", var(--f-accent); font-size: 60px; line-height: 1; font-weight: 600; color: var(--c-gold-soft); }
.landing-step__body { grid-area: 1 / 3 / 3 / 4; }
.landing-step__title, .landing-step__text { padding: 10px; }
.landing-steps .landing-cta { justify-content: flex-start; }
@media (max-width: 1024px) { .landing-steps { grid-template-columns: 1fr; min-height: 0; } }
@media (max-width: 767px) {
	.landing-steps__body { padding-inline: 32px; }
	.landing-step { grid-template-columns: 1fr; grid-template-rows: none; }
	.landing-step::before, .landing-step::after { content: none; }
	.landing-step__icon, .landing-step__body { grid-area: auto; justify-self: start; }
	.landing-step__title::before { content: counter(step) ". "; }
}

/* Why landlords choose CT Real Estate (text + photo). */
.landing-choose { grid-template-columns: 1fr 43%; }
.landing-choose .split__body { padding: var(--landing-pad); }
@media (max-width: 1024px) {
	.landing-choose { grid-template-columns: 1fr; }
	.landing-choose .split__media { aspect-ratio: auto; min-height: 300px; }
}

/* Award photo + caption. */
.landing-award { display: flex; flex-direction: column; gap: 20px; margin-block: 40px; padding: 10px; }
.landing-award figure { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.landing-award .eyebrow { line-height: 1; }

/* Testimonials (shared component), tightened to the landing layout. */
.landing .testimonials { padding-block: 10px; }
.landing .testimonials .container { max-width: calc(1298px + 2 * var(--gutter)); }
.landing .testimonials .section-head { margin-bottom: 20px; }
.landing .testimonials__grid { --gap: 19px 33px; } /* rows, columns */
.landing .testimonial { padding: 32px; border-color: var(--c-gold-soft); }
.landing .testimonial .stars { gap: 7px; font-size: 18px; }
@media (max-width: 767px) {
	.landing .testimonials .container { padding-inline: 26px; }
	/* Phones: the cards stack flush, with a 20px break between the two rows of three. */
	.landing .testimonials__grid { --gap: 0; }
	.landing .testimonials__grid > :nth-child(4) { margin-top: 20px; }
}

/* Team: three stacked cards (photo, role, name, bio). */
.landing-team { max-width: calc(var(--container) + 20px); margin-inline: auto; padding: 10px 10px 60px; }
.landing-team__grid { --cols-md: 3; --gap: 20px; margin-block: 20px 10px; padding: 10px; }
.landing .person { display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.landing .person > div { display: flex; flex-direction: column; gap: 20px; }
.landing .person__photo { aspect-ratio: 5 / 4; object-position: top center; }
.landing .person__role { line-height: 1; letter-spacing: 0; color: var(--c-gold-soft); }
.landing .person__name { margin-top: 0; font-size: 40px; line-height: 1; }
.landing .person__bio { margin-top: 0; }
@media (max-width: 767px) {
	.landing .person__name { font-size: 2rem; }
	/* Photos are cropped taller on phones (130%, from the top). */
	.landing .person { gap: 8px; }
	.landing .person__photo { aspect-ratio: 330 / 344; }
}

/* Copyright line. */
.landing-footer { padding: 16px 20px 19px; background: var(--c-ink); color: var(--c-white); text-align: center; font-weight: 300; }
.landing-footer a { color: inherit; text-decoration: underline; }
.landing-footer a:hover { color: var(--c-gold); }
