:root {
    --navy: #082e57;
    --navy-deep: #051f3c;
    --navy-soft: #123e6d;
    --gold: #cda04f;
    --gold-dark: #a87828;
    --gold-light: #edd49b;
    --white: #ffffff;
    --page-bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #172333;
    --muted: #667386;
    --border: rgba(8, 46, 87, 0.13);
    --shadow-sm: 0 10px 30px rgba(5, 31, 60, 0.08);
    --shadow-lg: 0 24px 70px rgba(5, 31, 60, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --content-width: 1200px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(205, 160, 79, 0.10), transparent 26rem),
        radial-gradient(circle at 95% 16%, rgba(8, 46, 87, 0.09), transparent 26rem),
        var(--page-bg);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img,
video {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================
   LANGUAGE DISPLAY
========================== */
.lang {
    display: none;
}

body[data-language="en"] .lang-en,
body[data-language="es"] .lang-es,
body[data-language="zh"] .lang-zh {
    display: revert;
}

/* =========================
   HEADER
========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    min-height: 90px;
    padding: 0.7rem max(4vw, 1.25rem);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(5, 31, 60, 0.07);
    backdrop-filter: blur(18px);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy));
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: max-content;
}

.brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(5, 31, 60, 0.11);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 0.28rem;
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.7rem, 1.5vw, 1.55rem);
}

.main-navigation a {
    position: relative;
    padding: 0.7rem 0.1rem;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0.35rem;
    height: 2px;
    background: var(--gold);
    transition: right var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    right: 0;
}

.language-switcher {
    display: flex;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
}

.language-button {
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.72rem;
    color: var(--navy);
    background: transparent;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
}

.language-button:hover,
.language-button.active {
    color: #fff;
    background: var(--navy);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    width: 21px;
    height: 2px;
    background: var(--navy);
}

/* =========================
   HERO
========================== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 650px;
    padding: clamp(5rem, 9vw, 8rem) max(5vw, 1.25rem);
    color: #fff;
    background:
        linear-gradient(115deg, rgba(5, 31, 60, 0.99), rgba(8, 46, 87, 0.95) 58%, rgba(18, 62, 109, 0.92)),
        var(--navy);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    right: -170px;
    top: 8%;
    border-radius: 50%;
    border: 92px solid rgba(205, 160, 79, 0.08);
    box-shadow: 0 0 0 58px rgba(255, 255, 255, 0.025);
}

.hero-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 12px;
    background: linear-gradient(90deg, var(--navy-deep), var(--gold), var(--gold-light), var(--gold), var(--navy-deep));
}

.hero-content {
    max-width: 820px;
}

.eyebrow,
.section-kicker {
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 920px;
    margin-top: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 780px;
    margin-top: 1.55rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 50px;
    padding: 0.85rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--navy-deep);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 10px 26px rgba(205, 160, 79, 0.24);
}

.button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.hero-card {
    position: relative;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(205, 160, 79, 0.30);
    border-radius: calc(var(--radius-lg) - 10px);
    pointer-events: none;
}

.hero-card img {
    position: relative;
    z-index: 1;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
}

.hero-card div {
    position: relative;
    z-index: 1;
    padding: 1.2rem 0.4rem 0.35rem;
}

.hero-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.hero-card p {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

/* =========================
   CATEGORY BAR
========================== */
.category-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: min(calc(100% - 2rem), var(--content-width));
    margin: -45px auto 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 96px;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 18px;
    transition: var(--transition);
}

.category-link:hover {
    border-color: rgba(205, 160, 79, 0.48);
    background: #fbfaf5;
    transform: translateY(-2px);
}

.category-icon {
    display: grid;
    flex: 0 0 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--navy), var(--gold-dark));
    box-shadow: 0 8px 18px rgba(5, 31, 60, 0.14);
    font-size: 1.25rem;
    font-weight: 900;
}

.category-link strong {
    display: block;
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.25;
}

.category-link small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

/* =========================
   PROPERTY SECTIONS
========================== */
.property-section,
.contact-section {
    width: min(100%, 1480px);
    margin-inline: auto;
    padding: clamp(5rem, 8vw, 8rem) max(5vw, 1.25rem);
}

.section-tinted {
    width: 100%;
    max-width: none;
    background:
        linear-gradient(180deg, rgba(205, 160, 79, 0.04), rgba(205, 160, 79, 0.10)),
        #fafbfd;
    border-top: 1px solid rgba(205, 160, 79, 0.14);
    border-bottom: 1px solid rgba(205, 160, 79, 0.14);
}

.section-tinted > * {
    width: min(100%, var(--content-width));
    margin-inline: auto;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
    gap: 2rem;
    align-items: end;
    width: min(100%, var(--content-width));
    margin: 0 auto 2.2rem;
}

.section-kicker {
    color: var(--gold-dark);
}

