/* ==========================================
   COURTISANE — APPLE-STYLE PREMIUM
   With Elyse Residence inspired transitions
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Raleway:wght@200;300;400&display=swap');

:root {
    --color-bg: #0a0a0f;
    --color-bg-section: #0d0d12;
    --color-text: #f5f5f7;
    --color-text-muted: #86868b;
    --color-gold: #c9a227;
    --color-gold-soft: #d4b85a;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Raleway', -apple-system, sans-serif;
    --transition: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 1s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-premium: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth page load */
body {
    opacity: 0;
    animation: pageLoad 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.1s;
}

@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}

::selection {
    background-color: var(--color-gold);
    color: var(--color-bg);
}

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

/* ==========================================
   NAVIGATION — FLOATING MINIMAL
   ========================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 3rem;
    transition: all var(--transition);
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
    transition: opacity var(--transition);
}

.logo img {
    height: 140px;
    width: auto;
    transition: opacity var(--transition);
}

.logo:hover img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.5s var(--ease-out-expo);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

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

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

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-switcher a {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--color-gold);
}

.lang-divider {
    color: var(--color-text-muted);
    opacity: 0.3;
    font-size: 0.7rem;
}

/* ==========================================
   HERO — FULLSCREEN CINEMATIC
   ========================================== */

.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.15);
    animation: heroImageReveal 2.5s var(--ease-out-expo) forwards;
    animation-delay: 0.2s;
}

@keyframes heroImageReveal {
    0% { 
        opacity: 0; 
        transform: scale(1.15);
    }
    100% { 
        opacity: 0.7; 
        transform: scale(1);
    }
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.75) 100%
    );
    opacity: 0;
    animation: overlayReveal 1.5s var(--ease-out-expo) forwards;
    animation-delay: 0.5s;
}

@keyframes overlayReveal {
    to { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(80px);
    animation: textRevealUp 1.4s var(--ease-out-expo) forwards;
    animation-delay: 0.7s;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: textRevealUp 1.4s var(--ease-out-expo) forwards;
    animation-delay: 0.9s;
}

@keyframes textRevealUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    animation: textRevealUp 1.4s var(--ease-out-expo) forwards;
}

.hero .subtitle:nth-of-type(1) {
    animation-delay: 1.1s;
}

.hero .subtitle:nth-of-type(2) {
    animation-delay: 1.4s;
}

.hero .cta {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(40px);
    animation: textRevealUp 1.4s var(--ease-out-expo) forwards;
    animation-delay: 1.7s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInDelayed 1s var(--ease-out-expo) forwards;
    animation-delay: 2.3s;
}

@keyframes fadeInDelayed {
    to { opacity: 1; }
}

