/* ============================================
   Apartamenty Premium — Shared Styles (main.css)
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #0f1724;
    --color-primary-light: #1a2538;
    --color-accent: #c8a96e;
    --color-accent-light: #d4ba82;
    --color-accent-dark: #a8893e;
    --color-bg: #0a0f1a;
    --color-surface: #141e2e;
    --color-surface-light: #1d2a3d;
    --color-text: #f5f0e8;
    --color-text-muted: #8a9ab5;
    --color-text-dark: #5a6a85;
    --gradient-accent: linear-gradient(135deg, #c8a96e 0%, #e8d5a8 50%, #c8a96e 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 15, 26, 0.95), rgba(15, 23, 36, 0.9));
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(10, 15, 26, 0.85) 100%);
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* --- Page load animation --- */
body {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Navbar (shared) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Before scroll — brighter text over transparent hero */
.nav-link {
    color: var(--color-text-muted);
    transition: color 0.4s;
}

.nav-badge {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.4s;
}

.navbar:not(.scrolled) .nav-link,
.navbar:not(.scrolled) .nav-badge {
    color: #fff;
}

.navbar:not(.scrolled) .nav-link:hover {
    color: var(--color-accent);
}

/* --- Mobile Menu (shared) --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(10, 15, 26, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--color-text);
    text-decoration: none;
    text-align: center;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(200, 169, 110, 0.15);
    width: 80%;
}

.mobile-menu-cta .btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.mobile-menu-cta .btn-phone:hover {
    color: var(--color-accent);
}

.mobile-menu-cta .btn-phone i {
    color: var(--color-accent);
}

.mobile-menu .btn-primary {
    color: var(--color-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Decorative elements --- */
.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-ornament .line {
    width: 40px;
    height: 1px;
    background: var(--gradient-accent);
}

.section-ornament .diamond {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    transform: rotate(45deg);
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 500;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.separator {
    width: 60px;
    height: 1px;
    margin: 1.5rem auto;
    background: var(--gradient-accent);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    background: var(--gradient-accent);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(200, 169, 110, 0.1);
    transform: scale(1.05);
}

/* --- Links --- */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}

.link-underline:hover::after {
    width: 100%;
}

/* --- Footer --- */
.footer-separator {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* --- Slider Dots (shared) --- */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

/* --- Stars --- */
.stars {
    color: var(--color-accent);
}

/* --- Glassmorphism --- */
.glass {
    background: rgba(20, 30, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 169, 110, 0.1);
}

/* --- Counter --- */
.counter {
    display: inline-block;
}

/* --- Lightbox (shared base) --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

/* --- Responsive (shared) --- */
@media (max-width: 768px) {
    .review-card {
        padding: 1.5rem;
    }
}