/* ── Reset & Globals ── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

:root {
    --gold:       #C5A059;
    --gold-light: #D4AF37;
    --dark-bg:    #0D0D0D;
    --dark-surf:  #151515;
    --dark-card:  #1A1A1A;
    --border:     rgba(255,255,255,0.07);
    --text:       #FFFFFF;
    --text-sec:   rgba(255,255,255,0.72);
    --text-muted: rgba(255,255,255,0.4);
    --nav-h:      72px;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    overflow-x: hidden;
}

.font-playfair { font-family: 'Playfair Display', serif; }
.gold-text { color: var(--gold); }

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gold);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .3s, transform .2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── NAV ── */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background .3s;
}
.nav-bar.scrolled { background: rgba(13,13,13,0.98); }

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-desktop a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 400;
    transition: color .3s;
}
.nav-desktop a:hover { color: var(--gold); }

.burger-btn {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: none; border: none;
    cursor: pointer; z-index: 60; -webkit-tap-highlight-color: transparent;
}
.burger-btn svg { width: 24px; height: 24px; stroke: #fff; }

/* ── MOBILE OVERLAY ── */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(0,0,0,0.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-overlay a {
    color: #fff; text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 26px; transition: color .3s;
}
.mobile-overlay a:hover { color: var(--gold); }
.mobile-overlay .close-btn {
    position: absolute; top: 16px; right: 24px;
    width: 48px; height: 48px; background: none; border: none;
    cursor: pointer; z-index: 60;
}
.mobile-overlay .close-btn svg { width: 28px; height: 28px; stroke: #fff; }

/* ── HERO ── */
.hero {
    position: relative;
    height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.78) 100%);
}
.hero-content {
    position: relative; z-index: 2; max-width: 800px; padding: 0 24px;
}
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px,5vw,54px); font-weight: 400;
    line-height: 1.2; margin-bottom: 22px;
}
.hero-content h1 em { font-style: normal; color: var(--gold); }
.hero-content p {
    font-size: clamp(14px,1.8vw,17px); font-weight: 300;
    color: var(--text-sec); line-height: 1.7;
    max-width: 560px; margin: 0 auto 34px;
}

/* ── SECTIONS ── */
.section { padding: 96px 24px; }
.section-dark  { background: var(--dark-bg); }
.section-surf  { background: var(--dark-surf); }
.section-card  { background: var(--dark-card); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px,3.5vw,42px); font-weight: 400;
    margin-bottom: 14px; line-height: 1.25;
    text-align: center;
}
.section-subtitle {
    font-size: 14px; font-weight: 300;
    color: var(--text-muted); max-width: 540px;
    margin: 0 auto 48px; line-height: 1.6; text-align: center;
}

/* ── STATS ── */
.stats-row {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: 20px; max-width: 900px; margin: 0 auto;
}
.stat-box {
    text-align: center; padding: 28px 14px;
    border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.stat-box .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 38px; color: var(--gold); margin-bottom: 6px;
}
.stat-box .stat-label {
    font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-muted);
}

/* ── PHOTO BLOCK ── */
.adv-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1200px; margin: 0 auto; }
.adv-item {
    position: relative; min-height: 260px; overflow: hidden;
    display: flex; align-items: flex-end;
}
.adv-item img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .6s ease;
}
.adv-item:hover img { transform: scale(1.05); }
.adv-item .adv-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 55%);
}
.adv-item .adv-text {
    position: relative; z-index: 2; padding: 24px;
}
.adv-item .adv-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px; margin-bottom: 4px;
}
.adv-item .adv-text p {
    font-size: 13px; font-weight: 300;
    color: rgba(255,255,255,0.80);
    line-height: 1.5;
}

/* ── ECO CARDS (dark variant) ── */
.eco-grid { display: grid; grid-template-columns: 1fr; gap: 20px; text-align: center; }

.eco-card-dark {
    padding: 32px 28px;
    border: 1px solid var(--border);
    background: var(--dark-card);
    text-align: left;
}
.eco-card-dark:hover { border-color: rgba(197,160,89,0.35); transform: translateY(-3px); }
.eco-card-dark .eco-tag {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.eco-card-dark h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; margin-bottom: 14px;
}
.eco-card-dark p {
    font-size: 14px; font-weight: 300;
    color: var(--text-sec); line-height: 1.7;
}
.eco-card-dark ul { list-style: none; padding: 0; }
.eco-card-dark ul li {
    font-size: 13px; font-weight: 300;
    color: var(--text-sec); padding: 6px 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.eco-card-dark ul li::before { content: '•'; color: var(--gold); font-size: 18px; }

/* ── WHY BUY (honest, no fluff) ── */
.why-buy { max-width: 900px; margin: 0 auto; }
.why-buy-item {
    display: flex; gap: 28px; align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color .3s;
}
.why-buy-item:hover { border-color: rgba(197,160,89,0.3); }
.why-buy-item:last-child { border-bottom: none; }

.why-buy-num {
    flex: 0 0 48px;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--gold);
    opacity: .5;
    line-height: 1;
    padding-top: 4px;
}