.scroll-indicator span {
    display: none;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ==========================================
   SECTIONS — APPLE STYLE
   ========================================== */

.section {
    padding: 10rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-compact {
    padding: 4rem 2rem 0.125rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-tight-top {
    padding: 4rem 2rem 3.75rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-tight-top p {
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    font-size: 17px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.section-tight-top p.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-tight-top p.separator {
    border: none;
    border-top: 1px solid var(--color-gold);
    width: 80px;
    margin: 2.5rem auto;
    height: 0;
    padding: 0;
    opacity: 0;
    transform: none;
}

.section-tight-top p.separator.visible {
    opacity: 0.5;
}

.section-large {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative line after title */
.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 1.375rem auto 0;
    transition: width 1.5s var(--ease-out-expo) 0.3s;
}

.section-title.visible::after {
    width: 80px;
}

.section p {
    font-size: 17px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.section p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   IMAGE SECTIONS — FULLWIDTH WITH PARALLAX
   ========================================== */

.image-section {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.image-section picture {
    width: 100%;
    height: 100%;
    display: block;
}

.image-section img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1) translateY(0);
    transition: opacity 1.5s var(--ease-out-expo), transform 1.5s var(--ease-out-expo);
    will-change: transform;
}

.image-section img.visible {
    opacity: 0.9;
    transform: scale(1) translateY(0);
}

.image-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

.image-section-small {
    height: 35vh;
    margin: 1.5rem 0;
}

.image-section-reduced {
    height: 40vh;
    margin: 0.5rem 0;
}

/* ==========================================
   SPLIT SECTIONS — IMAGE + TEXT
   ========================================== */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-image {
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

/* Image reveal with clip-path */
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.15);
    transition: opacity 1.4s var(--ease-out-expo), transform 1.8s var(--ease-out-expo);
}

.split-image img.visible {
    opacity: 1;
    transform: scale(1);
}

.split-content {
    padding: 4rem 6rem 3.75rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.split-section.reverse .split-content h2 {
    transform: translateX(-50px);
    text-align: left;
    margin-left: 44px;
}

.split-content h2.visible {
    opacity: 1;
    transform: translateX(0);
}

.split-content p {
    font-size: 17px;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    margin-left: 0;
    padding-left: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    text-align: left;
}

.split-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   SUBSECTION TITLE
   ========================================== */

.subsection-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-gold);
    margin: 4rem 0 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.subsection-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   BUTTONS — PREMIUM HOVER
   ========================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 1.2rem 3rem;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-gold);
    transition: left 0.6s var(--ease-out-expo);
    z-index: -1;
}

.btn:hover {
    color: var(--color-bg);
}

.btn:hover::before {
    left: 0;
}

/* ==========================================
   INFO BOX
   ========================================== */

.info-box {
    background-color: rgba(201, 162, 39, 0.05);
    border-left: 2px solid var(--color-gold);
    padding: 2rem 3rem;
    margin: 3rem auto;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.info-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-box p {
    font-size: 17px;
    text-align: left;
    margin-bottom: 0;
}

.highlight {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-gold);
}

/* ==========================================
   ELEGANT LIST — STAGGERED ANIMATION
   ========================================== */

.elegant-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.elegant-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 17px;
    text-align: left;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.elegant-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delay for list items */
.elegant-list li:nth-child(1) { transition-delay: 0s; }
.elegant-list li:nth-child(2) { transition-delay: 0.1s; }
.elegant-list li:nth-child(3) { transition-delay: 0.2s; }
.elegant-list li:nth-child(4) { transition-delay: 0.3s; }
.elegant-list li:nth-child(5) { transition-delay: 0.4s; }

.elegant-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0.77em;
    font-size: 0.5rem;
    color: var(--color-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s var(--ease-out-expo) 0.3s, transform 0.5s var(--ease-out-expo) 0.3s;
}

.elegant-list li.visible::before {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   CLOSING STATEMENT
   ========================================== */

.closing-statement {
    padding: 5rem 2rem 3.75rem 2rem;
    text-align: center;
    background-color: var(--color-bg-section);
    position: relative;
}

.closing-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-gold));
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo);
}

.closing-statement.in-view::before {
    opacity: 0.5;
}

.closing-statement p {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 2.2;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.closing-statement p.visible {
    opacity: 1;
    transform: translateY(0);
}

.closing-statement .emphasis {
    color: var(--color-gold);
    display: block;
    margin: 2rem auto;
    text-align: center;
}

/* ==========================================
   CONTACT
   ========================================== */

.contact-email {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    color: var(--color-gold);
    text-decoration: none;
    display: inline-block;
    margin: 2rem 0;
    transition: opacity var(--transition);
}

.contact-email:hover {
    opacity: 0.7;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .split-section {
        grid-template-columns: 1fr;
    }
    
    .split-section.reverse {
        direction: ltr;
    }
    
    .split-image {
        min-height: 400px;
    }
    
    .split-content {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    .logo img {
        height: 105px;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        width: 100vw;
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 1000;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .lang-switcher {
        position: absolute;
        top: 1rem;
        right: 4rem;
        margin-left: 0;
        z-index: 1001;
    }
    
    .section {
        padding: 6rem 1.5rem;
    }
    
    .image-section {
        height: auto;
        min-height: unset;
        overflow: visible;
    }
    
    .image-section img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }
    
    .image-section-reduced {
        height: auto;
    }
    
    .split-content {
        padding: 3rem 1.5rem;
    }
    
    .split-content h2 {
        text-align: center !important;
        margin-left: 0 !important;
    }
    
    .split-section.reverse .split-content h2 {
        text-align: center !important;
        margin-left: 0 !important;
        padding-left: 75px;
    }
    
    .split-content p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .logo img {
        height: 95px;
    }
}

.subtle-link {
    color: var(--color-gold);
    font-size: 16px;
    font-style: italic;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.subtle-link:hover {
    opacity: 1;
}

/* Gallery Section */
.gallery-section {
    padding: 2rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-image {
    margin-bottom: 2rem;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.gallery-image img.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1rem;
    opacity: 0.8;
}

.cta-dual {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

.separator-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 2.5rem auto;
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo);
}

.separator-line.visible,
.separator-line.animate.in-view {
    opacity: 0.7;
}
