/* ── Residential page styles ─────────────────────────────────────────────── */

/* Header bar */
.res-header {
    background: linear-gradient(160deg, #0d1520 0%, #111d2e 100%);
    border-bottom: 1px solid rgba(236, 244, 255, 0.10);
    padding: 14px 0;
}

.res-header-inner {
    width: min(1220px, 94%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.res-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.res-brand-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 220, 255, 0.70);
    font-weight: 700;
}

.res-brand-name {
    margin: 4px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f4f8ff;
}

.res-nav-btn {
    font-size: 0.86rem;
}

/* Universal page-level gradient — transition completes before the shell */
.res-page-bg {
    min-height: 100vh;
    padding-bottom: 64px;
    background: linear-gradient(
        to bottom,
        #0d1520 0%,
        #0f1b2f 8%,
        #1a3050 18%,
        #2c4a69 28%,
        #4a6f8c 36%,
        #7298b5 44%,
        #a3bdd4 52%,
        #c8d9e8 58%,
        #e4ebf5 64%,
        #e8eef6 100%
    );
}

/* Hero — transparent, just handles layout and text color */
.res-hero {
    background: transparent;
    padding: 80px 0 100px;
}

.res-hero-inner {
    width: min(820px, 90%);
    margin: 0 auto;
    text-align: center;
    color: #f0f6ff;
}

.res-eyebrow {
    margin: 0 0 16px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(100, 170, 255, 0.85);
}

.res-hero h1 {
    margin: 0 0 20px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    line-height: 1.1;
    color: #fff;
}

.res-hero-sub {
    margin: 0 auto 32px;
    max-width: 58ch;
    color: rgba(220, 235, 255, 0.80);
    line-height: 1.75;
    font-size: 1.05rem;
}

/* Shell overrides for residential */
.res-shell {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: var(--radius);
    border-top: none;
    background: rgba(228, 235, 245, 0.88);
    backdrop-filter: none;
    box-shadow: var(--shadow);
    padding-top: 0;
    padding-bottom: 48px;
}

/* Breathing room above the chips row */
.res-shell .modern-metrics {
    margin-top: 40px;
    padding-top: 8px;
}

/* Why grid */
.res-why-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.res-why-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 22px 20px;
    transition: transform 200ms ease, border-color 200ms ease;
}

.res-why-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 93, 231, 0.30);
}

.res-why-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
}

.res-why-card h3 {
    margin: 0 0 8px;
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
}

.res-why-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.91rem;
}

/* All-listings grid — allow more columns */
.res-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

/* Contact form section */
.res-form-section {
    padding-top: 16px;
}

.res-success-banner {
    position: relative;
    z-index: 1;
    background: rgba(15, 93, 231, 0.10);
    border: 1px solid rgba(15, 93, 231, 0.28);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.res-form-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.res-form-copy h2 {
    margin: 10px 0 14px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.res-form-copy p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.res-form-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.res-form-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.res-form-bullets li::before {
    content: "✓";
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 700;
    margin-top: 1px;
}

/* Form */
.res-form {
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 8px 32px rgba(12, 20, 31, 0.08);
}

.res-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.res-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.res-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.res-field input,
.res-field select,
.res-field textarea {
    font-family: "Manrope", sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 21, 26, 0.18);
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    resize: vertical;
}

.res-field input:focus,
.res-field select:focus,
.res-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 93, 231, 0.12);
}

.res-submit {
    font-family: "Manrope", sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 93, 231, 0.26);
    transition: transform 200ms ease, box-shadow 200ms ease;
    align-self: flex-start;
}

.res-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 93, 231, 0.34);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .res-form-layout {
        grid-template-columns: 1fr;
    }

    .res-why-grid {
        grid-template-columns: 1fr;
    }

    .res-form-row {
        grid-template-columns: 1fr;
    }
}
