/**
 * File: /public_html/assets/css/main.css
 * Purpose: Shared RTR Next Gen Homes design system, header, static pages, forms, and base components.
 * Dependencies: None.
 * Replacement/Patch Status: Full replacement.
 * Credit: Designed inhouse by The Taino Resource Group LLC.
 */

:root {
    --rtr-black: #03070d;
    --rtr-ink: #071a30;
    --rtr-ink-2: #0b213d;
    --rtr-blue: #0a3d91;
    --rtr-red: #c8102e;
    --rtr-gold: #d8b935;
    --rtr-white: #f7f4ec;
    --rtr-paper: #fffaf0;
    --rtr-muted: rgba(247, 244, 236, 0.72);
    --rtr-soft: rgba(247, 244, 236, 0.1);
    --rtr-line: rgba(247, 244, 236, 0.16);
    --rtr-sage: #a7b9a0;
    --rtr-sand: #d8c8a8;
    --rtr-max: 1440px;
    --rtr-radius: 28px;
    --rtr-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--rtr-black);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 5%, rgba(10, 61, 145, 0.38), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(200, 16, 46, 0.18), transparent 28rem),
        linear-gradient(180deg, #02050a 0%, #071a30 42%, #03070d 100%);
    color: var(--rtr-white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 24px;
    z-index: 999;
    background: var(--rtr-gold);
    color: var(--rtr-black);
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 800;
}

.skip-link:focus {
    top: 24px;
}

.site-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.site-shell::before {
    content: "RTR";
    position: fixed;
    left: -8vw;
    top: 8vh;
    z-index: -3;
    font-size: clamp(11rem, 28vw, 34rem);
    font-weight: 900;
    letter-spacing: -0.12em;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.grid-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, black, transparent 80%);
    pointer-events: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(3, 7, 13, 0.72);
    border-bottom: 1px solid var(--rtr-line);
}

.topbar__inner {
    width: min(var(--rtr-max), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.brand__logo {
    display: block;
    width: auto;
    height: 58px;
}

.brand__logo--mobile {
    display: none;
}

.nav {
    display: none;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--rtr-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.74rem;
    font-weight: 750;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--rtr-white);
    outline: none;
}

.nav__cta {
    color: var(--rtr-black) !important;
    background: var(--rtr-gold);
    padding: 13px 18px;
    border-radius: 999px;
}

.mobile-menu-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--rtr-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--rtr-white);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.mobile-menu-btn span::before {
    top: -7px;
}

.mobile-menu-btn span::after {
    top: 7px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--rtr-line);
    padding: 18px 24px 26px;
    background: rgba(3, 7, 13, 0.96);
}

.mobile-panel.is-open {
    display: grid;
    gap: 16px;
}

.mobile-panel a {
    color: var(--rtr-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--rtr-line);
}

.mobile-panel__brand {
    display: inline-flex;
    padding: 0;
    border-bottom: 0;
    margin-bottom: 10px;
}

.mobile-panel__brand-logo {
    width: 160px;
    height: auto;
    display: block;
}

.section,
.page {
    width: min(var(--rtr-max), calc(100% - 32px));
    margin: 0 auto;
}

.page {
    padding: 56px 0 72px;
}

.card {
    border: 1px solid var(--rtr-line);
    border-radius: var(--rtr-radius);
    background: rgba(247, 244, 236, 0.04);
    padding: clamp(24px, 5vw, 48px);
}

.card h1,
.page-title {
    margin: 0 0 26px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.card p,
.page-copy {
    color: var(--rtr-muted);
    max-width: 64ch;
    line-height: 1.6;
}

.quick-links {
    margin-top: 24px;
    padding-left: 18px;
}

.quick-links a {
    color: var(--rtr-gold);
}

.quick-links li {
    margin-bottom: 8px;
}

.eyebrow {
    color: var(--rtr-gold);
    text-transform: uppercase;
    letter-spacing: 0.38em;
    font-size: 0.72rem;
    font-weight: 850;
    margin: 0 0 20px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    cursor: pointer;
}

.btn--gold {
    background: var(--rtr-gold);
    color: var(--rtr-black);
}

.btn--ghost {
    background: transparent;
    color: var(--rtr-white);
    border-color: var(--rtr-line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--rtr-gold);
    outline: none;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: var(--rtr-muted);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.68rem;
    font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--rtr-line);
    border-radius: 22px;
    background: rgba(3, 7, 13, 0.48);
    color: var(--rtr-white);
    padding: 16px 18px;
    font: inherit;
    outline: none;
}

.form-field input,
.form-field select {
    min-height: 54px;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--rtr-gold);
    box-shadow: 0 0 0 4px rgba(216, 185, 53, 0.13);
}