.section-heading h2,
.contact-copy h2 {
    margin-top: 0.55rem;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-intro {
    color: var(--muted);
    font-size: 1rem;
}

.subsection-title {
    width: min(100%, var(--content-width));
    margin: 3.2rem auto 1.35rem;
    padding-bottom: 0.65rem;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(100%, var(--content-width));
    margin-inline: auto;
}

.property-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.property-card:hover {
    transform: translateY(-5px);
    border-color: rgba(205, 160, 79, 0.46);
    box-shadow: 0 22px 55px rgba(5, 31, 60, 0.14);
}

.property-media,
.slider {
    position: relative;
    min-height: 330px;
    background: linear-gradient(135deg, #e8edf3, #dce4ed);
    overflow: hidden;
}

.property-media img,
.slider img,
.slider video {
    height: 330px;
    object-fit: cover;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.7s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
}

.slider video.slide {
    background: #000;
}

.slider::after,
.property-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 35%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(5, 31, 60, 0.42));
}

.status-badge {
    position: absolute;
    z-index: 7;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    color: #fff;
    background: var(--navy);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(5, 31, 60, 0.18);
}

.status-rent {
    background: var(--navy-soft);
}

.status-sale {
    color: var(--navy-deep);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.prev,
.next {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 31, 60, 0.62);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 1.1rem;
    transform: translateY(-50%);
    transition: var(--transition);
}

.prev { left: 1rem; }
.next { right: 1rem; }

.prev:hover,
.next:hover {
    color: var(--navy-deep);
    border-color: var(--gold);
    background: var(--gold);
    transform: translateY(-50%) scale(1.07);
}

.dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transform: translateX(-50%);
}

.dot {
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 25px;
    border-color: var(--gold);
    background: var(--gold);
}

.property-content {
    padding: 1.35rem;
}

.property-location {
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.property-card h3 {
    margin-top: 0.55rem;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.15;
}

.property-details {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.property-details p {
    color: var(--muted);
    font-size: 0.92rem;
}

.property-details strong {
    color: var(--navy);
}

.property-price {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    color: var(--navy);
    background: rgba(237, 212, 155, 0.28);
    font-size: 1.05rem;
    font-weight: 900;
}

/* =========================
   CONTACT
========================== */
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    width: min(100%, var(--content-width));
}

.contact-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(145deg, var(--navy-deep), var(--navy));
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.contact-card p {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
}

.contact-card a {
    color: var(--gold-light);
    font-weight: 800;
}

/* =========================
   FOOTER
========================== */
.site-footer {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 2rem;
    align-items: start;
    padding: 3rem max(5vw, 1.25rem) 1.5rem;
    color: rgba(255, 255, 255, 0.78);
    background: var(--navy-deep);
    border-top: 6px solid var(--gold);
}

.footer-brand {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.footer-brand img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.footer-brand div {
    display: grid;
}

.footer-brand strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
}

.footer-brand span {
    color: var(--gold-light);
}

.footer-contact,
.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-contact a,
.footer-links a {
    color: #fff;
    font-weight: 700;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--gold-light);
}

.copyright {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    text-align: center;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 4px;
}

/* =========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 1080px) {
    .site-header {
        grid-template-columns: auto auto 1fr;
    }

    .menu-toggle {
        display: grid;
        justify-self: end;
        grid-column: 3;
        grid-row: 1;
    }

    .language-switcher {
        justify-self: end;
        grid-column: 2;
        grid-row: 1;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 0.8rem max(4vw, 1.25rem) 1rem;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        padding: 0.9rem 0.4rem;
        border-bottom: 1px solid var(--border);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: grid;
        grid-template-columns: 180px 1fr;
        align-items: center;
        gap: 1rem;
    }

    .category-bar {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .category-link {
        min-height: 78px;
    }
}

@media (max-width: 820px) {
    .section-heading,
    .property-grid,
    .contact-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer .copyright {
        grid-column: 1;
    }

    .property-media,
    .slider,
    .property-media img,
    .slider img,
    .slider video {
        min-height: 290px;
        height: 290px;
    }
}

@media (max-width: 620px) {
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 0.6rem;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 56px;
        height: 56px;
    }

    .brand-copy strong {
        font-size: 0.82rem;
    }

    .brand-copy small {
        font-size: 0.62rem;
    }

    .language-switcher {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
    }

    .language-button {
        flex: 1;
    }

    .menu-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .hero {
        min-height: auto;
        padding-top: 4.8rem;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.8rem);
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-card img {
        max-height: 310px;
    }

    .hero-actions,
    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .category-bar {
        width: min(calc(100% - 1rem), var(--content-width));
        padding: 0.65rem;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .property-media,
    .slider,
    .property-media img,
    .slider img,
    .slider video {
        min-height: 245px;
        height: 245px;
    }

    .status-badge {
        top: 0.65rem;
        left: 0.65rem;
        padding: 0.4rem 0.58rem;
        font-size: 0.58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
