/* ============================================================
   1. RESET
============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* ============================================================
   2. VARIABLES
============================================================ */
:root {
    --bg-primary: #0d0e10;
    --bg-secondary: #151619;
    --bg-tertiary: #1a1b1d;
    --bg-soft: #101112;
    --text-primary: #f2eee6;
    --text-secondary: #aaa7a0;
    --text-muted: #8a8780;
    --accent: #b99a63;
    --accent-bright: #d3b678;
    --border: rgba(255, 255, 255, 0.12);
    --border-soft: rgba(255, 255, 255, 0.08);

    --font-serif: "Cormorant Garamond", serif;
    --font-body: "Manrope", sans-serif;

    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1200px;
}

/* ============================================================
   3. GLOBAL TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.05;
}

.container {
    width: min(var(--container), 90%);
    margin-inline: auto;
}

.section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.1;
    margin-bottom: 28px;
}

.section-text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 46ch;
    margin-bottom: 40px;
    font-weight: 300;
}

.accent-line {
    display: inline-block;
    width: 56px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 30px;
}

/* ============================================================
   4. UTILITIES
============================================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    transition:
        background 0.45s ease,
        color 0.45s ease,
        border-color 0.45s ease,
        letter-spacing 0.45s ease,
        transform 0.45s ease;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-lux);
    z-index: -1;
}

.btn:hover {
    color: #14100a;
    letter-spacing: 3.2px;
    transform: translateY(-2px);
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

.btn-sm {
    padding: 12px 26px;
    font-size: 11px;
    letter-spacing: 2px;
}

.btn-primary {
    border-color: var(--accent);
}

/* ============================================================
   5. HEADER / NAVIGATION
============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(-20px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        background 0.5s ease,
        backdrop-filter 0.5s ease;
}

body.loaded .site-header {
    opacity: 1;
    transform: translateY(0);
}

.site-header.scrolled {
    background: rgba(10, 11, 13, 0.92);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-soft);
}

.site-header.scrolled .nav {
    padding-block: 16px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 6vw;
    transition: padding 0.5s ease;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    flex-shrink: 0;
}

.brand-mark {
    color: var(--accent);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 19px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 8px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 2px;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    position: relative;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.4s ease;
    padding: 4px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-lux);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 8px;
    z-index: 110;
}

.hamburger span {
    display: block;
    height: 1px;
    width: 100%;
    background: var(--text-primary);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(8, 9, 11, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    text-align: center;
    padding: 80px 24px 40px;
}

.mobile-menu-inner ul {
    margin-bottom: 40px;
}

.mobile-menu-inner li {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-lux);
    transition-delay: var(--d, 0s);
}

.mobile-menu.open .mobile-menu-inner li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-inner a {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    padding: 10px 0;
    transition: color 0.4s ease;
}

.mobile-menu-inner a:hover {
    color: var(--accent);
}

.mobile-menu-cta {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-lux);
    transition-delay: var(--d, 0s);
}

.mobile-menu.open .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   6. HERO
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-wrap {
    position: absolute;
    inset: -8% -2% -8% -2%;
    will-change: transform;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2000&q=80");
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: hero-zoom 10s var(--ease-lux) forwards;
}

@keyframes hero-zoom {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 6, 8, 0.82) 0%,
            rgba(5, 6, 8, 0.55) 40%,
            rgba(5, 6, 8, 0.15) 100%
        );
}

.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--bg-primary) 0%,
        rgba(5, 6, 8, 0) 22%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-left: 6.5vw;
    padding-top: 8vh;
}

.hero-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(48px, 7.5vw, 104px);
    line-height: 0.98;
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
}

.hero-line {
    display: inline-block;
    width: 64px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 32px;
    transform: scaleX(0);
}

.hero-description {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 46ch;
    margin-bottom: 44px;
}

/* Hero staggered reveal */
.reveal-hero {
    opacity: 0;
    transform: translateY(35px);
}

body.loaded .reveal-hero {
    animation: hero-fade-up 1s var(--ease-lux) forwards;
    animation-delay: var(--d, 0s);
}

body.loaded .hero-line {
    animation: hero-line-grow 1.1s var(--ease-lux) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes hero-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-line-grow {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 6vw;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
}

.hero-scroll-text {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 56px;
    background: var(--accent);
    animation: scroll-pulse 2.4s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scroll-pulse {
    0% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.4); opacity: 0.4; }
}

/* ============================================================
   7. ABOUT
============================================================ */
.about {
    background: var(--bg-soft);
    padding: clamp(80px, 12vw, 140px) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 110px);
    align-items: center;
}

.about-media {
    position: relative;
}

.about-media::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px solid var(--border-soft);
    transform: translate(20px, 20px);
    pointer-events: none;
    z-index: 0;
}

/* Image wrappers */
.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-lux);
}

.image-wrapper:hover img {
    transform: scale(1.04);
}

.about-media .image-wrapper,
.architecture-media .image-wrapper {
    aspect-ratio: 4 / 5;
    position: relative;
    z-index: 1;
}

/* ============================================================
   8. AMENITIES
============================================================ */
.amenities {
    background: var(--bg-primary);
    padding: clamp(80px, 12vw, 140px) 0;
}

.amenities-heading {
    text-align: center;
    margin-bottom: clamp(50px, 7vw, 80px);
}