.notice {
    border: 1px solid rgba(216, 185, 53, 0.45);
    background: rgba(216, 185, 53, 0.1);
    color: var(--rtr-white);
    border-radius: 22px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.error-text {
    color: #ffb4b4;
    font-size: 0.82rem;
}

@media (min-width: 760px) {
    .nav {
        display: flex;
    }

    .mobile-menu-btn,
    .mobile-panel {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .topbar__inner {
        min-height: 74px;
    }

    .brand__logo--desktop {
        display: none;
    }

    .brand__logo--mobile {
        display: block;
        height: 48px;
    }

    .actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Homepage motion layer ===
   Subtle sitewide motion for a premium, restrained browsing experience.
   Credit: Designed inhouse by The Taino Resource Group LLC.
*/
:root {
    --rtr-motion-fast: 180ms;
    --rtr-motion-med: 420ms;
    --rtr-motion-slow: 760ms;
    --rtr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.rtr-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity var(--rtr-motion-slow) var(--rtr-ease),
        transform var(--rtr-motion-slow) var(--rtr-ease);
    will-change: opacity, transform;
}

.rtr-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.rtr-reveal[data-motion="soft-left"] {
    transform: translate3d(-22px, 18px, 0);
}

.rtr-reveal[data-motion="soft-right"] {
    transform: translate3d(22px, 18px, 0);
}

.rtr-reveal[data-motion="scale"] {
    transform: translate3d(0, 24px, 0) scale(0.985);
}

.rtr-reveal.is-visible[data-motion="soft-left"],
.rtr-reveal.is-visible[data-motion="soft-right"],
.rtr-reveal.is-visible[data-motion="scale"] {
    transform: translate3d(0, 0, 0) scale(1);
}

.btn,
.nav a,
.mobile-panel a,
.contact-option,
.property-card,
.journey-card,
.map-card,
.guide-panel,
.cta-panel,
.search-card {
    transition:
        transform var(--rtr-motion-fast) var(--rtr-ease),
        border-color var(--rtr-motion-fast) var(--rtr-ease),
        background-color var(--rtr-motion-fast) var(--rtr-ease),
        box-shadow var(--rtr-motion-fast) var(--rtr-ease),
        color var(--rtr-motion-fast) var(--rtr-ease);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.property-card:hover,
.journey-card:hover,
.map-card:hover,
.guide-panel:hover,
.contact-option:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 185, 53, 0.42);
}

.property-card__media img,
.home-rosaura-feature__visual img,
.home-rosaura-feature__media img,
.about-photo-card img {
    transition:
        transform 900ms var(--rtr-ease),
        filter 900ms var(--rtr-ease);
}

.property-card:hover .property-card__media img {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.04);
}

.hero::before,
.site-shell::before {
    animation: rtrFloatMark 14s ease-in-out infinite alternate;
}

@keyframes rtrFloatMark {
    from {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }

    to {
        transform: translate3d(0, -14px, 0) rotate(-2.5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rtr-reveal,
    .rtr-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .btn,
    .nav a,
    .mobile-panel a,
    .contact-option,
    .property-card,
    .journey-card,
    .map-card,
    .guide-panel,
    .cta-panel,
    .search-card,
    .property-card__media img,
    .home-rosaura-feature__visual img,
    .home-rosaura-feature__media img,
    .about-photo-card img {
        transition: none !important;
    }

    .hero::before,
    .site-shell::before {
        animation: none !important;
    }
}
/* === End homepage motion layer === */

/* === Homepage motion layer ===
   Subtle sitewide motion for a premium, restrained browsing experience.
   Credit: Designed inhouse by The Taino Resource Group LLC.
*/
:root {
    --rtr-motion-fast: 180ms;
    --rtr-motion-med: 420ms;
    --rtr-motion-slow: 760ms;
    --rtr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.rtr-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity var(--rtr-motion-slow) var(--rtr-ease),
        transform var(--rtr-motion-slow) var(--rtr-ease);
    will-change: opacity, transform;
}

.rtr-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.rtr-reveal[data-motion="soft-left"] {
    transform: translate3d(-22px, 18px, 0);
}

.rtr-reveal[data-motion="soft-right"] {
    transform: translate3d(22px, 18px, 0);
}

.rtr-reveal[data-motion="scale"] {
    transform: translate3d(0, 24px, 0) scale(0.985);
}

.rtr-reveal.is-visible[data-motion="soft-left"],
.rtr-reveal.is-visible[data-motion="soft-right"],
.rtr-reveal.is-visible[data-motion="scale"] {
    transform: translate3d(0, 0, 0) scale(1);
}

.btn,
.nav a,
.mobile-panel a,
.contact-option,
.property-card,
.journey-card,
.map-card,
.guide-panel,
.cta-panel,
.search-card {
    transition:
        transform var(--rtr-motion-fast) var(--rtr-ease),
        border-color var(--rtr-motion-fast) var(--rtr-ease),
        background-color var(--rtr-motion-fast) var(--rtr-ease),
        box-shadow var(--rtr-motion-fast) var(--rtr-ease),
        color var(--rtr-motion-fast) var(--rtr-ease);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.property-card:hover,
.journey-card:hover,
.map-card:hover,
.guide-panel:hover,
.contact-option:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 185, 53, 0.42);
}

.property-card__media img,
.home-rosaura-feature__visual img,
.home-rosaura-feature__media img,
.about-photo-card img {
    transition:
        transform 900ms var(--rtr-ease),
        filter 900ms var(--rtr-ease);
}

.property-card:hover .property-card__media img {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.04);
}

.hero::before,
.site-shell::before {
    animation: rtrFloatMark 14s ease-in-out infinite alternate;
}

@keyframes rtrFloatMark {
    from {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }

    to {
        transform: translate3d(0, -14px, 0) rotate(-2.5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rtr-reveal,
    .rtr-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .btn,
    .nav a,
    .mobile-panel a,
    .contact-option,
    .property-card,
    .journey-card,
    .map-card,
    .guide-panel,
    .cta-panel,
    .search-card,
    .property-card__media img,
    .home-rosaura-feature__visual img,
    .home-rosaura-feature__media img,
    .about-photo-card img {
        transition: none !important;
    }

    .hero::before,
    .site-shell::before {
        animation: none !important;
    }
}
/* === End homepage motion layer === */


/* Manual featured property gallery */
.manual-property-gallery {
    margin: clamp(32px, 6vw, 72px) auto;
    max-width: 1120px;
    padding: 0 clamp(18px, 4vw, 32px);
}

.manual-property-gallery h2 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.95;
}

.manual-property-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.manual-property-gallery__item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--rtr-line);
    border-radius: 24px;
    background: rgba(3, 7, 13, 0.28);
}

.manual-property-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (min-width: 760px) {
    .manual-property-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .manual-property-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

