:root {
    --primary-color: #1a4d6e;
    /* Deep Adriatic Blue */
    --secondary-color: #c8a87a;
    /* Warm Sand */
    --accent-color: #3aa9fe;
    /* Light Blue */
    --text-color: #2c2926;
    --text-muted: #6b6560;
    --bg-light: #fdfbf8;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
    font-family: 'Cormorant Garamond', serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    padding: 24px 0;
    transition: var(--transition);
}

.top-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-logo {
    display: flex;
    flex-direction: column;
    color: var(--white);
    transition: var(--transition);
}

.logo-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1;
    transition: var(--transition);
}

.logo-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    transition: var(--transition);
    margin-top: 4px;
    opacity: 0.9;
}

.top-header.scrolled .text-logo {
    color: var(--text-color);
}

.top-header.scrolled .logo-title {
    font-size: 26px;
}

.top-header.scrolled .logo-subtitle {
    font-size: 10px;
    margin-top: 2px;
}

.nav-bar {
    display: flex;
    gap: 40px;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.top-header.scrolled .hamburger span {
    background: var(--primary-color);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--primary-color);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--primary-color);
}

.menu-item {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    color: var(--white);
}

.top-header.scrolled .menu-item {
    color: var(--text-color);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.menu-item:hover::after,
.menu-item.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.top-header.scrolled .lang-item {
    color: var(--text-color);
}

.lang-item:hover {
    opacity: 1;
}

.lang-item img {
    width: 28px;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lang-item span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    font-weight: 500;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease-in-out;
    opacity: 0;
    z-index: -1;
}

.hero-bg.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    display: block;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-sub {
    font-size: 18px;
    letter-spacing: 0.05em;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button.outline {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.cta-button.outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-buttons .cta-button {
    animation: none;
    opacity: 1;
}

/* --- Sections Common --- */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-eyebrow {
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-color);
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    margin: 24px auto;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 18px;
}

.about-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

.about-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

/* --- Apartments Section --- */
.apartments {
    background: #f8f6f2;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.apartment-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.apartment-image {
    height: 400px;
    overflow: hidden;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.1);
}

.apartment-content {
    padding: 40px;
}

.apartment-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.apartment-name {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.apartment-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.apartment-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.view-details {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details::after {
    content: '→';
    transition: var(--transition);
}

.view-details:hover::after {
    transform: translateX(6px);
}

/* --- Video Section --- */
.video-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Apartment Details --- */
.apartment-details {
    border-top: 1px solid #eee;
}

.details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.detail-item:nth-child(even) {
    direction: rtl;
}

.detail-item:nth-child(even) .detail-content {
    direction: ltr;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-gallery a {
    display: block;
    overflow: hidden;
}

.detail-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.detail-content h3 {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.detail-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

.features-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
}

/* --- Contact Section --- */
.contact {
    background: #fdfbf8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form-wrap {
    background: var(--white);
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #eee;
    background: #fafafa;
    font-family: inherit;
    transition: var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
}

.contact-info-wrap {
    padding-top: 40px;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.info-item p {
    font-size: 20px;
    color: var(--primary-color);
}

.map-container {
    height: 400px;
    width: 100%;
    margin-top: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* --- Footer --- */
.footer {
    background: var(--bg-light);
    /* Changed from primary-color */
    color: var(--text-color);
    padding: 60px 0;
    text-align: center;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.footer-logo.text-logo {
    color: var(--primary-color);
    margin: 0;
    align-items: center;
}

.footer-logo.text-logo .logo-title {
    font-size: 42px;
}

.footer-logo.text-logo .logo-subtitle {
    font-size: 14px;
    margin-top: 6px;
}

/* Bigger logo in footer as well */

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Mobile Responsive --- */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid,
    .detail-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-item:nth-child(even) {
        direction: ltr;
    }

    .hamburger {
        display: flex;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-bar.active {
        right: 0;
    }

    .nav-bar .menu-item {
        color: var(--primary-color);
        font-size: 24px;
    }

    .nav-bar .menu-item::after {
        display: none;
    }

    .lang-switch {
        gap: 40px;
        margin-top: 16px;
    }

    .lang-item {
        color: var(--primary-color);
        opacity: 1;
    }

    .lang-item img {
        width: 46px;
        /* Much larger on mobile */
    }

    .lang-item span {
        font-size: 14px;
        margin-top: 4px;
        font-weight: 600;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }
}