.amenities-heading .section-label::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 18px auto 0;
    opacity: 0.6;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--border-soft);
    border-left: 1px solid var(--border-soft);
}

.amenity {
    padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 30px);
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.5s ease;
}

.amenity:hover {
    background: rgba(255, 255, 255, 0.02);
}

.amenity-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 40px;
    transition: transform 0.5s var(--ease-lux), color 0.5s ease;
}

.amenity:hover .amenity-icon {
    transform: translateY(-5px);
    color: var(--accent-bright);
}

.amenity-number {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.amenity-title {
    font-size: 15px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.amenity-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================================
   9. ARCHITECTURE
============================================================ */
.architecture {
    background: var(--bg-secondary);
    padding: clamp(80px, 12vw, 140px) 0;
}

.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 110px);
    align-items: center;
}

.architecture-media {
    order: 1;
}

.architecture-content {
    order: 2;
}

/* ============================================================
   10. GALLERY
============================================================ */
.gallery {
    background: var(--bg-primary);
    padding: clamp(80px, 12vw, 140px) 0;
}

.gallery-heading {
    text-align: center;
    margin-bottom: clamp(50px, 7vw, 80px);
}

.gallery-heading .section-label::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 18px auto 0;
    opacity: 0.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
}

.gallery-card {
    position: relative;
}

.gallery-media {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-soft);
}

.gallery-card .image-wrapper img {
    transition: transform 0.8s var(--ease-lux), filter 0.8s ease;
}

.gallery-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 11, 0.35);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-card:hover .gallery-media::after {
    opacity: 1;
}

.gallery-card:hover .gallery-media img {
    transform: scale(1.05);
}

.gallery-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-top: 22px;
    transition: color 0.4s ease, transform 0.4s ease;
}

.gallery-card:hover .gallery-title {
    color: var(--accent);
    transform: translateY(-3px);
}

/* ============================================================
   11. CTA
============================================================ */
.cta {
    position: relative;
    background: var(--bg-secondary);
    padding: clamp(90px, 14vw, 170px) 0;
    overflow: hidden;
}

.cta-texture {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    pointer-events: none;
}

.cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
}

.cta-brand {
    display: flex;
    justify-content: center;
}

.brand-lg .brand-name {
    font-size: 24px;
    letter-spacing: 7px;
}

.brand-lg .brand-sub {
    font-size: 10px;
    letter-spacing: 8px;
}

.cta-content {
    text-align: center;
    max-width: 460px;
}

.cta-content .section-label {
    color: var(--accent);
}

.cta-content .accent-line {
    margin-inline: auto;
}

.cta-content .section-text {
    margin-inline: auto;
}

/* CTA circle */
.cta-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin-inline: auto;
    border: 1px solid var(--accent);
    border-radius: 50%;
    text-align: center;
    transition: all 0.5s ease;
}

.cta-circle::before {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(185, 154, 99, 0.35);
    border-radius: 50%;
    transition: inset 0.5s ease;
}

.cta-circle-inner {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.8;
    transition: transform 0.5s ease, color 0.5s ease;
}

.cta-circle:hover {
    transform: scale(1.05);
    border-color: var(--accent-bright);
}

.cta-circle:hover::before {
    inset: -12px;
    border-color: rgba(211, 182, 120, 0.5);
}

.cta-circle:hover .cta-circle-inner {
    transform: translateY(-3px);
    color: var(--accent-bright);
}

/* ============================================================
   12. FOOTER
============================================================ */
.footer {
    background: #0b0c0d;
    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-block: 20px;
}

.footer-copy {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ============================================================
   13. ANIMATIONS (IntersectionObserver reveals)
============================================================ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up,
.scale-reveal,
.heading-reveal {
    opacity: 0;
    transition:
        opacity 1s ease,
        transform 1s var(--ease-lux);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(40px);
}

.scale-reveal {
    transform: scale(0.96);
}

.heading-reveal {
    transform: translateY(20px);
    clip-path: inset(0 0 100% 0);
    transition:
        clip-path 1s var(--ease-lux),
        transform 1s ease,
        opacity 1s ease;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-up.active,
.scale-reveal.active,
.heading-reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.heading-reveal.active {
    clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-hero,
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-up,
    .scale-reveal,
    .heading-reveal,
    .hero-bg {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        clip-path: none !important;
    }

    .hero-line {
        transform: scaleX(1) !important;
    }

    .hero-scroll-line {
        animation: none !important;
    }
}

/* ============================================================
   14. RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1199px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .amenity:nth-child(3n) {
        border-right: 1px solid var(--border-soft);
    }
}

/* Tablet / small desktop nav collapse */
@media (max-width: 1024px) {
    .nav-links {
        gap: 22px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        padding-inline: 6vw;
    }
}

@media (max-width: 767px) {
    .about-grid,
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .architecture-media {
        order: 2;
    }

    .architecture-content {
        order: 1;
    }

    .about-media .image-wrapper,
    .architecture-media .image-wrapper {
        aspect-ratio: 16 / 10;
        min-height: 350px;
        height: 350px;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-brand {
        order: 1;
    }

    .cta-content {
        order: 2;
    }

    .cta-circle {
        order: 3;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 52px);
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-scroll {
        right: 5vw;
        bottom: 28px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .amenity:nth-child(2n) {
        border-right: 1px solid var(--border-soft);
    }
}
