/* =========================================================
   RK COZY LIVING
   MAIN STYLESHEET
   ========================================================= */

:root {
    --green-dark: #20382f;
    --green: #315447;
    --green-light: #59776a;

    --cream: #f7f4ee;
    --cream-dark: #ece7dc;
    --white: #ffffff;

    --gold: #c69b52;
    --gold-dark: #a97e3b;
    --gold-light: #dfc48e;

    --text: #26332d;
    --text-light: #65716b;
    --text-muted: #7b837e;

    --border: #ded8cb;

    --shadow: 0 18px 50px rgba(32, 56, 47, 0.10);
    --shadow-soft: 0 8px 30px rgba(32, 56, 47, 0.08);

    --radius: 18px;
    --radius-small: 12px;

    --max-width: 1200px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.15;
    color: var(--green-dark);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

h3 {
    font-size: 1.45rem;
}

p {
    color: var(--text-light);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 244, 238, 0.96);
    border-bottom: 1px solid rgba(222, 216, 203, 0.8);
    backdrop-filter: blur(14px);
}

.nav-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green-dark);
    color: var(--gold-light);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 7px 20px rgba(32, 56, 47, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: var(--green-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
}

.brand-text span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--green-dark);
}

.nav-button,
.portal-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    transition: 0.25s ease;
}

.nav-button {
    background: var(--green-dark);
    color: var(--white);
}

.nav-button:hover {
    background: var(--green);
    transform: translateY(-2px);
}

.portal-login-link {
    border: 1px solid rgba(198, 155, 82, 0.45);
    background: rgba(198, 155, 82, 0.10);
    color: var(--gold-dark);
}

.portal-login-link:hover {
    background: var(--gold);
    color: var(--green-dark);
    transform: translateY(-2px);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    transition: 0.25s ease;
}

.button-primary {
    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(32, 56, 47, 0.14);
}

.button-primary:hover {
    background: var(--green);
    transform: translateY(-2px);
}

.button-secondary,
.button-outline {
    border-color: var(--green-dark);
    background: transparent;
    color: var(--green-dark);
}

.button-secondary:hover,
.button-outline:hover {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 70px 0 90px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(198, 155, 82, 0.14),
            transparent 28%
        ),
        var(--cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 65px;
}

.hero-content h1 span,
.section-heading h2 span,
.contact-content h2 span {
    color: var(--gold-dark);
}

.hero-text {
    max-width: 600px;
    margin: 25px 0 30px;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 38px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    color: var(--green-dark);
    font-size: 14px;
}

.hero-trust span {
    color: var(--text-muted);
    font-size: 11px;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.hero-image-card img {
    width: 100%;
    min-height: 500px;
    object-fit: cover;
}

.hero-image-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background: rgba(32, 56, 47, 0.88);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.hero-image-caption span,
.hero-image-caption small {
    display: block;
}

.hero-image-caption span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
}

.hero-image-caption small {
    margin-top: 3px;
    color: var(--gold-light);
    font-size: 11px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 100px 0;
}

.section:nth-of-type(even) {
    background: var(--white);
}

.section-heading {
    max-width: 850px;
    margin-bottom: 55px;
}

.section-heading p {
    max-width: 700px;
    margin-top: 18px;
    font-size: 16px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading.centered p {
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-content p + p {
    margin-top: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
}

.text-link span {
    color: var(--gold-dark);
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--cream);
}

.stat strong {
    color: var(--gold-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 38px;
}

.stat span {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}


/* =========================================================
   WHY US
   ========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 13px;
    background: rgba(198, 155, 82, 0.14);
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
}

.feature-card p {
    margin-top: 12px;
    font-size: 13px;
}


/* =========================================================
   HOMES
   ========================================================= */

.homes-section {
    background: var(--cream);
}

.homes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.home-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.home-card.unavailable {
    opacity: 0.82;
}

.home-image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: var(--cream-dark);
}

.home-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-card:hover .home-image img {
    transform: scale(1.035);
}

.home-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--green-dark);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-content {
    padding: 28px;
}

