/* ── LOCAL FONTS ──────────────────────────────── */
@font-face {
    font-family: "ProximaNova";
    src: url("fonts/ProximaNova-Regular.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "ProximaNova";
    src: url("fonts/ProximaNova-Semibold.otf") format("opentype");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "ProximaNova";
    src: url("fonts/ProximaNova-Bold.otf") format("opentype");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "AntonioLocal";
    src: url("fonts/ANTONIO-REGULAR.TTF") format("truetype");
    font-weight: 400;
    font-display: swap;
}

/* ── BASE ─────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "ProximaNova", "Poppins", sans-serif;
    color: #2a2a2a;
}

/* ── SPLIT LAYOUT ─────────────────────────────── */
.split-layout {
    display: flex;
    min-height: calc(100vh - 88px);
}

/* ── LEFT PANEL ───────────────────────────────── */
.panel-left {
    flex: 0 0 50%;
    max-width: 50%;
    background: #ffffff;
    padding: 48px 56px 0 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.panel-left .panel-wrapper{
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

/* Logo */
.logo-group img {
    max-width: 400px;
    margin-bottom: 2rem;
}

/* Main heading */
.heading-townhomes {
    font-family: "AntonioLocal", "Antonio", sans-serif;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.heading-townhomes .large {
    font-size: clamp(58px, 7.5vw, 100px);
    font-weight: 400;
    letter-spacing: 5px;
    color: #4e7076;
    line-height: 0.95;
}

.heading-townhomes .small {
    font-size: clamp(10px, 2.5vw, 25px);
    line-height: 1;
    color: black;
}

.heading-img {
    max-width: 80%;
    margin-bottom: 2rem;
}

.coming-soon-line {
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #1e2d3a;
    text-transform: uppercase;
    margin: 0 0 26px 0;
}

.coming-soon-line .location {
    font-weight: 400;
}

/* Body copy */
.body-copy {
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.78;
    color: #3a3a3a;
    margin-bottom: 16px;
}

/* Google Map button */
.btn-google-map {
    display: inline-block;
    border: 1.5px solid #2a2a2a;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 400;
    color: #2a2a2a;
    text-decoration: none;
    letter-spacing: 0.3px;
    margin-bottom: 32px;
    transition: background 0.2s ease;
}
.btn-google-map:hover {
    background: #f4f4f4;
    color: #2a2a2a;
}
.btn-google-map .map-highlight {
    color: #4a7c59;
    font-weight: 700;
}

/* Photo grid */

.mosaic-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 10px;
}

.item-large img,
.item-top-right img,
.item-bottom-left img,
.item-bottom-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-large {
    height: 100%;
}

.right-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── RIGHT PANEL (Form) ───────────────────────── */
.panel-right {
    flex: 0 0 50%;
    max-width: 50%;
    background-color: #1a3a2e;
    background-image: url("../images/form-bg.jpeg");
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.panel-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 46, 36, 0.83);
}
.panel-right > * {
    position: relative;
    z-index: 1;
}

.panel-right .form-wrapper{
    max-width: 800px;
    width: 100%;
}

.form-heading {
    font-family: "AntonioLocal", "Antonio", sans-serif;
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.15;
}
.form-subheading {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* Form fields — floating label */
.rw-field {
    position: relative;
    padding-top: 20px;
    margin-bottom: 24px;
}

.rw-field label {
    position: absolute;
    top: 22px; /* sits over the input text baseline */
    left: 0;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 0;
    pointer-events: none;
    transition: top 0.22s ease, font-size 0.22s ease,
                color 0.22s ease, letter-spacing 0.22s ease;
    line-height: 1;
}

/* Floated state: field is focused OR has a value */
.rw-field.is-focused label,
.rw-field.has-value label {
    top: 0;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.rw-field input,
.rw-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    padding: 5px 0 8px;
    font-size: 18px;
    font-family: "ProximaNova", "Poppins", sans-serif;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: border-color 0.2s, outline-color 0.2s;
}
.rw-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.7)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px;
    padding-right: 26px;
    cursor: pointer;
}
.rw-field select option {
    background: #1a3a2e;
    color: #fff;
}
.rw-field input:focus,
.rw-field select:focus {
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding-left: 10px;
}

/* Field error state */
.rw-field.has-error input,
.rw-field.has-error select {
    border-bottom-color: #f87171;
}
.rw-field.has-error label {
    color: #f87171;
}
.rw-error {
    display: block;
    font-size: 11px;
    color: #f87171;
    margin-top: 4px;
    min-height: 16px;
    letter-spacing: 0.3px;
}

/* Consent */
.consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 24px;
    width: 100%;
}
.consent-wrap input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #4e7076;
}
.consent-wrap p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.55;
    margin: 0;
    max-width: 500px;
}
.consent-wrap a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
}

/* Submit */
.btn-submit-rw {
    background: #ffffff;
    color: #1a3a2e;
    border: none;
    padding: 14px 44px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: "ProximaNova", "Poppins", sans-serif;
    transition: background 0.2s;
}
.btn-submit-rw:hover {
    background: #e6e6e6;
}

/* ── FOOTER ───────────────────────────────────── */
.site-footer {
    background: #1a2a3a;
    padding: 22px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
}
.footer-logo-wrap img {
    width: 200px;
}
.footer-brand-text {
    color: #fff;
}
.footer-brand-text .brand-name {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.8px;
    line-height: 1.25;
}
.footer-brand-text .brand-tagline {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.6);
}
.footer-copy {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    line-height: 1.7;
}
.footer-copy a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-social a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* Reduced motion — disable all AOS animations */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Autofill detection for floating label */
@keyframes rw-autofill-detect { from {} to {} }
input:-webkit-autofill { animation-name: rw-autofill-detect; animation-duration: 1ms; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 991px) {
    .split-layout {
        flex-direction: column;
        min-height: auto;
    }
    .panel-left,
    .panel-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .panel-left {
        padding: 40px 30px 0;
    }
    .panel-right {
        padding: 50px 30px;
    }
    .rw-field label {
        font-size: 16px;
    }
    .rw-field.is-focused label,
    .rw-field.has-value label {
        font-size: 10px;
    }
    .rw-field input,
    .rw-field select {
        font-size: 16px;
    }
    .site-footer {
        flex-direction: column;
        gap: 18px;
        padding: 28px 20px;
        text-align: center;
    }
}
@media (max-width: 575px) {
    .panel-left {
        padding: 30px 20px 0;
    }
    .panel-right {
        padding: 40px 20px;
    }
    .photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .photo-main {
        grid-row: auto;
    }
    .photo-main img,
    .photo-small img {
        height: 200px;
    }
}