.why-buy-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 19px; margin-bottom: 8px;
}
.why-buy-text p {
    font-size: 14px; font-weight: 300;
    color: var(--text-sec); line-height: 1.7;
}

/* ── APARTMENT CARDS ── */
.apt-grid { display: grid; grid-template-columns: 1fr; gap: 20px; text-align: center; }
.apt-card {
    padding: 30px 28px;
    border: 1px solid var(--border);
    background: var(--dark-card);
    position: relative;
    transition: all .4s;
    text-align: left;
}
.apt-card:hover { border-color: rgba(197,160,89,0.3); transform: translateY(-4px); }
.apt-card .badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--gold); color: #000;
    font-size: 9px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 4px 10px;
}
.apt-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; margin-bottom: 6px;
}
.apt-card .apt-desc {
    font-size: 13px; font-weight: 300;
    color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
}
.apt-card .apt-size {
    font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.apt-card .apt-btn {
    display: block; width: 100%; padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent; color: var(--text);
    font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase; text-align: center;
    cursor: pointer; transition: all .3s; text-decoration: none;
}
.apt-card .apt-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── CAROUSEL ── */
.carousel-wrapper { position: relative; overflow: hidden; padding: 0 0 20px; }
.carousel-track {
    display: flex; gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 24px 10px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
    flex: 0 0 340px; scroll-snap-align: start;
    background: var(--dark-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    cursor: pointer; position: relative;
}
.carousel-slide .plan-img {
    width: 100%;
    display: block;
    background: #1a1a1a;
    min-height: 240px;
    object-fit: contain;
    padding: 8px;
}
.carousel-slide:hover {
    border-color: rgba(197,160,89,0.35);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.carousel-slide .plan-img { width: 100%; display: block; background: #111; }
.carousel-slide .slide-info {
    padding: 14px 16px; border-top: 1px solid var(--border);
}
.carousel-slide .slide-info .apt-name {
    font-family: 'Playfair Display', serif; font-size: 14px; margin-bottom: 2px;
}
.carousel-slide .slide-info .apt-area { font-size: 11px; color: var(--text-muted); }
.carousel-slide .slide-info .apt-price { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 3px; }
.carousel-slide .slide-zoom-hint {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; background: rgba(0,0,0,0.6);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 16px; color: #fff;
    opacity: 0; transition: opacity .3s;
}
.carousel-slide:hover .slide-zoom-hint { opacity: 1; }

.carousel-controls { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.carousel-controls button {
    width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.15);
    background: transparent; color: #fff; font-size: 18px;
    cursor: pointer; transition: all .3s;
    display: flex; align-items: center; justify-content: center;
}
.carousel-controls button:hover { border-color: var(--gold); color: var(--gold); }

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s; cursor: zoom-out;
}
.lightbox.active {
    opacity: 1; visibility: visible; cursor: default;
}
.lightbox-content {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 96vw;
    max-height: 96vh;
    z-index: 10;
}
.lightbox-content img {
    display: block;
    width: 96vw;
    height: auto;
    object-fit: contain;
    background: #0D0D0D;
    padding: 0;
    flex-shrink: 0;
}
.lightbox-close {
    position: absolute; top: 16px; right: 16px;
    width: 44px; height: 44px; background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .3s;
    z-index: 210;
    border-radius: 50%;
}
.lightbox-close:hover { border-color: var(--gold); }
.lightbox-info { margin-top: 16px; color: #fff; }
.lightbox-info .lb-title { font-family: 'Playfair Display', serif; font-size: 18px; }
.lightbox-info .lb-details { font-size: 13px; color: rgba(255,255,255,0.5); }
.lightbox-info .lb-price { font-size: 14px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px; background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff; font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
    z-index: 210;
    border-radius: 50%;
}
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── CONTACT FORM ── */
.contact-form {
    max-width: 600px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 14px;
}
.contact-form input, .contact-form textarea {
    padding: 14px 16px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); color: #fff;
    font-size: 14px; font-family: 'Roboto', sans-serif;
    outline: none; transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form textarea { min-height: 90px; resize: vertical; }

.contact-info-block {
    display: flex; flex-direction: column;
    gap: 12px; align-items: center; margin-top: 44px;
}
.contact-info-block a {
    font-size: 18px; color: var(--gold);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    transition: color .3s;
}
.contact-info-block a:hover { color: var(--gold-light); }
.contact-info-block .ci-label {
    font-size: 10px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 2px;
}

/* ── FOOTER ── */
.site-footer {
    padding: 36px 24px; border-top: 1px solid var(--border);
    text-align: center; font-size: 11px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted);
}

/* ── FADE-IN ── */
.fade-in {
    opacity: 0; transform: translateY(28px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── GALLERY ── */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}
.gallery-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all .3s;
    letter-spacing: .5px;
}
.gallery-tab:hover { border-color: rgba(197,160,89,.4); color: var(--gold); }
.gallery-tab.active {
    background: rgba(197,160,89,.12);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 16px rgba(197,160,89,.08);
}
.gallery-stage {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.gallery-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .35s ease;
}
.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 8px;
    box-sizing: border-box;
}
.gallery-btn {
    pointer-events: all;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(10,10,10,.65);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.gallery-btn:hover {
    background: rgba(197,160,89,.25);
    border-color: var(--gold);
    color: var(--gold);
}
.gallery-counter {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 14px 0 12px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
}
.gallery-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scroll-behavior: smooth;
}
.gallery-strip::-webkit-scrollbar { height: 5px; }
.gallery-strip::-webkit-scrollbar-track { background: rgba(255,255,255,.03); border-radius: 3px; }
.gallery-strip::-webkit-scrollbar-thumb { background: rgba(197,160,89,.3); border-radius: 3px; }
.gallery-thumb {
    flex: 0 0 90px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .4;
    transition: all .3s;
}
.gallery-thumb.active { border-color: var(--gold); opacity: 1; box-shadow: 0 0 10px rgba(197,160,89,.25); }
.gallery-thumb:hover { opacity: .8; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Click on gallery photo opens lightbox */
.gallery-frame { cursor: zoom-in; }

@media(max-width: 768px) {
    .gallery-tab { padding: 8px 14px; font-size: 11px; }
    .gallery-frame { aspect-ratio: 4/3; }
    .gallery-btn { width: 38px; height: 38px; font-size: 16px; }
    .gallery-thumb { flex: 0 0 64px; height: 46px; }
}
@media(max-width: 480px) {
    .gallery-tabs { gap: 6px; }
    .gallery-tab { padding: 6px 10px; font-size: 10px; }
    .gallery-frame { aspect-ratio: 3/2; }
}

/* ── RESPONSIVE ── */
@media(min-width: 768px) {
    .adv-grid { grid-template-columns: repeat(2,1fr); }
    .adv-item:first-child { grid-column: 1/-1; height: 380px; }
    .eco-grid { grid-template-columns: repeat(2,1fr); }
    .apt-grid  { grid-template-columns: repeat(3,1fr); }
    .stats-row { grid-template-columns: repeat(4,1fr); }
    .contact-form { flex-direction: row; flex-wrap: wrap; }
    .contact-form input[type="text"],
    .contact-form input[type="tel"] { flex: 1 1 calc(50% - 7px); min-width: 0; }
    .contact-form textarea { flex: 1 1 100%; }
}
@media(min-width: 1024px) {
    .nav-desktop { display: flex; }
    .burger-btn  { display: none; }
    .adv-grid { grid-template-columns: repeat(4,1fr); }
    .adv-item:first-child { grid-column: auto; height: 260px; }
    .eco-grid { grid-template-columns: repeat(3,1fr); }
}
@media(max-width: 480px) {
    .section { padding: 64px 16px; }
    .carousel-slide { flex: 0 0 280px; }
    .carousel-slide .plan-img { min-height: 180px; }
    .stat-box .stat-num { font-size: 28px; }
    .apt-card .badge { top: 12px; right: 12px; font-size: 8px; padding: 3px 8px; }
    .hero-content h1 { font-size: clamp(24px,6vw,36px); }
    .eco-card-dark { padding: 24px 18px; }
    .eco-card-dark h3 { font-size: 17px; }
    .eco-card-dark p, .eco-card-dark ul li { font-size: 13px; }
    .adv-item { min-height: 300px; }
    .adv-item .adv-text { padding: 18px; }
    .adv-item .adv-text h4 { font-size: 17px; }
    .adv-item .adv-text p { font-size: 13px; }
}