.home-status {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.home-content h3 {
    margin-bottom: 10px;
    font-size: 25px;
}

.home-details {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
}

.home-location {
    margin-top: 7px;
    font-size: 12px;
}

.home-location span {
    color: var(--gold-dark);
    padding: 0 4px;
}

.home-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.home-features div {
    padding: 13px;
    border-radius: 10px;
    background: var(--cream);
}

.home-features strong,
.home-features span {
    display: block;
}

.home-features strong {
    color: var(--green-dark);
    font-size: 11px;
}

.home-features span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-actions .button {
    min-height: 44px;
    padding: 0 17px;
    font-size: 11px;
}

.homes-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 30px;
    padding: 22px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--white);
}

.homes-note p {
    font-size: 13px;
}

.homes-note strong {
    color: var(--green-dark);
}


/* =========================================================
   RESIDENT PORTAL
   ========================================================= */

.tenant-section {
    background: var(--green-dark) !important;
}

.tenant-section .eyebrow {
    color: var(--gold-light);
}

.tenant-section h2,
.tenant-section h2 span {
    color: var(--white);
}

.tenant-section .section-heading p {
    color: rgba(255, 255, 255, 0.68);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.portal-card {
    min-height: 240px;
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    transition: 0.25s ease;
}

.portal-card:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-5px);
    border-color: rgba(198, 155, 82, 0.55);
}

.portal-number {
    margin-bottom: 30px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
}

.portal-card h3 {
    color: var(--white);
    font-size: 20px;
}

.portal-card p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.portal-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
}

.portal-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 25px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.portal-cta strong,
.portal-cta span {
    display: block;
}

.portal-cta strong {
    color: var(--white);
}

.portal-cta span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.portal-cta .button-primary {
    background: var(--gold);
    color: var(--green-dark);
}

.portal-cta .button-primary:hover {
    background: var(--gold-light);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 75px;
    align-items: start;
}

.contact-content h2 {
    max-width: 560px;
}

.contact-content > p {
    max-width: 560px;
    margin-top: 18px;
}

.contact-content .button {
    margin-top: 25px;
}

.contact-boxes {
    display: grid;
    gap: 14px;
}

.contact-box {
    display: flex;
    gap: 18px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--cream);
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green-dark);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
}

.contact-label {
    display: block;
    margin-bottom: 5px;
    color: var(--gold-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.contact-box a,
.contact-box strong {
    display: block;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
}

.contact-box a:hover {
    color: var(--gold-dark);
}

.contact-box p {
    margin-top: 5px;
    font-size: 11px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 60px 0 25px;
    background: #172b24;
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 70px;
    padding-bottom: 45px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .brand-mark {
    background: var(--gold);
    color: var(--green-dark);
}

.footer-logo .brand-text strong {
    color: var(--white);
}

.footer-logo .brand-text span {
    color: rgba(255, 255, 255, 0.45);
}

.footer-brand p {
    max-width: 350px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: var(--gold-light);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links a,
.footer-links span {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.40);
    font-size: 10px;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.image-error {
    min-height: 200px;
    background: linear-gradient(
        135deg,
        #ece7dc,
        #dcd5c7
    );
    object-fit: contain !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .nav-links {
        gap: 15px;
    }

    .main-nav {
        gap: 12px;
    }

    .feature-grid,
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        gap: 40px;
    }

    .footer-inner {
        gap: 40px;
    }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 850px) {

    .nav-container {
        min-height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
        flex-wrap: wrap;
    }

    .main-nav {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 1;
        width: 100%;
        justify-content: center;
        padding-top: 5px;
        overflow-x: auto;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 55px;
    }

    .hero-image-card img {
        min-height: 420px;
    }

    .about-stats {
        margin-top: 10px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--max-width)
        );
    }

    .section {
        padding: 70px 0;
    }

    .brand-text span {
        display: none;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 18px;
        padding-bottom: 4px;
    }

    .nav-links a {
        font-size: 11px;
        white-space: nowrap;
    }

    .nav-button,
    .portal-login-link {
        min-height: 38px;
        padding: 0 14px;
        font-size: 10px;
    }

    .hero {
        padding: 50px 0 65px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-trust {
        gap: 18px;
    }

    .hero-image-card img {
        min-height: 320px;
    }

    .about-stats,
    .feature-grid,
    .homes-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .home-features {
        grid-template-columns: 1fr;
    }

    .homes-note,
    .portal-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-grid {
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .main-nav {
        align-items: flex-start;
    }

    .nav-button,
    .portal-login-link {
        margin-top: 5px;
    }

    .hero-buttons,
    .home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}